:root {
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-900: #0f172a;
    --red: #ef4444;
    --orange: #f97316;
    --cyan: #06b6d4;
    --blue: #2563eb;
    --green: #10b981;
    --purple: #8b5cf6;
    --rose: #f43f5e;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    --shadow-soft: 0 12px 30px rgba(15, 23, 42, 0.09);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: var(--slate-900);
}

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: #fff;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.96));
    box-shadow: 0 12px 30px rgba(2, 6, 23, 0.25);
    backdrop-filter: blur(16px);
}

.header-inner {
    width: min(1180px, calc(100% - 32px));
    height: 66px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 28px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.brand-mark {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    color: #fff;
    background: linear-gradient(135deg, var(--red), var(--orange));
    box-shadow: 0 10px 25px rgba(239, 68, 68, 0.35);
    transition: transform 0.25s ease;
}

.brand:hover .brand-mark {
    transform: scale(1.08) rotate(-3deg);
}

.brand-name {
    font-weight: 800;
    font-size: 21px;
    background: linear-gradient(90deg, #fb7185, #fb923c);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-left: auto;
}

.nav-link {
    font-weight: 650;
    color: rgba(255, 255, 255, 0.88);
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #fb7185;
}

.header-search,
.mobile-search {
    position: relative;
    display: flex;
    align-items: center;
}

.header-search input,
.mobile-search input {
    border: 0;
    outline: 0;
    color: #fff;
    background: rgba(51, 65, 85, 0.9);
    border-radius: 999px;
    padding: 10px 44px 10px 16px;
    min-width: 230px;
    transition: box-shadow 0.2s ease, background 0.2s ease;
}

.header-search input:focus,
.mobile-search input:focus {
    background: rgba(51, 65, 85, 1);
    box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.35);
}

.header-search button,
.mobile-search button {
    position: absolute;
    right: 6px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(135deg, var(--red), var(--orange));
}

.menu-toggle {
    display: none;
    margin-left: auto;
    border: 0;
    color: #fff;
    background: rgba(51, 65, 85, 0.7);
    border-radius: 10px;
    padding: 8px 12px;
    cursor: pointer;
}

.mobile-panel {
    display: none;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    padding: 14px 16px 18px;
    background: rgba(15, 23, 42, 0.98);
}

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

.mobile-search {
    margin-bottom: 12px;
}

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

.mobile-link {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.86);
}

.mobile-link:hover,
.mobile-link.active {
    color: #fff;
    background: rgba(51, 65, 85, 0.85);
}

.hero-section {
    position: relative;
    overflow: hidden;
    padding: 82px 0 92px;
    color: #fff;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 52%, #0e7490 100%);
}

.hero-bg {
    position: absolute;
    inset: 0;
    opacity: 0.38;
    background-image:
        radial-gradient(circle at 15% 20%, rgba(34, 211, 238, 0.32), transparent 30%),
        radial-gradient(circle at 82% 8%, rgba(59, 130, 246, 0.32), transparent 28%),
        radial-gradient(circle at 72% 86%, rgba(244, 63, 94, 0.22), transparent 28%);
}

.hero-section::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.2;
    background-image:
        linear-gradient(45deg, rgba(255,255,255,0.06) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(255,255,255,0.06) 25%, transparent 25%);
    background-size: 60px 60px;
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(520px, 1.1fr);
    gap: 48px;
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #a5f3fc;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 13px;
    margin-bottom: 12px;
}

.hero-copy h1,
.page-hero h1 {
    margin: 0 0 16px;
    font-size: clamp(42px, 6vw, 68px);
    line-height: 1.05;
    letter-spacing: -0.04em;
    font-weight: 900;
    background: linear-gradient(90deg, #67e8f9, #bfdbfe);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-copy p,
.page-hero p {
    margin: 0;
    max-width: 680px;
    color: #cffafe;
    font-size: clamp(18px, 2.3vw, 24px);
}

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

.primary-btn,
.ghost-btn,
.block-btn,
.text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
    color: #fff;
    background: linear-gradient(90deg, var(--cyan), var(--blue));
    padding: 12px 22px;
    box-shadow: 0 18px 34px rgba(37, 99, 235, 0.28);
}

.ghost-btn {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.12);
    padding: 11px 20px;
    backdrop-filter: blur(10px);
}

