* {
    box-sizing: border-box;
}

:root {
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-300: #cbd5e1;
    --slate-200: #e2e8f0;
    --slate-100: #f1f5f9;
    --stone-50: #fafaf9;
    --amber-500: #f59e0b;
    --orange-500: #f97316;
    --rose-500: #f43f5e;
    --blue-500: #3b82f6;
    --emerald-500: #10b981;
    --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.12);
    --shadow-strong: 0 24px 70px rgba(15, 23, 42, 0.22);
    --radius-xl: 24px;
    --radius-lg: 18px;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--slate-800);
    background: linear-gradient(135deg, #f8fafc 0%, #fafaf9 50%, #f1f5f9 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 {
    display: block;
    max-width: 100%;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: #ffffff;
    background: linear-gradient(90deg, #1e293b 0%, #292524 48%, #1e293b 100%);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.28);
    border-bottom: 1px solid rgba(245, 158, 11, 0.24);
}

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

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

.brand-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
    box-shadow: 0 12px 30px rgba(249, 115, 22, 0.35);
    transition: transform 0.25s ease;
}

.brand:hover .brand-icon {
    transform: scale(1.08) rotate(-3deg);
}

.brand-text,
.footer-logo div {
    display: grid;
    gap: 1px;
}

.brand-text strong,
.footer-logo strong {
    font-size: 22px;
    letter-spacing: 0.02em;
    background: linear-gradient(90deg, #fbbf24, #fb923c);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-text small,
.footer-logo small {
    color: #cbd5e1;
    font-size: 12px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-link {
    padding: 10px 14px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    color: #f8fafc;
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active {
    background: rgba(255, 255, 255, 0.12);
    color: #fbbf24;
    transform: translateY(-1px);
}

.nav-link-soft {
    color: #d6d3d1;
}

.mobile-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.1);
    cursor: pointer;
    padding: 10px;
}

.mobile-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: #ffffff;
    border-radius: 99px;
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 12px 0 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.mobile-nav a {
    display: block;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    color: #f8fafc;
    font-weight: 700;
}

.hero-carousel {
    position: relative;
    color: #ffffff;
    background: radial-gradient(circle at 20% 20%, rgba(245, 158, 11, 0.25), transparent 30%), linear-gradient(135deg, #020617 0%, #292524 52%, #0f172a 100%);
    overflow: hidden;
}

.hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.28;
    background-image: linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 56px 56px;
}

.hero-inner {
    position: relative;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 68px 0 58px;
}

.hero-slides {
    position: relative;
    min-height: 520px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(380px, 0.88fr);
    align-items: center;
    gap: 58px;
    opacity: 0;
    transform: translateY(22px);
    pointer-events: none;
    transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 7px 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    color: #fbbf24;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    font-weight: 800;
    font-size: 13px;
}

.hero-copy h1,
.page-hero h1 {
    margin: 0 0 18px;
    font-size: clamp(36px, 6vw, 72px);
    line-height: 1.04;
    letter-spacing: -0.04em;
}

.hero-copy p,
.page-hero p {
    max-width: 720px;
    margin: 0;
    color: #d6d3d1;
    font-size: 18px;
}

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

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

.hero-tags span,
.tag-list span {
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.12);
    color: #fff7ed;
    border: 1px solid rgba(255, 255, 255, 0.16);
}

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

.primary-button,
.ghost-button,
.text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 14px;
    font-weight: 900;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.primary-button {
    color: #ffffff;
    background: linear-gradient(90deg, var(--amber-500), var(--orange-500));
    box-shadow: 0 18px 36px rgba(249, 115, 22, 0.3);
}

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

.ghost-button {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
}

.hero-media {
    position: relative;
    display: block;
}

.hero-glow {
    position: absolute;
    inset: -6px;
    z-index: 0;
    border-radius: 30px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.9), rgba(249, 115, 22, 0.82));
    filter: blur(12px);
    opacity: 0.78;
}

.hero-media img {
    position: relative;
    z-index: 1;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: var(--shadow-strong);
}

.hero-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 26px;
}

.hero-arrow,
.hero-dot {
    border: 0;
    cursor: pointer;
}

