:root {
    --rain-900: #212529;
    --rain-800: #343a40;
    --rain-700: #495057;
    --rain-600: #6c757d;
    --rain-500: #adb5bd;
    --rain-300: #ced4da;
    --rain-200: #dee2e6;
    --rain-100: #f1f3f5;
    --mist-800: #243b53;
    --mist-700: #334e68;
    --mist-600: #486581;
    --mist-500: #627d98;
    --mist-400: #829ab1;
    --mist-300: #bcccdc;
    --mist-100: #d9e2ec;
    --mist-50: #f0f4f8;
    --alley-100: #f5f0ea;
    --alley-50: #faf9f7;
    --white: #ffffff;
    --gold: #f6c65b;
    --shadow-soft: 0 18px 45px rgba(33, 37, 41, 0.12);
    --shadow-card: 0 12px 28px rgba(33, 37, 41, 0.10);
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --radius-sm: 12px;
    --header-height: 78px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    background: var(--alley-50);
    color: var(--rain-900);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
    line-height: 1.65;
}

body.nav-open {
    overflow: hidden;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    border-bottom: 1px solid rgba(222, 226, 230, 0.9);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 8px 30px rgba(33, 37, 41, 0.06);
    backdrop-filter: blur(16px);
}

.header-inner {
    max-width: 1280px;
    min-height: var(--header-height);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 220px;
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--mist-500), var(--mist-700));
    color: var(--white);
    box-shadow: 0 10px 24px rgba(72, 101, 129, 0.28);
}

.brand-mark svg {
    width: 20px;
    height: 20px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-title {
    font-family: Georgia, "Times New Roman", "Noto Serif SC", serif;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--rain-800);
    letter-spacing: -0.02em;
}

.brand-subtitle {
    margin-top: 4px;
    font-size: 0.72rem;
    color: var(--rain-500);
    white-space: nowrap;
}

.primary-nav {
    display: flex;
    align-items: center;
    gap: 18px;
}

.primary-nav a {
    color: var(--rain-700);
    font-size: 0.95rem;
    font-weight: 650;
    transition: color 0.2s ease;
}

.primary-nav a:hover,
.primary-nav a.is-active {
    color: var(--mist-700);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-form {
    position: relative;
    display: flex;
    align-items: center;
}

.search-form input {
    width: 220px;
    border: 1px solid var(--rain-200);
    border-radius: 999px;
    background: var(--mist-50);
    color: var(--rain-800);
    padding: 11px 44px 11px 16px;
    outline: none;
    transition: border 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.search-form input:focus {
    border-color: var(--mist-400);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(98, 125, 152, 0.12);
}

.search-form button {
    position: absolute;
    right: 5px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: var(--mist-600);
    color: var(--white);
    display: grid;
    place-items: center;
}

.search-form button svg {
    width: 17px;
    height: 17px;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    color: var(--rain-800);
    background: var(--rain-100);
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
    content: "";
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    border-radius: 2px;
    background: currentColor;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-open .menu-toggle span {
    opacity: 0;
}

.nav-open .menu-toggle::before {
    transform: translateY(6px) rotate(45deg);
}

.nav-open .menu-toggle::after {
    transform: translateY(-6px) rotate(-45deg);
}

.mobile-panel {
    display: none;
    border-top: 1px solid var(--rain-200);
    background: var(--white);
    padding: 16px 24px 24px;
}

.mobile-panel a {
    display: block;
    padding: 12px 0;
    color: var(--rain-700);
    font-weight: 650;
    border-bottom: 1px solid var(--rain-100);
}

.hero-slider {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    background: var(--rain-900);
    color: var(--white);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    align-items: end;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s ease;
}

.hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--hero-image);
    background-size: cover;
    background-position: center;
    filter: saturate(1.06);
    transform: scale(1.04);
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 70% 38%, rgba(98, 125, 152, 0.25), transparent 34%),
        linear-gradient(90deg, rgba(12, 16, 20, 0.88) 0%, rgba(12, 16, 20, 0.58) 46%, rgba(12, 16, 20, 0.28) 100%),
        linear-gradient(0deg, rgba(12, 16, 20, 0.95) 0%, rgba(12, 16, 20, 0.16) 62%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1280px, 100%);
    margin: 0 auto;
    padding: 0 24px 110px;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(250px, 360px);
    gap: 44px;
    align-items: end;
}

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gold);
    font-weight: 760;
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.eyebrow svg {
    width: 20px;
    height: 20px;
}

.hero-copy h1 {
    margin: 0;
    font-family: Georgia, "Times New Roman", "Noto Serif SC", serif;
    font-size: clamp(2.55rem, 6vw, 5.8rem);
    line-height: 0.98;
    letter-spacing: -0.055em;
    text-wrap: balance;
}

