:root {
    color-scheme: light;
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --cyan: #06b6d4;
    --teal: #14b8a6;
    --ink: #0f172a;
    --muted: #64748b;
    --line: rgba(148, 163, 184, 0.24);
    --soft: #f8fafc;
    --white: #ffffff;
    --shadow: 0 24px 70px rgba(15, 23, 42, 0.14);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--ink);
    background: #ffffff;
    line-height: 1.65;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    right: 0;
    color: #ffffff;
    transition: background 0.28s ease, box-shadow 0.28s ease, color 0.28s ease, backdrop-filter 0.28s ease;
}

.site-header.is-solid {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.10);
    backdrop-filter: blur(18px);
}

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

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

.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 16px;
    display: inline-grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--cyan));
    box-shadow: 0 18px 38px rgba(37, 99, 235, 0.32);
}

.brand-text {
    font-size: 1.22rem;
}

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

.nav-link {
    position: relative;
    font-weight: 700;
    opacity: 0.92;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -9px;
    width: 0;
    height: 3px;
    border-radius: 999px;
    background: currentColor;
    transition: width 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    opacity: 1;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

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

.header-search input,
.mobile-search input,
.search-page-form input,
.filter-panel input,
.filter-panel select,
.search-toolbar select {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 10px 14px;
    outline: none;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.92);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input {
    width: 190px;
}

.header-search input:focus,
.mobile-search input:focus,
.search-page-form input:focus,
.filter-panel input:focus,
.filter-panel select:focus,
.search-toolbar select:focus {
    border-color: rgba(37, 99, 235, 0.45);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.header-search button,
.mobile-search button,
.search-page-form button {
    border: 0;
    border-radius: 999px;
    padding: 10px 16px;
    color: #ffffff;
    background: var(--primary);
    cursor: pointer;
}

.mobile-menu-button {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.14);
    cursor: pointer;
}

.site-header.is-solid .mobile-menu-button {
    background: rgba(15, 23, 42, 0.06);
}

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

.mobile-panel {
    display: none;
    background: rgba(255, 255, 255, 0.98);
    color: var(--ink);
    border-top: 1px solid var(--line);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
}

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

.mobile-panel nav {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 8px;
    display: grid;
    gap: 10px;
}

.mobile-panel .nav-link {
    padding: 10px 14px;
    border-radius: 14px;
    background: #f8fafc;
}

.mobile-search {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 8px 0 18px;
}

.mobile-search input {
    flex: 1;
}

.hero-section {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb 0%, #06b6d4 52%, #14b8a6 100%);
}

.hero-bg-layer {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.30), transparent 28%),
        radial-gradient(circle at 82% 12%, rgba(34, 211, 238, 0.34), transparent 30%),
        linear-gradient(135deg, rgba(15, 23, 42, 0.34), rgba(15, 23, 42, 0.16));
}

.hero-glow {
    position: absolute;
    width: 330px;
    height: 330px;
    border-radius: 999px;
    filter: blur(22px);
    opacity: 0.28;
    background: #ffffff;
    animation: floatGlow 9s ease-in-out infinite;
}

.hero-glow.one {
    left: 8%;
    bottom: 12%;
}

.hero-glow.two {
    top: 12%;
    right: 7%;
    animation-delay: 1.7s;
}

@keyframes floatGlow {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(18px, -18px, 0) scale(1.08);
    }
}

.hero-inner {
    position: relative;
    z-index: 2;
    padding-top: 92px;
}

.hero-slide {
    display: none;
    align-items: center;
    grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.62fr);
    gap: 48px;
    animation: fadeUp 0.55s ease both;
}

.hero-slide.active {
    display: grid;
}

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 7px 12px;
    border-radius: 999px;
    color: #e0f2fe;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.24);
    font-size: 0.88rem;
    font-weight: 800;
}

.hero-text h1,
.page-hero h1,
.detail-info h1 {
    margin: 0;
    font-size: clamp(2.35rem, 7vw, 5.4rem);
    line-height: 1.02;
    letter-spacing: -0.055em;
    font-weight: 950;
    text-shadow: 0 18px 60px rgba(15, 23, 42, 0.28);
}

.hero-subtitle {
    max-width: 780px;
    margin: 24px 0 20px;
    font-size: clamp(1rem, 2.2vw, 1.36rem);
    color: rgba(255, 255, 255, 0.92);
}

.hero-movie-line {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
}

.hero-movie-line strong {
    font-size: 1.25rem;
}

.hero-movie-line span,
.hero-summary {
    color: rgba(255, 255, 255, 0.88);
}

