@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Noto+Sans+SC:wght@300;400;500;700;900&display=swap");

:root {
    --ice-950: #020617;
    --ice-925: #071021;
    --ice-900: #0f172a;
    --ice-850: #172033;
    --ice-800: #1e293b;
    --ice-700: #334155;
    --ice-500: #64748b;
    --ice-400: #94a3b8;
    --ice-300: #cbd5e1;
    --ice-200: #e2e8f0;
    --ice-50: #f8fafc;
    --frost-600: #0284c7;
    --frost-500: #0ea5e9;
    --frost-400: #38bdf8;
    --glacier-600: #0891b2;
    --glacier-500: #06b6d4;
    --yellow-400: #facc15;
    --shadow-soft: 0 8px 32px rgba(15, 23, 42, 0.46);
    --shadow-card: 0 18px 48px rgba(2, 6, 23, 0.36);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 12px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--ice-950);
    color: var(--ice-50);
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100%;
    font-family: "Inter", "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at 20% 0%, rgba(14, 165, 233, 0.16), transparent 28rem),
        radial-gradient(circle at 85% 12%, rgba(6, 182, 212, 0.13), transparent 30rem),
        linear-gradient(180deg, var(--ice-950), var(--ice-900) 42%, var(--ice-950));
    color: var(--ice-50);
    -webkit-font-smoothing: antialiased;
}

body.menu-open {
    overflow: hidden;
}

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

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

button,
input,
select {
    font: inherit;
}

.container-custom {
    width: min(100% - 32px, 1280px);
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 28px rgba(2, 6, 23, 0.32);
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--frost-600), var(--glacier-500));
    box-shadow: 0 12px 24px rgba(14, 165, 233, 0.25);
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-title {
    font-size: 22px;
    letter-spacing: -0.03em;
}

.brand-subtitle {
    margin-top: 4px;
    color: var(--ice-400);
    font-size: 12px;
    font-weight: 500;
}

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

.nav-link,
.mobile-nav-link {
    border-radius: 12px;
    color: var(--ice-300);
    font-size: 14px;
    font-weight: 600;
    transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.nav-link {
    padding: 10px 14px;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-nav-link:hover,
.mobile-nav-link.is-active {
    color: #fff;
    background: rgba(2, 132, 199, 0.22);
}

.menu-toggle {
    display: none;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 14px;
    background: rgba(30, 41, 59, 0.76);
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    border-radius: 999px;
    background: var(--ice-50);
    transition: transform 0.25s ease, opacity 0.25s ease;
}

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

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

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

.mobile-nav {
    display: none;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(15, 23, 42, 0.98);
}

.mobile-nav-link {
    display: block;
    margin: 8px 16px;
    padding: 14px;
}

.hero {
    position: relative;
    min-height: 70vh;
    overflow: hidden;
    background: var(--ice-950);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease;
}

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

.hero-image {
    width: 100%;
    height: 100%;
    min-height: 70vh;
    object-fit: cover;
    transform: scale(1.02);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.98), rgba(2, 6, 23, 0.76) 42%, rgba(2, 6, 23, 0.22) 72%, rgba(2, 6, 23, 0.08)),
        linear-gradient(180deg, rgba(2, 6, 23, 0.15), rgba(2, 6, 23, 0.92));
}

.hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
}

.hero-copy {
    width: min(100%, 720px);
    padding-top: 54px;
    animation: fade-in-up 0.75s ease both;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 8px 13px;
    border: 1px solid rgba(56, 189, 248, 0.24);
    border-radius: 999px;
    background: rgba(2, 132, 199, 0.18);
    color: var(--frost-400);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

h1,
h2,
h3,
p {
    margin: 0;
}

h1 {
    color: #fff;
    font-size: clamp(42px, 7vw, 82px);
    line-height: 1.04;
    letter-spacing: -0.06em;
    text-shadow: 0 8px 28px rgba(0, 0, 0, 0.42);
}

h2 {
    color: var(--ice-50);
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.16;
    letter-spacing: -0.04em;
}

.hero-copy p {
    margin-top: 22px;
    color: var(--ice-200);
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.75;
}

.hero-meta,
.rank-meta,
.movie-meta,
.detail-tags,
.movie-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

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

.hero-meta span,
.hero-meta strong,
.rank-meta span,
.rank-meta strong,
.movie-tags span,
.movie-tags a,
.detail-tags span {
    border-radius: 999px;
    background: rgba(30, 41, 59, 0.78);
    color: var(--ice-200);
    font-size: 13px;
    font-weight: 700;
    padding: 8px 11px;
}

.hero-meta strong,
.rank-meta strong {
    color: var(--yellow-400);
}

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

.btn-primary,
.btn-secondary,
.btn-ghost,
.section-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border-radius: 14px;
    font-weight: 800;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.btn-primary,
.btn-secondary {
    padding: 0 22px;
    background: linear-gradient(135deg, var(--frost-600), var(--glacier-500));
    color: #fff;
    box-shadow: 0 16px 32px rgba(14, 165, 233, 0.22);
}

.btn-ghost,
.section-link {
    padding: 0 18px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    background: rgba(15, 23, 42, 0.55);
    color: var(--ice-100, #f1f5f9);
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-ghost:hover,
.section-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(14, 165, 233, 0.2);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    padding: 0;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.76);
    color: #fff;
    font-size: 34px;
    transform: translateY(-50%);
    backdrop-filter: blur(12px);
}

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

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

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

.hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.5);
    transition: width 0.25s ease, background 0.25s ease;
}

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

