body.dg-open {
    overflow: hidden;
}

body.dg-open > header,
body.dg-open > .hero-wrapper,
body.dg-open > main,
body.dg-open > .bottom-dock {
    pointer-events: none;
    user-select: none;
}

.dg-overlay {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.38);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    will-change: opacity;
    opacity: 1;
    visibility: visible;
    transition:
        opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
        visibility 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: "Google Sans", -apple-system, BlinkMacSystemFont, sans-serif;
    letter-spacing: -0.03em;
}

.dg-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.dg-box {
    position: relative;
    display: flex;
    align-items: center;
    gap: 32px;
    width: min(880px, 100%);
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    background: #ffffff;
    color: #000000;
    padding: 28px 44px 28px 32px;
    border-radius: 24px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.14);
    will-change: transform, opacity;
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    transition:
        transform 0.55s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 0.42s ease;
}

.dg-hidden .dg-box {
    opacity: 0;
    transform: translate3d(0, 20px, 0) scale(0.96);
}

.dg-close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 36px;
    height: 36px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 0;
    border-radius: 8px;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    color: #000000;
    opacity: 0.4;
    transition: opacity 0.15s ease;
}

.dg-close:hover,
.dg-close:focus-visible {
    opacity: 1;
}

.dg-close:focus-visible {
    outline: 3px solid #000000;
    outline-offset: 2px;
}

.dg-left {
    flex: 1.5;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dg-cover-wrap {
    width: 100%;
    max-width: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dg-vinyl-img {
    width: 100%;
    height: auto;
    max-height: 440px;
    object-fit: contain;
    display: block;
    user-select: none;
    filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.14));
}

.dg-right {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.dg-artist {
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: -2px;
    line-height: 1;
}

.dg-title {
    font-size: 1.9rem;
    font-weight: 500;
    letter-spacing: -2px;
    line-height: 1.05;
    margin: 12px 0 18px;
}

.dg-popover {
    position: relative;
    display: inline-block;
}

.dg-pill {
    display: inline-flex;
    padding: 5px 10px;
    border-radius: 15px;
    background: #00000020;
    color: #000000;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0;
    cursor: pointer;
    transition: all 0.3s;
}

.dg-pill:hover,
.dg-pill:focus-visible {
    color: #ffffff;
    background: #00000080;
}

.dg-pill:focus-visible {
    outline: 3px solid #000000;
    outline-offset: 2px;
}

.dg-popover-bubble {
    z-index: 100;
    width: max-content;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    font-size: 13px;
    position: absolute;
    display: none;
    pointer-events: none;
}

.dg-popover:hover .dg-popover-bubble,
.dg-popover:focus-within .dg-popover-bubble {
    display: block;
    animation: dgEnter 0.35s ease;
}

@keyframes dgEnter {
    0% { transform: translateX(-50%) translateY(-8px); opacity: 0; }
    100% { transform: translateX(-50%) translateY(0); opacity: 1; }
}

.dg-popover-message {
    color: #000000;
    text-align: left;
    white-space: normal;
    text-transform: none;
    background: #ffffff;
    border-radius: 10px;
    min-width: 100px;
    max-width: 280px;
    padding: 12px 15px;
    font-weight: 500;
    line-height: 19px;
    letter-spacing: 0;
    box-shadow: 0 0 #fff, 0 0 0 1px #0000000d, 0 10px 15px -3px #0000001a, 0 4px 6px -2px #0000000d;
}

.dg-popover-arrow {
    background: #ffffff;
    border-bottom: 1px solid #00000040;
    border-right: 1px solid #00000040;
    width: 10px;
    height: 10px;
    margin: -5px auto 0;
    transform: rotate(45deg);
}

.dg-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 24px;
    padding: 12px 24px;
    border-radius: 999px;
    background: #000000;
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.02em;
    white-space: nowrap;
    transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.dg-cta:hover,
.dg-cta:focus-visible {
    background: #1a1a1a;
    transform: scale(1.05);
    box-shadow: 0 8px 10px -5px #32323233;
}

.dg-cta:focus-visible {
    outline: 3px solid #000000;
    outline-offset: 3px;
}

.dg-df-logo {
    display: block;
    height: 28px;
    width: auto;
    margin: -3px 0;
    flex-shrink: 0;
    color: #ffffff;
}

@media (max-width: 768px) {
    .dg-overlay {
        padding: 14px;
    }

    .dg-box {
        flex-direction: column;
        gap: 12px;
        width: min(420px, 100%);
        padding: 32px 20px 26px;
        border-radius: 22px;
    }

    .dg-left {
        width: 100%;
    }

    .dg-cover-wrap {
        max-width: 300px;
    }

    .dg-vinyl-img {
        max-height: 280px;
    }

    .dg-right {
        width: 100%;
        align-items: center;
        text-align: center;
    }

    .dg-artist {
        font-size: 1.7rem;
        letter-spacing: -1.5px;
    }

    .dg-title {
        font-size: 1.6rem;
        letter-spacing: -1.5px;
        margin: 6px 0 14px;
    }

    .dg-cta {
        margin-top: 18px;
        width: min(260px, 100%);
        padding: 12px 22px;
        font-size: 14px;
    }

    .dg-df-logo {
        height: 26px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dg-overlay,
    .dg-box,
    .dg-close,
    .dg-pill,
    .dg-cta {
        transition: none !important;
    }

    .dg-hidden .dg-box {
        transform: none !important;
    }

    .dg-popover:hover .dg-popover-bubble,
    .dg-popover:focus-within .dg-popover-bubble {
        animation: none !important;
    }

    .dg-cta:hover,
    .dg-cta:focus-visible {
        transform: none !important;
    }
}