:root {
    --bg: #f0f9ff;
    --surface: #ffffff;
    --surface-soft: #f8fafc;
    --text: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    --primary: #0ea5e9;
    --primary-dark: #0284c7;
    --primary-soft: #e0f2fe;
    --accent: #f59e0b;
    --danger: #ef4444;
    --shadow: 0 22px 60px rgba(15, 23, 42, 0.12);
    --shadow-soft: 0 16px 38px rgba(15, 23, 42, 0.08);
    --radius: 24px;
    --radius-sm: 16px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 42%, #f8fafc 100%);
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.65;
}

body.menu-open {
    overflow: hidden;
}

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

img {
    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: 80;
    background: rgba(255, 255, 255, 0.88);
    border-bottom: 1px solid rgba(226, 232, 240, 0.82);
    backdrop-filter: blur(18px);
}

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

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

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    color: #ffffff;
    background: linear-gradient(135deg, #38bdf8, #2563eb);
    border-radius: 12px;
    box-shadow: 0 12px 24px rgba(14, 165, 233, 0.28);
}

.brand-text,
.footer-brand span:last-child {
    font-size: 22px;
    background: linear-gradient(135deg, #0284c7, #1d4ed8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link,
.mobile-link {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 16px;
    color: #334155;
    border-radius: 999px;
    font-weight: 700;
    transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover {
    color: var(--primary-dark);
    background: var(--primary-soft);
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 0;
    border-radius: 14px;
    background: #f1f5f9;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    margin: 5px 0;
    background: #0f172a;
    border-radius: 99px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.mobile-panel {
    display: none;
    border-top: 1px solid var(--line);
    background: #ffffff;
}

.mobile-panel-inner {
    display: grid;
    gap: 10px;
    padding: 16px 0 20px;
}

.mobile-categories,
.category-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.category-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 14px;
    color: #0369a1;
    background: #e0f2fe;
    border: 1px solid rgba(14, 165, 233, 0.18);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
}

.hero-slider {
    position: relative;
    min-height: 560px;
    height: 70vh;
    overflow: hidden;
    color: #ffffff;
    background: #020617;
}

.hero-stage,
.hero-slide {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 1s ease;
}

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

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.05) contrast(1.04);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 78% 22%, rgba(56, 189, 248, 0.34), transparent 34%),
        linear-gradient(90deg, rgba(2, 6, 23, 0.86) 0%, rgba(2, 6, 23, 0.55) 48%, rgba(2, 6, 23, 0.24) 100%),
        linear-gradient(0deg, rgba(2, 6, 23, 0.88), rgba(2, 6, 23, 0.08));
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    min-height: 100%;
    padding: 130px 0 122px;
}

.hero-copy {
    width: min(680px, 100%);
}

.hero-kicker,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: #0369a1;
    background: #e0f2fe;
    border-radius: 999px;
    padding: 7px 13px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.hero-kicker {
    color: #e0f2fe;
    background: rgba(14, 165, 233, 0.22);
    border: 1px solid rgba(224, 242, 254, 0.24);
    backdrop-filter: blur(12px);
}

.hero-copy h1,
.hero-copy h2 {
    margin: 0 0 18px;
    font-size: clamp(42px, 6vw, 72px);
    line-height: 1.04;
    letter-spacing: -0.06em;
}

