:root {
    --frost-950: #082f49;
    --frost-900: #0c4a6e;
    --frost-800: #075985;
    --frost-700: #0369a1;
    --frost-600: #0284c7;
    --frost-500: #0ea5e9;
    --frost-100: #e0f2fe;
    --frost-50: #f0f9ff;
    --ice-900: #164e63;
    --ice-700: #0e7490;
    --ice-600: #0891b2;
    --ice-200: #a5f3fc;
    --ice-50: #ecfeff;
    --silver-950: #020617;
    --silver-900: #0f172a;
    --silver-800: #1e293b;
    --silver-700: #334155;
    --silver-600: #475569;
    --silver-500: #64748b;
    --silver-300: #cbd5e1;
    --silver-200: #e2e8f0;
    --silver-100: #f1f5f9;
    --silver-50: #f8fafc;
    --white: #ffffff;
    --shadow-soft: 0 18px 50px rgba(15, 23, 42, 0.12);
    --shadow-card: 0 12px 30px rgba(15, 23, 42, 0.10);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 12px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--silver-900);
    background: linear-gradient(180deg, var(--silver-50) 0%, var(--frost-50) 42%, var(--white) 100%);
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    color: var(--white);
    background: linear-gradient(90deg, var(--frost-900), var(--frost-800), var(--ice-900));
    box-shadow: 0 10px 30px rgba(8, 47, 73, 0.25);
}

.top-nav {
    width: min(1180px, calc(100% - 32px));
    height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

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

.brand-icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: var(--frost-900);
    background: linear-gradient(135deg, var(--ice-200), var(--white));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.brand-text {
    font-size: 20px;
}

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

.nav-link {
    padding: 9px 12px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.88);
    font-weight: 600;
    transition: 0.22s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--white);
    background: rgba(255, 255, 255, 0.14);
}

.mobile-nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 10px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    cursor: pointer;
}

.mobile-nav-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    border-radius: 999px;
    background: var(--white);
}

.mobile-nav-panel {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 18px;
}

.mobile-nav-panel a {
    display: block;
    padding: 12px 14px;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.9);
}

.mobile-nav-panel a:hover {
    background: rgba(255, 255, 255, 0.12);
}

.hero-carousel {
    position: relative;
    min-height: 660px;
    overflow: hidden;
    color: var(--white);
    background: var(--frost-950);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    align-items: center;
    gap: 48px;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 88px 0 72px;
    opacity: 0;
    pointer-events: none;
    transform: translateX(28px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero-slide.is-active {
    position: relative;
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}

.hero-backdrop {
    position: fixed;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 760px;
    object-fit: cover;
    filter: blur(2px) saturate(1.05);
    transform: scale(1.04);
    opacity: 0.45;
}

.hero-overlay {
    position: fixed;
    inset: 0;
    z-index: -1;
    height: 760px;
    background:
        radial-gradient(circle at 76% 36%, rgba(14, 165, 233, 0.42), transparent 32%),
        linear-gradient(90deg, rgba(8, 47, 73, 0.96) 0%, rgba(12, 74, 110, 0.82) 48%, rgba(2, 6, 23, 0.88) 100%);
}

.hero-content {
    max-width: 720px;
}

.hero-kicker,
.section-kicker,
.page-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 7px 13px;
    border-radius: 999px;
    color: var(--ice-200);
    background: rgba(255, 255, 255, 0.12);
    font-size: 14px;
    font-weight: 700;
}

.hero-content h1 {
    margin: 0;
    font-size: clamp(42px, 7vw, 82px);
    line-height: 0.96;
    letter-spacing: -0.06em;
}

.hero-one-line {
    max-width: 660px;
    margin: 24px 0 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 20px;
    line-height: 1.8;
}

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

.hero-tags {
    margin-top: 22px;
}

.hero-tags span,
.tag-list span {
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--frost-800);
    background: var(--frost-100);
    font-size: 12px;
    font-weight: 700;
}

.hero-tags span {
    color: var(--white);
    background: rgba(255, 255, 255, 0.16);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 800;
    transition: 0.22s ease;
}

.btn-primary {
    color: var(--white);
    background: linear-gradient(135deg, var(--frost-600), var(--ice-600));
    box-shadow: 0 16px 30px rgba(2, 132, 199, 0.28);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 36px rgba(2, 132, 199, 0.35);
}