.search-band,
.section-block {
    padding: 72px 0;
}

.search-band {
    background: linear-gradient(180deg, var(--ice-950), var(--ice-900));
}

.search-panel {
    border: 1px solid rgba(56, 189, 248, 0.16);
    border-radius: var(--radius-xl);
    background: rgba(15, 23, 42, 0.74);
    box-shadow: var(--shadow-soft);
    padding: 28px;
}

.search-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(170px, 240px);
    gap: 12px;
    margin: 24px 0 30px;
}

.narrow-controls {
    grid-template-columns: minmax(240px, 420px);
    margin: 0;
}

.search-input,
.select-input {
    width: 100%;
    min-height: 48px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 14px;
    outline: 0;
    background: rgba(2, 6, 23, 0.66);
    color: var(--ice-50);
    padding: 0 16px;
}

.search-input:focus,
.select-input:focus {
    border-color: rgba(56, 189, 248, 0.6);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.14);
}

.grid {
    display: grid;
}

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

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

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

.listing-grid {
    align-items: stretch;
}

.movie-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: var(--radius-lg);
    background: rgba(15, 23, 42, 0.84);
    box-shadow: var(--shadow-card);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    border-color: rgba(56, 189, 248, 0.34);
    box-shadow: 0 18px 54px rgba(14, 165, 233, 0.14);
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(2, 6, 23, 0.95));
}

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

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

.poster-shade {
    position: absolute;
    inset: auto 0 0;
    height: 42%;
    background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.92));
}

.poster-year,
.rank-badge {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.poster-year {
    right: 12px;
    bottom: 12px;
    padding: 7px 10px;
    background: rgba(2, 6, 23, 0.8);
    color: var(--ice-50);
}

.rank-badge {
    left: 12px;
    top: 12px;
    display: grid;
    place-items: center;
    min-width: 34px;
    height: 34px;
    background: linear-gradient(135deg, var(--yellow-400), #f97316);
    color: var(--ice-950);
}

.movie-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
}

.movie-title,
.rank-title {
    color: var(--ice-50);
    font-size: 18px;
    font-weight: 850;
    line-height: 1.3;
}

.movie-title:hover,
.rank-title:hover {
    color: var(--frost-400);
}

.movie-meta {
    gap: 8px;
    color: var(--ice-400);
    font-size: 13px;
}

.movie-meta span + span::before {
    content: "·";
    margin-right: 8px;
    color: var(--ice-500);
}

.movie-card-body p {
    color: var(--ice-300);
    display: -webkit-box;
    overflow: hidden;
    font-size: 14px;
    line-height: 1.6;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.movie-tags {
    gap: 8px;
    margin-top: auto;
}

.movie-tags span,
.movie-tags a {
    padding: 6px 9px;
    background: rgba(2, 132, 199, 0.16);
    color: var(--frost-400);
}

.movie-card-compact .movie-card-body p {
    -webkit-line-clamp: 2;
}

.frost-section {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.76), rgba(2, 6, 23, 0.96));
}

.section-heading,
.section-heading-row,
.listing-head {
    margin-bottom: 30px;
}

.section-heading-row,
.listing-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
}

.compact-heading {
    margin-bottom: 24px;
}

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

.quick-category {
    display: flex;
    min-height: 150px;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid rgba(56, 189, 248, 0.16);
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(2, 132, 199, 0.12));
    padding: 20px;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.quick-category:hover,