.hero-copy p {
    width: min(620px, 100%);
    margin: 0 0 26px;
    color: rgba(241, 245, 249, 0.9);
    font-size: clamp(16px, 2.2vw, 21px);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 800;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn.primary {
    color: #ffffff;
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
    box-shadow: 0 16px 34px rgba(14, 165, 233, 0.32);
}

.btn.secondary {
    color: #0369a1;
    background: #e0f2fe;
    border-color: rgba(14, 165, 233, 0.16);
}

.btn.glass {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
}

.btn.wide {
    width: 100%;
}

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

.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    color: #0369a1;
    background: #e0f2fe;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.hero-tags span {
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-bottom {
    position: absolute;
    left: 50%;
    bottom: 26px;
    z-index: 4;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

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

.hero-dot {
    width: 12px;
    height: 12px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.52);
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease;
}

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

.hero-rail {
    display: flex;
    gap: 10px;
    max-width: 560px;
    overflow: auto;
    scrollbar-width: none;
}

.hero-rail::-webkit-scrollbar {
    display: none;
}

.hero-rail-card {
    display: grid;
    grid-template-columns: 54px minmax(110px, 1fr);
    gap: 10px;
    align-items: center;
    min-width: 190px;
    padding: 8px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.48);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    backdrop-filter: blur(14px);
}

.hero-rail-card img {
    width: 54px;
    height: 72px;
    object-fit: cover;
    border-radius: 12px;
    background: linear-gradient(135deg, #1e293b, #0ea5e9);
}

.hero-rail-card span {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 13px;
    font-weight: 800;
}

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

.soft-band {
    background: linear-gradient(135deg, #f0f9ff, #eff6ff);
}

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

.section-heading h2 {
    margin: 0;
    font-size: clamp(28px, 3vw, 38px);
    line-height: 1.16;
    letter-spacing: -0.04em;
}

.section-heading p {
    margin: 8px 0 0;
    color: var(--muted);
}

.section-link {
    color: var(--primary-dark);
    font-weight: 800;
}

.control-panel {
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 14px;
    align-items: center;
    margin-top: 28px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 22px;
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(16px);
}

.search-box input,
.sort-select {
    width: 100%;
    min-height: 50px;
    padding: 0 16px;
    color: #0f172a;
    border: 1px solid #cbd5e1;
    border-radius: 16px;
    outline: 0;
    background: #ffffff;
}

.search-box input:focus,
.sort-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.15);
}

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

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

.movie-card {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.88);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(14, 165, 233, 0.34);
    box-shadow: var(--shadow);
}

.movie-card[hidden] {
    display: none;
}

.poster-shell {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, #e0f2fe, #bfdbfe 48%, #0f172a);
}

.poster-shell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.movie-card:hover .poster-shell img {
    transform: scale(1.06);
}

.poster-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 5px 10px;
    color: #ffffff;
    background: rgba(2, 6, 23, 0.68);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(10px);
}

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

