* {
    box-sizing: border-box;
}

:root {
    --color-orange: #f97316;
    --color-red: #ef4444;
    --color-pink: #ec4899;
    --color-blue: #2563eb;
    --color-green: #16a34a;
    --color-gray-50: #f9fafb;
    --color-gray-100: #f3f4f6;
    --color-gray-200: #e5e7eb;
    --color-gray-500: #6b7280;
    --color-gray-700: #374151;
    --color-gray-900: #111827;
    --shadow-card: 0 10px 28px rgba(15, 23, 42, 0.12);
    --shadow-hover: 0 22px 45px rgba(15, 23, 42, 0.20);
    --radius-xl: 24px;
    --radius-lg: 18px;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--color-gray-900);
    background: var(--color-gray-50);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

img,
video {
    display: block;
    max-width: 100%;
}

button,
input,
select {
    font: inherit;
}

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: #ffffff;
    background: linear-gradient(90deg, var(--color-orange), var(--color-red), var(--color-pink));
    box-shadow: 0 16px 30px rgba(239, 68, 68, 0.28);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 66px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.brand {
    transition: transform 0.2s ease;
}

.brand:hover {
    transform: scale(1.04);
}

.brand-icon {
    display: inline-grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 999px;
    color: var(--color-red);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
}

.brand-name {
    font-size: 22px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-link {
    position: relative;
    font-weight: 700;
    opacity: 0.96;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #fef08a;
    opacity: 1;
}

.mobile-menu-button {
    display: none;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
}

.mobile-menu-button span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: #ffffff;
}

.mobile-nav {
    display: none;
    padding: 0 16px 16px;
}

.mobile-nav.open {
    display: grid;
    gap: 8px;
    animation: fadeIn 0.25s ease both;
}

.mobile-nav-link {
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.10);
}

.hero-section {
    position: relative;
    min-height: 650px;
    overflow: hidden;
    color: #ffffff;
    background: var(--color-gray-900);
}

.hero-slider,
.hero-slide {
    min-height: 650px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) 360px;
    align-items: center;
    gap: 48px;
    width: 100%;
    padding: 72px max(32px, calc((100vw - 1180px) / 2)) 90px;
    background-position: center;
    background-size: cover;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

.hero-copy {
    max-width: 720px;
    animation: fadeInUp 0.65s ease both;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 7px 14px;
    border-radius: 999px;
    color: #fff7ed;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(12px);
    font-size: 14px;
    font-weight: 800;
}

.hero-copy h1,
.page-hero h1,
.detail-info h1 {
    margin: 0 0 18px;
    font-size: clamp(40px, 6vw, 72px);
    line-height: 1.04;
    letter-spacing: -0.04em;
}

.hero-copy p,
.page-hero p,
.detail-info p {
    max-width: 760px;
    margin: 0 0 26px;
    color: rgba(255, 255, 255, 0.90);
    font-size: 19px;
}

.hero-tags,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags span,
.tag-row span,
.chip-cloud span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: 13px;
}

.hero-tags span {
    padding: 7px 12px;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.primary-button,
.ghost-button,
.home-search button,
.advanced-filter-panel button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 24px;
    border: 0;
    border-radius: 999px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
    color: #ffffff;
    background: linear-gradient(90deg, var(--color-orange), var(--color-red));
    box-shadow: 0 14px 26px rgba(239, 68, 68, 0.30);
}

.primary-button.light {
    color: var(--color-red);
    background: #ffffff;
}

.ghost-button {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
}

.primary-button:hover,
.ghost-button:hover,
.home-search button:hover,
.advanced-filter-panel button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.hero-poster {
    position: relative;
    overflow: hidden;
    border: 10px solid rgba(255, 255, 255, 0.14);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.10);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
}

.hero-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hero-poster:hover img {
    transform: scale(1.06);
}

.hero-poster span {
    position: absolute;
    right: 18px;
    bottom: 18px;
    padding: 10px 15px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.62);
    font-weight: 800;
}

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 28px;
    z-index: 5;
    display: flex;
    gap: 10px;
    transform: translateX(-50%);
}

.hero-dot {
    width: 11px;
    height: 11px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
    cursor: pointer;
}

.hero-dot.active {
    width: 34px;
    background: #ffffff;
}

.quick-search-panel {
    margin-top: -42px;
    position: relative;
    z-index: 8;
}

.quick-search-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 480px);
    gap: 24px;
    align-items: center;
    padding: 26px;
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-card);
}

