@media (min-width: 769px) {
    .header-bar, .container, .hero-card {
        max-width: 1500px;
    }

    /* Hide header bar background on desktop when detached */
    .header-bar.header-bar-detached {
        background: transparent !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
    }
    .header-bar.header-fixed {
        background-color: rgb(0 0 0 / 20%);
    }

    /* Convert header from grid to flex for desktop */
    .header-bar {
        display: flex !important;
    }
    .header-logo {
        width: 80px;
        margin-top: -3px;
        margin-left: 14px !important;
        margin-right: 5px !important;
    }

    #hero-card {
        margin-top: 75px;
    }
    #info-card {
        margin-top: 100px;
    }
    .header-bar {
        margin: 0 auto;
    }
    .bottom-nav {
        display: none;
    }
    #info-card.animate-slide-up {
        animation: none !important;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .cast-grid,
    .related-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
    /* Fancybox - pure black bg on mobile */
    .fancybox__container {
        --fancybox-bg: rgb(0 0 0);
    }
    /* Fancybox - remove toolbar button background */
    .fancybox__toolbar__column.is-right .f-button {
        background: transparent;
    }
}

.dropdown-container select {
    color: #000;
}

.title-grid-container {
    display: grid;
    grid-template-columns: 85% 15%;
    grid-template-rows: auto auto auto;
}
.left-column {
    grid-row: span 3;
    padding-right: 10px;
}
.right-column {
    display: grid;
    grid-template-rows: 50% 50%;
    justify-items: end;
}
.right-top {
    grid-row: 1 / 2;
}

#share-button, #comments-button {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    width: 50px;
    padding: 3px;
    backface-visibility: hidden;
    transform: translateZ(0);
    will-change: transform;
    perspective: 1000px;
    transition: all 0.2s;
}
#share-button:hover, #comments-button:hover {
    transform: scale(0.94);
}
#share-button:active, #comments-button:active {
    transform: scale(0.80);
    transition: 0.1s;
    background: #4d4d4d;
    border-radius: 14px;
}

#info-card {
    opacity: 0;
    transition: opacity 0s;
}
#info-card.loaded {
    opacity: 1;
}