:root {
    color-scheme: light;
    --color-bg: #f8fafc;
    --color-surface: #ffffff;
    --color-surface-soft: #eff6ff;
    --color-text: #0f172a;
    --color-muted: #64748b;
    --color-line: #e2e8f0;
    --color-primary: #2563eb;
    --color-primary-dark: #1d4ed8;
    --color-cyan: #06b6d4;
    --color-teal: #14b8a6;
    --color-green: #10b981;
    --color-warm: #f59e0b;
    --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08);
    --shadow-strong: 0 20px 60px rgba(15, 23, 42, 0.22);
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--color-text);
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 46%, #f8fafc 100%);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
    backdrop-filter: blur(14px);
}

.site-nav {
    max-width: var(--container);
    height: 68px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
}

.site-logo-mark {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--color-primary), var(--color-cyan));
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.28);
}

.site-logo-text {
    font-size: 21px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-cyan));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
}

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

.nav-link,
.mobile-nav-link {
    padding: 9px 14px;
    color: #334155;
    border-radius: 999px;
    font-weight: 650;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-nav-link:hover,
.mobile-nav-link.is-active {
    color: var(--color-primary);
    background: #eff6ff;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: #eff6ff;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 21px;
    height: 2px;
    margin: 5px auto;
    border-radius: 2px;
    background: #1e293b;
}

.mobile-nav {
    display: none;
    padding: 0 20px 18px;
    border-top: 1px solid var(--color-line);
}

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

.mobile-nav-link {
    display: block;
    margin: 8px auto;
    max-width: var(--container);
}

.mobile-category-links {
    max-width: var(--container);
    margin: 12px auto 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mobile-category-links a {
    padding: 7px 12px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-size: 13px;
}

.site-hero {
    position: relative;
    min-height: 600px;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(120deg, #2563eb 0%, #06b6d4 50%, #14b8a6 100%);
}

.hero-pattern,
.hero-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-pattern {
    opacity: 0.26;
    background-image:
        radial-gradient(circle at 25% 20%, rgba(255, 255, 255, 0.42) 0, rgba(255, 255, 255, 0.15) 16%, transparent 34%),
        radial-gradient(circle at 80% 15%, rgba(255, 255, 255, 0.22) 0, transparent 30%),
        linear-gradient(45deg, rgba(255, 255, 255, 0.14) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.14) 50%, rgba(255, 255, 255, 0.14) 75%, transparent 75%);
    background-size: auto, auto, 60px 60px;
}

.hero-overlay {
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.48), rgba(15, 23, 42, 0.18));
}

.hero-inner {
    position: relative;
    z-index: 2;
    max-width: var(--container);
    min-height: 600px;
    margin: 0 auto;
    padding: 54px 20px 42px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-slide {
    display: none;
    grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.78fr);
    align-items: center;
    gap: 56px;
}

.hero-slide.is-active {
    display: grid;
    animation: heroFade 0.55s ease both;
}

