/**
 * CINEMAX Responsive Styles (1920px, 1440px, 1024px, 768px, 430px, 390px, 360px)
 *
 * @package CINEMAX
 * @since 1.0.0
 */

/* 1920px Wide Cinema Screens */
@media (min-width: 1680px) {
    :root {
        --cx-container-width: 1560px;
    }
    .cx-hero {
        min-height: 680px;
    }
    .cx-hero-slides {
        min-height: 680px;
    }
}

/* 1440px Desktop Standard */
@media (max-width: 1440px) {
    .cx-container {
        padding-left: 24px;
        padding-right: 24px;
    }
    .cx-nav-list {
        gap: 18px;
    }
    .cx-header-search {
        width: 220px;
    }
}

/* 1200px Compact Desktop */
@media (max-width: 1200px) {
    .cx-card-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .cx-split-section {
        grid-template-columns: 1fr;
    }
    .cx-person-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .cx-footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr;
    }
    .cx-filter-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 1024px Tablet Landscape */
@media (max-width: 1024px) {
    :root {
        --cx-header-height: 72px;
    }
    .cx-mobile-toggle {
        display: inline-flex;
    }
    .cx-nav {
        position: fixed;
        top: var(--cx-header-height);
        left: 0;
        right: 0;
        background: var(--cx-bg-glass-strong);
        backdrop-filter: blur(24px);
        border-bottom: 1px solid var(--cx-border-hover);
        padding: 20px 24px;
        transform: translateY(-120%);
        opacity: 0;
        visibility: hidden;
        transition: transform var(--cx-transition), opacity var(--cx-transition), visibility var(--cx-transition);
        z-index: 999;
    }
    .cx-nav.is-open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    .cx-nav-list {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 12px;
    }
    .cx-nav-list > li {
        width: 100%;
    }
    .cx-nav-list > li > a {
        width: 100%;
        padding: 10px 4px;
        font-size: 1rem;
    }
    .cx-card-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .cx-detail-grid {
        grid-template-columns: 240px 1fr;
        gap: 28px;
    }
    .cx-news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .cx-profile-layout {
        grid-template-columns: 1fr;
    }
    .cx-hero-halo {
        display: none;
    }
}

/* 768px Tablet Portrait */
@media (max-width: 768px) {
    .cx-container {
        padding-left: 16px;
        padding-right: 16px;
    }
    .cx-header-search {
        display: none;
    }
    .cx-hero,
    .cx-hero-slides {
        min-height: 520px;
    }
    .cx-hero-slide {
        padding: 44px 0 88px;
    }
    .cx-hero-dots {
        display: none;
    }
    .cx-hero-content {
        padding-left: 0;
        max-width: 100%;
    }
    .cx-hero-title {
        font-size: 2.35rem;
    }
    .cx-trailers-layout {
        grid-template-columns: 1fr;
    }
    .cx-detail-grid {
        grid-template-columns: 1fr;
    }
    .cx-detail-poster-card {
        max-width: 240px;
        margin: 0 auto;
    }
    .cx-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }
    .cx-footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    .cx-filter-grid {
        grid-template-columns: 1fr 1fr;
    }
    .cx-person-grid {
        grid-template-columns: 1fr;
    }
    .cx-scroller-next {
        display: none;
    }
}

/* 430px, 390px, 360px Mobile Phones */
@media (max-width: 480px) {
    .cx-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
    .cx-category-card {
        flex: 0 0 108px;
        height: 146px;
    }
    .cx-hero-title {
        font-size: 1.95rem;
    }
    .cx-hero-desc {
        font-size: 0.92rem;
    }
    .cx-hero-buttons {
        width: 100%;
    }
    .cx-hero-buttons .cx-btn {
        flex: 1 1 auto;
        padding: 10px 14px;
        font-size: 0.84rem;
    }
    .cx-hero-nav {
        right: 16px;
        bottom: 18px;
    }
    .cx-actor-spotlight-card {
        grid-template-columns: 1fr;
    }
    .cx-actor-spotlight-img-wrap {
        max-height: 200px;
    }
    .cx-footer-grid {
        grid-template-columns: 1fr;
    }
    .cx-news-grid {
        grid-template-columns: 1fr;
    }
    .cx-filter-grid {
        grid-template-columns: 1fr;
    }
    .cx-rating-panel {
        flex-direction: column;
        align-items: flex-start;
    }
    .cx-auth-card {
        padding: 26px 18px;
        margin: 24px auto;
    }
}

/* 360px Compact Mobile Safeguards */
@media (max-width: 365px) {
    .cx-brand-text {
        font-size: 1.15rem;
    }
    .cx-brand-img {
        max-height: 42px;
        max-width: 170px;
    }
    .cx-card-title {
        font-size: 0.85rem;
    }
    .cx-section-title {
        font-size: 1.18rem;
    }
}