.hero-summary {
    max-width: 720px;
    margin: 0 0 28px;
}

.hero-actions,
.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 20px;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn.primary {
    color: var(--primary);
    background: #ffffff;
    box-shadow: 0 18px 40px rgba(255, 255, 255, 0.20);
}

.btn.glass,
.btn.outline {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.32);
    backdrop-filter: blur(14px);
}

.btn.outline {
    background: transparent;
}

.hero-poster-card {
    position: relative;
    min-height: 520px;
    overflow: hidden;
    border-radius: 36px;
    border: 1px solid rgba(255, 255, 255, 0.26);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 36px 100px rgba(15, 23, 42, 0.32);
    backdrop-filter: blur(20px);
    transform: rotate(2deg);
    transition: transform 0.25s ease;
}

.hero-poster-card:hover {
    transform: rotate(0deg) translateY(-4px);
}

.hero-poster-card img,
.detail-poster img,
.poster-wrap img,
.rank-thumb img,
.detail-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-poster-info {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    padding: 16px;
    border-radius: 22px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.58);
    backdrop-filter: blur(14px);
}

.hero-poster-info span {
    display: block;
    margin-bottom: 4px;
    color: #bfdbfe;
    font-size: 0.86rem;
}

.hero-dots {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

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

.scroll-hint {
    position: absolute;
    z-index: 2;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.82);
    font-weight: 800;
    font-size: 0.9rem;
}

.section {
    padding: 74px 0;
}

.soft-bg {
    background: linear-gradient(180deg, #f8fafc, #eff6ff);
}

.stats-strip {
    padding: 34px 0;
    background: #ffffff;
}

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

.stats-grid div {
    padding: 22px;
    border-radius: 24px;
    background: #f8fafc;
    border: 1px solid var(--line);
}

.stats-grid strong {
    display: block;
    font-size: 2rem;
    line-height: 1;
    color: var(--primary);
}

.stats-grid span {
    color: var(--muted);
    font-weight: 700;
}

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

.section-head h2 {
    margin: 0 0 6px;
    font-size: clamp(1.8rem, 3.2vw, 2.7rem);
    line-height: 1.12;
    letter-spacing: -0.035em;
}

.section-head p {
    margin: 0;
    color: var(--muted);
}

.section-action {
    flex: none;
    padding: 10px 16px;
    border-radius: 999px;
    color: var(--primary);
    background: #eff6ff;
    font-weight: 900;
}

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

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

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

.movie-card-link {
    display: block;
    height: 100%;
    overflow: hidden;
    border-radius: var(--radius);
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card-link:hover {
    transform: translateY(-6px);
    border-color: rgba(37, 99, 235, 0.28);
    box-shadow: var(--shadow);
}

.poster-wrap {
    position: relative;
    aspect-ratio: 3 / 4.12;
    overflow: hidden;
    background: linear-gradient(135deg, #1d4ed8, #06b6d4);
}

.poster-fallback {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: rgba(255, 255, 255, 0.82);
    background:
        linear-gradient(135deg, rgba(37, 99, 235, 0.95), rgba(6, 182, 212, 0.80)),
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.26), transparent 36%);
    text-align: center;
    font-weight: 950;
    letter-spacing: 0.08em;
}

.poster-fallback.large {
    font-size: 1.15rem;
}

.poster-wrap img {
    position: relative;
    z-index: 1;
    transition: transform 0.32s ease;
}

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

.poster-year,
.poster-region,
.rank-badge {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    padding: 5px 9px;
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 900;
    background: rgba(15, 23, 42, 0.68);
    backdrop-filter: blur(10px);
}

.poster-year {
    left: 12px;
    bottom: 12px;
}

.poster-region {
    top: 12px;
    right: 12px;
    background: rgba(37, 99, 235, 0.85);
}

.rank-badge {
    left: 12px;
    top: 12px;
    background: rgba(239, 68, 68, 0.9);
}

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

.movie-card-body h3 {
    margin: 0 0 8px;
    font-size: 1.08rem;
    line-height: 1.28;
    letter-spacing: -0.012em;
}

.movie-card-body p {
    margin: 0 0 14px;
    color: var(--muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 3.3em;
}

.movie-meta-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: #475569;
    font-size: 0.88rem;
    font-weight: 800;
}

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

.tag-row,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.tag-row span,
.detail-tags span {
    padding: 5px 9px;
    border-radius: 999px;
    color: #1d4ed8;
    background: #eff6ff;
    font-size: 0.8rem;
    font-weight: 800;
}

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

.category-tile,
.category-overview-card {
    position: relative;
    overflow: hidden;
    min-height: 170px;
    padding: 22px;
    border-radius: 28px;
    color: #ffffff;
    box-shadow: 0 22px 50px rgba(15, 23, 42, 0.13);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-tile:hover,
.category-overview-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 70px rgba(15, 23, 42, 0.18);
}

.category-tile::after,
.category-overview-card::after {
    content: "";
    position: absolute;
    width: 130px;
    height: 130px;
    border-radius: 999px;
    right: -38px;
    top: -42px;
    background: rgba(255, 255, 255, 0.22);
}

.category-tile h3,
.category-overview-card h2 {
    position: relative;
    z-index: 1;
    margin: 16px 0 8px;
    font-size: 1.4rem;
}

.category-tile p,
.category-overview-card p,
.category-count {
    position: relative;
    z-index: 1;
}

.category-count {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    font-weight: 900;
}

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

.category-overview-card ul {
    position: relative;
    z-index: 1;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}

.category-overview-card li a {
    display: block;
    padding: 8px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.18);
}