@keyframes heroFade {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-copy {
    max-width: 660px;
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #dffafe;
    font-size: 14px;
    font-weight: 750;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.section-kicker {
    color: var(--color-primary);
}

.hero-copy h1,
.page-hero h1 {
    margin: 14px 0 18px;
    font-size: clamp(38px, 5vw, 66px);
    line-height: 1.04;
    letter-spacing: -0.055em;
}

.hero-copy p,
.page-hero p {
    margin: 0;
    max-width: 720px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 20px;
}

.hero-tags,
.detail-tags {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-tags span,
.detail-tags span {
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(8px);
    font-size: 13px;
    font-weight: 650;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 12px 22px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
    color: var(--color-primary);
    background: #ffffff;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.22);
}

.btn-ghost {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.13);
    border-color: rgba(255, 255, 255, 0.32);
}

.btn-outline {
    color: var(--color-primary);
    background: #ffffff;
    border-color: #bfdbfe;
}

.hero-visual {
    position: relative;
    min-height: 430px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-visual::before,
.hero-visual::after {
    content: "";
    position: absolute;
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: var(--shadow-strong);
    transform: rotate(-7deg);
}

.hero-visual::before {
    width: 76%;
    height: 76%;
    left: 2%;
    top: 12%;
}

.hero-visual::after {
    width: 66%;
    height: 66%;
    right: 0;
    bottom: 4%;
    transform: rotate(8deg);
}

.hero-visual img {
    position: relative;
    z-index: 2;
    width: min(360px, 78vw);
    height: 430px;
    object-fit: cover;
    border-radius: 28px;
    border: 7px solid rgba(255, 255, 255, 0.32);
    background: linear-gradient(135deg, #1d4ed8, #06b6d4);
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.38);
}

.hero-visual-card {
    position: absolute;
    z-index: 3;
    left: 0;
    right: 0;
    bottom: 16px;
    width: min(320px, 80%);
    margin: auto;
    padding: 16px 18px;
    border-radius: 20px;
    color: #0f172a;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(16px);
}

.hero-visual-card strong,
.hero-visual-card small {
    display: block;
}

.hero-visual-card small {
    color: var(--color-muted);
}

.hero-search-panel {
    margin-top: 34px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 18px;
}

.hero-search {
    max-width: 720px;
    padding: 16px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.26);
    backdrop-filter: blur(12px);
}

.hero-search label {
    display: block;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 700;
}

.hero-search-line {
    display: flex;
    gap: 10px;
}

.hero-search input,
.hero-search button,
.search-panel input,
.search-panel select,
.search-panel button,
.filter-bar input,
.filter-bar select {
    border: 0;
    outline: none;
    border-radius: 14px;
}

.hero-search input {
    flex: 1;
    min-width: 0;
    padding: 14px 16px;
    color: #0f172a;
    background: #ffffff;
}

.hero-search button,
.search-panel button {
    padding: 0 22px;
    color: #ffffff;
    background: #0f172a;
    cursor: pointer;
    font-weight: 800;
}

.hero-dots {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.hero-dot {
    width: 12px;
    height: 12px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
    cursor: pointer;
}

.hero-dot.is-active {
    width: 32px;
    background: #ffffff;
}

.stats-strip {
    max-width: var(--container);
    margin: -36px auto 0;
    padding: 0 20px;
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.stats-strip div {
    padding: 22px;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(226, 232, 240, 0.86);
}

.stats-strip strong {
    display: block;
    color: var(--color-primary);
    font-size: 30px;
    line-height: 1;
}

.stats-strip span {
    color: var(--color-muted);
    font-size: 14px;
}

.content-section,
.split-section,
.detail-wrap {
    max-width: var(--container);
    margin: 0 auto;
    padding: 72px 20px 0;
}

.content-section--tight {
    padding-top: 54px;
}

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

.section-heading h2 {
    margin: 4px 0 0;
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.18;
    letter-spacing: -0.035em;
}

.section-heading--compact h2 {
    font-size: 24px;
}

.section-more {
    color: var(--color-primary);
    font-weight: 800;
    white-space: nowrap;
}

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

.category-card,
.category-overview-card,
.detail-card,
.side-card,
.ranking-panel,
.search-panel,
.filter-bar,
.sitemap-section {
    border: 1px solid rgba(226, 232, 240, 0.9);
    background: var(--color-surface);
    box-shadow: var(--shadow-soft);
}

.category-card {
    min-height: 250px;
    padding: 22px;
    border-radius: 24px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover,
.movie-card:hover,
.category-overview-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 46px rgba(15, 23, 42, 0.13);
}

.category-card-icon,
.category-overview-head span {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--color-primary), var(--color-cyan));
}

.category-card strong,
.category-card em,
.category-card small,
.category-samples span {
    display: block;
}

.category-card strong {
    margin-top: 18px;
    font-size: 20px;
}

.category-card em {
    margin: 3px 0 10px;
    color: var(--color-primary);
    font-style: normal;
    font-weight: 800;
}

.category-card small {
    color: var(--color-muted);
}

.category-samples {
    margin-top: 18px;
    display: grid;
    gap: 6px;
    color: #475569;
    font-size: 13px;
}

.movie-grid {
    display: grid;
    gap: 20px;
}

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

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

.movie-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 22px;
    color: inherit;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.88);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-poster-frame {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #1d4ed8, #06b6d4 55%, #14b8a6);
}

.movie-card--compact .movie-poster-frame {
    aspect-ratio: 4 / 3;
}

.movie-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease, opacity 0.2s ease;
}

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

.movie-poster.is-missing {
    opacity: 0;
}

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 38%, rgba(15, 23, 42, 0.68));
}

.poster-play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--color-primary);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.24);
    transform: translate(-50%, -50%) scale(0.88);
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.poster-year,
.rank-badge {
    position: absolute;
    top: 12px;
    padding: 5px 9px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(8px);
}

.poster-year {
    right: 12px;
}