.btn-ghost,
.btn-ghost-dark {
    color: var(--white);
    background: rgba(255, 255, 255, 0.13);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.btn-ghost-dark {
    color: var(--frost-800);
    background: var(--white);
    box-shadow: inset 0 0 0 1px var(--frost-100);
}

.hero-poster {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
    transform: rotate(2deg);
}

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

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    color: var(--white);
    background: rgba(255, 255, 255, 0.16);
    cursor: pointer;
    font-size: 34px;
    transform: translateY(-50%);
    transition: 0.22s ease;
}

.hero-control:hover {
    background: rgba(255, 255, 255, 0.28);
}

.hero-control-prev {
    left: 24px;
}

.hero-control-next {
    right: 24px;
}

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

.hero-dot {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: 0.22s ease;
}

.hero-dot.is-active {
    width: 34px;
    background: var(--white);
}

.quick-search-panel,
.content-section,
.page-hero,
.detail-inner,
.detail-content-section {
    width: min(1180px, calc(100% - 32px));
    margin-left: auto;
    margin-right: auto;
}

.quick-search-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 28px;
    margin-top: -48px;
    position: relative;
    z-index: 10;
    padding: 28px;
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
}

.quick-search-copy span {
    color: var(--frost-700);
    font-weight: 800;
}

.quick-search-copy h2 {
    margin: 8px 0 10px;
    font-size: clamp(26px, 4vw, 42px);
    line-height: 1.16;
}

.quick-search-copy p {
    margin: 0;
    color: var(--silver-600);
    line-height: 1.8;
}

.quick-search-form {
    align-self: center;
}

.quick-search-form label,
.filter-panel span {
    display: block;
    margin-bottom: 8px;
    color: var(--silver-600);
    font-weight: 700;
}

.quick-search-form div {
    display: flex;
    gap: 10px;
}

.quick-search-form input,
.filter-panel input,
.filter-panel select {
    width: 100%;
    height: 48px;
    border: 1px solid var(--silver-200);
    border-radius: 14px;
    padding: 0 14px;
    color: var(--silver-900);
    background: var(--white);
    outline: none;
    transition: 0.22s ease;
}

.quick-search-form input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--frost-500);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.14);
}

.quick-search-form button {
    min-width: 92px;
    border: 0;
    border-radius: 14px;
    color: var(--white);
    background: var(--frost-700);
    cursor: pointer;
    font-weight: 800;
}

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

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

.section-heading h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 44px);
    letter-spacing: -0.04em;
}

.section-heading p {
    max-width: 680px;
    margin: 8px 0 0;
    color: var(--silver-600);
    line-height: 1.8;
}

.section-kicker,
.page-kicker {
    color: var(--frost-700);
    background: var(--frost-100);
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 20px;
    background: var(--white);
    box-shadow: var(--shadow-card);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
    border-color: var(--frost-100);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.14);
    transform: translateY(-5px);
}

.movie-poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: var(--silver-100);
}