.hero-copy p {
    max-width: 660px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.90);
    font-size: clamp(1rem, 1.6vw, 1.2rem);
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 24px 0 0;
}

.hero-meta span,
.meta-pill,
.tag-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.88);
    padding: 7px 12px;
    font-size: 0.86rem;
    font-weight: 650;
    backdrop-filter: blur(10px);
}

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

.button-primary,
.button-secondary,
.button-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 999px;
    padding: 12px 20px;
    font-weight: 760;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button-primary {
    color: var(--white);
    background: linear-gradient(135deg, var(--mist-500), var(--mist-700));
    box-shadow: 0 15px 34px rgba(72, 101, 129, 0.34);
}

.button-secondary {
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.34);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
}

.button-ghost {
    color: var(--mist-700);
    background: var(--mist-50);
}

.button-primary:hover,
.button-secondary:hover,
.button-ghost:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(33, 37, 41, 0.16);
}

.hero-poster-card {
    align-self: stretch;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
    backdrop-filter: blur(14px);
}

.hero-poster-card img {
    width: 100%;
    height: 430px;
    object-fit: cover;
}

.hero-poster-info {
    padding: 20px;
}

.hero-poster-info strong {
    display: block;
    font-size: 1.25rem;
    margin-bottom: 6px;
}

.hero-poster-info span {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.92rem;
}

.hero-controls {
    position: absolute;
    z-index: 4;
    left: 50%;
    bottom: 38px;
    width: min(1280px, calc(100% - 48px));
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.hero-dots {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-dot {
    width: 36px;
    height: 4px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.34);
    transition: width 0.2s ease, background 0.2s ease;
}

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

.hero-arrows {
    display: flex;
    gap: 10px;
}

.hero-arrow {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 50%;
    color: var(--white);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
}

.hero-arrow:hover {
    background: rgba(255, 255, 255, 0.22);
}

.page-main {
    max-width: 1280px;
    margin: 0 auto;
    padding: 56px 24px 82px;
}

.page-hero {
    margin-bottom: 36px;
    padding: 44px;
    border-radius: var(--radius-xl);
    background:
        radial-gradient(circle at 85% 12%, rgba(98, 125, 152, 0.22), transparent 36%),
        linear-gradient(135deg, var(--white), var(--mist-50));
    box-shadow: var(--shadow-card);
}

.page-hero h1 {
    margin: 0;
    color: var(--rain-800);
    font-family: Georgia, "Times New Roman", "Noto Serif SC", serif;
    font-size: clamp(2rem, 4vw, 4rem);
    letter-spacing: -0.04em;
}

.page-hero p {
    max-width: 780px;
    margin: 14px 0 0;
    color: var(--rain-600);
    font-size: 1.06rem;
}

.section-block {
    margin-top: 58px;
}

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

.section-kicker {
    display: inline-flex;
    color: var(--mist-600);
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.section-head h2,
.section-head h1 {
    margin: 6px 0 0;
    color: var(--rain-800);
    font-family: Georgia, "Times New Roman", "Noto Serif SC", serif;
    font-size: clamp(1.8rem, 3.2vw, 3rem);
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.section-head p {
    max-width: 650px;
    margin: 8px 0 0;
    color: var(--rain-600);
}

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

.movie-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(222, 226, 230, 0.82);
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: 0 10px 30px rgba(33, 37, 41, 0.07);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(98, 125, 152, 0.45);
    box-shadow: var(--shadow-card);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, var(--mist-50), var(--alley-100));
}

.poster-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease, filter 0.35s ease;
}

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

.card-badge,
.play-chip {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    color: var(--white);
    font-size: 0.78rem;
    font-weight: 760;
    backdrop-filter: blur(12px);
}

.card-badge {
    top: 12px;
    left: 12px;
    padding: 6px 10px;
    background: rgba(33, 37, 41, 0.70);
}

.play-chip {
    right: 12px;
    bottom: 12px;
    padding: 7px 11px;
    background: rgba(98, 125, 152, 0.92);
}

.card-body {
    padding: 18px;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--mist-600);
    font-size: 0.82rem;
    font-weight: 720;
    margin-bottom: 8px;
}

.card-meta span + span::before {
    content: "·";
    margin-right: 10px;
    color: var(--rain-300);
}

.card-body h3 {
    margin: 0;
    color: var(--rain-800);
    font-size: 1.08rem;
    line-height: 1.35;
}

.card-body h3 a:hover {
    color: var(--mist-700);
}

.card-body p {
    display: -webkit-box;
    min-height: 3.15em;
    margin: 10px 0 0;
    overflow: hidden;
    color: var(--rain-600);
    font-size: 0.92rem;
    line-height: 1.55;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 14px;
}

