:root {
    --ice-50: #f0f9ff;
    --ice-100: #e0f2fe;
    --ice-300: #7dd3fc;
    --ice-500: #0ea5e9;
    --ice-600: #0284c7;
    --ice-700: #0369a1;
    --snow-50: #f8fafc;
    --snow-100: #f1f5f9;
    --snow-200: #e2e8f0;
    --snow-300: #cbd5e1;
    --snow-500: #64748b;
    --snow-600: #475569;
    --snow-700: #334155;
    --snow-800: #1e293b;
    --snow-900: #0f172a;
    --white: #ffffff;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.14);
    --soft-shadow: 0 10px 25px rgba(15, 23, 42, 0.10);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--snow-900);
    background: linear-gradient(180deg, var(--ice-50), var(--white) 35%, var(--snow-50));
    -webkit-font-smoothing: antialiased;
}

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

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

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--snow-200);
    box-shadow: 0 6px 22px rgba(15, 23, 42, 0.06);
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    height: 72px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 24px;
}

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

.brand span,
.footer-brand span {
    font-size: 22px;
}

.logo-mark {
    width: 34px;
    height: 34px;
    color: var(--ice-600);
    flex: 0 0 auto;
}

.logo-mark svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.logo-mark path:nth-child(2) {
    fill: #fff;
}

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

.nav-link {
    font-weight: 650;
    color: var(--snow-700);
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--ice-600);
}

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-search input,
.mobile-search input,
.filter-search input,
.global-search-box input {
    width: 220px;
    border: 1px solid var(--snow-300);
    border-radius: 999px;
    background: var(--white);
    color: var(--snow-800);
    padding: 10px 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.filter-search input:focus,
.global-search-box input:focus {
    border-color: var(--ice-500);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.14);
}

.header-search button,
.mobile-search button,
.global-search-box button {
    border: 0;
    border-radius: 999px;
    padding: 10px 18px;
    background: var(--ice-600);
    color: var(--white);
    font-weight: 700;
    transition: background 0.2s ease, transform 0.2s ease;
}

.header-search button:hover,
.mobile-search button:hover,
.global-search-box button:hover,
.primary-btn:hover {
    background: var(--ice-700);
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    background: transparent;
    padding: 8px;
}

.menu-toggle span {
    display: block;
    height: 2px;
    margin: 6px 0;
    background: var(--snow-800);
    border-radius: 999px;
}

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

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

.mobile-panel nav,
.mobile-categories {
    display: grid;
    gap: 10px;
}

.mobile-categories {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 10px;
    color: var(--snow-600);
}

.mobile-search {
    display: flex;
    gap: 8px;
    margin-top: 14px;
}

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

.hero {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    background: var(--snow-900);
}

.hero-track,
.hero-slide {
    min-height: 620px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.55fr);
    align-items: center;
    gap: 42px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 76px 24px 86px;
    opacity: 0;
    pointer-events: none;
    transform: translateX(24px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-bg {
    position: fixed;
    inset: 72px 0 auto 0;
    height: 620px;
    background-size: cover;
    background-position: center;
    filter: blur(18px) saturate(1.18);
    transform: scale(1.08);
    opacity: 0.5;
}

.hero-shade {
    position: fixed;
    inset: 72px 0 auto 0;
    height: 620px;
    background:
        linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.68), rgba(2, 132, 199, 0.24)),
        radial-gradient(circle at 20% 20%, rgba(125, 211, 252, 0.28), transparent 36%);
}

.hero-content,
.hero-poster {
    position: relative;
    z-index: 2;
}

.eyebrow,
.section-head span,
.page-hero span,
.rank-title span,
.overview-card span {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(2, 132, 199, 0.12);
    color: var(--ice-700);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.hero .eyebrow {
    background: rgba(255, 255, 255, 0.16);
    color: var(--ice-100);
    backdrop-filter: blur(8px);
}

.hero h1 {
    margin: 18px 0 18px;
    max-width: 760px;
    color: var(--white);
    font-size: clamp(42px, 7vw, 82px);
    line-height: 0.95;
    letter-spacing: -0.06em;
}

.hero p {
    max-width: 700px;
    margin: 0;
    color: var(--snow-200);
    font-size: 19px;
    line-height: 1.9;
}

.hero-tags,
.detail-tags,
.card-tags,
.large-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

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

.hero-tags span,
.detail-tags span,
.large-tags span {
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: var(--white);
    font-size: 13px;
    font-weight: 700;
    backdrop-filter: blur(10px);
}

.detail-tags span,
.large-tags span {
    background: var(--ice-50);
    color: var(--ice-700);
}

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

.primary-btn,
.ghost-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 800;
    transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.primary-btn {
    background: var(--ice-600);
    color: var(--white);
    box-shadow: 0 10px 28px rgba(2, 132, 199, 0.35);
}

.ghost-btn {
    background: rgba(255, 255, 255, 0.14);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
}

.ghost-btn:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-1px);
}

