
:root {
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --blue-900: #1e3a8a;
    --blue-700: #1d4ed8;
    --blue-600: #2563eb;
    --cyan-500: #06b6d4;
    --cyan-400: #22d3ee;
    --teal-400: #2dd4bf;
    --amber-400: #f59e0b;
    --rose-500: #f43f5e;
    --white: #ffffff;
    --muted: #64748b;
    --soft: #f8fafc;
    --line: rgba(148, 163, 184, 0.24);
    --shadow: 0 24px 70px rgba(15, 23, 42, 0.16);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Inter", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 44%, #f1f5f9 100%);
    color: #111827;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: var(--white);
    background: linear-gradient(90deg, var(--slate-900), var(--blue-900), var(--slate-900));
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.25);
}

.header-inner {
    width: min(1180px, calc(100% - 32px));
    min-height: 76px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

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

.brand-mark {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, #38bdf8, #22d3ee, #14b8a6);
    color: white;
    font-size: 24px;
    font-weight: 900;
    box-shadow: 0 12px 28px rgba(34, 211, 238, 0.32);
}

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

.brand-text strong {
    font-size: 20px;
    letter-spacing: 0.04em;
    background: linear-gradient(90deg, #bfdbfe, #a5f3fc);
    -webkit-background-clip: text;
    color: transparent;
}

.brand-text em {
    color: #93c5fd;
    font-size: 12px;
    font-style: normal;
    margin-top: 4px;
}

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

.nav-link,
.mobile-nav-link {
    padding: 10px 16px;
    border-radius: 12px;
    color: #dbeafe;
    transition: 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-nav-link:hover,
.mobile-nav-link.is-active {
    color: white;
    background: rgba(37, 99, 235, 0.88);
    box-shadow: 0 10px 26px rgba(37, 99, 235, 0.24);
}

.mobile-menu-button {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: rgba(30, 64, 175, 0.45);
    cursor: pointer;
}

.mobile-menu-button span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 5px auto;
    background: white;
    border-radius: 999px;
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 14px;
}

.mobile-nav.is-open {
    display: grid;
    gap: 8px;
}

.category-ribbon {
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(2, 6, 23, 0.18);
}

.category-ribbon-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: flex;
    gap: 18px;
    overflow-x: auto;
    padding: 10px 0;
}

.category-ribbon a {
    flex: 0 0 auto;
    color: #bfdbfe;
    font-size: 14px;
}

.category-ribbon a:hover {
    color: white;
}

main {
    min-height: 68vh;
}

.hero-section {
    position: relative;
    min-height: 720px;
    display: grid;
    grid-template-columns: minmax(280px, 0.92fr) minmax(420px, 1.18fr);
    gap: 34px;
    align-items: center;
    overflow: hidden;
    padding: 72px max(24px, calc((100vw - 1180px) / 2)) 82px;
    color: white;
    background:
        radial-gradient(circle at 12% 18%, rgba(34, 211, 238, 0.28), transparent 32%),
        radial-gradient(circle at 88% 22%, rgba(37, 99, 235, 0.32), transparent 28%),
        linear-gradient(135deg, #0f172a 0%, #1e3a8a 52%, #020617 100%);
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.14;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
    background-size: 52px 52px;
}

.hero-static-copy,
.hero-stage {
    position: relative;
    z-index: 1;
}

.section-eyebrow {
    margin: 0 0 12px;
    color: #22d3ee;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero-static-copy h1 {
    margin: 0 0 20px;
    font-size: clamp(38px, 5.8vw, 72px);
    line-height: 1.02;
    letter-spacing: -0.06em;
    background: linear-gradient(90deg, #bfdbfe, #e0f2fe, #99f6e4);
    -webkit-background-clip: text;
    color: transparent;
}

.hero-static-copy p {
    max-width: 620px;
    color: #dbeafe;
    font-size: 19px;
    line-height: 1.8;
}

.hero-search {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    max-width: 560px;
    margin: 28px 0 18px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(18px);
}

.hero-search input,
.search-page-form input,
.search-box input,
.select-box select {
    width: 100%;
    border: 0;
    outline: 0;
    border-radius: 13px;
    padding: 14px 16px;
    color: #0f172a;
    background: white;
}

.hero-search button,
.search-page-form button,
.primary-button {
    border: 0;
    border-radius: 13px;
    padding: 14px 22px;
    color: white;
    font-weight: 800;
    background: linear-gradient(90deg, var(--blue-600), var(--cyan-500));
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.28);
    cursor: pointer;
    transition: 0.25s ease;
}

.hero-search button:hover,
.search-page-form button:hover,
.primary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(37, 99, 235, 0.36);
}

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

.hero-quick-links a,
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    padding: 12px 18px;
    color: white;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(14px);
    transition: 0.25s ease;
}