.tag-row span {
    border-radius: 999px;
    background: var(--mist-50);
    color: var(--mist-700);
    padding: 5px 9px;
    font-size: 0.76rem;
    font-weight: 680;
}

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

.category-card {
    position: relative;
    min-height: 190px;
    overflow: hidden;
    border: 1px solid rgba(222, 226, 230, 0.84);
    border-radius: var(--radius-lg);
    padding: 24px;
    background:
        radial-gradient(circle at 88% 12%, rgba(98, 125, 152, 0.20), transparent 32%),
        linear-gradient(135deg, var(--white), var(--mist-50));
    box-shadow: 0 12px 28px rgba(33, 37, 41, 0.07);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.category-card h2,
.category-card h3 {
    margin: 0;
    color: var(--rain-800);
    font-family: Georgia, "Times New Roman", "Noto Serif SC", serif;
    font-size: 1.55rem;
}

.category-card p {
    margin: 12px 0 0;
    color: var(--rain-600);
}

.category-card span {
    display: inline-flex;
    margin-top: 22px;
    color: var(--mist-700);
    font-weight: 800;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto;
    gap: 18px;
    align-items: center;
    margin-bottom: 28px;
    padding: 18px;
    border: 1px solid var(--rain-200);
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: 0 8px 22px rgba(33, 37, 41, 0.05);
}

.filter-panel input {
    width: 100%;
    border: 1px solid var(--rain-200);
    border-radius: 999px;
    background: var(--alley-50);
    padding: 12px 16px;
    outline: none;
}

.filter-panel input:focus {
    border-color: var(--mist-400);
    box-shadow: 0 0 0 4px rgba(98, 125, 152, 0.12);
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.filter-chips button {
    border: 0;
    border-radius: 999px;
    background: var(--mist-50);
    color: var(--rain-700);
    padding: 9px 13px;
    font-size: 0.9rem;
    font-weight: 700;
}

.filter-chips button.is-active {
    background: var(--mist-600);
    color: var(--white);
}

.empty-state {
    display: none;
    margin: 26px 0;
    border-radius: var(--radius-md);
    padding: 28px;
    text-align: center;
    color: var(--rain-600);
    background: var(--white);
    border: 1px solid var(--rain-200);
}

.empty-state.is-visible {
    display: block;
}

.ranking-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 30px;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 48px 74px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    border: 1px solid rgba(222, 226, 230, 0.84);
    border-radius: var(--radius-md);
    background: var(--white);
    padding: 12px;
    box-shadow: 0 8px 24px rgba(33, 37, 41, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-card);
}

.rank-number {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--mist-50);
    color: var(--mist-700);
    font-weight: 900;
}

.rank-item:nth-child(1) .rank-number,
.rank-item:nth-child(2) .rank-number,
.rank-item:nth-child(3) .rank-number {
    color: var(--white);
    background: linear-gradient(135deg, var(--mist-500), var(--mist-800));
}

.rank-item img {
    width: 74px;
    height: 98px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background: var(--mist-50);
}

.rank-text strong {
    display: block;
    color: var(--rain-800);
    font-size: 1.02rem;
}

.rank-text p {
    display: -webkit-box;
    margin: 5px 0 0;
    overflow: hidden;
    color: var(--rain-600);
    font-size: 0.9rem;
    line-height: 1.5;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.rank-label {
    color: var(--mist-700);
    font-weight: 800;
}

.detail-shell {
    max-width: 1280px;
    margin: 0 auto;
    padding: 36px 24px 82px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    color: var(--rain-600);
    font-size: 0.92rem;
}

.breadcrumb a {
    color: var(--mist-700);
    font-weight: 720;
}

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

.player-card,
.detail-card,
.related-panel {
    border: 1px solid rgba(222, 226, 230, 0.84);
    border-radius: var(--radius-xl);
    background: var(--white);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

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

.player-shell video {
    width: 100%;
    height: 100%;
    background: #090d12;
    object-fit: contain;
}

.play-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: grid;
    place-items: center;
    border: 0;
    color: var(--white);
    background:
        radial-gradient(circle at 50% 45%, rgba(98, 125, 152, 0.18), transparent 34%),
        linear-gradient(180deg, rgba(9, 13, 18, 0.12), rgba(9, 13, 18, 0.66));
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.play-overlay.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.play-button-core {
    width: 92px;
    height: 92px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--mist-500), var(--mist-700));
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.42);
}

.play-button-core svg {
    width: 38px;
    height: 38px;
    margin-left: 4px;
}

.player-info {
    padding: 22px 24px 26px;
}

.player-info h1 {
    margin: 0;
    color: var(--rain-800);
    font-family: Georgia, "Times New Roman", "Noto Serif SC", serif;
    font-size: clamp(1.75rem, 3vw, 3rem);
    line-height: 1.13;
    letter-spacing: -0.035em;
}

