:root {
    --stone-950: #0c0a09;
    --stone-900: #1c1917;
    --stone-850: #241f1c;
    --stone-800: #292524;
    --stone-700: #44403c;
    --stone-600: #57534e;
    --stone-500: #78716c;
    --stone-400: #a8a29e;
    --stone-300: #d6d3d1;
    --stone-200: #e7e5e4;
    --stone-100: #f5f5f4;
    --amber-700: #b45309;
    --amber-600: #d97706;
    --amber-500: #f59e0b;
    --amber-400: #fbbf24;
    --red-400: #f87171;
    --shadow-soft: 0 24px 70px rgba(0, 0, 0, 0.36);
    --shadow-card: 0 14px 40px rgba(0, 0, 0, 0.28);
    color-scheme: dark;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--stone-950);
    color: var(--stone-100);
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.6;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 10% 5%, rgba(217, 119, 6, 0.16), transparent 28rem),
        radial-gradient(circle at 88% 14%, rgba(245, 158, 11, 0.12), transparent 30rem),
        linear-gradient(180deg, rgba(12, 10, 9, 0.32), var(--stone-950));
    z-index: -1;
}

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

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

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(28, 25, 23, 0.94);
    border-bottom: 1px solid rgba(68, 64, 60, 0.72);
    backdrop-filter: blur(12px);
}

.nav-bar {
    height: 68px;
    display: flex;
    align-items: center;
    gap: 22px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: var(--stone-100);
}

.brand-mark {
    width: 34px;
    height: 34px;
    fill: none;
    stroke: var(--amber-600);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke 0.2s ease, transform 0.2s ease;
}

.brand:hover .brand-mark {
    stroke: var(--amber-400);
    transform: rotate(-4deg) scale(1.05);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto;
}

.nav-link,
.mobile-link {
    color: var(--stone-300);
    font-weight: 600;
    transition: color 0.2s ease;
}

.nav-link:hover,
.mobile-link:hover,
.nav-link.is-active,
.mobile-link.is-active {
    color: var(--amber-500);
}

.site-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-search {
    width: 270px;
}

.site-search input,
.filter-box input,
.search-page-form input {
    width: 100%;
    min-width: 0;
    border: 1px solid rgba(87, 83, 78, 0.8);
    border-radius: 14px;
    background: rgba(41, 37, 36, 0.86);
    color: var(--stone-100);
    padding: 12px 14px;
    outline: none;
    transition: border 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.site-search input:focus,
.filter-box input:focus,
.search-page-form input:focus {
    border-color: var(--amber-600);
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.22);
    background: rgba(28, 25, 23, 0.95);
}

.site-search button,
.search-page-form button,
.primary-btn {
    border: 0;
    border-radius: 14px;
    background: var(--amber-600);
    color: #fff;
    padding: 12px 18px;
    font-weight: 800;
    transition: background 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
}

.site-search button:hover,
.search-page-form button:hover,
.primary-btn:hover {
    background: var(--amber-700);
    transform: translateY(-1px);
}

.secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(41, 37, 36, 0.88);
    color: var(--stone-100);
    padding: 12px 18px;
    font-weight: 800;
    border: 1px solid rgba(87, 83, 78, 0.72);
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.secondary-btn:hover {
    background: var(--stone-700);
    color: var(--amber-400);
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: var(--stone-800);
    padding: 10px;
}

.menu-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--stone-200);
    border-radius: 2px;
}

.mobile-panel {
    display: none;
    border-top: 1px solid rgba(68, 64, 60, 0.8);
    padding: 16px;
    background: rgba(28, 25, 23, 0.98);
}

.mobile-panel.is-open {
    display: grid;
    gap: 14px;
}

.mobile-search {
    margin-top: 6px;
}

.hero-section {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--stone-900), var(--stone-800) 55%, #78350f);
    border-bottom: 1px solid rgba(68, 64, 60, 0.78);
}

.hero-orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(64px);
    opacity: 0.24;
    pointer-events: none;
}

.hero-orb-one {
    width: 280px;
    height: 280px;
    top: 16%;
    left: 7%;
    background: var(--amber-600);
}

.hero-orb-two {
    width: 420px;
    height: 420px;
    right: 4%;
    bottom: 5%;
    background: #ea580c;
}

.hero-layout {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
    gap: 48px;
    align-items: center;
    padding: 78px 0;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--amber-400);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1,