.hero-poster {
    display: block;
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
    aspect-ratio: 3 / 4;
    transform: rotate(2deg);
}

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

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

.hero-poster span,
.card-play,
.large-play {
    position: absolute;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--ice-600);
    box-shadow: var(--soft-shadow);
}

.hero-poster span {
    left: 50%;
    top: 50%;
    width: 72px;
    height: 72px;
    transform: translate(-50%, -50%);
    font-size: 30px;
}

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--snow-900);
    font-size: 42px;
    line-height: 1;
    box-shadow: var(--soft-shadow);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

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

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

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

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

.hero-dots button {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button.active {
    width: 30px;
    background: var(--white);
}

.section-wrap,
.detail-layout {
    max-width: 1280px;
    margin: 0 auto;
    padding: 56px 24px 0;
}

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

.section-head h2,
.rank-title h2 {
    margin: 10px 0 0;
    color: var(--snow-900);
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.section-head a {
    color: var(--ice-600);
    font-weight: 800;
}

.large-grid,
.movie-grid,
.category-grid,
.overview-grid {
    display: grid;
    gap: 20px;
}

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

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

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

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

.large-card,
.movie-card,
.category-card,
.overview-card,
.side-card,
.detail-content,
.rank-panel {
    background: var(--white);
    border-radius: 22px;
    box-shadow: var(--soft-shadow);
    overflow: hidden;
}

.large-card-link,
.category-card,
.overview-card a {
    position: relative;
    display: block;
    min-height: 360px;
    color: var(--white);
}

.large-card img,
.category-card img,
.overview-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.large-card:hover img,
.category-card:hover img,
.overview-card:hover img,
.movie-card:hover img {
    transform: scale(1.08);
}

.large-overlay,
.category-card::after,
.overview-card a::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.84), rgba(15, 23, 42, 0.22), transparent);
}

.large-content,
.category-card span,
.category-card p,
.overview-card div,
.large-play {
    position: absolute;
    z-index: 2;
}

.large-content {
    left: 24px;
    right: 24px;
    bottom: 24px;
}

.large-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.large-badges span {
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.45);
    color: var(--white);
    font-size: 12px;
    font-weight: 700;
}

.large-content h2 {
    margin: 0 0 10px;
    font-size: 30px;
    line-height: 1.1;
}

.large-content p {
    margin: 0 0 14px;
    color: var(--snow-200);
    line-height: 1.75;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.large-play {
    top: 24px;
    right: 24px;
    width: 58px;
    height: 58px;
    font-size: 24px;
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.large-card:hover .large-play {
    opacity: 1;
    transform: scale(1);
}

.movie-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.card-link {
    display: block;
    height: 100%;
}

.card-cover {
    position: relative;
    height: 230px;
    overflow: hidden;
    background: var(--snow-200);
}

.compact-card .card-cover {
    height: 180px;
}

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

.card-cover::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.65), transparent 62%);
}

.card-year {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    padding: 4px 8px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.56);
    color: var(--white);
    font-size: 12px;
    font-weight: 700;
}

.card-play {
    left: 50%;
    top: 50%;
    z-index: 2;
    width: 48px;
    height: 48px;
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.card-body {
    padding: 16px;
}

.card-body h2 {
    min-height: 42px;
    margin: 0 0 8px;
    color: var(--snow-900);
    font-size: 17px;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.movie-card:hover h2 {
    color: var(--ice-600);
}

.card-body p {
    min-height: 42px;
    margin: 0 0 12px;
    color: var(--snow-600);
    font-size: 13px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--snow-500);
    font-size: 12px;
}

.card-meta span:first-child {
    padding: 4px 8px;
    border-radius: 8px;
    background: var(--ice-50);
    color: var(--ice-700);
    font-weight: 800;
}

.card-tags {
    margin-top: 10px;
}

.card-tags span {
    padding: 4px 7px;
    border-radius: 8px;
    background: var(--snow-100);
    color: var(--snow-600);
    font-size: 11px;
}

.category-card {
    min-height: 260px;
    padding: 24px;
    color: var(--white);
}

.category-card span {
    left: 24px;
    right: 24px;
    bottom: 86px;
    font-size: 24px;
    font-weight: 900;
}

.category-card p {
    left: 24px;
    right: 24px;
    bottom: 24px;
    margin: 0;
    color: var(--snow-200);
    line-height: 1.7;
}

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

.rank-panel {
    position: sticky;
    top: 96px;
    padding: 22px;
}

.rank-title {
    margin-bottom: 16px;
}

.rank-panel ol,
.ranking-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.rank-panel li a {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--snow-200);
}