.rank-badge {
    left: 12px;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.movie-card-body {
    padding: 16px;
    display: grid;
    gap: 8px;
}

.movie-card-body strong {
    min-height: 1.2em;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 16px;
    line-height: 1.35;
}

.movie-one-line {
    min-height: 2.8em;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    color: var(--color-muted);
    font-size: 13px;
}

.movie-meta-line {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    color: #475569;
    font-size: 12px;
}

.movie-meta-line em {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-style: normal;
}

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

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

.ranking-panel {
    align-self: start;
    padding: 22px;
    border-radius: 24px;
}

.ranking-panel--large {
    align-self: stretch;
}

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

.ranking-list--full {
    max-height: 1120px;
    overflow: auto;
    padding-right: 4px;
}

.ranking-row {
    display: grid;
    grid-template-columns: 38px 62px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 16px;
    transition: background 0.2s ease;
}

.ranking-row:hover {
    background: #f8fafc;
}

.ranking-number {
    color: var(--color-primary);
    font-weight: 900;
}

.ranking-row img {
    width: 62px;
    height: 44px;
    object-fit: cover;
    border-radius: 10px;
    background: linear-gradient(135deg, #1d4ed8, #06b6d4);
}

.ranking-info {
    min-width: 0;
}

.ranking-info strong,
.ranking-info small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ranking-info small {
    color: var(--color-muted);
}

.ranking-score {
    color: var(--color-warm);
    font-weight: 900;
}

.page-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(120deg, #2563eb 0%, #06b6d4 55%, #14b8a6 100%);
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.22;
    background-image:
        radial-gradient(circle at 14% 22%, rgba(255, 255, 255, 0.75), transparent 26%),
        radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.36), transparent 25%);
}

.page-hero > div {
    position: relative;
    z-index: 1;
    max-width: var(--container);
    margin: 0 auto;
    padding: 82px 20px;
}