.category-card:hover {
    transform: translateY(-4px);
    border-color: rgba(56, 189, 248, 0.38);
}

.quick-category span {
    color: var(--ice-50);
    font-size: 20px;
    font-weight: 850;
}

.quick-category em {
    color: var(--ice-400);
    font-size: 14px;
    font-style: normal;
    line-height: 1.6;
}

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

.rank-panel,
.side-card,
.category-card {
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: var(--radius-xl);
    background: rgba(15, 23, 42, 0.78);
    box-shadow: var(--shadow-soft);
}

.rank-panel {
    position: sticky;
    top: 100px;
    align-self: start;
    padding: 24px;
}

.rank-panel-head {
    margin-bottom: 18px;
}

.rank-list {
    display: grid;
    gap: 10px;
}

.rank-row {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    border-radius: 14px;
    background: rgba(2, 6, 23, 0.34);
    padding: 12px;
    transition: background 0.25s ease, transform 0.25s ease;
}

.rank-row:hover {
    background: rgba(2, 132, 199, 0.16);
    transform: translateX(4px);
}

.rank-number {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(14, 165, 233, 0.2);
    color: var(--frost-400);
    font-weight: 900;
}

.rank-name {
    overflow: hidden;
    color: var(--ice-100, #f1f5f9);
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-heat {
    color: var(--yellow-400);
    font-size: 13px;
    font-weight: 850;
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 100px 0 72px;
    background:
        radial-gradient(circle at 82% 20%, rgba(14, 165, 233, 0.18), transparent 30rem),
        linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.98));
}

.page-hero p {
    width: min(100%, 760px);
    margin-top: 20px;
    color: var(--ice-300);
    font-size: 18px;
    line-height: 1.8;
}

.category-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 22px;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

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

.category-card-head {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 16px;
}

.category-icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--frost-600), var(--glacier-500));
    color: #fff;
    font-size: 24px;
    font-weight: 900;
}

.category-card h2 {
    font-size: 28px;
}

.category-card p {
    margin-top: 10px;
    color: var(--ice-300);
    line-height: 1.7;
}

.category-sample {
    display: grid;
    gap: 10px;
}

.mini-link {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    border-radius: 14px;
    background: rgba(2, 6, 23, 0.35);
    padding: 8px;
}

.mini-link:hover {
    background: rgba(2, 132, 199, 0.16);
}

.mini-link img {
    width: 54px;
    height: 72px;
    border-radius: 10px;
    object-fit: cover;
}

.mini-link span {
    min-width: 0;
}

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

.mini-link strong {
    color: var(--ice-50);
    font-size: 15px;
}

.mini-link em {
    margin-top: 6px;
    color: var(--ice-400);
    font-size: 13px;
    font-style: normal;
}

.rank-card-list {
    display: grid;
    gap: 16px;
}

.rank-card {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 20px;
    align-items: stretch;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: var(--radius-lg);
    background: rgba(15, 23, 42, 0.78);
    padding: 14px;
}

.rank-card-poster {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    background: var(--ice-800);
}

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

.rank-card-poster span {
    position: absolute;
    left: 10px;
    top: 10px;
    border-radius: 10px;
    background: rgba(250, 204, 21, 0.94);
    color: var(--ice-950);
    font-weight: 900;
    padding: 7px 9px;
}

.rank-card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 13px;
}

.rank-card-body p {
    color: var(--ice-300);
    line-height: 1.7;
}

.detail-hero {
    padding: 64px 0 40px;
    background:
        radial-gradient(circle at 80% 18%, rgba(14, 165, 233, 0.14), transparent 28rem),
        linear-gradient(180deg, rgba(2, 6, 23, 0.9), rgba(15, 23, 42, 0.92));
}

.detail-layout {
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 38px;
    align-items: center;
}

.detail-cover {
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: var(--radius-xl);
    background: var(--ice-900);
    box-shadow: var(--shadow-card);
}

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

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

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

.detail-copy h1 {
    font-size: clamp(38px, 6vw, 72px);
}

.detail-one-line {
    margin-top: 20px;
    color: var(--ice-200);
    font-size: 20px;
    line-height: 1.75;
}

.detail-meta-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 26px;
}

.detail-meta-grid span {
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.65);
    color: var(--ice-400);
    padding: 14px;
}

.detail-meta-grid strong {
    display: block;
    margin-top: 6px;
    color: var(--ice-50);
    font-size: 18px;
}

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

