* {
    box-sizing: border-box;
}

:root {
    --stone-950: #1c1917;
    --stone-900: #292524;
    --stone-800: #44403c;
    --stone-700: #57534e;
    --stone-600: #78716c;
    --stone-300: #d6d3d1;
    --stone-200: #e7e5e4;
    --stone-100: #f5f5f4;
    --amber-700: #b45309;
    --amber-600: #d97706;
    --amber-500: #f59e0b;
    --amber-100: #fef3c7;
    --green-800: #166534;
    --green-700: #15803d;
    --green-100: #dcfce7;
    --white: #ffffff;
    --shadow-soft: 0 18px 45px rgba(68, 64, 60, 0.12);
    --shadow-card: 0 12px 30px rgba(68, 64, 60, 0.14);
    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-sm: 12px;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--stone-800);
    background: linear-gradient(180deg, #fafaf9 0%, #fff7ed 48%, #f5f5f4 100%);
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.82);
    border-bottom: 1px solid rgba(214, 211, 209, 0.7);
    backdrop-filter: blur(18px);
}

.nav-wrap {
    width: min(1240px, calc(100% - 32px));
    min-height: 74px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 22px;
}

.logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--stone-900);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.logo-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: var(--white);
    background: linear-gradient(135deg, var(--amber-600), var(--green-700));
    box-shadow: 0 10px 22px rgba(217, 119, 6, 0.28);
}

.logo-text {
    font-size: 20px;
}

.nav-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.nav-link {
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--stone-600);
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--amber-700);
    background: var(--amber-100);
}

.nav-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    border: 1px solid var(--stone-200);
    border-radius: 999px;
    background: var(--white);
}

.nav-search input {
    width: 210px;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 8px 6px 8px 12px;
    color: var(--stone-800);
}

.nav-search button,
.primary-btn {
    border: 0;
    border-radius: 999px;
    padding: 10px 18px;
    color: var(--white);
    background: linear-gradient(135deg, var(--amber-600), var(--green-700));
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(21, 128, 61, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-search button:hover,
.primary-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(21, 128, 61, 0.24);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: var(--stone-100);
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: var(--stone-800);
    border-radius: 999px;
}

main {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
}

.hero-area {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 24px;
    margin: 30px auto 26px;
}

.hero-main {
    position: relative;
    min-height: 560px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--stone-900);
    box-shadow: var(--shadow-soft);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    padding: 56px;
    opacity: 0;
    pointer-events: none;
    background-size: cover;
    background-position: center;
    transform: scale(1.02);
    transition: opacity 0.6s ease, transform 0.8s ease;
}

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

.hero-content {
    width: min(650px, 100%);
    color: var(--white);
}

.eyebrow,
.side-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--amber-600);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-content .eyebrow {
    color: #fbbf24;
}

.hero-content h1 {
    margin: 18px 0 18px;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 0.96;
    letter-spacing: -0.06em;
}

.hero-content p {
    max-width: 610px;
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 18px;
    line-height: 1.75;
}

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

.hero-tags span,
.detail-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 13px;
    color: var(--stone-700);
    background: var(--stone-100);
}

.hero-tags span {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

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

.ghost-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 999px;
    padding: 10px 18px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
    transition: background 0.2s ease, transform 0.2s ease;
}

.ghost-btn:hover {
    background: rgba(255, 255, 255, 0.16);
    transform: translateY(-1px);
}

.ghost-btn.light {
    color: var(--stone-800);
    border-color: rgba(68, 64, 60, 0.18);
    background: rgba(255, 255, 255, 0.72);
}

.hero-dots {
    position: absolute;
    left: 56px;
    bottom: 34px;
    display: flex;
    gap: 10px;
    z-index: 3;
}

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

.hero-dot.active {
    width: 34px;
    background: var(--amber-500);
}

.hero-side {
    min-height: 560px;
    padding: 26px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(231, 229, 228, 0.9);
    box-shadow: var(--shadow-soft);
}

.hero-side h2 {
    margin: 12px 0 20px;
    color: var(--stone-900);
    font-size: 28px;
}

.hero-side-item {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 12px;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--stone-200);
}

.hero-side-item span {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: var(--white);
    background: linear-gradient(135deg, var(--amber-600), var(--green-700));
    font-weight: 800;
}

.hero-side-item strong {
    display: block;
    color: var(--stone-900);
    margin-bottom: 4px;
}