.rank-panel li:last-child a {
    border-bottom: 0;
}

.rank-panel span {
    color: var(--ice-600);
    font-weight: 900;
    font-size: 20px;
}

.rank-panel strong {
    display: block;
    color: var(--snow-900);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.rank-panel em {
    display: block;
    margin-top: 3px;
    color: var(--snow-500);
    font-size: 13px;
    font-style: normal;
}

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

.page-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 20% 10%, rgba(125, 211, 252, 0.35), transparent 28%),
        linear-gradient(120deg, var(--snow-900), var(--snow-800) 55%, var(--ice-700));
    color: var(--white);
    padding: 82px 24px;
}

.page-hero > div {
    max-width: 1280px;
    margin: 0 auto;
}

.page-hero h1 {
    margin: 16px 0 14px;
    font-size: clamp(40px, 6vw, 68px);
    line-height: 1;
    letter-spacing: -0.06em;
}

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

.page-hero .ghost-btn {
    border-color: rgba(255, 255, 255, 0.2);
}

.overview-card a {
    min-height: 300px;
}

.overview-card div {
    left: 28px;
    right: 28px;
    bottom: 28px;
}

.overview-card h2 {
    margin: 14px 0 10px;
    font-size: 32px;
}

.overview-card p {
    margin: 0;
    color: var(--snow-200);
    line-height: 1.7;
}

.filter-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
    padding: 18px;
    border: 1px solid var(--snow-200);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: var(--soft-shadow);
}

.filter-search {
    display: grid;
    gap: 8px;
    min-width: min(100%, 360px);
    color: var(--snow-700);
    font-weight: 800;
}

.filter-search input {
    width: 100%;
    border-radius: 14px;
}

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

.filter-chips button {
    border: 1px solid var(--snow-200);
    border-radius: 999px;
    background: var(--white);
    color: var(--snow-700);
    padding: 9px 14px;
    font-weight: 750;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.filter-chips button.active,
.filter-chips button:hover {
    border-color: var(--ice-600);
    background: var(--ice-600);
    color: var(--white);
}

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

.ranking-list li a {
    display: grid;
    grid-template-columns: 72px 96px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--snow-200);
    border-radius: 18px;
    background: var(--white);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-list li a:hover {
    transform: translateY(-2px);
    box-shadow: var(--soft-shadow);
}

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

.rank-no {
    color: var(--ice-600);
    font-size: 26px;
    font-weight: 950;
}

.ranking-list strong {
    display: block;
    color: var(--snow-900);
    font-size: 19px;
    margin-bottom: 5px;
}

.ranking-list p {
    margin: 0 0 5px;
    color: var(--snow-600);
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.global-search-box {
    display: flex;
    gap: 10px;
    max-width: 720px;
    margin-bottom: 16px;
}

.global-search-box input {
    width: 100%;
    border-radius: 18px;
    padding: 14px 18px;
}

.global-search-box button {
    border-radius: 18px;
    padding: 0 26px;
}

.global-chips {
    margin-bottom: 24px;
}

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

.search-empty {
    grid-column: 1 / -1;
    padding: 56px 24px;
    border-radius: 24px;
    background: var(--white);
    color: var(--snow-600);
    text-align: center;
    box-shadow: var(--soft-shadow);
}

.player-section {
    background: #000;
}

.player-wrap {
    position: relative;
    max-width: 1280px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    background: #000;
}

.player-wrap video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    padding: 0;
    background: #000;
    overflow: hidden;
}

.player-cover.is-hidden {
    display: none;
}

.player-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.52;
    filter: saturate(1.08);
}