.player-info p {
    margin: 14px 0 0;
    color: var(--rain-600);
}

.detail-side {
    display: grid;
    gap: 20px;
}

.detail-card {
    padding: 20px;
}

.detail-cover {
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--mist-50);
    aspect-ratio: 3 / 4;
}

.detail-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-meta-list {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.detail-meta-row {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    border-bottom: 1px solid var(--rain-100);
    padding-bottom: 10px;
    color: var(--rain-600);
}

.detail-meta-row strong {
    color: var(--rain-800);
}

.article-content {
    margin-top: 32px;
    display: grid;
    gap: 24px;
}

.content-card {
    border: 1px solid rgba(222, 226, 230, 0.84);
    border-radius: var(--radius-lg);
    padding: 28px;
    background: var(--white);
    box-shadow: 0 10px 28px rgba(33, 37, 41, 0.06);
}

.content-card h2 {
    margin: 0 0 12px;
    color: var(--rain-800);
    font-family: Georgia, "Times New Roman", "Noto Serif SC", serif;
    font-size: 1.75rem;
}

.content-card p {
    margin: 0;
    color: var(--rain-700);
}

.related-panel {
    margin-top: 36px;
    padding: 28px;
}

.related-panel h2 {
    margin: 0 0 20px;
    color: var(--rain-800);
    font-family: Georgia, "Times New Roman", "Noto Serif SC", serif;
    font-size: 2rem;
}

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

.related-card {
    display: block;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--mist-50);
    transition: transform 0.2s ease;
}

.related-card:hover {
    transform: translateY(-4px);
}

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

.related-card span {
    display: block;
    padding: 10px;
    color: var(--rain-800);
    font-size: 0.9rem;
    font-weight: 760;
}

.site-footer {
    background: var(--rain-900);
    color: var(--rain-300);
    padding: 54px 24px 32px;
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr repeat(3, minmax(160px, 1fr));
    gap: 36px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--white);
    font-family: Georgia, "Times New Roman", "Noto Serif SC", serif;
    font-size: 1.35rem;
    font-weight: 800;
}

.footer-col h3 {
    margin: 0 0 14px;
    color: var(--white);
    font-size: 1rem;
}

.footer-col a,
.footer-col span {
    display: block;
    margin-top: 10px;
    color: var(--rain-300);
    font-size: 0.92rem;
}

.footer-col a:hover {
    color: var(--mist-300);
}

.footer-bottom {
    max-width: 1280px;
    margin: 36px auto 0;
    padding-top: 24px;
    border-top: 1px solid rgba(222, 226, 230, 0.16);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px;
    color: var(--rain-500);
    font-size: 0.86rem;
}

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

    .menu-toggle {
        display: block;
    }

    .nav-open .mobile-panel {
        display: block;
    }

    .hero-content,
    .watch-layout,
    .ranking-layout {
        grid-template-columns: 1fr;
    }

    .hero-poster-card {
        display: none;
    }

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

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

@media (max-width: 820px) {
    .header-inner {
        min-height: 68px;
        padding: 0 16px;
    }

    .brand {
        min-width: 0;
    }

    .brand-title {
        font-size: 1.08rem;
    }

    .brand-subtitle,
    .header-actions .search-form {
        display: none;
    }

    .mobile-panel .search-form {
        display: flex;
        margin-bottom: 12px;
    }

    .mobile-panel .search-form input {
        width: 100%;
    }

    .hero-slider {
        min-height: 620px;
    }

    .hero-content {
        padding: 0 18px 92px;
    }

    .hero-actions {
        gap: 10px;
    }

    .button-primary,
    .button-secondary,
    .button-ghost {
        width: 100%;
        padding: 12px 16px;
    }

    .hero-controls {
        width: calc(100% - 36px);
        bottom: 24px;
    }

    .hero-arrows {
        display: none;
    }

    .page-main,
    .detail-shell {
        padding-left: 16px;
        padding-right: 16px;
    }

    .page-hero {
        padding: 28px;
    }

    .section-head {
        align-items: start;
        flex-direction: column;
    }

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

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

    .rank-item {
        grid-template-columns: 36px 58px minmax(0, 1fr);
    }

    .rank-label {
        display: none;
    }

    .rank-number {
        width: 34px;
        height: 34px;
        font-size: 0.9rem;
    }

    .rank-item img {
        width: 58px;
        height: 78px;
    }

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

    .footer-inner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .hero-copy h1 {
        font-size: 2.5rem;
    }

    .hero-meta span {
        font-size: 0.78rem;
    }

    .movie-grid,
    .category-grid {
        grid-template-columns: 1fr;
    }

    .card-body p {
        min-height: 0;
    }

    .content-card,
    .related-panel {
        padding: 20px;
    }
}