.player-section {
    padding: 32px 0;
    background: var(--ice-950);
}

.player-shell {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(56, 189, 248, 0.18);
    border-radius: var(--radius-xl);
    background: #000;
    box-shadow: 0 24px 64px rgba(2, 6, 23, 0.56);
    aspect-ratio: 16 / 9;
}

.movie-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 10px;
    border: 0;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.12), rgba(2, 6, 23, 0.68));
    color: #fff;
    font-size: 18px;
    font-weight: 900;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-icon {
    display: grid;
    place-items: center;
    width: 84px;
    height: 84px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--frost-600), var(--glacier-500));
    box-shadow: 0 18px 40px rgba(14, 165, 233, 0.26);
    font-size: 34px;
    text-indent: 4px;
}

.detail-content {
    padding-top: 54px;
}

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

.detail-article,
.side-card {
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: var(--radius-xl);
    background: rgba(15, 23, 42, 0.72);
    padding: 28px;
}

.detail-section + .detail-section {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.detail-section h2,
.side-card h2 {
    margin-bottom: 18px;
    font-size: 28px;
}

.detail-section p {
    color: var(--ice-200);
    font-size: 17px;
    line-height: 1.9;
}

.detail-section p + p {
    margin-top: 16px;
}

.side-card {
    position: sticky;
    top: 104px;
}

.side-card dl,
.side-card div {
    display: grid;
    gap: 12px;
}

.side-card dl {
    margin: 0;
}

.side-card div {
    grid-template-columns: 72px minmax(0, 1fr);
    align-items: start;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    padding-bottom: 12px;
}

.side-card div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.side-card dt {
    color: var(--ice-400);
}

.side-card dd {
    margin: 0;
    color: var(--ice-100, #f1f5f9);
    line-height: 1.65;
}

.side-card a:hover {
    color: var(--frost-400);
}

.related-section {
    padding-top: 20px;
}

.site-footer {
    border-top: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(2, 6, 23, 0.92);
    padding: 44px 0;
}

.footer-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.footer-brand {
    color: #fff;
    font-size: 20px;
}

.site-footer p {
    margin-top: 12px;
    max-width: 620px;
    color: var(--ice-400);
    line-height: 1.7;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
}

.footer-links a {
    border-radius: 999px;
    background: rgba(30, 41, 59, 0.76);
    color: var(--ice-300);
    padding: 9px 12px;
    font-size: 13px;
    font-weight: 700;
}

.footer-links a:hover {
    color: var(--frost-400);
}

.is-hidden {
    display: none !important;
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

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

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

    .menu-toggle {
        display: block;
    }

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

    .hero {
        min-height: 76vh;
    }

    .hero-image {
        min-height: 76vh;
    }

    .hero-overlay {
        background:
            linear-gradient(180deg, rgba(2, 6, 23, 0.36), rgba(2, 6, 23, 0.96)),
            linear-gradient(90deg, rgba(2, 6, 23, 0.84), rgba(2, 6, 23, 0.46));
    }

    .hero-arrow {
        display: none;
    }

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

    .search-controls,
    .narrow-controls {
        grid-template-columns: 1fr;
    }

    .section-heading-row,
    .listing-head {
        align-items: stretch;
        flex-direction: column;
    }

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

    .detail-cover {
        width: min(100%, 360px);
    }

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

    .rank-card {
        grid-template-columns: 108px minmax(0, 1fr);
    }

    .rank-card-poster img {
        height: 152px;
    }

    .footer-grid {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-links {
        justify-content: flex-start;
    }
}

@media (max-width: 560px) {
    .container-custom {
        width: min(100% - 24px, 1280px);
    }

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

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

    .brand-subtitle {
        display: none;
    }

    .brand-mark {
        width: 40px;
        height: 40px;
    }

    .hero-copy {
        padding-top: 36px;
    }

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

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .search-band,
    .section-block {
        padding: 52px 0;
    }

    .search-panel,
    .detail-article,
    .side-card {
        padding: 20px;
    }

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

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

    .rank-heat {
        display: none;
    }

    .rank-card {
        grid-template-columns: 92px minmax(0, 1fr);
        gap: 14px;
    }

    .rank-card-poster img {
        height: 132px;
    }

    .rank-card-body p {
        display: none;
    }

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

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

    .play-icon {
        width: 68px;
        height: 68px;
        font-size: 28px;
    }
}
