@media (max-width: 1400px) {
    .hero-swiper {
        height: 65vh;
        max-height: 620px;
    }

    .detail-poster-img {
        width: 200px;
        min-width: 200px;
    }
}

@media (max-width: 1200px) {
    .hero-swiper {
        height: 58vh;
        max-height: 580px;
    }

    .detail-poster-img {
        width: 185px;
        min-width: 185px;
    }

    .nav-search-wrap {
        min-width: 200px;
    }
}

@media (max-width: 992px) {
    .hero-swiper {
        height: 50vh;
        min-height: 340px;
        max-height: 480px;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-actions .btn {
        padding: 10px 18px;
        font-size: 0.875rem;
    }

    .detail-top {
        flex-direction: column !important;
        align-items: center;
        gap: 20px;
        text-align: center;
    }

    .detail-poster-img {
        width: 160px;
        min-width: 160px;
        margin: 0 auto;
    }

    .detail-title {
        font-size: 1.3rem;
        text-align: center;
    }

    .detail-badges {
        justify-content: center;
    }

    .detail-actions {
        justify-content: center;
    }

    .detail-servers {
        justify-content: center;
    }

    .detail-info-table th {
        width: 90px;
    }

    .nav-search-wrap {
        min-width: 170px;
    }

    .section-title {
        font-size: 1.2rem;
    }

    .static-page-card {
        padding: 30px 26px;
    }

    .static-page-title {
        font-size: 1.55rem;
    }

    .footer-brand-text {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .hero-swiper {
        height: 44vh;
        min-height: 270px;
        max-height: 400px;
    }

    .hero-title {
        font-size: 1.3rem;
        letter-spacing: -0.1px;
    }

    .hero-desc {
        display: none;
    }

    .hero-genres {
        font-size: 0.82rem;
        margin-bottom: 8px;
    }

    .hero-actions {
        gap: 8px;
    }

    .hero-actions .btn {
        padding: 9px 16px;
        font-size: 0.82rem;
    }

    .hero-swiper .swiper-button-prev,
    .hero-swiper .swiper-button-next {
        display: none;
    }

    .hero-badge {
        padding: 3px 9px;
        font-size: 0.68rem;
    }

    .hero-static {
        padding: 64px 0;
    }

    .hero-static-title {
        font-size: 1.65rem;
    }

    .hero-static-sub {
        font-size: 0.92rem;
        margin-bottom: 22px;
    }

    .section-title {
        font-size: 1.08rem;
    }

    .section-title-sm {
        font-size: 0.98rem;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .section-more {
        font-size: 0.82rem;
    }

    .ad-container {
        max-width: 100% !important;
        padding: 0 6px;
    }

    .ad-header_banner,
    .ad-footer_banner {
        min-height: 60px;
    }

    .ad-before_player {
        min-height: 60px;
        max-width: 100% !important;
    }

    .ad-after_player {
        min-height: 120px;
        max-width: 100% !important;
    }

    .ad-sidebar_banner {
        min-height: 120px;
        max-width: 100% !important;
    }

    .ad-home_middle {
        min-height: 60px;
        max-width: 100% !important;
    }

    .static-page-card {
        padding: 22px 16px;
    }

    .static-page-title {
        font-size: 1.35rem;
        padding-bottom: 14px;
        margin-bottom: 16px;
    }

    .static-page-content {
        font-size: 0.9rem;
    }

    .detail-poster-img {
        width: 140px;
        min-width: 140px;
    }

    .detail-title {
        font-size: 1.2rem;
    }

    .detail-info-table th,
    .detail-info-table td {
        font-size: 0.82rem;
        padding: 5px 0;
    }

    .sidebar-movie-poster {
        width: 46px;
        min-width: 46px;
        height: 66px;
    }

    .sidebar-movie-title {
        font-size: 0.76rem;
    }

    .sidebar-movie-meta {
        font-size: 0.66rem;
    }

    .nav-search-wrap {
        min-width: 100%;
        margin-top: 10px;
    }

    .nav-search-input {
        font-size: 0.875rem;
    }

    .navbar-collapse {
        padding-bottom: 10px;
    }

    .navbar .nav-link {
        padding: 8px 10px;
        font-size: 0.875rem;
    }

    .error-title {
        font-size: 3.5rem;
    }

    .error-subtitle {
        font-size: 1.05rem;
    }

    .error-desc {
        font-size: 0.9rem;
    }

    .btn-back-to-top {
        bottom: 16px;
        right: 16px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .breadcrumb-nav {
        padding: 8px 0;
    }

    .breadcrumb {
        font-size: 0.75rem;
    }

    .pagination-nav {
        margin-top: 20px;
    }

    .pg-link {
        padding: 6px 10px;
        font-size: 0.8rem;
        min-width: 34px;
    }

    .genre-tag {
        font-size: 0.72rem;
        padding: 2px 8px;
    }

    .server-pill {
        font-size: 0.65rem;
    }

    .empty-state {
        padding: 44px 16px;
    }

    .empty-icon {
        font-size: 3.2rem;
    }

    .empty-state h4 {
        font-size: 1.1rem;
    }

    .footer-desc {
        font-size: 0.82rem;
    }

    .footer-links a {
        font-size: 0.82rem;
    }
}

@media (max-width: 576px) {
    .hero-swiper {
        height: 38vh;
        min-height: 230px;
        max-height: 340px;
    }

    .hero-title {
        font-size: 1.08rem;
        margin-bottom: 6px;
    }

    .hero-badges {
        margin-bottom: 6px !important;
        gap: 5px;
    }

    .hero-badge {
        padding: 2px 7px;
        font-size: 0.62rem;
    }

    .hero-actions {
        gap: 7px;
    }

    .hero-actions .btn {
        flex: 1;
        justify-content: center;
        min-width: 110px;
        padding: 9px 12px;
        font-size: 0.8rem;
    }

    .hero-static {
        padding: 50px 0;
    }

    .hero-static-title {
        font-size: 1.4rem;
    }

    .hero-static-sub {
        font-size: 0.88rem;
        margin-bottom: 18px;
    }

    .section-title {
        font-size: 1rem;
        padding-left: 10px;
    }

    .section-title-sm {
        font-size: 0.92rem;
        padding-left: 10px;
    }

    .detail-poster-img {
        width: 120px;
        min-width: 120px;
    }

    .detail-title {
        font-size: 1.1rem;
    }

    .detail-badges {
        gap: 5px;
    }

    .detail-actions {
        flex-direction: column;
        gap: 8px;
    }

    .detail-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .detail-info-table {
        font-size: 0.8rem;
    }

    .detail-info-table th {
        width: 80px;
    }

    .synopsis-text {
        font-size: 0.875rem;
    }

    .related-grid-section {
        margin-top: 24px;
        padding-top: 20px;
    }

    .pg-link {
        padding: 5px 8px;
        font-size: 0.76rem;
        min-width: 30px;
    }

    .footer-heading {
        margin-bottom: 10px;
        font-size: 0.72rem;
    }

    .footer-brand-text {
        font-size: 1.05rem;
    }

    .footer-bottom p {
        font-size: 0.78rem;
    }

    .static-page-card {
        padding: 18px 14px;
    }

    .static-page-title {
        font-size: 1.2rem;
    }

    .static-page-content {
        font-size: 0.875rem;
        line-height: 1.75;
    }

    .error-title {
        font-size: 2.6rem;
        letter-spacing: -1px;
    }

    .error-subtitle {
        font-size: 0.98rem;
    }

    .error-desc {
        font-size: 0.875rem;
    }

    .error-actions {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .error-actions .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .empty-state {
        padding: 36px 12px;
    }

    .empty-icon {
        font-size: 2.8rem;
        margin-bottom: 14px;
    }

    .empty-state h4 {
        font-size: 1rem;
    }

    .empty-state p {
        font-size: 0.875rem;
    }

    .search-sort-bar {
        padding: 10px 12px;
        gap: 7px;
    }

    .sort-label {
        font-size: 0.82rem;
    }

    .d-badge {
        font-size: 0.65rem;
        padding: 3px 7px;
    }

    .breadcrumb {
        font-size: 0.7rem;
    }

    .sidebar-movie-item {
        padding: 8px 6px;
        gap: 10px;
    }

    .sidebar-movie-poster {
        width: 40px;
        min-width: 40px;
        height: 58px;
    }

    .sidebar-title {
        font-size: 0.92rem;
    }

    .watch-section {
        padding: 12px 0 0;
    }

    .player-wrapper {
        border-radius: var(--radius-sm);
    }

    .watch-info-section {
        padding: 20px 0;
    }

    .watch-detail-card {
        padding: 14px;
    }

    .watch-detail-heading {
        font-size: 0.95rem;
    }

    .watch-synopsis {
        font-size: 0.85rem;
    }

    .watch-credits {
        font-size: 0.8rem;
    }

    .watch-credits strong {
        min-width: 60px;
    }
}

@media (max-width: 375px) {
    .hero-swiper {
        height: 35vh;
        min-height: 200px;
    }

    .hero-title {
        font-size: 0.98rem;
    }

    .hero-actions .btn {
        font-size: 0.76rem;
        padding: 8px 10px;
    }

    .section-title {
        font-size: 0.92rem;
    }

    .error-title {
        font-size: 2.2rem;
    }

    .detail-poster-img {
        width: 110px;
        min-width: 110px;
    }
}

@media (min-width: 1400px) {
    .hero-swiper {
        height: 72vh;
        max-height: 680px;
    }

    .container-xl {
        max-width: 1320px;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-desc {
        font-size: 1rem;
        max-width: 560px;
    }
}

@media print {
    .navbar,
    .site-footer,
    .btn-back-to-top,
    .ad-container,
    .server-tabs,
    .player-wrapper {
        display: none !important;
    }

    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }

    .detail-title {
        font-size: 18pt;
    }

    .synopsis-text {
        font-size: 11pt;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .hero-swiper .swiper-wrapper {
        transition-duration: 0ms !important;
    }

    .movie-card:hover {
        transform: none;
    }

    .btn-navy:hover,
    .btn-accent:hover {
        transform: none;
    }

    html {
        scroll-behavior: auto;
    }
}

@media (prefers-color-scheme: dark) {
    .search-dropdown {
        background-color: var(--bg-card);
        border-color: var(--border);
    }
}