.page-hero--ranking {
    background: linear-gradient(120deg, #1d4ed8, #7c3aed 52%, #db2777);
}

.page-hero--search {
    background: linear-gradient(120deg, #0f766e, #2563eb 58%, #06b6d4);
}

.page-hero--sitemap {
    background: linear-gradient(120deg, #334155, #2563eb 55%, #0891b2);
}

.filter-bar,
.search-panel {
    margin-bottom: 28px;
    padding: 18px;
    border-radius: 22px;
    display: grid;
    grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(150px, 0.5fr)) auto;
    gap: 14px;
    align-items: end;
}

.search-panel {
    grid-template-columns: minmax(260px, 1fr) 180px 160px auto;
}

.filter-bar label,
.search-panel label {
    display: grid;
    gap: 6px;
    color: #475569;
    font-size: 13px;
    font-weight: 800;
}

.filter-bar input,
.filter-bar select,
.search-panel input,
.search-panel select {
    width: 100%;
    min-height: 44px;
    padding: 0 12px;
    color: #0f172a;
    border: 1px solid var(--color-line);
    background: #f8fafc;
}

.filter-count {
    min-height: 44px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    border-radius: 14px;
    color: var(--color-muted);
    background: #f8fafc;
    white-space: nowrap;
}

.search-summary {
    margin-bottom: 20px;
    color: var(--color-muted);
    font-weight: 700;
}

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

.category-overview-card {
    padding: 24px;
    border-radius: 24px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-overview-head {
    display: flex;
    align-items: center;
    gap: 16px;
}

.category-overview-head h2,
.category-overview-head p {
    margin: 0;
}

.category-overview-head p {
    color: var(--color-muted);
}

.category-count {
    margin: 22px 0;
    padding: 18px;
    border-radius: 18px;
    background: linear-gradient(135deg, #eff6ff, #ecfeff);
}

.category-count strong {
    display: block;
    color: var(--color-primary);
    font-size: 36px;
    line-height: 1;
}

.category-count small {
    color: var(--color-muted);
}

.category-mini-list {
    margin: 0 0 22px;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}

.category-mini-list li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: #475569;
}

.category-mini-list a {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.detail-wrap {
    padding-top: 28px;
}

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

.breadcrumb a {
    color: var(--color-primary);
    font-weight: 750;
}

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

.detail-main,
.detail-sidebar {
    min-width: 0;
    display: grid;
    align-content: start;
    gap: 22px;
}

.player-shell {
    overflow: hidden;
    border-radius: 28px;
    background: #020617;
    box-shadow: var(--shadow-strong);
}

.player-stage {
    position: relative;
    aspect-ratio: 16 / 9;
    background: radial-gradient(circle at center, rgba(37, 99, 235, 0.2), #020617 70%);
}

.movie-player {
    width: 100%;
    height: 100%;
    background: #000000;
}

.player-start {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 176px;
    height: 68px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    color: #ffffff;
    background: rgba(37, 99, 235, 0.82);
    box-shadow: 0 24px 55px rgba(0, 0, 0, 0.36);
    backdrop-filter: blur(12px);
    cursor: pointer;
}

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

.player-start span {
    font-size: 24px;
}

.player-status {
    position: absolute;
    left: 18px;
    bottom: 18px;
    padding: 7px 10px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.86);
    background: rgba(15, 23, 42, 0.68);
    font-size: 13px;
}

.detail-card,
.side-card,
.poster-panel {
    border-radius: 24px;
}

.detail-card {
    padding: 28px;
}

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

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

.detail-one-line {
    color: #334155;
    font-size: 18px;
    font-weight: 700;
}

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

.detail-meta-grid div {
    padding: 16px;
    border-radius: 18px;
    background: #f8fafc;
}

.detail-meta-grid span,
.detail-meta-grid strong {
    display: block;
}

.detail-meta-grid span {
    color: var(--color-muted);
    font-size: 12px;
}

.detail-meta-grid strong {
    margin-top: 4px;
}

.detail-card h2 {
    margin: 28px 0 10px;
    font-size: 23px;
}

.detail-card p {
    color: #334155;
    white-space: pre-wrap;
}

.detail-tags span {
    color: var(--color-primary);
    background: #eff6ff;
    border-color: #bfdbfe;
}

.inline-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.inline-links a {
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--color-primary);
    background: #eff6ff;
    font-weight: 750;
}

.poster-panel,
.side-card {
    padding: 18px;
    background: #ffffff;
    border: 1px solid var(--color-line);
    box-shadow: var(--shadow-soft);
}

.poster-panel img {
    width: 100%;
    aspect-ratio: 16 / 11;
    object-fit: cover;
    border-radius: 18px;
    background: linear-gradient(135deg, #1d4ed8, #06b6d4);
}

.poster-panel strong,
.poster-panel small {
    display: block;
}

.poster-panel strong {
    margin-top: 14px;
    font-size: 20px;
}

.poster-panel small {
    color: var(--color-muted);
}

.side-card h2 {
    margin: 0 0 14px;
}

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

.info-list li {
    display: grid;
    gap: 3px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
}

.info-list span {
    color: var(--color-muted);
    font-size: 12px;
}

.side-related {
    display: grid;
    gap: 12px;
}

.side-related .movie-card {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    border-radius: 18px;
}

.side-related .movie-poster-frame {
    aspect-ratio: auto;
    min-height: 100%;
}

.side-related .movie-one-line {
    -webkit-line-clamp: 1;
    min-height: auto;
}

.sitemap-content {
    display: grid;
    gap: 28px;
}

.sitemap-section {
    padding: 24px;
    border-radius: 24px;
}

.sitemap-list {
    margin: 0;
    padding: 0;
    list-style: none;
    columns: 2;
    column-gap: 28px;
}

.sitemap-list li {
    break-inside: avoid;
    display: grid;
    gap: 3px;
    padding: 9px 0;
    border-bottom: 1px solid #f1f5f9;
}

.sitemap-list a {
    color: #0f172a;
    font-weight: 700;
}

.sitemap-list span {
    color: var(--color-muted);
    font-size: 12px;
}

.site-footer {
    margin-top: 86px;
    color: #ffffff;
    background: linear-gradient(135deg, #0f172a, #1e293b);
}

.footer-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 46px 20px;
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 30px;
}

.footer-brand p,
.footer-column p,
.footer-column a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-column h3 {
    margin: 0 0 14px;
}

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

.footer-column a:hover {
    color: #ffffff;
}

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

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

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

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

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

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

    .nav-toggle {
        display: block;
    }

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

    .hero-inner,
    .site-hero {
        min-height: auto;
    }

    .hero-inner {
        padding-top: 42px;
    }

    .hero-visual {
        min-height: 320px;
    }

    .hero-visual img {
        height: 330px;
    }

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

    .hero-dots {
        justify-content: flex-start;
    }

    .stats-strip {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

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

    .sitemap-list {
        columns: 1;
    }
}

@media (max-width: 560px) {
    .site-nav {
        height: 62px;
        padding: 0 14px;
    }

    .site-logo-mark {
        width: 38px;
        height: 38px;
    }

    .site-logo-text {
        font-size: 18px;
    }

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

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

    .hero-search-line,
    .hero-actions {
        flex-direction: column;
    }

    .hero-search button {
        min-height: 44px;
    }

    .stats-strip,
    .category-overview-grid,
    .category-grid,
    .movie-grid--cards,
    .movie-grid--six,
    .filter-bar,
    .search-panel,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .content-section,
    .split-section,
    .detail-wrap {
        padding-top: 46px;
    }

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

    .side-related .movie-card {
        grid-template-columns: 96px minmax(0, 1fr);
    }
}