.hero-arrow {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    color: #ffffff;
    font-size: 28px;
    background: rgba(255, 255, 255, 0.12);
}

.hero-dots {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
    transition: width 0.25s ease, background-color 0.25s ease;
}

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

.content-section {
    padding: 56px 0;
}

.warm-section {
    background: linear-gradient(135deg, #fffbeb, #fff7ed);
}

.stone-section {
    background: linear-gradient(135deg, #f1f5f9, #f5f5f4);
}

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

.section-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
}

.section-heading h2 {
    margin: 0;
    color: var(--slate-800);
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.15;
}

.section-icon {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    color: #ffffff;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--rose-500), var(--orange-500));
    box-shadow: 0 14px 28px rgba(244, 63, 94, 0.22);
}

.section-more {
    margin-left: auto;
    color: var(--amber-500);
    font-weight: 900;
}

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

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

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

.movie-card {
    overflow: hidden;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-strong);
}

.movie-poster {
    position: relative;
    display: block;
    overflow: hidden;
    background: #111827;
    aspect-ratio: 16 / 10;
}

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

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

.movie-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.1));
    transition: opacity 0.25s ease;
}

.movie-card:hover .movie-poster::after {
    opacity: 1;
}

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

.type-badge {
    left: 12px;
}

.rank-badge {
    right: 12px;
    background: linear-gradient(90deg, var(--amber-500), var(--orange-500));
}

.play-mark {
    position: absolute;
    z-index: 3;
    top: 50%;
    left: 50%;
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: var(--amber-500);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.25s ease;
}

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

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

.movie-card-body h2 {
    min-height: 52px;
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.45;
}

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

.movie-card-body p {
    min-height: 52px;
    margin: 0 0 12px;
    color: var(--slate-600);
    font-size: 14px;
}

.movie-meta,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--slate-500);
    font-size: 12px;
    font-weight: 800;
}

.movie-meta span,
.detail-meta span {
    padding: 5px 8px;
    border-radius: 999px;
    background: var(--slate-100);
}

.movie-card .tag-list {
    margin-top: 12px;
}

.movie-card .tag-list span,
.detail-tags span {
    color: var(--slate-600);
    background: var(--slate-100);
    border-color: transparent;
}

.heat-line {
    margin: 0 0 10px;
    color: var(--orange-500);
    font-weight: 900;
}

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

.category-card {
    min-height: 180px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 22px;
    color: #ffffff;
    background: linear-gradient(135deg, #1e293b, #292524);
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover,
.category-overview-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-strong);
}

.category-card span {
    font-size: 22px;
    font-weight: 900;
}

.category-card strong {
    color: #d6d3d1;
    font-size: 14px;
}

.category-card em {
    color: #fbbf24;
    font-style: normal;
    font-weight: 900;
}

.year-list {
    display: grid;
    gap: 36px;
}

.year-block h3 {
    margin: 0 0 16px;
    padding-left: 12px;
    border-left: 5px solid var(--amber-500);
    color: var(--slate-700);
    font-size: 24px;
}

.page-hero {
    color: #ffffff;
    background: radial-gradient(circle at 20% 10%, rgba(245, 158, 11, 0.22), transparent 30%), linear-gradient(135deg, #020617 0%, #292524 55%, #0f172a 100%);
}

.page-hero-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 72px 0;
}

.compact-hero .page-hero-inner,
.rank-hero .page-hero-inner,
.search-hero .page-hero-inner {
    padding: 58px 0;
}

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

.category-overview-card {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 20px;
    padding: 18px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-cover-wall {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}

.category-cover-wall img {
    width: 100%;
    aspect-ratio: 1 / 0.78;
    object-fit: cover;
    border-radius: 12px;
    background: #111827;
}

.category-overview-card h2 {
    margin: 0 0 10px;
    font-size: 24px;
}

.category-overview-card p {
    margin: 0 0 18px;
    color: var(--slate-600);
}

.text-link {
    min-height: 38px;
    padding: 0 14px;
    color: #ffffff;
    background: linear-gradient(90deg, var(--amber-500), var(--orange-500));
}

.filter-panel {
    position: sticky;
    top: 88px;
    z-index: 20;
    display: grid;
    grid-template-columns: minmax(220px, 1.4fr) repeat(4, minmax(130px, 0.45fr));
    gap: 12px;
    margin-bottom: 28px;
    padding: 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow-soft);
}