.movie-poster {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.movie-card:hover .movie-poster {
    transform: scale(1.04);
}

.movie-badge,
.movie-play-mark {
    position: absolute;
    border-radius: 999px;
    color: var(--white);
    background: rgba(8, 47, 73, 0.82);
    backdrop-filter: blur(10px);
}

.movie-badge {
    left: 10px;
    top: 10px;
    padding: 5px 9px;
    font-size: 12px;
    font-weight: 800;
}

.movie-play-mark {
    right: 10px;
    bottom: 10px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
}

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

.movie-title {
    display: -webkit-box;
    overflow: hidden;
    min-height: 48px;
    color: var(--silver-900);
    font-size: 16px;
    font-weight: 800;
    line-height: 1.5;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-title:hover {
    color: var(--frost-700);
}

.movie-meta,
.movie-line {
    display: -webkit-box;
    overflow: hidden;
    margin: 8px 0 0;
    color: var(--silver-500);
    font-size: 13px;
    line-height: 1.55;
    -webkit-box-orient: vertical;
}

.movie-meta {
    -webkit-line-clamp: 1;
}

.movie-line {
    min-height: 40px;
    -webkit-line-clamp: 2;
}

.movie-card .tag-list {
    margin-top: 12px;
}

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

.category-chip-grid a {
    min-height: 86px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    color: var(--frost-900);
    background: linear-gradient(135deg, var(--white), var(--frost-50));
    box-shadow: var(--shadow-card);
    font-size: 18px;
    font-weight: 900;
    transition: 0.22s ease;
}

.category-chip-grid a:hover {
    transform: translateY(-4px);
    color: var(--white);
    background: linear-gradient(135deg, var(--frost-700), var(--ice-700));
}

.ranking-layout {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 28px;
}

.ranking-lead,
.detail-side-card,
.detail-article,
.info-grid article,
.info-page {
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: var(--radius-xl);
    background: var(--white);
    box-shadow: var(--shadow-card);
}

.ranking-lead {
    padding: 18px;
}

.ranking-lead a:first-child {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 18px;
}

.ranking-lead img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.ranking-lead span {
    position: absolute;
    left: 14px;
    top: 14px;
    padding: 7px 12px;
    border-radius: 999px;
    color: var(--white);
    background: var(--frost-700);
    font-weight: 900;
}

.ranking-lead h3 {
    margin: 16px 0 8px;
    font-size: 24px;
}

.ranking-lead p {
    margin: 0;
    color: var(--silver-600);
    line-height: 1.75;
}

.ranking-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ranking-list a {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 18px;
    border-radius: 18px;
    background: var(--white);
    box-shadow: var(--shadow-card);
}

.ranking-list span {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: var(--white);
    background: linear-gradient(135deg, var(--frost-700), var(--ice-600));
    font-weight: 900;
}

.ranking-list strong {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.ranking-list em {
    color: var(--silver-500);
    font-style: normal;
    font-size: 14px;
}

.page-hero {
    margin-top: 34px;
    padding: 56px;
    border-radius: 30px;
    background:
        radial-gradient(circle at 86% 16%, rgba(14, 165, 233, 0.22), transparent 26%),
        linear-gradient(135deg, var(--white), var(--frost-50));
    box-shadow: var(--shadow-soft);
}

.page-hero-dark {
    color: var(--white);
    background:
        radial-gradient(circle at 82% 22%, rgba(165, 243, 252, 0.22), transparent 30%),
        linear-gradient(135deg, var(--frost-900), var(--ice-900));
}

.page-hero h1 {
    max-width: 900px;
    margin: 0;
    font-size: clamp(36px, 5vw, 62px);
    line-height: 1.08;
    letter-spacing: -0.05em;
}

.page-hero p {
    max-width: 760px;
    margin: 18px 0 0;
    color: var(--silver-600);
    font-size: 18px;
    line-height: 1.85;
}

.page-hero-dark p {
    color: rgba(255, 255, 255, 0.82);
}

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

.category-overview-card {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 20px;
    padding: 18px;
    border-radius: 24px;
    background: var(--white);
    box-shadow: var(--shadow-card);
}

.category-card-cover {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    overflow: hidden;
    border-radius: 18px;
}

.category-card-cover img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.category-card-body span {
    color: var(--frost-700);
    font-size: 13px;
    font-weight: 900;
}

.category-card-body h2 {
    margin: 8px 0 10px;
    font-size: 26px;
}

.category-card-body p {
    margin: 0 0 16px;
    color: var(--silver-600);
    line-height: 1.75;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 200px 200px;
    gap: 16px;
    margin-bottom: 26px;
    padding: 18px;
    border-radius: 22px;
    background: var(--white);
    box-shadow: var(--shadow-card);
}

.wide-filter-panel {
    grid-template-columns: minmax(280px, 1fr) 210px 210px;
}

.empty-result {
    padding: 24px;
    border-radius: 18px;
    color: var(--silver-600);
    background: var(--white);
    box-shadow: var(--shadow-card);
    text-align: center;
    font-weight: 700;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    margin-top: 0;
    color: var(--white);
    background: var(--frost-950);
}

.detail-backdrop {
    position: absolute;
    inset: 0;
}

.detail-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.36;
    filter: blur(4px) saturate(1.05);
    transform: scale(1.05);
}

.detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(8, 47, 73, 0.96), rgba(15, 23, 42, 0.76));
}

.detail-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 42px;
    padding: 72px 0;
}

.detail-poster {
    overflow: hidden;
    border-radius: 26px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.4);
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: rgba(255, 255, 255, 0.74);
    font-size: 14px;
}

