:root {
    --bg: #020617;
    --panel: rgba(15, 23, 42, 0.86);
    --panel-strong: #0f172a;
    --panel-soft: rgba(30, 41, 59, 0.78);
    --line: rgba(59, 130, 246, 0.28);
    --text: #e5edf8;
    --muted: #94a3b8;
    --subtle: #64748b;
    --accent: #22d3ee;
    --accent-2: #60a5fa;
    --accent-3: #38bdf8;
    --danger: #f97316;
    --radius: 22px;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(14, 165, 233, 0.18), transparent 32rem),
        radial-gradient(circle at 80% 0%, rgba(59, 130, 246, 0.16), transparent 26rem),
        linear-gradient(180deg, #020617 0%, #0f172a 48%, #020617 100%);
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    min-height: 100vh;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(rgba(255, 255, 255, 0.032) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.72), transparent 72%);
    z-index: -1;
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(18px);
    background: rgba(2, 6, 23, 0.74);
    border-bottom: 1px solid rgba(59, 130, 246, 0.22);
}

.header-shell,
.footer-shell,
.page-shell {
    width: min(1220px, calc(100% - 36px));
    margin: 0 auto;
}

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

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

.brand-mark {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    color: white;
    border-radius: 13px;
    background: linear-gradient(135deg, #60a5fa, #22d3ee);
    box-shadow: 0 14px 34px rgba(34, 211, 238, 0.24);
}

.brand-text {
    font-size: 1.28rem;
    background: linear-gradient(90deg, #60a5fa, #22d3ee, #93c5fd);
    background-clip: text;
    color: transparent;
}

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

.main-nav a,
.nav-dropdown > button {
    border: 0;
    color: #cbd5e1;
    background: transparent;
    padding: 10px 13px;
    border-radius: 12px;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover,
.nav-dropdown > button:hover,
.main-nav .is-active {
    color: var(--accent);
    background: rgba(14, 165, 233, 0.1);
}

.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    width: 210px;
    display: grid;
    gap: 4px;
    padding: 10px;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.96);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.menu-toggle {
    width: 44px;
    height: 44px;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 1px solid var(--line);
    color: white;
    background: rgba(15, 23, 42, 0.78);
    border-radius: 14px;
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    background: currentColor;
    border-radius: 999px;
}

.hero-section {
    width: min(1280px, calc(100% - 24px));
    min-height: 620px;
    margin: 26px auto 44px;
    position: relative;
    overflow: hidden;
    border-radius: 32px;
    border: 1px solid rgba(96, 165, 250, 0.26);
    background: #020617;
    box-shadow: var(--shadow);
}

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

.hero-slide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease, transform 0.8s ease;
    transform: scale(1.02);
}

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

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--hero-image);
    background-size: cover;
    background-position: center;
    filter: blur(18px) saturate(1.18) brightness(0.58);
    transform: scale(1.06);
}

.hero-backdrop {
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.74) 42%, rgba(2, 6, 23, 0.36) 100%),
        radial-gradient(circle at 70% 42%, rgba(34, 211, 238, 0.28), transparent 28rem);
}

.hero-content {
    position: relative;
    min-height: 620px;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) 380px;
    align-items: center;
    gap: 56px;
    padding: 72px clamp(28px, 6vw, 86px);
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--accent);
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    font-weight: 800;
}

.hero-copy h1,
.page-hero h1,
.detail-info h1 {
    margin: 0;
    color: white;
    line-height: 1.05;
    font-size: clamp(2.4rem, 6vw, 5.6rem);
    letter-spacing: -0.06em;
}

.hero-summary {
    max-width: 700px;
    margin: 22px 0 0;
    color: #cbd5e1;
    font-size: 1.08rem;
    line-height: 1.9;
}

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

.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 10px;
    color: #c7f9ff;
    font-size: 0.78rem;
    border: 1px solid rgba(34, 211, 238, 0.3);
    border-radius: 999px;
    background: rgba(8, 145, 178, 0.12);
}

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

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