.hero-side-item small {
    color: var(--stone-600);
}

.stats-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 38px;
}

.stats-strip div {
    padding: 22px;
    border-radius: var(--radius-md);
    background: var(--white);
    border: 1px solid var(--stone-200);
    box-shadow: 0 10px 24px rgba(68, 64, 60, 0.08);
}

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

.stats-strip span {
    display: block;
    margin-top: 8px;
    color: var(--stone-600);
}

.content-section {
    margin: 46px 0;
}

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

.section-heading h2 {
    position: relative;
    margin: 0;
    padding-left: 18px;
    color: var(--stone-900);
    font-size: clamp(26px, 3.2vw, 38px);
    letter-spacing: -0.04em;
}

.section-heading h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    width: 6px;
    height: calc(100% - 8px);
    border-radius: 999px;
    background: linear-gradient(180deg, var(--amber-600), var(--green-700));
}

.section-heading p {
    margin: 8px 0 0;
    color: var(--stone-600);
}

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

.category-tile,
.category-overview-card {
    display: block;
    min-height: 150px;
    padding: 20px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, #ffffff, #fff7ed);
    border: 1px solid rgba(231, 229, 228, 0.9);
    box-shadow: 0 12px 26px rgba(68, 64, 60, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-tile strong,
.category-overview-head span {
    display: block;
    color: var(--stone-900);
    font-size: 20px;
    margin-bottom: 10px;
}

.category-tile span,
.category-overview-head strong {
    display: inline-flex;
    color: var(--amber-700);
    font-weight: 700;
    margin-bottom: 10px;
}

.category-tile p,
.category-overview-card p {
    margin: 0;
    color: var(--stone-600);
    line-height: 1.6;
}

.category-overview-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.mini-link-list {
    display: grid;
    gap: 8px;
    margin-top: 16px;
}

.mini-link-list a {
    color: var(--stone-700);
    font-size: 14px;
}

.mini-link-list a:hover {
    color: var(--amber-700);
}

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--white);
    border: 1px solid rgba(231, 229, 228, 0.9);
    box-shadow: 0 10px 24px rgba(68, 64, 60, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: var(--stone-200);
}

.poster-link::after {
    content: "";
    position: absolute;
    inset: 48% 0 0;
    background: linear-gradient(180deg, transparent, rgba(28, 25, 23, 0.76));
}

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

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

.type-pill,
.rank-badge {
    position: absolute;
    top: 12px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 10px;
    color: var(--white);
    font-size: 12px;
    font-weight: 700;
    background: rgba(217, 119, 6, 0.92);
}

.type-pill {
    left: 12px;
}

.rank-badge {
    right: 12px;
    background: rgba(21, 128, 61, 0.92);
}

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

.movie-card h3 {
    margin: 0 0 9px;
    color: var(--stone-900);
    font-size: 17px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 46px;
}

.movie-card h3 a:hover {
    color: var(--amber-700);
}

.movie-meta,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--stone-600);
    font-size: 14px;
}

.movie-meta span:not(:last-child)::after,
.detail-meta span:not(:last-child)::after {
    content: "·";
    margin-left: 8px;
    color: var(--stone-300);
}

.movie-card p {
    margin: 12px 0;
    color: var(--stone-600);
    font-size: 14px;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tag-row span {
    padding: 4px 8px;
    font-size: 12px;
}

.sub-hero {
    margin: 30px 0 34px;
    padding: 54px;
    border-radius: var(--radius-lg);
    background: radial-gradient(circle at top right, rgba(245, 158, 11, 0.28), transparent 28%), linear-gradient(135deg, #fff7ed, #ffffff 54%, #ecfdf5);
    border: 1px solid rgba(231, 229, 228, 0.9);
    box-shadow: var(--shadow-soft);
}

.sub-hero h1 {
    margin: 14px 0 12px;
    color: var(--stone-900);
    font-size: clamp(34px, 5vw, 58px);
    letter-spacing: -0.06em;
}

.sub-hero p {
    max-width: 760px;
    margin: 0 0 22px;
    color: var(--stone-600);
    line-height: 1.75;
    font-size: 17px;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 180px 180px;
    gap: 12px;
    margin-bottom: 22px;
    padding: 14px;
    border-radius: var(--radius-md);
    background: var(--white);
    border: 1px solid var(--stone-200);
    box-shadow: 0 10px 24px rgba(68, 64, 60, 0.08);
}

.filter-input,
.filter-select {
    width: 100%;
    border: 1px solid var(--stone-200);
    border-radius: 14px;
    outline: 0;
    padding: 12px 14px;
    color: var(--stone-800);
    background: #fafaf9;
}

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

.empty-state {
    display: none;
    padding: 36px;
    text-align: center;
    color: var(--stone-600);
    background: var(--white);
    border: 1px dashed var(--stone-300);
    border-radius: var(--radius-md);
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 26px 0;
    color: var(--stone-600);
    font-size: 14px;
}

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

.player-section {
    margin-bottom: 30px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--stone-950);
    box-shadow: var(--shadow-soft);
}

.player-shell video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--stone-950);
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 12px;
    border: 0;
    color: var(--white);
    background: radial-gradient(circle, rgba(28, 25, 23, 0.18), rgba(28, 25, 23, 0.72));
    cursor: pointer;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-circle {
    width: 78px;
    height: 78px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    padding-left: 4px;
    color: var(--white);
    background: linear-gradient(135deg, var(--amber-600), var(--green-700));
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
    font-size: 30px;
}