.detail-text h1 {
    margin: 0;
    color: var(--stone-100);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero-copy h1 {
    max-width: 760px;
    font-size: clamp(42px, 7vw, 76px);
}

.hero-desc {
    max-width: 720px;
    margin: 22px 0 28px;
    color: var(--stone-300);
    font-size: clamp(18px, 2vw, 23px);
}

.hero-search {
    max-width: 640px;
    margin-bottom: 20px;
}

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

.hero-showcase {
    position: relative;
    min-height: 500px;
    border: 1px solid rgba(120, 113, 108, 0.42);
    border-radius: 28px;
    background: rgba(12, 10, 9, 0.42);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.hero-slides,
.hero-slide {
    height: 100%;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    align-content: end;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
}

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

.hero-image {
    position: absolute;
    inset: 0;
}

.hero-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(12, 10, 9, 0.05), rgba(12, 10, 9, 0.88));
}

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

.hero-slide-copy {
    position: relative;
    padding: 34px;
}

.hero-slide-copy h2 {
    margin: 0 0 10px;
    font-size: 34px;
    line-height: 1.1;
}

.hero-slide-copy p {
    margin: 0 0 10px;
    color: var(--stone-300);
}

.hero-controls {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 22px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
}

.hero-prev,
.hero-next,
.hero-dot {
    border: 0;
    color: #fff;
    background: rgba(41, 37, 36, 0.76);
    backdrop-filter: blur(10px);
}

.hero-prev,
.hero-next {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    font-size: 28px;
    line-height: 1;
}

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

.hero-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border-radius: 999px;
    opacity: 0.5;
}

.hero-dot.is-active {
    width: 26px;
    opacity: 1;
    background: var(--amber-500);
}

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

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

.section-heading p,
.preview-title p {
    margin: 0 0 6px;
    color: var(--amber-500);
    font-weight: 900;
    letter-spacing: 0.12em;
    font-size: 13px;
}

.section-heading h2,
.preview-title h2,
.story-card h2,
.ranking-panel h2,
.site-footer h2 {
    margin: 0;
    color: var(--stone-100);
}

.section-heading h2 {
    font-size: clamp(26px, 4vw, 38px);
    line-height: 1.15;
}

.section-more,
.text-link,
.preview-title a {
    color: var(--amber-400);
    font-weight: 800;
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(68, 64, 60, 0.82);
    border-radius: 20px;
    background: rgba(28, 25, 23, 0.9);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

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

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

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

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

.poster-link::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.72));
    opacity: 0.85;
}

.year-badge,
.play-chip {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.year-badge {
    top: 10px;
    left: 10px;
    background: rgba(12, 10, 9, 0.72);
    color: var(--stone-100);
    padding: 5px 9px;
    backdrop-filter: blur(8px);
}

.play-chip {
    right: 10px;
    bottom: 10px;
    background: var(--amber-600);
    color: #fff;
    padding: 6px 10px;
}

.card-body {
    padding: 16px;
}

.card-body h3 {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.25;
}

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

.card-meta,
.card-desc {
    margin: 0;
    color: var(--stone-400);
    font-size: 14px;
}

.card-desc {
    margin-top: 10px;
    color: var(--stone-300);
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 12px;
}

.tag-row span {
    border-radius: 999px;
    background: rgba(68, 64, 60, 0.74);
    color: var(--stone-300);
    padding: 4px 9px;
    font-size: 12px;
    font-weight: 700;
}

.hero-tags span,
.detail-tags span {
    background: rgba(245, 158, 11, 0.18);
    color: var(--amber-400);
}

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

.category-card {
    display: block;
    min-height: 270px;
    padding: 20px;
    border-radius: 22px;
    border: 1px solid rgba(68, 64, 60, 0.82);
    background: linear-gradient(145deg, rgba(41, 37, 36, 0.94), rgba(28, 25, 23, 0.92));
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: var(--amber-600);
}

.category-thumbs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
    margin-bottom: 18px;
}

.category-thumbs img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 10px;
    background: var(--stone-800);
}

.category-card span {
    color: var(--amber-500);
    font-size: 13px;
    font-weight: 900;
}

.category-card h3 {
    margin: 8px 0;
    font-size: 24px;
}

.category-card p {
    margin: 0;
    color: var(--stone-300);
}

.ranking-band {
    background: rgba(28, 25, 23, 0.64);
    border-top: 1px solid rgba(68, 64, 60, 0.7);
    border-bottom: 1px solid rgba(68, 64, 60, 0.7);
}

.ranking-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 36px;
    align-items: start;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 56px 56px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    border: 1px solid rgba(68, 64, 60, 0.78);
    border-radius: 16px;
    background: rgba(28, 25, 23, 0.84);
    padding: 10px;
}

.rank-num {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(217, 119, 6, 0.14);
    color: var(--amber-400);
    font-weight: 900;
}

.rank-poster {
    width: 56px;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 10px;
    background: var(--stone-800);
}

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

.rank-row h3 {
    margin: 0 0 4px;
    font-size: 16px;
}