.movie-meta-line {
    overflow: hidden;
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.movie-card h3 {
    margin: 8px 0 8px;
    font-size: 18px;
    line-height: 1.3;
}

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

.movie-card p {
    display: -webkit-box;
    overflow: hidden;
    min-height: 48px;
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

.category-card,
.category-overview-card,
.content-card {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}

.category-card {
    display: grid;
    gap: 14px;
    padding: 18px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

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

.category-thumbs img {
    aspect-ratio: 2 / 3;
    width: 100%;
    object-fit: cover;
    border-radius: 10px;
    background: linear-gradient(135deg, #e0f2fe, #93c5fd);
}

.category-card h3,
.category-overview-card h2 {
    margin: 0 0 8px;
}

.category-card p,
.category-overview-card p,
.content-card p {
    margin: 0;
    color: var(--muted);
}

.two-column {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 30px;
    align-items: start;
}

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

.rank-row a {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto auto;
    gap: 12px;
    align-items: center;
    min-height: 58px;
    padding: 12px 14px;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 18px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.rank-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    border-radius: 12px;
    font-weight: 900;
}

.rank-title {
    overflow: hidden;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-info,
.rank-heat {
    color: var(--muted);
    font-size: 13px;
    white-space: nowrap;
}

.rank-heat {
    color: #dc2626;
    font-weight: 800;
}

.mini-card-list {
    display: grid;
    gap: 12px;
}

.mini-card {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 18px;
}

.mini-card img {
    width: 58px;
    height: 76px;
    object-fit: cover;
    border-radius: 12px;
    background: linear-gradient(135deg, #e0f2fe, #93c5fd);
}

.mini-card strong,
.mini-card small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mini-card small {
    color: var(--muted);
    font-size: 13px;
}

.page-hero {
    position: relative;
    padding: 76px 0 56px;
    background:
        radial-gradient(circle at 82% 18%, rgba(14, 165, 233, 0.22), transparent 28%),
        linear-gradient(135deg, #f0f9ff, #ffffff 46%, #eff6ff);
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.compact-hero {
    padding: 62px 0 44px;
}

.page-hero h1 {
    max-width: 920px;
    margin: 0 0 12px;
    font-size: clamp(38px, 5vw, 62px);
    line-height: 1.05;
    letter-spacing: -0.06em;
}

.page-hero p {
    max-width: 760px;
    margin: 0 0 22px;
    color: var(--muted);
    font-size: 18px;
}

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

.category-overview-card {
    padding: 24px;
}

.category-overview-head {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 12px;
}

.category-overview-head > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    color: #ffffff;
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
    border-radius: 18px;
    font-weight: 900;
}

.category-sample-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0;
}

.category-sample-links a {
    padding: 6px 10px;
    color: #0369a1;
    background: #e0f2fe;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.ranking-hero {
    color: #ffffff;
    background:
        radial-gradient(circle at 76% 14%, rgba(250, 204, 21, 0.26), transparent 28%),
        linear-gradient(135deg, #0f172a, #082f49 62%, #0c4a6e);
}

.ranking-hero .section-kicker {
    color: #fde68a;
    background: rgba(245, 158, 11, 0.18);
}

.ranking-hero p {
    color: rgba(241, 245, 249, 0.84);
}

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

.ranking-feature-card {
    position: relative;
    overflow: hidden;
    min-height: 260px;
    padding: 20px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.ranking-feature-card img {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.34;
}

.ranking-feature-card strong,
.ranking-feature-card small,
.ranking-medal {
    position: relative;
    z-index: 1;
}

.ranking-feature-card strong {
    display: block;
    margin-top: 130px;
    font-size: 22px;
}

.ranking-feature-card small {
    display: block;
    color: rgba(255, 255, 255, 0.82);
}

.ranking-medal {
    display: inline-flex;
    padding: 6px 10px;
    color: #78350f;
    background: #fef3c7;
    border-radius: 999px;
    font-weight: 900;
}

.ranking-list-grid {
    display: grid;
    gap: 12px;
}

.ranking-card a {
    display: grid;
    grid-template-columns: 54px 74px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 12px 14px;
}

.ranking-card img {
    width: 74px;
    height: 96px;
    object-fit: cover;
    border-radius: 14px;
    background: linear-gradient(135deg, #e0f2fe, #93c5fd);
}

.ranking-card-copy strong,
.ranking-card-copy small,
.ranking-card-copy em {
    display: block;
}

.ranking-card-copy small {
    color: var(--muted);
}

.ranking-card-copy em {
    color: #dc2626;
    font-style: normal;
    font-weight: 900;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: #020617;
}

.detail-bg,
.detail-bg-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.detail-bg {
    object-fit: cover;
    opacity: 0.35;
    filter: blur(3px) saturate(1.15);
    transform: scale(1.04);
}

.detail-bg-layer {
    background:
        radial-gradient(circle at 74% 16%, rgba(14, 165, 233, 0.28), transparent 30%),
        linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.62));
}

.detail-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 36px;
    align-items: end;
    min-height: 640px;
    padding: 110px 0 72px;
}

.detail-poster {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    box-shadow: var(--shadow);
    background: linear-gradient(135deg, #e0f2fe, #0f172a);
}

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

.detail-poster span {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    display: flex;
    justify-content: center;
    min-height: 44px;
    align-items: center;
    color: #ffffff;
    background: rgba(14, 165, 233, 0.92);
    border-radius: 999px;
    font-weight: 900;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: rgba(226, 232, 240, 0.84);
    font-size: 14px;
}

.breadcrumb a:hover {
    color: #7dd3fc;
}

.detail-copy h1 {
    max-width: 860px;
    margin: 0 0 18px;
    font-size: clamp(40px, 5vw, 68px);
    line-height: 1.04;
    letter-spacing: -0.06em;
}

.detail-lead {
    max-width: 760px;
    margin: 0 0 24px;
    color: rgba(241, 245, 249, 0.9);
    font-size: 19px;
}

.detail-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.detail-facts span {
    padding: 7px 11px;
    color: #e0f2fe;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

.detail-tags span {
    color: #e0f2fe;
    background: rgba(14, 165, 233, 0.2);
}

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

.player-card {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #020617;
    border-radius: 30px;
    box-shadow: var(--shadow);
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    gap: 12px;
    color: #ffffff;
    border: 0;
    background:
        radial-gradient(circle at 50% 42%, rgba(14, 165, 233, 0.32), transparent 30%),
        rgba(2, 6, 23, 0.48);
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-overlay.is-hidden,
.player-card.is-playing .player-overlay {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.play-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 82px;
    height: 82px;
    margin: 0 auto;
    color: #ffffff;
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
    border-radius: 999px;
    box-shadow: 0 18px 36px rgba(14, 165, 233, 0.36);
    font-size: 34px;
}

.detail-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 320px;
    gap: 22px;
    align-items: start;
}

.content-card {
    padding: 24px;
}

.content-card h2 {
    margin: 0 0 12px;
    font-size: 22px;
}

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

.side-card div {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 10px;
}

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

.side-card dd {
    margin: 0;
    font-weight: 800;
}

.side-card a {
    color: var(--primary-dark);
}

.site-footer {
    margin-top: 30px;
    padding: 46px 0 24px;
    color: #334155;
    background: linear-gradient(180deg, #f8fafc, #eef2f7);
    border-top: 1px solid rgba(226, 232, 240, 0.9);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.2fr;
    gap: 34px;
}

.site-footer p {
    max-width: 420px;
    color: var(--muted);
}

.site-footer h3 {
    margin: 0 0 12px;
    font-size: 16px;
}

.site-footer ul {
    display: grid;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 34px;
    padding-top: 18px;
    color: var(--muted);
    border-top: 1px solid rgba(203, 213, 225, 0.85);
    font-size: 14px;
}

@media (max-width: 1080px) {
    .movie-grid,
    .large-grid,
    .category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .two-column,
    .detail-content-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

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

    .menu-toggle {
        display: block;
    }

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

    .menu-open .menu-toggle span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .menu-open .menu-toggle span:nth-child(2) {
        opacity: 0;
    }

    .menu-open .menu-toggle span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

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

    .hero-content {
        padding: 116px 0 168px;
    }

    .hero-bottom {
        display: grid;
        bottom: 18px;
    }

    .hero-rail {
        max-width: calc(100vw - 32px);
    }

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

    .movie-grid,
    .large-grid,
    .category-grid,
    .category-overview-grid,
    .ranking-feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .detail-hero-grid {
        grid-template-columns: 1fr;
        min-height: auto;
        padding: 96px 0 54px;
    }

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

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

    .rank-info,
    .rank-heat {
        grid-column: 2;
    }

    .footer-bottom {
        flex-direction: column;
    }
}

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

    .header-inner {
        min-height: 64px;
    }

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

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

    .hero-actions,
    .section-heading,
    .detail-facts {
        align-items: stretch;
        flex-direction: column;
    }

    .btn,
    .section-link {
        width: 100%;
    }

    .movie-grid,
    .large-grid,
    .category-grid,
    .category-overview-grid,
    .ranking-feature-grid {
        grid-template-columns: 1fr;
    }

    .ranking-card a {
        grid-template-columns: 48px 64px minmax(0, 1fr);
    }

    .ranking-card img {
        width: 64px;
        height: 84px;
    }

    .player-card {
        border-radius: 18px;
    }
}