.primary-button,
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 16px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.primary-button {
    color: #00111b;
    background: linear-gradient(135deg, #67e8f9, #60a5fa);
    box-shadow: 0 16px 38px rgba(34, 211, 238, 0.25);
}

.ghost-button {
    color: #dbeafe;
    border: 1px solid rgba(147, 197, 253, 0.32);
    background: rgba(15, 23, 42, 0.5);
}

.primary-button:hover,
.ghost-button:hover {
    transform: translateY(-2px);
}

.hero-poster {
    position: relative;
    aspect-ratio: 3 / 4.25;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid rgba(125, 211, 252, 0.36);
    box-shadow: 0 36px 90px rgba(0, 0, 0, 0.58);
    transform: rotate(2deg);
}

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

.hero-poster span {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    color: #03111f;
    background: rgba(103, 232, 249, 0.92);
    border-radius: 999px;
    transform: translate(-50%, -50%);
    box-shadow: 0 18px 38px rgba(34, 211, 238, 0.34);
}

.hero-control-panel {
    position: absolute;
    left: clamp(24px, 6vw, 82px);
    right: clamp(24px, 6vw, 82px);
    bottom: 28px;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.hero-dots,
.hero-arrows {
    display: flex;
    gap: 9px;
}

.hero-dots button,
.hero-arrows button {
    border: 0;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, width 0.2s ease;
}

.hero-dots button {
    width: 9px;
    height: 9px;
    padding: 0;
    border-radius: 999px;
    background: rgba(226, 232, 240, 0.36);
}

.hero-dots button.is-active {
    width: 34px;
    background: var(--accent);
}

.hero-arrows button {
    width: 42px;
    height: 42px;
    color: white;
    font-size: 1.6rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(125, 211, 252, 0.3);
}

.hero-side-list {
    position: absolute;
    right: 28px;
    bottom: 28px;
    z-index: 6;
    width: 360px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.hero-mini-card {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 10px;
    align-items: center;
    padding: 8px;
    border: 1px solid rgba(125, 211, 252, 0.18);
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(12px);
}

.hero-mini-card img {
    width: 48px;
    height: 60px;
    object-fit: cover;
    border-radius: 11px;
}

.hero-mini-card span {
    color: #e2e8f0;
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.35;
}

.home-search {
    margin-top: -16px;
}

.inner-page {
    padding-top: 36px;
    padding-bottom: 70px;
}

.page-shell section + section,
.page-shell .filter-panel + section {
    margin-top: 34px;
}

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

.section-heading h2 {
    margin: 0;
    color: white;
    font-size: clamp(1.55rem, 3vw, 2.2rem);
    letter-spacing: -0.03em;
}

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

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

.movie-card {
    min-width: 0;
}

.movie-link {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.82), rgba(15, 23, 42, 0.94));
    border: 1px solid rgba(59, 130, 246, 0.22);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.2);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-link:hover {
    transform: translateY(-6px);
    border-color: rgba(34, 211, 238, 0.52);
    box-shadow: 0 24px 60px rgba(14, 165, 233, 0.13);
}

.poster-frame {
    position: relative;
    aspect-ratio: 3 / 4.15;
    overflow: hidden;
    background: #0f172a;
}

.poster-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, filter 0.4s ease;
}

.movie-link:hover .poster-frame img {
    transform: scale(1.05);
    filter: saturate(1.1) brightness(0.88);
}

.poster-frame::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 48%;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.9), transparent);
}

.poster-badge,
.poster-play {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.72rem;
}

.poster-badge {
    left: 10px;
    top: 10px;
    padding: 5px 9px;
    color: #dffbff;
    border: 1px solid rgba(103, 232, 249, 0.36);
    background: rgba(8, 47, 73, 0.76);
}

.poster-play {
    right: 10px;
    bottom: 10px;
    padding: 6px 10px;
    color: #00111b;
    background: linear-gradient(135deg, #67e8f9, #60a5fa);
}

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

.movie-card-body h3 {
    margin: 0;
    color: white;
    font-size: 1rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-card-body p {
    margin: 0;
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    color: var(--subtle);
    font-size: 0.76rem;
}

.movie-meta-line span + span::before {
    content: "·";
    margin-right: 6px;
    color: #475569;
}

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

.content-panel {
    border: 1px solid rgba(59, 130, 246, 0.22);
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.78), rgba(15, 23, 42, 0.88));
    box-shadow: 0 20px 65px rgba(0, 0, 0, 0.24);
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 22px;
}

.large-panel,
.rank-panel {
    padding: 24px;
}

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

.category-card {
    min-height: 158px;
    position: relative;
    display: flex;
    align-items: end;
    overflow: hidden;
    padding: 18px;
    border-radius: 20px;
    border: 1px solid rgba(125, 211, 252, 0.2);
    background: rgba(15, 23, 42, 0.8);
}

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

.category-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.14));
}

.category-card:hover img {
    opacity: 0.45;
    transform: scale(1.06);
}

.category-card div {
    position: relative;
    z-index: 1;
}

.category-card span {
    display: block;
    color: white;
    font-size: 1.16rem;
    font-weight: 900;
    margin-bottom: 7px;
}