.hero-quick-links a:hover,
.ghost-button:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-2px);
}

.hero-stage {
    min-height: 560px;
    border-radius: 34px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.55);
    box-shadow: 0 32px 90px rgba(2, 6, 23, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

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

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

.hero-backdrop {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.88), rgba(15, 23, 42, 0.52), rgba(2, 6, 23, 0.24)),
        linear-gradient(0deg, rgba(2, 6, 23, 0.86), transparent 52%);
}

.hero-slide-content {
    position: absolute;
    left: 36px;
    right: 36px;
    bottom: 104px;
}

.hero-kicker {
    margin: 0 0 12px;
    color: #a5f3fc;
    font-size: 14px;
    font-weight: 800;
}

.hero-slide-content h2 {
    margin: 0 0 14px;
    font-size: clamp(30px, 4vw, 52px);
    line-height: 1.05;
}

.hero-slide-content p {
    max-width: 620px;
    margin: 0 0 18px;
    color: #dbeafe;
    line-height: 1.7;
}

.hero-tags,
.movie-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 10px;
    color: #0369a1;
    font-size: 12px;
    font-weight: 700;
    background: #e0f2fe;
    border: 1px solid #bae6fd;
}

.hero-slide-content .tag,
.detail-summary .tag {
    color: #ecfeff;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

.hero-slide-content .hero-actions {
    margin-top: 20px;
}

.hero-dots {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    z-index: 3;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.hero-dot {
    min-width: 0;
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 10px;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 16px;
    padding: 8px;
    color: white;
    text-align: left;
    background: rgba(15, 23, 42, 0.55);
    cursor: pointer;
    backdrop-filter: blur(12px);
    transition: 0.25s ease;
}

.hero-dot img {
    width: 48px;
    height: 54px;
    object-fit: cover;
    border-radius: 10px;
}

.hero-dot span {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 13px;
    font-weight: 800;
}

.hero-dot.is-active,
.hero-dot:hover {
    background: rgba(37, 99, 235, 0.78);
}

.content-section {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 56px 0;
}

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

.section-heading h2,
.section-heading h1 {
    margin: 0;
    color: #0f172a;
    font-size: clamp(26px, 3.2vw, 42px);
    letter-spacing: -0.04em;
}

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

.small-heading h2 {
    font-size: 28px;
}

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

.category-card,
.category-large-card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    min-height: 190px;
    box-shadow: var(--shadow);
    background: #0f172a;
}

.category-card a,
.category-large-card a {
    position: absolute;
    inset: 0;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: white;
}

.category-card img,
.category-large-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
    transition: 0.45s ease;
}

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

.category-card-overlay,
.category-large-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.88), rgba(2, 6, 23, 0.28));
}

.category-card strong,
.category-card em,
.category-large-card h2,
.category-large-card p,
.category-large-card em,
.category-label {
    position: relative;
    z-index: 1;
}

.category-card strong {
    font-size: 22px;
    margin-bottom: 8px;
}

.category-card em,
.category-large-card p,
.category-large-card em {
    color: #dbeafe;
    font-style: normal;
    line-height: 1.55;
}

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

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

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

.movie-card {
    min-width: 0;
    overflow: hidden;
    border-radius: 22px;
    background: white;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.1);
    transition: 0.28s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.18);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, #cbd5e1, #e2e8f0);
}

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

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

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.58), transparent 58%);
    opacity: 0.88;
}

.poster-play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%) scale(0.88);
    border-radius: 999px;
    color: var(--blue-600);
    background: rgba(255, 255, 255, 0.92);
    opacity: 0;
    transition: 0.25s ease;
}

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

.year-badge,
.rank-badge {
    position: absolute;
    top: 12px;
    z-index: 2;
    border-radius: 999px;
    padding: 6px 10px;
    color: white;
    font-size: 12px;
    font-weight: 900;
}

.year-badge {
    left: 12px;
    background: rgba(37, 99, 235, 0.92);
}

.rank-badge {
    right: 12px;
    background: linear-gradient(135deg, #f97316, #f43f5e);
}

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

.movie-card-body h2 {
    margin: 0 0 8px;
    font-size: 17px;
    line-height: 1.35;
}

.movie-card-body h2 a:hover {
    color: var(--blue-600);
}

.movie-card-body p {
    min-height: 48px;
    margin: 0 0 12px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.7;
}

.movie-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
}