.rank-row p {
    margin: 0;
    color: var(--stone-400);
    font-size: 13px;
}

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

.ranking-panel,
.story-card {
    border: 1px solid rgba(68, 64, 60, 0.78);
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(41, 37, 36, 0.94), rgba(28, 25, 23, 0.92));
    box-shadow: var(--shadow-card);
    padding: 28px;
}

.ranking-panel p {
    color: var(--stone-300);
}

.page-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--stone-900), var(--stone-800) 60%, #78350f);
    border-bottom: 1px solid rgba(68, 64, 60, 0.78);
}

.slim-hero {
    padding: 72px 0 54px;
}

.page-hero h1 {
    max-width: 920px;
    font-size: clamp(36px, 6vw, 58px);
}

.page-hero p {
    max-width: 760px;
    color: var(--stone-300);
    font-size: 18px;
}

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

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

.filter-box,
.search-page-form {
    max-width: 680px;
    margin-top: 24px;
}

.search-page-form {
    display: flex;
    gap: 10px;
}

.empty-tip {
    display: none;
    margin-top: 28px;
    color: var(--stone-400);
    text-align: center;
}

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

.stacked-sections {
    display: grid;
    gap: 38px;
    padding-bottom: 70px;
}

.category-preview {
    border-top: 1px solid rgba(68, 64, 60, 0.72);
    padding-top: 32px;
}

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

.detail-main {
    padding-top: 36px;
}

.detail-wrap {
    padding-bottom: 46px;
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.85fr);
    gap: 30px;
    align-items: start;
}

.player-frame {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #000;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(68, 64, 60, 0.8);
}

.movie-player {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 10px;
    border: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.72));
    color: #fff;
    font-weight: 900;
    font-size: 18px;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.big-play {
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    border-radius: 999px;
    background: var(--amber-600);
    box-shadow: 0 18px 42px rgba(217, 119, 6, 0.35);
    font-size: 30px;
    padding-left: 4px;
}

.player-message {
    position: absolute;
    left: 18px;
    bottom: 18px;
    right: 18px;
    color: var(--red-400);
    font-weight: 800;
    text-shadow: 0 2px 6px #000;
    pointer-events: none;
}

.detail-info {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 20px;
    border: 1px solid rgba(68, 64, 60, 0.78);
    border-radius: 24px;
    background: rgba(28, 25, 23, 0.9);
    padding: 20px;
}

.detail-poster {
    overflow: hidden;
    border-radius: 18px;
    background: var(--stone-800);
}

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

.detail-text h1 {
    font-size: clamp(28px, 4vw, 42px);
}

.detail-one {
    color: var(--stone-300);
    font-size: 17px;
}

.meta-list {
    display: grid;
    gap: 10px;
    margin: 18px 0 0;
}

.meta-list div {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 10px;
}

.meta-list dt {
    color: var(--stone-500);
    font-weight: 900;
}

.meta-list dd {
    margin: 0;
    color: var(--stone-200);
}

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

.story-card p {
    margin: 14px 0 0;
    color: var(--stone-300);
    font-size: 17px;
}

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

.site-footer {
    margin-top: 60px;
    border-top: 1px solid rgba(68, 64, 60, 0.76);
    background: #0a0908;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) 1fr 1fr;
    gap: 34px;
    padding: 48px 0;
}

.footer-about p,
.footer-links a,
.footer-bottom {
    color: var(--stone-400);
}

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

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

.footer-bottom {
    border-top: 1px solid rgba(68, 64, 60, 0.46);
    padding: 18px 0;
    text-align: center;
    font-size: 14px;
}

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

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

    .hero-showcase {
        min-height: 420px;
    }

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

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

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

    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    .hero-layout {
        padding: 56px 0;
        gap: 30px;
    }

    .hero-copy h1,
    .page-hero h1 {
        letter-spacing: -0.03em;
    }

    .movie-grid,
    .compact-grid,
    .category-grid,
    .wide-rank-list,
    .detail-content,
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .detail-info {
        grid-template-columns: 110px minmax(0, 1fr);
    }

    .search-page-form,
    .hero-search {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 560px) {
    .container {
        width: min(100% - 24px, 1180px);
    }

    .brand span {
        font-size: 18px;
    }

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

    .hero-showcase {
        min-height: 380px;
        border-radius: 22px;
    }

    .hero-slide-copy {
        padding: 24px;
    }

    .hero-slide-copy h2 {
        font-size: 28px;
    }

    .section-heading,
    .preview-title {
        display: block;
    }

    .section-more,
    .preview-title a {
        display: inline-block;
        margin-top: 10px;
    }

    .movie-grid,
    .compact-grid,
    .category-grid,
    .wide-rank-list,
    .detail-content,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

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

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