.detail-layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 30px;
    align-items: start;
    margin-bottom: 36px;
}

.detail-poster {
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--white);
    border: 1px solid var(--stone-200);
    box-shadow: var(--shadow-card);
}

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

.detail-info {
    padding: 32px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid var(--stone-200);
    box-shadow: var(--shadow-soft);
}

.detail-info h1 {
    margin: 12px 0;
    color: var(--stone-900);
    font-size: clamp(32px, 5vw, 54px);
    line-height: 1.08;
    letter-spacing: -0.05em;
}

.detail-info h2 {
    margin: 28px 0 10px;
    color: var(--stone-900);
    font-size: 22px;
}

.detail-info p {
    color: var(--stone-700);
    line-height: 1.9;
    font-size: 16px;
}

.lead-text {
    margin-top: 18px;
    padding: 18px;
    border-left: 4px solid var(--amber-600);
    border-radius: 0 14px 14px 0;
    background: #fff7ed;
}

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

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

.site-footer {
    margin-top: 70px;
    padding: 42px 0 26px;
    background: rgba(255, 255, 255, 0.72);
    border-top: 1px solid var(--stone-200);
}

.footer-inner {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.footer-inner p {
    margin: 12px 0 0;
    color: var(--stone-600);
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--stone-600);
}

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

.footer-bottom {
    width: min(1240px, calc(100% - 32px));
    margin: 26px auto 0;
    padding-top: 22px;
    border-top: 1px solid var(--stone-200);
    color: var(--stone-600);
    font-size: 14px;
}

@media (max-width: 1100px) {
    .nav-wrap {
        grid-template-columns: auto auto;
    }

    .nav-toggle {
        display: block;
        justify-self: end;
    }

    .nav-menu,
    .nav-search {
        grid-column: 1 / -1;
        display: none;
    }

    .nav-menu.open,
    .nav-search.open {
        display: flex;
    }

    .nav-menu.open {
        justify-content: flex-start;
        flex-wrap: wrap;
        padding-bottom: 4px;
    }

    .nav-search.open {
        margin-bottom: 14px;
    }

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

    .hero-side {
        min-height: auto;
    }

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

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

@media (max-width: 760px) {
    .nav-wrap,
    main,
    .footer-inner,
    .footer-bottom {
        width: min(100% - 24px, 1240px);
    }

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

    .nav-search {
        align-items: stretch;
        border-radius: 18px;
        flex-direction: column;
    }

    .nav-search input {
        width: 100%;
    }

    .hero-main {
        min-height: 520px;
    }

    .hero-slide {
        padding: 32px 24px;
        align-items: end;
    }

    .hero-dots {
        left: 24px;
        bottom: 22px;
    }

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

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

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

    .movie-card h3 {
        font-size: 15px;
    }

    .sub-hero {
        padding: 32px 24px;
    }

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

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

    .detail-poster {
        max-width: 260px;
    }

    .detail-info {
        padding: 24px;
    }

    .footer-inner {
        flex-direction: column;
    }
}

@media (max-width: 460px) {
    .stats-strip,
    .category-grid,
    .category-overview-grid,
    .movie-grid,
    .related-section .movie-grid {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 36px;
    }
}