.movie-meta-row span {
    border-radius: 999px;
    padding: 4px 8px;
    background: #f1f5f9;
}

.ranking-panel {
    position: sticky;
    top: 112px;
    border-radius: 24px;
    padding: 24px;
    background: white;
    box-shadow: var(--shadow);
}

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

.rank-row {
    display: grid;
    grid-template-columns: 42px 54px 1fr auto;
    gap: 12px;
    align-items: center;
    border-radius: 16px;
    padding: 10px;
    background: #f8fafc;
    transition: 0.25s ease;
}

.rank-row:hover {
    background: #e0f2fe;
    transform: translateX(4px);
}

.rank-number {
    color: #0ea5e9;
    font-size: 20px;
    font-weight: 900;
    text-align: center;
}

.rank-row img {
    width: 54px;
    height: 70px;
    object-fit: cover;
    border-radius: 12px;
}

.rank-info {
    min-width: 0;
    display: grid;
    gap: 5px;
}

.rank-info strong {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.rank-info em {
    overflow: hidden;
    color: #64748b;
    font-size: 12px;
    font-style: normal;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.rank-action {
    border-radius: 999px;
    padding: 7px 10px;
    color: white;
    font-size: 12px;
    font-weight: 800;
    background: var(--blue-600);
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    color: white;
    background:
        radial-gradient(circle at 18% 20%, rgba(34, 211, 238, 0.28), transparent 34%),
        linear-gradient(135deg, #0f172a, #1e3a8a 58%, #020617);
}

.page-hero {
    min-height: 380px;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 86px 24px;
}

.page-hero h1 {
    position: relative;
    z-index: 2;
    margin: 0 0 16px;
    font-size: clamp(36px, 5vw, 64px);
    letter-spacing: -0.06em;
}

.page-hero p {
    position: relative;
    z-index: 2;
    max-width: 760px;
    margin: 0 auto;
    color: #dbeafe;
    font-size: 18px;
    line-height: 1.8;
}

.page-hero-image,
.page-hero-mask {
    position: absolute;
    inset: 0;
}

.page-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.32;
}

.page-hero-mask {
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.84), rgba(30, 58, 138, 0.72));
}

.page-hero-content {
    position: relative;
    z-index: 2;
    width: min(920px, 100%);
    text-align: left;
}

.page-hero-content .hero-actions {
    margin-top: 24px;
}

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

.category-large-card {
    min-height: 320px;
}

.category-large-card h2 {
    margin: 10px 0 10px;
    font-size: 34px;
}

.category-label {
    align-self: flex-start;
    border-radius: 999px;
    padding: 7px 11px;
    color: #cffafe;
    font-size: 12px;
    font-weight: 900;
    background: rgba(255, 255, 255, 0.12);
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) 180px;
    gap: 14px;
    margin: 0 0 24px;
    border-radius: 22px;
    padding: 16px;
    background: white;
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
}

.search-box,
.select-box {
    display: grid;
    gap: 8px;
    color: #475569;
    font-size: 13px;
    font-weight: 800;
}

.search-box input,
.select-box select {
    border: 1px solid #e2e8f0;
    background: #f8fafc;
}