.category-card p {
    margin: 0;
    color: #cbd5e1;
    font-size: 0.86rem;
    line-height: 1.6;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 36px 54px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 9px;
    border-radius: 16px;
    border: 1px solid rgba(59, 130, 246, 0.14);
    background: rgba(15, 23, 42, 0.52);
}

.rank-item strong {
    color: var(--accent);
}

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

.rank-item span {
    min-width: 0;
}

.rank-item b,
.rank-item em {
    display: block;
}

.rank-item b {
    color: white;
    font-size: 0.94rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-item em {
    color: var(--muted);
    font-size: 0.78rem;
    font-style: normal;
    margin-top: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.page-hero {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(96, 165, 250, 0.26);
    border-radius: 30px;
    padding: clamp(28px, 5vw, 58px);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(8, 47, 73, 0.72));
    box-shadow: var(--shadow);
}

.compact-hero h1,
.category-hero h1 {
    font-size: clamp(2.1rem, 5vw, 4rem);
}

.page-hero p:last-child {
    max-width: 760px;
    color: #cbd5e1;
    line-height: 1.8;
    margin-bottom: 0;
}

.category-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--hero-image);
    background-size: cover;
    background-position: center;
    opacity: 0.18;
    filter: blur(8px) saturate(1.2);
    transform: scale(1.04);
}

.category-hero > div {
    position: relative;
}

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

.breadcrumb a {
    color: #bfdbfe;
}

.breadcrumb strong {
    color: white;
}

.filter-panel {
    display: grid;
    gap: 14px;
    padding: 16px;
    border: 1px solid rgba(59, 130, 246, 0.24);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.68);
    backdrop-filter: blur(14px);
}

.search-box {
    display: grid;
    grid-template-columns: 36px 1fr;
    align-items: center;
    border: 1px solid rgba(125, 211, 252, 0.24);
    border-radius: 16px;
    background: rgba(2, 6, 23, 0.46);
}

.search-box span {
    display: grid;
    place-items: center;
    color: var(--accent);
    font-size: 1.15rem;
}

.search-box input {
    width: 100%;
    height: 48px;
    border: 0;
    outline: 0;
    color: white;
    background: transparent;
}

.search-box input::placeholder {
    color: #64748b;
}

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

.filter-chips button {
    border: 1px solid rgba(125, 211, 252, 0.22);
    color: #cbd5e1;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.76);
    cursor: pointer;
}

.filter-chips button.is-active,
.filter-chips button:hover {
    color: #00111b;
    background: linear-gradient(135deg, #67e8f9, #60a5fa);
}

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

.category-overview-card a {
    display: grid;
    grid-template-columns: 230px 1fr;
    overflow: hidden;
    border-radius: 26px;
    border: 1px solid rgba(59, 130, 246, 0.22);
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.82), rgba(15, 23, 42, 0.92));
}

.category-collage {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
    min-height: 230px;
}

.category-collage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.category-overview-body h2 {
    margin: 0 0 12px;
    color: white;
    font-size: 1.5rem;
}

.category-overview-body p {
    color: var(--muted);
    line-height: 1.75;
}

.category-overview-body span {
    color: var(--accent);
    font-weight: 800;
}

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

.wide-rank-card a {
    display: grid;
    grid-template-columns: 70px 96px 1fr;
    gap: 18px;
    align-items: center;
    padding: 14px;
    border-radius: 22px;
    border: 1px solid rgba(59, 130, 246, 0.22);
    background: rgba(15, 23, 42, 0.72);
}