.breadcrumb a:hover {
    color: var(--white);
}

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

.detail-one-line {
    max-width: 780px;
    margin: 20px 0 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 19px;
    line-height: 1.8;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.detail-meta span {
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.14);
    font-weight: 800;
}

.detail-tags {
    margin-top: 18px;
}

.player-section {
    padding-top: 56px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #000000;
    box-shadow: var(--shadow-soft);
}

.movie-player {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 12px;
    border: 0;
    color: var(--white);
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.30), rgba(2, 6, 23, 0.78));
    cursor: pointer;
    text-align: center;
}

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

.play-ring {
    width: 84px;
    height: 84px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--frost-900);
    background: var(--white);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.3);
    font-size: 30px;
}

.play-overlay strong {
    max-width: 80%;
    font-size: clamp(24px, 4vw, 42px);
}

.play-overlay em {
    color: rgba(255, 255, 255, 0.82);
    font-style: normal;
    font-weight: 700;
}

.detail-content-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    padding-top: 42px;
}

.detail-article,
.detail-side-card,
.info-page,
.info-grid article {
    padding: 28px;
}

.detail-article h2,
.detail-side-card h2,
.info-page h2,
.info-grid h2 {
    margin: 0 0 14px;
    font-size: 25px;
}

.detail-article p,
.info-page p,
.info-grid p {
    margin: 0 0 24px;
    color: var(--silver-700);
    line-height: 1.9;
    white-space: pre-line;
}

.detail-side-card dl {
    display: grid;
    gap: 13px;
    margin: 0;
}

.detail-side-card div {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--silver-100);
}

.detail-side-card dt {
    color: var(--silver-500);
    font-weight: 800;
}

.detail-side-card dd {
    margin: 0;
    color: var(--silver-900);
    font-weight: 700;
}

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

.movie-card-compact {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
}

.movie-card-compact .movie-poster {
    height: 100%;
}

.movie-card-compact .movie-card-body {
    min-width: 0;
}

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

.info-page {
    max-width: 860px;
}

.site-footer {
    margin-top: 84px;
    color: rgba(255, 255, 255, 0.86);
    background: linear-gradient(135deg, var(--frost-950), var(--silver-950));
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 34px;
    padding: 42px 0;
}

.footer-logo {
    color: var(--white);
    font-size: 22px;
}

.footer-inner p {
    max-width: 420px;
    margin: 12px 0 0;
    line-height: 1.8;
}

.footer-links,
.footer-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-content: flex-start;
}

.footer-links a,
.footer-tags a {
    padding: 8px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

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

    .hero-slide {
        grid-template-columns: minmax(0, 1fr) 260px;
    }

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

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

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

    .mobile-nav-toggle {
        display: block;
    }

    .hero-carousel {
        min-height: auto;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 56px 0 86px;
    }

    .hero-poster {
        width: min(260px, 76%);
        justify-self: center;
    }

    .hero-control {
        display: none;
    }

    .quick-search-panel,
    .ranking-layout,
    .detail-inner,
    .detail-content-section,
    .footer-inner,
    .info-grid,
    .category-overview-grid,
    .category-overview-card {
        grid-template-columns: 1fr;
    }

    .quick-search-panel {
        margin-top: -28px;
    }

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

    .page-hero {
        padding: 34px 24px;
    }

    .detail-inner {
        padding: 46px 0;
    }

    .detail-poster {
        max-width: 250px;
    }

    .footer-inner {
        gap: 24px;
    }
}

@media (max-width: 620px) {
    .top-nav,
    .mobile-nav-panel,
    .quick-search-panel,
    .content-section,
    .page-hero,
    .detail-inner,
    .detail-content-section,
    .footer-inner {
        width: min(100% - 24px, 1180px);
    }

    .hero-content h1,
    .detail-copy h1 {
        letter-spacing: -0.04em;
    }

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

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

    .movie-title {
        font-size: 15px;
    }

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

    .ranking-list a {
        grid-template-columns: 42px minmax(0, 1fr);
    }

    .ranking-list em {
        grid-column: 2;
    }

    .quick-search-form div {
        flex-direction: column;
    }

    .detail-side-card div {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .movie-card-compact {
        grid-template-columns: 1fr;
    }
}