.quick-search-inner h2 {
    margin: 0 0 8px;
    font-size: 28px;
}

.quick-search-inner p {
    margin: 0;
    color: var(--color-gray-500);
}

.home-search,
.advanced-filter-panel,
.category-tools {
    display: flex;
    gap: 12px;
}

.home-search input,
.advanced-filter-panel input,
.advanced-filter-panel select,
.category-tools input,
.category-tools select {
    width: 100%;
    min-height: 46px;
    padding: 0 16px;
    border: 1px solid var(--color-gray-200);
    border-radius: 14px;
    outline: none;
    background: #ffffff;
}

.home-search input:focus,
.advanced-filter-panel input:focus,
.advanced-filter-panel select:focus,
.category-tools input:focus,
.category-tools select:focus {
    border-color: var(--color-orange);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.home-search button,
.advanced-filter-panel button {
    color: #ffffff;
    white-space: nowrap;
    background: linear-gradient(90deg, var(--color-orange), var(--color-red));
}

.content-section {
    padding: 58px 0;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.section-heading h2 {
    margin: 0 0 6px;
    font-size: clamp(28px, 3vw, 38px);
    line-height: 1.12;
}

.section-heading p {
    margin: 0;
    color: var(--color-gray-500);
}

.section-more,
.text-link {
    color: var(--color-orange);
    font-weight: 800;
}

.movie-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 18px;
}

.movie-card {
    overflow: hidden;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--shadow-card);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: var(--color-gray-200);
}

.poster-link img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.movie-card:hover .poster-link img {
    transform: scale(1.08);
}

.poster-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: rgba(17, 24, 39, 0.46);
    font-weight: 900;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.movie-card:hover .poster-overlay {
    opacity: 1;
}

.region-badge,
.year-badge,
.rank-badge {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    padding: 4px 8px;
    border-radius: 8px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
}

.region-badge {
    top: 10px;
    left: 10px;
    background: linear-gradient(90deg, var(--color-orange), var(--color-red));
}

.year-badge {
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.68);
}