.primary-btn:hover,
.ghost-btn:hover,
.block-btn:hover,
.text-link:hover {
    transform: translateY(-2px);
}

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

.hero-card {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 18px;
    box-shadow: 0 26px 60px rgba(2, 6, 23, 0.42);
    transform: translateZ(0);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.hero-card:hover {
    transform: scale(1.04);
    box-shadow: 0 32px 70px rgba(2, 6, 23, 0.55);
}

.hero-card-mask,
.thumb-mask,
.poster-shade,
.category-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.78), rgba(0,0,0,0.26), transparent);
}

.hero-play,
.thumb-play,
.poster-play {
    position: absolute;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%) scale(0.88);
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(12px);
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.hero-card:hover .hero-play,
.movie-thumb:hover .thumb-play,
.poster-thumb:hover .poster-play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.hero-card-copy {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 16px;
    display: grid;
    gap: 4px;
}

.hero-card-copy strong,
.poster-title {
    color: #fff;
    font-size: 18px;
    line-height: 1.25;
    font-weight: 800;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-card-copy em,
.poster-rating {
    color: #cbd5e1;
    font-style: normal;
    font-size: 13px;
}

.section {
    padding: 70px 0;
}

.section-white {
    background: #fff;
}

.section-warm {
    background: linear-gradient(135deg, #fff7ed, #fff1f2);
}

.section-purple {
    color: #fff;
    background: linear-gradient(135deg, #4c1d95, #701a75);
}

.section-slate {
    color: #fff;
    background: linear-gradient(180deg, var(--slate-900), #000);
}

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

.section-heading {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.section-heading h2,
.center-title {
    margin: 0;
    font-size: clamp(28px, 4vw, 38px);
    line-height: 1.15;
    font-weight: 900;
    color: var(--gray-900);
}

.section-purple .section-heading h2,
.section-slate .section-heading h2 {
    color: #fff;
}

.center-title {
    text-align: center;
    margin-bottom: 34px;
}

.section-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #fff;
    font-weight: 900;
}

.section-icon.green {
    background: linear-gradient(135deg, #34d399, #10b981);
}

.section-icon.orange {
    background: linear-gradient(135deg, #fb923c, #f43f5e);
}

.section-icon.purple,
.section-icon.cyan {
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(10px);
}

.section-more {
    font-weight: 800;
}

.section-more.green {
    color: #059669;
}

.section-more.orange {
    color: #ea580c;
}

.section-more.purple,
.section-more.cyan {
    color: #67e8f9;
}

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

.movie-card,
.rank-card,
.wide-card,
.category-overview-card,
.card-panel {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}

.movie-card {
    overflow: hidden;
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover,
.wide-card:hover,
.rank-card:hover,
.category-overview-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.movie-thumb,
.wide-thumb,
.rank-thumb {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: var(--slate-900);
}

.movie-thumb img,
.wide-thumb img,
.rank-thumb img,
.category-card img,
.poster-thumb img,
.hero-card img,
.overview-image img,
.related-card img,
.small-rank img {
    transition: transform 0.35s ease;
}

.movie-card:hover img,
.wide-card:hover img,
.rank-card:hover img,
.category-card:hover img,
.poster-card:hover img,
.hero-card:hover img,
.category-overview-card:hover img,
.related-card:hover img,
.small-rank:hover img {
    transform: scale(1.08);
}

.thumb-duration {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 8px;
    border-radius: 8px;
    color: #fff;
    background: rgba(0,0,0,0.68);
    font-size: 12px;
    backdrop-filter: blur(10px);
}

.movie-content {
    padding: 16px;
}

.movie-title,
.wide-title,
.rank-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 8px;
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1.35;
    transition: color 0.2s ease;
}

.movie-title:hover,
.wide-title:hover,
.rank-title:hover {
    color: var(--cyan);
}

.movie-content p,
.wide-content p,
.rank-content p {
    margin: 0 0 13px;
    color: var(--gray-600);
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-foot,
.meta-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--gray-500);
    font-size: 13px;
}

.movie-foot {
    justify-content: space-between;
}

.movie-foot span:last-child,
.detail-category {
    color: #047857;
    background: #d1fae5;
    border-radius: 999px;
    padding: 4px 10px;
    font-weight: 750;
}

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

.rank-card {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 0;
    overflow: hidden;
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.rank-content,
.wide-content {
    position: relative;
    padding: 18px;
}

.rank-number {
    position: absolute;
    right: 18px;
    top: 16px;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    font-weight: 900;
    background: linear-gradient(90deg, var(--orange), var(--rose));
}

.rating {
    color: #d97706;
    font-weight: 800;
}

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

.poster-thumb {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    border-radius: 16px;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.26);
}

.poster-title {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 34px;
    font-size: 15px;
}

.poster-rating {
    position: absolute;
    left: 14px;
    bottom: 12px;
    color: #fde68a;
}

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

.category-card {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-card strong,
.category-card em,
.category-badge {
    position: absolute;
    left: 18px;
    right: 18px;
    z-index: 1;
}

.category-badge {
    top: 18px;
    right: auto;
    display: inline-flex;
    width: fit-content;
    color: var(--gray-900);
    background: rgba(255,255,255,0.88);
    backdrop-filter: blur(10px);
    border-radius: 999px;
    padding: 5px 12px;
    font-weight: 800;
    font-size: 13px;
}

.category-card strong {
    bottom: 52px;
    color: #fff;
    font-size: 20px;
    line-height: 1.25;
}

.category-card em {
    bottom: 20px;
    color: #cbd5e1;
    font-style: normal;
    font-size: 13px;
}

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

.small-rank {
    display: grid;
    grid-template-columns: 48px 80px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border-radius: 16px;
    color: #fff;
    background: rgba(255,255,255,0.08);
    transition: background 0.2s ease, transform 0.2s ease;
}

.small-rank:hover {
    transform: translateY(-3px);
    background: rgba(255,255,255,0.14);
}

.small-rank span {
    color: #fb923c;
    font-weight: 900;
    font-size: 22px;
}

.small-rank img {
    width: 80px;
    height: 48px;
    border-radius: 10px;
    overflow: hidden;
}

.small-rank strong {
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.small-rank em {
    color: #fde68a;
    font-style: normal;
    white-space: nowrap;
}

.page-hero {
    color: #fff;
    padding: 66px 0;
}

.cyan-hero {
    background: linear-gradient(90deg, #0891b2, #2563eb);
}

.slate-hero {
    background: linear-gradient(90deg, var(--slate-800), var(--slate-950));
}

.orange-hero {
    background: linear-gradient(90deg, #dc2626, #ea580c);
}

.page-hero-inner {
    max-width: 900px;
}

.page-hero h1 {
    color: #fff;
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
}

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

.category-overview-card {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    overflow: hidden;
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.overview-image {
    position: relative;
    overflow: hidden;
    min-height: 190px;
}

.overview-image span {
    position: absolute;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    border-radius: 50%;
    background: rgba(255,255,255,0.22);
    backdrop-filter: blur(12px);
}

.overview-copy {
    padding: 28px;
}

.overview-copy h2 {
    margin: 0 0 10px;
    font-size: 25px;
    line-height: 1.25;
}

.overview-copy p {
    margin: 0 0 20px;
    color: var(--gray-600);
}

.text-link {
    color: #0891b2;
    font-weight: 900;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) repeat(3, minmax(160px, 210px));
    gap: 16px;
    align-items: end;
    margin-bottom: 28px;
    padding: 18px;
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.filter-panel label {
    display: grid;
    gap: 7px;
    color: var(--gray-700);
    font-weight: 750;
    font-size: 14px;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    color: var(--gray-900);
    background: var(--gray-50);
    padding: 11px 13px;
    outline: 0;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: #22d3ee;
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.22);
}

.catalog-grid [hidden],
.wide-list [hidden] {
    display: none !important;
}

.empty-state {
    display: none;
    text-align: center;
    color: var(--gray-500);
    font-size: 18px;
    padding: 48px 0;
}

.empty-state.show {
    display: block;
}

.wide-list {
    display: grid;
    gap: 22px;
}

.wide-card {
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    overflow: hidden;
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.wide-thumb {
    min-height: 210px;
}

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

.tag-row span {
    display: inline-flex;
    color: var(--gray-600);
    background: var(--gray-100);
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 750;
}

.detail-shell {
    padding: 28px 0 70px;
    background: var(--gray-50);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: var(--gray-500);
    font-size: 14px;
    margin-bottom: 18px;
}

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

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(300px, 0.85fr);
    gap: 28px;
}

.player-card {
    overflow: hidden;
    border-radius: 18px;
    background: #000;
    box-shadow: 0 24px 60px rgba(2, 6, 23, 0.28);
}

.player {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
}

.player video {
    width: 100%;
    height: 100%;
    display: block;
    background: #000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    cursor: pointer;
    background: linear-gradient(0deg, rgba(0,0,0,0.55), rgba(0,0,0,0.18));
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-overlay span {
    width: 76px;
    height: 76px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    font-size: 28px;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 18px 40px rgba(37, 99, 235, 0.36);
}

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

.card-panel {
    padding: 26px;
    margin-top: 24px;
}

.card-panel h2 {
    margin: 0 0 14px;
    font-size: 22px;
    line-height: 1.25;
}

.card-panel p {
    margin: 0;
    color: var(--gray-700);
    line-height: 1.9;
}

.detail-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.detail-title-row h1 {
    margin: 0 0 10px;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.12;
    letter-spacing: -0.03em;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--gray-500);
    font-size: 14px;
}

.detail-tags {
    margin-bottom: 22px;
}

.detail-tags span {
    color: #155e75;
    background: #cffafe;
}

.sticky-panel {
    position: sticky;
    top: 88px;
}

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

.related-card {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 8px;
    border-radius: 12px;
    transition: background 0.2s ease;
}

.related-card:hover {
    background: var(--gray-50);
}

.related-card img {
    width: 96px;
    height: 60px;
    border-radius: 10px;
    overflow: hidden;
}

.related-copy {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.related-copy strong {
    color: var(--gray-900);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.35;
}

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

.block-btn {
    width: 100%;
    margin-top: 18px;
    color: #fff;
    padding: 11px 16px;
    background: linear-gradient(90deg, var(--cyan), var(--blue));
}

.site-footer {
    color: #cbd5e1;
    background: linear-gradient(180deg, var(--slate-900), #000);
}

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

.footer-brand p,
.site-footer p {
    margin: 14px 0 0;
    color: #94a3b8;
    font-size: 14px;
}

.site-footer h2 {
    margin: 0 0 16px;
    color: #fff;
    font-size: 16px;
}

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

.site-footer a:hover {
    color: #fb7185;
}

.footer-bottom {
    border-top: 1px solid rgba(148, 163, 184, 0.16);
    padding: 18px 16px;
    text-align: center;
    color: #94a3b8;
    font-size: 14px;
}

.back-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 30;
    width: 46px;
    height: 46px;
    display: none;
    border: 0;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(135deg, var(--red), var(--orange));
    box-shadow: 0 16px 34px rgba(239, 68, 68, 0.32);
}

.back-top.show {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 1100px) {
    .hero-inner {
        grid-template-columns: 1fr;
    }

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

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

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

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

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

    .sticky-panel {
        position: static;
    }

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

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

    .menu-toggle {
        display: inline-flex;
    }

    .hero-section {
        padding: 62px 0 70px;
    }

    .hero-grid,
    .rank-grid,
    .small-rank-grid,
    .category-overview-grid {
        grid-template-columns: 1fr;
    }

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

    .rank-card,
    .wide-card,
    .category-overview-card {
        grid-template-columns: 1fr;
    }

    .wide-thumb {
        min-height: auto;
    }

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

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

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

    .section {
        padding: 48px 0;
    }

    .section-head,
    .detail-title-row {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .hero-copy h1,
    .page-hero h1 {
        font-size: 40px;
    }

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

    .small-rank em {
        grid-column: 3;
    }

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

    .card-panel {
        padding: 20px;
    }
}