.search-box {
    display: grid;
    gap: 4px;
}

.search-box span {
    color: var(--slate-500);
    font-size: 12px;
    font-weight: 900;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--slate-200);
    border-radius: 14px;
    padding: 0 12px;
    color: var(--slate-700);
    background: #ffffff;
    outline: none;
    font: inherit;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--amber-500);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.16);
}

.empty-state {
    display: none;
    margin: 28px 0 0;
    padding: 24px;
    border-radius: 18px;
    text-align: center;
    color: var(--slate-600);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.empty-state.is-visible {
    display: block;
}

.detail-layout {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 34px 0 24px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 28px;
}

.detail-main {
    display: grid;
    gap: 22px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--slate-500);
    font-size: 14px;
    font-weight: 800;
}

.breadcrumb a:hover {
    color: var(--amber-500);
}

.player-card,
.detail-card,
.info-panel {
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.player-card {
    padding: 14px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    background: #020617;
    aspect-ratio: 16 / 9;
}

.movie-video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    background: #000000;
    cursor: pointer;
}

.player-start {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: #ffffff;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.18));
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-start span {
    width: 78px;
    height: 78px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 4px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
    box-shadow: 0 20px 60px rgba(249, 115, 22, 0.35);
    font-size: 30px;
}

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

.detail-card {
    padding: 28px;
}

.detail-card h1 {
    margin: 0 0 14px;
    color: var(--slate-800);
    font-size: clamp(30px, 5vw, 46px);
    line-height: 1.12;
}

.detail-card section {
    margin-top: 26px;
    padding-top: 24px;
    border-top: 1px solid var(--slate-200);
}

.detail-card h2,
.info-panel h2 {
    margin: 0 0 12px;
    color: var(--slate-800);
    font-size: 20px;
}

.detail-card p {
    margin: 0;
    color: var(--slate-600);
    font-size: 16px;
}

.detail-side {
    min-width: 0;
}

.info-panel {
    position: sticky;
    top: 104px;
    padding: 24px;
}

.info-panel dl {
    margin: 0 0 22px;
    display: grid;
    gap: 0;
}

.info-panel div {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--slate-200);
}

.info-panel dt {
    color: var(--slate-500);
    font-weight: 900;
}

.info-panel dd {
    margin: 0;
    color: var(--slate-800);
    text-align: right;
    font-weight: 900;
}

.full-button {
    width: 100%;
}

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

.site-footer {
    color: #cbd5e1;
    background: linear-gradient(135deg, #020617, #1c1917 55%, #0f172a);
    border-top: 1px solid rgba(245, 158, 11, 0.22);
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 48px 0;
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) 0.7fr 0.9fr;
    gap: 34px;
}

.footer-brand p {
    max-width: 520px;
    margin: 16px 0 0;
    color: #94a3b8;
}

.footer-links {
    display: grid;
    align-content: start;
    gap: 9px;
}

.footer-links h2 {
    margin: 0 0 8px;
    color: #ffffff;
    font-size: 18px;
}

.footer-links a:hover {
    color: #fbbf24;
}

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    color: #64748b;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    font-size: 14px;
}

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

    .mobile-toggle {
        display: block;
    }

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

    .hero-slides {
        min-height: 760px;
    }

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

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

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

    .filter-panel {
        grid-template-columns: 1fr 1fr;
        position: static;
    }
}

@media (max-width: 760px) {
    .site-header-inner {
        height: 66px;
    }

    .brand-text strong {
        font-size: 18px;
    }

    .hero-inner {
        padding: 46px 0 38px;
    }

    .hero-slides {
        min-height: 680px;
    }

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

    .hero-actions {
        display: grid;
    }

    .movie-grid,
    .movie-grid-three,
    .movie-grid-six,
    .category-grid,
    .category-overview-grid {
        grid-template-columns: 1fr;
    }

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

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

    .footer-inner,
    .footer-bottom {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .footer-bottom {
        align-items: flex-start;
    }
}