.from-blue {
    background: linear-gradient(135deg, #2563eb, #06b6d4);
}

.from-red {
    background: linear-gradient(135deg, #ef4444, #f97316);
}

.from-purple {
    background: linear-gradient(135deg, #7c3aed, #ec4899);
}

.from-orange {
    background: linear-gradient(135deg, #f97316, #facc15);
}

.from-pink {
    background: linear-gradient(135deg, #ec4899, #fb7185);
}

.from-slate {
    background: linear-gradient(135deg, #0f172a, #475569);
}

.from-emerald {
    background: linear-gradient(135deg, #059669, #14b8a6);
}

.from-cyan {
    background: linear-gradient(135deg, #0891b2, #22d3ee);
}

.from-indigo {
    background: linear-gradient(135deg, #4f46e5, #2563eb);
}

.from-teal {
    background: linear-gradient(135deg, #0f766e, #2dd4bf);
}

.page-main {
    padding-top: 76px;
}

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

.compact-hero,
.category-hero {
    padding: 84px 0 72px;
}

.page-hero h1 {
    max-width: 880px;
    margin-bottom: 18px;
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.08rem;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.86);
    font-weight: 800;
}

.breadcrumb a:hover {
    color: #ffffff;
}

.filter-panel {
    margin-bottom: 26px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.filter-row {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 14px;
}

.filter-row label {
    display: grid;
    gap: 6px;
}

.filter-row label span {
    color: #475569;
    font-size: 0.86rem;
    font-weight: 900;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    border-radius: 14px;
    background: #f8fafc;
}

.filter-count {
    margin: 12px 0 0;
    color: var(--muted);
    font-weight: 800;
}

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

.rank-row {
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.07);
    overflow: hidden;
}

.rank-link {
    display: grid;
    grid-template-columns: 76px 96px minmax(0, 1fr) 92px;
    align-items: center;
    gap: 18px;
    padding: 14px;
}

.rank-number {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 18px;
    color: #ffffff;
    background: linear-gradient(135deg, #ef4444, #f97316);
    font-weight: 950;
    font-size: 1.18rem;
}

.rank-thumb {
    position: relative;
    width: 88px;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 16px;
    background: #e0f2fe;
}

.rank-content h2 {
    margin: 0 0 6px;
    font-size: 1.16rem;
}

.rank-content p {
    margin: 0 0 10px;
    color: var(--muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rank-score {
    text-align: center;
    color: var(--primary);
}

.rank-score strong {
    display: block;
    font-size: 1.8rem;
    line-height: 1;
}

.rank-score span {
    color: var(--muted);
    font-weight: 900;
}

.search-page-form {
    display: flex;
    gap: 10px;
    margin-top: 28px;
    max-width: 680px;
}

.search-page-form input {
    flex: 1;
    min-height: 52px;
}

.search-toolbar {
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.search-toolbar p {
    margin: 0;
    color: var(--muted);
    font-weight: 900;
}

.detail-hero {
    min-height: 580px;
    display: flex;
    align-items: center;
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    opacity: 0.2;
    filter: blur(14px) saturate(1.25);
    transform: scale(1.08);
}

.detail-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.86), rgba(37, 99, 235, 0.58));
}

.detail-hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 42px;
    align-items: center;
    padding: 110px 0 70px;
}

.detail-poster {
    position: relative;
    overflow: hidden;
    border-radius: 32px;
    aspect-ratio: 3 / 4.15;
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    box-shadow: 0 36px 90px rgba(15, 23, 42, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.detail-info h1 {
    margin-bottom: 18px;
}

.detail-one-line {
    max-width: 790px;
    margin: 0 0 18px;
    font-size: 1.16rem;
    color: rgba(255, 255, 255, 0.92);
}

.detail-tags {
    margin: 0 0 28px;
}

.detail-tags span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

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

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    aspect-ratio: 16 / 9;
    background: #020617;
    box-shadow: var(--shadow);
}

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

.play-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 8px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.26), rgba(15, 23, 42, 0.76));
    cursor: pointer;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-overlay.is-hidden {
    opacity: 0;
    visibility: hidden;
}

.play-icon {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    border-radius: 999px;
    color: var(--primary);
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(255, 255, 255, 0.25);
}

.play-overlay strong {
    font-size: 1.35rem;
}

.play-overlay small {
    color: rgba(255, 255, 255, 0.76);
}

.player-status {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 12px;
    margin: 0;
    color: #ffffff;
    font-size: 0.88rem;
    pointer-events: none;
}

.content-card,
.info-card {
    margin-top: 24px;
    padding: 24px;
    border-radius: 26px;
    border: 1px solid var(--line);
    background: #ffffff;
    box-shadow: 0 14px 38px rgba(15, 23, 42, 0.06);
}

.content-card:first-child,
.info-card:first-child {
    margin-top: 0;
}

.content-card h2,
.info-card h2 {
    margin: 0 0 12px;
    font-size: 1.35rem;
}

.content-card p {
    margin: 0;
    color: #334155;
}

.info-card dl {
    margin: 0;
    display: grid;
    gap: 12px;
}

.info-card dl div {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px dashed var(--line);
}

.info-card dt {
    color: var(--muted);
    font-weight: 900;
}

.info-card dd {
    margin: 0;
    font-weight: 800;
}

.large-tags span {
    font-size: 0.88rem;
}

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

.link-list,
.movie-link-columns {
    margin: 0;
    padding: 0;
    list-style: none;
}

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

.link-list a,
.movie-link-columns a {
    display: block;
    padding: 10px 12px;
    border-radius: 12px;
    background: #f8fafc;
    color: #1e293b;
    font-weight: 800;
}

.movie-link-columns {
    columns: 3 260px;
    column-gap: 18px;
}

.movie-link-columns li {
    break-inside: avoid;
    margin-bottom: 8px;
}

.movie-link-columns span {
    display: block;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.site-footer {
    color: #e2e8f0;
    background: linear-gradient(180deg, #0f172a, #020617);
}

.footer-grid {
    padding: 56px 0 36px;
    display: grid;
    grid-template-columns: 1.2fr repeat(3, 1fr);
    gap: 30px;
}

.footer-brand {
    margin-bottom: 12px;
    color: #ffffff;
    font-size: 1.16rem;
}

.site-footer h2 {
    margin: 0 0 12px;
    color: #ffffff;
    font-size: 1rem;
}

.site-footer p {
    margin: 0;
    color: #94a3b8;
}

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

.site-footer a {
    color: #cbd5e1;
}

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

.footer-bottom {
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    padding: 16px;
    display: flex;
    justify-content: center;
    gap: 18px;
    color: #94a3b8;
    font-size: 0.9rem;
}

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

@media (max-width: 1100px) {
    .desktop-nav,
    .header-search {
        display: none;
    }

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

    .hero-slide,
    .detail-hero-grid,
    .detail-layout,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-poster-card {
        min-height: 420px;
        max-width: 420px;
        width: 100%;
        margin: 0 auto;
    }

    .detail-poster {
        width: min(320px, 100%);
    }

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

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

@media (max-width: 760px) {
    .nav-wrap {
        height: 66px;
    }

    .brand-text {
        font-size: 1rem;
    }

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

    .hero-slide {
        gap: 28px;
    }

    .hero-poster-card {
        min-height: 360px;
    }

    .section {
        padding: 52px 0;
    }

    .section-head,
    .search-toolbar,
    .footer-bottom,
    .search-page-form {
        align-items: stretch;
        flex-direction: column;
    }

    .movie-grid,
    .compact-grid,
    .category-grid,
    .category-overview-grid,
    .stats-grid,
    .filter-row,
    .sitemap-grid {
        grid-template-columns: 1fr;
    }

    .rank-link {
        grid-template-columns: 48px 74px minmax(0, 1fr);
    }

    .rank-score {
        grid-column: 2 / -1;
        text-align: left;
    }

    .detail-hero-grid {
        padding-top: 90px;
    }

    .compact-hero,
    .category-hero {
        padding: 60px 0 52px;
    }
}