.player-cover span {
    position: absolute;
    width: 96px;
    height: 96px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--ice-600);
    font-size: 38px;
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.36);
}

.player-message {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 18px;
    color: var(--white);
    text-align: center;
    font-weight: 700;
    pointer-events: none;
}

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

.detail-content {
    padding: 30px;
}

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

.breadcrumb a {
    color: var(--ice-600);
    font-weight: 800;
}

.detail-content h1 {
    margin: 0 0 14px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1;
    letter-spacing: -0.05em;
}

.detail-one-line {
    margin: 0 0 22px;
    color: var(--snow-700);
    font-size: 19px;
    line-height: 1.85;
}

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

.detail-meta span {
    padding: 8px 12px;
    border-radius: 12px;
    background: var(--snow-100);
    color: var(--snow-700);
    font-weight: 750;
}

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

.text-block {
    padding-top: 24px;
    border-top: 1px solid var(--snow-200);
}

.text-block h2 {
    margin: 0 0 14px;
    font-size: 24px;
}

.text-block p {
    margin: 0 0 22px;
    color: var(--snow-700);
    line-height: 2;
    white-space: pre-line;
}

.review-block {
    margin-top: 10px;
}

.detail-pager {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-top: 20px;
}

.detail-pager a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 112px;
    padding: 11px 16px;
    border-radius: 999px;
    background: var(--ice-50);
    color: var(--ice-700);
    font-weight: 900;
}

.side-card {
    position: sticky;
    top: 96px;
    padding: 18px;
}

.side-card img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 18px;
    margin-bottom: 16px;
}

.side-card h2 {
    margin: 0 0 8px;
    font-size: 22px;
}

.side-card p {
    margin: 0 0 14px;
    color: var(--snow-600);
}

.side-card a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px;
    border-radius: 14px;
    background: var(--ice-600);
    color: var(--white);
    font-weight: 900;
}

.site-footer {
    margin-top: 72px;
    background: var(--snow-900);
    color: var(--snow-300);
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 2fr) 1fr 1fr;
    gap: 36px;
    padding: 48px 24px;
}

.footer-brand {
    color: var(--white);
}

.footer-brand .logo-mark {
    color: var(--ice-300);
}

.footer-main p {
    max-width: 520px;
    color: var(--snow-300);
    line-height: 1.8;
}

.site-footer h2 {
    margin: 0 0 14px;
    color: var(--white);
    font-size: 17px;
}

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

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

.footer-bottom {
    border-top: 1px solid rgba(226, 232, 240, 0.12);
    padding: 18px 24px;
    text-align: center;
    color: var(--snow-500);
}

.back-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 40;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    background: var(--ice-600);
    color: var(--white);
    font-size: 24px;
    box-shadow: var(--soft-shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.back-top.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.hidden-by-filter {
    display: none !important;
}

@media (max-width: 1180px) {
    .header-search {
        display: none;
    }

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

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

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

    .rank-panel,
    .side-card {
        position: static;
    }
}

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

    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    .header-inner {
        height: 64px;
        padding: 0 16px;
    }

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

    .hero,
    .hero-track,
    .hero-slide {
        min-height: 760px;
    }

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

    .hero-bg,
    .hero-shade {
        inset: 64px 0 auto 0;
        height: 760px;
    }

    .hero-poster {
        max-width: 340px;
        margin: 0 auto;
        transform: rotate(0);
    }

    .hero-control {
        display: none;
    }

    .section-wrap,
    .detail-layout {
        padding: 42px 16px 0;
    }

    .large-grid,
    .overview-grid {
        grid-template-columns: 1fr;
    }

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

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

    .filter-panel,
    .global-search-box {
        align-items: stretch;
        flex-direction: column;
    }

    .ranking-list li a {
        grid-template-columns: 48px 72px minmax(0, 1fr);
        gap: 12px;
    }

    .ranking-list img {
        width: 72px;
        height: 54px;
    }

    .detail-content {
        padding: 22px;
    }

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

@media (max-width: 540px) {
    .hero h1 {
        font-size: 44px;
    }

    .hero p {
        font-size: 16px;
    }

    .page-hero {
        padding: 58px 16px;
    }

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

    .card-cover,
    .compact-card .card-cover {
        height: 220px;
    }

    .large-card-link,
    .category-card,
    .overview-card a {
        min-height: 320px;
    }

    .player-cover span {
        width: 74px;
        height: 74px;
        font-size: 30px;
    }
}