.full-rank-list .rank-row {
    grid-template-columns: 52px 64px 1fr auto;
    background: white;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.search-page-form {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(220px, 520px) auto;
    gap: 10px;
    width: min(720px, 100%);
    margin: 28px auto 0;
    padding: 8px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tag-cloud button {
    border: 1px solid #bae6fd;
    border-radius: 999px;
    padding: 10px 16px;
    color: #0369a1;
    font-weight: 800;
    background: #e0f2fe;
    cursor: pointer;
    transition: 0.25s ease;
}

.tag-cloud button:hover {
    color: white;
    background: var(--blue-600);
    transform: translateY(-2px);
}

.search-empty {
    border-radius: 22px;
    padding: 36px;
    text-align: center;
    color: #64748b;
    background: white;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.detail-hero {
    min-height: 560px;
}

.detail-backdrop,
.detail-hero-mask {
    position: absolute;
    inset: 0;
}

.detail-backdrop {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.34;
    filter: blur(1px);
}

.detail-hero-mask {
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(15, 23, 42, 0.72), rgba(2, 6, 23, 0.42)),
        linear-gradient(0deg, rgba(2, 6, 23, 0.88), transparent 60%);
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 48px 0 64px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 34px;
    color: #bfdbfe;
    font-size: 14px;
}

.breadcrumb a:hover {
    color: white;
}

.detail-hero-grid {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 34px;
    align-items: center;
}

.detail-poster {
    width: 260px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 28px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
}

.detail-summary h1 {
    margin: 0 0 18px;
    font-size: clamp(36px, 5vw, 68px);
    line-height: 1.08;
    letter-spacing: -0.06em;
}

.detail-summary p {
    max-width: 820px;
    color: #dbeafe;
    font-size: 18px;
    line-height: 1.8;
}

.detail-summary .primary-button {
    display: inline-flex;
    margin-top: 24px;
}

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

.detail-main,
.related-panel,
.detail-article {
    min-width: 0;
}

.player-card {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    background: #020617;
    box-shadow: var(--shadow);
}

.movie-video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #020617;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: white;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.52), rgba(2, 6, 23, 0.16));
    cursor: pointer;
    transition: 0.25s ease;
}

.play-overlay span {
    width: 86px;
    height: 86px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding-left: 6px;
    font-size: 38px;
    color: var(--blue-600);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 16px 46px rgba(2, 6, 23, 0.42);
}

.play-overlay:hover span {
    transform: scale(1.06);
}

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

.detail-article {
    margin-top: 24px;
    border-radius: 26px;
    padding: 28px;
    background: white;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.detail-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.detail-badges span {
    border-radius: 999px;
    padding: 8px 12px;
    color: #0f172a;
    font-size: 13px;
    font-weight: 800;
    background: #f1f5f9;
}

.detail-article h2,
.related-panel h2 {
    margin: 0 0 16px;
    color: #0f172a;
    font-size: 24px;
}

.detail-article p {
    color: #475569;
    font-size: 16px;
    line-height: 1.9;
}

.lead-text {
    color: #1e293b !important;
    font-weight: 700;
}

.related-panel {
    position: sticky;
    top: 112px;
    border-radius: 26px;
    padding: 22px;
    background: white;
    box-shadow: var(--shadow);
}

.side-grid {
    grid-template-columns: 1fr;
    gap: 16px;
}

.side-grid .movie-card {
    display: grid;
    grid-template-columns: 96px 1fr;
}

.side-grid .poster-link {
    height: 132px;
    aspect-ratio: auto;
}

.side-grid .movie-card-body {
    padding: 12px;
}

.side-grid .movie-card-body p,
.side-grid .movie-tags {
    display: none;
}

.site-footer {
    color: #cbd5e1;
    background: linear-gradient(180deg, #0f172a, #020617);
    margin-top: 42px;
}

.footer-grid {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 52px 0 30px;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 32px;
}

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

.site-footer p {
    margin: 0;
    line-height: 1.8;
}

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

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

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

[data-movie-card].is-hidden,
.rank-row.is-hidden {
    display: none;
}

@media (max-width: 1080px) {
    .hero-section,
    .two-column-layout,
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .ranking-panel,
    .related-panel {
        position: static;
    }

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

@media (max-width: 820px) {
    .desktop-nav,
    .category-ribbon {
        display: none;
    }

    .mobile-menu-button {
        display: block;
    }

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

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

    .hero-section {
        min-height: auto;
        padding-top: 44px;
        grid-template-columns: 1fr;
    }

    .hero-stage {
        min-height: 560px;
    }

    .hero-dots {
        grid-template-columns: 1fr;
        max-height: 190px;
        overflow: auto;
    }

    .hero-dot {
        grid-template-columns: 42px 1fr;
    }

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

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

    .filter-panel,
    .search-page-form,
    .hero-search {
        grid-template-columns: 1fr;
    }

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

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

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

@media (max-width: 560px) {
    .brand-text strong {
        font-size: 17px;
    }

    .brand-text em {
        display: none;
    }

    .hero-static-copy h1 {
        font-size: 38px;
    }

    .hero-stage {
        min-height: 520px;
        border-radius: 24px;
    }

    .hero-slide-content {
        left: 18px;
        right: 18px;
        bottom: 190px;
    }

    .hero-slide-content h2 {
        font-size: 31px;
    }

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

    .rank-row,
    .full-rank-list .rank-row {
        grid-template-columns: 40px 54px 1fr;
    }

    .rank-action {
        display: none;
    }

    .side-grid .movie-card {
        grid-template-columns: 88px 1fr;
    }

    .detail-article,
    .related-panel {
        padding: 18px;
    }
}