.rank-badge {
    left: 10px;
    bottom: 10px;
    min-width: 38px;
    justify-content: center;
    background: linear-gradient(90deg, #f59e0b, #ef4444);
}

.movie-card-body {
    padding: 14px;
}

.movie-card h3 {
    display: -webkit-box;
    min-height: 48px;
    margin: 0 0 8px;
    overflow: hidden;
    color: var(--color-gray-900);
    font-size: 16px;
    line-height: 1.48;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-card h3 a:hover {
    color: var(--color-orange);
}

.movie-card p {
    display: -webkit-box;
    min-height: 42px;
    margin: 0 0 10px;
    overflow: hidden;
    color: var(--color-gray-500);
    font-size: 13px;
    line-height: 1.55;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--color-gray-500);
    font-size: 12px;
}

.tag-row span {
    padding: 4px 8px;
    color: #b45309;
    background: #fff7ed;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
}

.category-card,
.overview-card,
.taxonomy-card,
.text-card,
.side-card,
.player-card {
    border-radius: var(--radius-lg);
    background: #ffffff;
    box-shadow: var(--shadow-card);
}

.category-card {
    min-height: 154px;
    padding: 24px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-orange), var(--color-red), var(--color-pink));
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:nth-child(2n) {
    background: linear-gradient(135deg, #2563eb, #7c3aed, #ec4899);
}

.category-card:nth-child(3n) {
    background: linear-gradient(135deg, #16a34a, #0ea5e9, #2563eb);
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.category-card strong,
.category-card span,
.category-card em {
    display: block;
}

.category-card strong {
    font-size: 22px;
    margin-bottom: 10px;
}

.category-card span {
    color: rgba(255, 255, 255, 0.86);
}

.category-card em {
    margin-top: 18px;
    font-style: normal;
    font-weight: 800;
}

.cta-section {
    padding: 84px 0;
    color: #ffffff;
    text-align: center;
    background: linear-gradient(90deg, var(--color-orange), var(--color-red), var(--color-pink));
}

.cta-section h2 {
    margin: 0 0 14px;
    font-size: clamp(30px, 4vw, 48px);
}

.cta-section p {
    max-width: 720px;
    margin: 0 auto 28px;
    color: rgba(255, 255, 255, 0.90);
}

.page-main {
    min-height: 70vh;
}

.page-hero {
    padding: 78px 0 66px;
    color: #ffffff;
    background: linear-gradient(120deg, var(--color-orange), var(--color-red), var(--color-pink));
}

.compact-hero,
.search-hero,
.category-hero,
.rank-hero {
    position: relative;
    overflow: hidden;
}

.compact-hero::after,
.search-hero::after,
.category-hero::after,
.rank-hero::after {
    position: absolute;
    right: -120px;
    top: -120px;
    width: 360px;
    height: 360px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    content: "";
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 700;
}

.breadcrumb a:hover {
    color: #fef08a;
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.overview-card {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 18px;
    padding: 16px;
}

.overview-cover {
    overflow: hidden;
    border-radius: 16px;
}

.overview-cover img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.overview-card h2 {
    margin: 4px 0 8px;
}

.overview-card p {
    margin: 0 0 10px;
    color: var(--color-gray-500);
}

.overview-card strong {
    display: block;
    margin-bottom: 8px;
    color: var(--color-red);
}

.taxonomy-section {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.taxonomy-card {
    padding: 24px;
}

.taxonomy-card h2 {
    margin: 0 0 14px;
}

.chip-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.chip-cloud span {
    padding: 7px 11px;
    color: var(--color-gray-700);
    background: var(--color-gray-100);
}

.chip-cloud b {
    margin-left: 5px;
    color: var(--color-red);
}

.category-tools {
    max-width: 780px;
    margin-top: 24px;
}

.feature-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.feature-strip-card {
    display: flex;
    min-height: 210px;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    padding: 18px;
    border-radius: var(--radius-lg);
    color: #ffffff;
    background-position: center;
    background-size: cover;
    box-shadow: var(--shadow-card);
}

.feature-strip-card span {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.82);
}

.feature-strip-card strong {
    font-size: 20px;
    line-height: 1.3;
}

.rank-hero-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 30px;
}

.rank-hero-card {
    position: relative;
    overflow: hidden;
    min-height: 330px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow-card);
}

.rank-hero-card img {
    width: 100%;
    height: 100%;
    min-height: 330px;
    object-fit: cover;
    opacity: 0.74;
}

.rank-hero-card b,
.rank-hero-card strong,
.rank-hero-card span {
    position: absolute;
    left: 18px;
    z-index: 2;
}

.rank-hero-card b {
    top: 18px;
    padding: 6px 10px;
    border-radius: 999px;
    background: linear-gradient(90deg, #f59e0b, #ef4444);
}

.rank-hero-card strong {
    bottom: 48px;
    right: 18px;
    font-size: 22px;
}

.rank-hero-card span {
    bottom: 20px;
    color: rgba(255, 255, 255, 0.84);
}

.advanced-filter-panel {
    position: sticky;
    top: 82px;
    z-index: 12;
    display: grid;
    grid-template-columns: minmax(260px, 1.5fr) repeat(3, minmax(120px, 0.7fr)) auto;
    padding: 16px;
    border-radius: var(--radius-lg);
    background: #ffffff;
    box-shadow: var(--shadow-card);
}

.result-count {
    margin: 24px 0;
    color: var(--color-gray-500);
    font-weight: 800;
}

.empty-state {
    padding: 24px;
    border-radius: var(--radius-lg);
    color: var(--color-gray-500);
    text-align: center;
    background: #ffffff;
}

.detail-hero {
    min-height: 560px;
    color: #ffffff;
    background-position: center;
    background-size: cover;
}

.detail-hero-inner {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 42px;
    align-items: end;
    padding-top: 58px;
    padding-bottom: 58px;
}

.detail-poster {
    overflow: hidden;
    border: 8px solid rgba(255, 255, 255, 0.14);
    border-radius: 24px;
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.38);
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.detail-meta-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 26px;
}

.detail-meta-grid span {
    padding: 13px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
}

.detail-meta-grid b {
    display: block;
    color: rgba(255, 255, 255, 0.66);
    font-size: 12px;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    align-items: start;
    padding: 44px 0 70px;
}

.detail-main,
.detail-side {
    min-width: 0;
}

.player-card,
.text-card,
.side-card {
    margin-bottom: 22px;
    padding: 22px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: #020617;
    aspect-ratio: 16 / 9;
}

.video-element {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #020617;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 8px;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.26), rgba(2, 6, 23, 0.70));
    cursor: pointer;
}

.play-overlay.hidden {
    display: none;
}

.play-circle {
    display: grid;
    width: 82px;
    height: 82px;
    place-items: center;
    border-radius: 999px;
    color: var(--color-red);
    background: rgba(255, 255, 255, 0.92);
    font-size: 32px;
    box-shadow: var(--shadow-hover);
}

.player-message {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 12px;
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    text-align: center;
}

.text-card h2,
.side-card h2 {
    margin: 0 0 12px;
    font-size: 24px;
}

.text-card p {
    margin: 0;
    color: var(--color-gray-700);
    font-size: 16px;
}

.info-list {
    display: grid;
    gap: 12px;
    margin: 0;
}

.info-list div {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--color-gray-100);
}

.info-list dt {
    color: var(--color-gray-500);
    font-weight: 800;
}

.info-list dd {
    margin: 0;
}

.info-list a {
    color: var(--color-orange);
    font-weight: 800;
}

.detail-side {
    position: sticky;
    top: 92px;
}

.related-list {
    display: grid;
    gap: 14px;
}

.related-row {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.related-row img {
    width: 96px;
    height: 64px;
    border-radius: 12px;
    object-fit: cover;
}

.related-row strong,
.related-row em {
    display: block;
}

.related-row strong {
    display: -webkit-box;
    overflow: hidden;
    font-size: 14px;
    line-height: 1.4;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.related-row em {
    color: var(--color-gray-500);
    font-size: 12px;
    font-style: normal;
}

.side-link {
    display: block;
    margin-top: 10px;
    padding: 12px 14px;
    border-radius: 14px;
    color: var(--color-gray-700);
    background: var(--color-gray-100);
    font-weight: 800;
}

.related-section-inline .movie-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sitemap-list {
    columns: 3 260px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sitemap-list li {
    break-inside: avoid;
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
    padding: 12px;
    border-radius: 12px;
    background: #ffffff;
}

.sitemap-list a {
    color: var(--color-gray-900);
    font-weight: 800;
}

.sitemap-list span {
    color: var(--color-gray-500);
    font-size: 12px;
}

.site-footer {
    color: #d1d5db;
    background: #111827;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 28px;
    padding: 54px 0 34px;
}

.footer-brand {
    margin-bottom: 14px;
    color: #ffffff;
    font-size: 22px;
}

.site-footer h3 {
    margin: 0 0 14px;
    color: #ffffff;
}

.site-footer p,
.site-footer ul {
    margin: 0;
}

.site-footer ul {
    padding: 0;
    list-style: none;
}

.site-footer li {
    margin-bottom: 9px;
}

.site-footer a:hover {
    color: var(--color-orange);
}

.footer-small {
    margin-top: 12px !important;
    color: #9ca3af;
    font-size: 13px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 0 26px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #9ca3af;
    font-size: 14px;
}

[hidden] {
    display: none !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1180px) {
    .movie-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .desktop-nav {
        display: none;
    }

    .mobile-menu-button {
        display: block;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        min-height: 760px;
        padding-top: 58px;
    }

    .hero-poster {
        width: min(300px, 70vw);
        margin: 0 auto;
    }

    .quick-search-inner,
    .overview-grid,
    .taxonomy-section,
    .detail-layout,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .movie-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .feature-strip,
    .rank-hero-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .advanced-filter-panel {
        position: static;
        grid-template-columns: 1fr 1fr;
    }

    .detail-hero-inner {
        grid-template-columns: 220px minmax(0, 1fr);
    }

    .detail-meta-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .detail-side {
        position: static;
    }
}

@media (max-width: 720px) {
    .container {
        width: min(100% - 24px, 1180px);
    }

    .brand-name {
        font-size: 19px;
    }

    .hero-section,
    .hero-slider,
    .hero-slide {
        min-height: 740px;
    }

    .hero-copy h1,
    .page-hero h1,
    .detail-info h1 {
        font-size: 38px;
    }

    .hero-copy p,
    .page-hero p,
    .detail-info p {
        font-size: 16px;
    }

    .home-search,
    .category-tools,
    .section-heading,
    .footer-bottom {
        flex-direction: column;
        align-items: stretch;
    }

    .movie-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .category-grid,
    .feature-strip,
    .rank-hero-grid,
    .related-section-inline .movie-grid {
        grid-template-columns: 1fr;
    }

    .overview-card,
    .detail-hero-inner {
        grid-template-columns: 1fr;
    }

    .overview-cover,
    .detail-poster {
        width: min(260px, 74vw);
    }

    .advanced-filter-panel {
        grid-template-columns: 1fr;
    }

    .detail-meta-grid {
        grid-template-columns: 1fr;
    }

    .info-list div {
        grid-template-columns: 1fr;
    }
}