.wide-rank-card strong {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    color: #00111b;
    border-radius: 18px;
    background: linear-gradient(135deg, #67e8f9, #60a5fa);
}

.wide-rank-card img {
    width: 96px;
    height: 126px;
    object-fit: cover;
    border-radius: 16px;
}

.wide-rank-card h3 {
    margin: 0 0 8px;
    color: white;
    font-size: 1.18rem;
}

.wide-rank-card p {
    margin: 0 0 10px;
    color: var(--muted);
    line-height: 1.7;
}

.wide-rank-card span {
    color: var(--accent);
    font-size: 0.86rem;
}

.detail-hero {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 34px;
    align-items: center;
    padding: 28px;
    border: 1px solid rgba(59, 130, 246, 0.24);
    border-radius: 30px;
    background:
        radial-gradient(circle at top right, rgba(34, 211, 238, 0.22), transparent 26rem),
        linear-gradient(135deg, rgba(30, 41, 59, 0.84), rgba(15, 23, 42, 0.94));
    box-shadow: var(--shadow);
}

.detail-cover {
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid rgba(125, 211, 252, 0.26);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

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

.detail-info h1 {
    font-size: clamp(2.1rem, 5vw, 4.6rem);
}

.detail-one-line {
    color: #dbeafe;
    font-size: 1.08rem;
    line-height: 1.8;
    margin: 18px 0 0;
}

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

.detail-meta span {
    padding: 8px 12px;
    color: #dbeafe;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(125, 211, 252, 0.22);
}

.detail-tags {
    margin: 18px 0 26px;
}

.player-card {
    margin-top: 28px;
}

.movie-player {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 28px;
    border: 1px solid rgba(125, 211, 252, 0.28);
    background: #000;
    box-shadow: var(--shadow);
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    border: 0;
    color: #00111b;
    cursor: pointer;
    background:
        radial-gradient(circle at center, rgba(34, 211, 238, 0.24), rgba(2, 6, 23, 0.7)),
        linear-gradient(180deg, rgba(2, 6, 23, 0.16), rgba(2, 6, 23, 0.76));
}

.player-overlay span {
    width: 88px;
    height: 88px;
    display: grid;
    place-items: center;
    padding-left: 5px;
    border-radius: 999px;
    color: #00111b;
    background: linear-gradient(135deg, #67e8f9, #60a5fa);
    box-shadow: 0 22px 52px rgba(34, 211, 238, 0.35);
    font-size: 2rem;
}

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

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

.detail-text,
.detail-aside {
    padding: 26px;
}

.detail-text h2,
.detail-aside h2 {
    margin: 0 0 14px;
    color: white;
}

.detail-text h2:not(:first-child) {
    margin-top: 26px;
}

.detail-text p {
    margin: 0;
    color: #cbd5e1;
    line-height: 1.95;
}

.detail-aside dl {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 14px 12px;
    margin: 0;
}

.detail-aside dt {
    color: var(--subtle);
}

.detail-aside dd {
    margin: 0;
    color: #dbeafe;
}

.detail-aside a {
    color: var(--accent);
}

.site-footer {
    margin-top: 60px;
    border-top: 1px solid rgba(59, 130, 246, 0.2);
    background: rgba(2, 6, 23, 0.5);
}

.footer-shell {
    display: grid;
    grid-template-columns: 1.1fr 1.8fr;
    gap: 28px;
    padding: 36px 0;
}

.footer-brand p {
    max-width: 520px;
    color: var(--muted);
    line-height: 1.8;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    justify-content: flex-end;
    align-content: start;
}

.footer-links a {
    color: #cbd5e1;
    font-size: 0.92rem;
}

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

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

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

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

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

    .hero-side-list {
        display: none;
    }

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

@media (max-width: 860px) {
    .menu-toggle {
        display: flex;
    }

    .main-nav {
        position: absolute;
        left: 18px;
        right: 18px;
        top: 76px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        border: 1px solid var(--line);
        border-radius: 20px;
        background: rgba(15, 23, 42, 0.98);
        box-shadow: var(--shadow);
    }

    .main-nav.is-open {
        display: flex;
    }

    .nav-dropdown {
        display: none;
    }

    .hero-section {
        min-height: 720px;
        border-radius: 24px;
    }

    .hero-content {
        min-height: 720px;
        grid-template-columns: 1fr;
        align-content: center;
        gap: 26px;
        padding: 42px 22px 86px;
    }

    .hero-poster {
        width: min(260px, 70vw);
        justify-self: center;
        order: -1;
    }

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

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

    .category-overview-card a,
    .detail-hero {
        grid-template-columns: 1fr;
    }

    .category-collage {
        min-height: 200px;
    }

    .detail-cover {
        max-width: 320px;
    }

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

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

@media (max-width: 620px) {
    .header-shell,
    .footer-shell,
    .page-shell {
        width: min(100% - 24px, 1220px);
    }

    .hero-section {
        width: min(100% - 16px, 1280px);
        margin-top: 14px;
    }

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

    .hero-summary,
    .detail-one-line {
        font-size: 0.98rem;
    }

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

    .primary-button,
    .ghost-button {
        width: 100%;
    }

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

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

    .movie-card-body p,
    .tag-row {
        display: none;
    }

    .wide-rank-card a {
        grid-template-columns: 52px 78px 1fr;
        gap: 12px;
    }

    .wide-rank-card strong {
        width: 44px;
        height: 44px;
        border-radius: 14px;
        font-size: 0.8rem;
    }

    .wide-rank-card img {
        width: 78px;
        height: 106px;
    }

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

    .detail-hero,
    .detail-text,
    .detail-aside,
    .large-panel,
    .rank-panel {
        padding: 18px;
    }

    .player-overlay span {
        width: 68px;
        height: 68px;
        font-size: 1.55rem;
    }
}
