:root {
    --stone-950: #0c0a09;
    --stone-900: #1c1917;
    --stone-850: #241f1d;
    --stone-800: #292524;
    --stone-700: #44403c;
    --stone-500: #78716c;
    --stone-400: #a8a29e;
    --stone-300: #d6d3d1;
    --stone-100: #f5f5f4;
    --amber-900: #78350f;
    --amber-800: #92400e;
    --amber-700: #b45309;
    --amber-600: #d97706;
    --amber-500: #f59e0b;
    --amber-300: #fcd34d;
    --amber-200: #fde68a;
    --amber-100: #fef3c7;
    --radius: 18px;
    --shadow-card: 0 22px 60px rgba(0, 0, 0, 0.35);
    --shadow-soft: 0 14px 36px rgba(0, 0, 0, 0.28);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
    color: var(--stone-100);
    background:
        radial-gradient(circle at top left, rgba(245, 158, 11, 0.16), transparent 34rem),
        linear-gradient(180deg, var(--stone-950), var(--stone-900) 42%, var(--stone-950));
}

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: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, rgba(120, 53, 15, 0.96), rgba(146, 64, 14, 0.96), rgba(120, 53, 15, 0.96));
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(14px);
}

.header-inner {
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: var(--amber-900);
    background: linear-gradient(135deg, var(--amber-100), var(--amber-500));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35), 0 8px 22px rgba(0, 0, 0, 0.28);
}

.brand-text {
    font-size: 1.35rem;
    color: #fff7ed;
}

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

.nav-link {
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--amber-100);
    font-weight: 650;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    padding: 9px;
}

.nav-toggle span {
    display: block;
    height: 2px;
    margin: 6px 0;
    background: var(--amber-100);
    border-radius: 99px;
}

.hero {
    position: relative;
    min-height: 72vh;
    overflow: hidden;
    background: #000;
}

.hero-slides,
.hero-slide {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    visibility: hidden;
    transform: scale(1.02);
    transition: opacity 0.7s ease, visibility 0.7s ease, transform 1.2s ease;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(12, 10, 9, 0.95) 0%, rgba(12, 10, 9, 0.72) 42%, rgba(12, 10, 9, 0.25) 100%),
        linear-gradient(0deg, var(--stone-950), transparent 36%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    height: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 76px 0 132px;
}

.hero-kicker,
.section-kicker {
    color: var(--amber-300);
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero-content h1 {
    max-width: 760px;
    margin: 18px 0 16px;
    font-size: clamp(2.45rem, 6vw, 5.7rem);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.hero-content p {
    max-width: 720px;
    margin: 0 0 24px;
    color: var(--stone-300);
    font-size: clamp(1.02rem, 2vw, 1.3rem);
    line-height: 1.8;
}

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

.hero-tags span,
.tag-badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 12px;
    border-radius: 999px;
    color: var(--amber-100);
    background: rgba(245, 158, 11, 0.18);
    border: 1px solid rgba(245, 158, 11, 0.24);
}

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

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

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

.button-primary {
    color: var(--stone-950);
    background: linear-gradient(135deg, var(--amber-200), var(--amber-500));
    box-shadow: 0 16px 34px rgba(217, 119, 6, 0.32);
}

.button-secondary {
    color: var(--amber-100);
    background: rgba(245, 158, 11, 0.16);
    border-color: rgba(245, 158, 11, 0.26);
}

.button-ghost {
    color: var(--amber-100);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.16);
}

.hero-controls {
    position: absolute;
    z-index: 4;
    left: 50%;
    bottom: 86px;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

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

.hero-dot.is-active {
    background: var(--amber-300);
}

.hero-search {
    position: absolute;
    z-index: 5;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    display: flex;
    width: min(760px, calc(100% - 32px));
    padding: 8px;
    border-radius: 999px;
    background: rgba(12, 10, 9, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(16px);
}

.hero-search input,
.filter-controls input,
.filter-controls select {
    width: 100%;
    border: 0;
    outline: none;
    color: var(--stone-100);
    background: rgba(255, 255, 255, 0.08);
}

.hero-search input {
    flex: 1;
    padding: 0 18px;
    border-radius: 999px 0 0 999px;
    background: transparent;
}

.hero-search button {
    border: 0;
    border-radius: 999px;
    padding: 0 24px;
    color: var(--stone-950);
    background: var(--amber-300);
    font-weight: 800;
    cursor: pointer;
}

.section-block {
    margin-top: 64px;
}

.intro-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 28px;
    border: 1px solid rgba(245, 158, 11, 0.16);
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(255, 255, 255, 0.04));
    box-shadow: var(--shadow-soft);
}

.intro-strip h2,
.section-heading h2,
.filter-title-row h2,
.detail-article h2,
.detail-side h2 {
    margin: 0;
    font-size: clamp(1.45rem, 3vw, 2.3rem);
    letter-spacing: -0.03em;
}

.intro-strip p,
.section-heading p,
.category-card p,
.category-card small,
.page-hero p,
.detail-one-line,
.detail-article p,
.site-footer p {
    color: var(--stone-300);
    line-height: 1.75;
}

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

.text-link {
    color: var(--amber-300);
    font-weight: 800;
}

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

.category-card {
    min-height: 170px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 22px;
    border-radius: var(--radius);
    background: linear-gradient(145deg, rgba(41, 37, 36, 0.96), rgba(12, 10, 9, 0.96));
    border: 1px solid rgba(245, 158, 11, 0.14);
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    border-color: rgba(245, 158, 11, 0.5);
}

.category-card span {
    color: var(--amber-200);
    font-size: 1.25rem;
    font-weight: 850;
}

.category-card p {
    margin: 12px 0;
    font-size: 0.95rem;
}

.category-card small {
    display: block;
    color: var(--stone-400);
}

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

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

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

.movie-card[hidden] {
    display: none;
}

.movie-card-link {
    display: block;
    height: 100%;
    overflow: hidden;
    border-radius: var(--radius);
    background: rgba(41, 37, 36, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card-link:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card);
    border-color: rgba(245, 158, 11, 0.45);
}

.movie-poster-wrap {
    position: relative;
    margin: 0;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: var(--stone-800);
}

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

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

.movie-type,
.rank-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 9px;
    border-radius: 999px;
    color: #fff;
    background: rgba(217, 119, 6, 0.92);
    font-size: 0.8rem;
    font-weight: 800;
}

.rank-badge {
    right: auto;
    left: 10px;
    background: rgba(12, 10, 9, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.movie-card-body h3 {
    margin: 0 0 8px;
    min-height: 2.8em;
    color: var(--stone-100);
    font-size: 1rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-meta {
    margin: 0 0 8px;
    color: var(--stone-400);
    font-size: 0.86rem;
}

.movie-desc {
    margin: 0;
    color: var(--stone-300);
    font-size: 0.9rem;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rank-strip {
    padding-bottom: 24px;
}

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

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

.rank-row {
    display: grid;
    grid-template-columns: 48px 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 16px;
    color: var(--stone-200);
    background: rgba(41, 37, 36, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-row:hover {
    transform: translateX(4px);
    border-color: rgba(245, 158, 11, 0.42);
}

.rank-num {
    color: var(--amber-300);
    font-weight: 900;
    font-size: 1.1rem;
}

.rank-title {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-weight: 750;
}

.rank-meta {
    color: var(--stone-400);
    font-size: 0.9rem;
}

.page-main {
    padding-bottom: 40px;
}

.page-hero {
    position: relative;
    padding: 74px 0 50px;
    background:
        radial-gradient(circle at 20% 10%, rgba(245, 158, 11, 0.2), transparent 24rem),
        linear-gradient(135deg, rgba(120, 53, 15, 0.65), rgba(12, 10, 9, 0.96));
    border-bottom: 1px solid rgba(245, 158, 11, 0.12);
}

.page-hero h1 {
    margin: 10px 0 14px;
    font-size: clamp(2.1rem, 5vw, 4.3rem);
    line-height: 1;
    letter-spacing: -0.05em;
}

.page-hero p {
    max-width: 780px;
    margin: 0;
    font-size: 1.06rem;
}

.filter-panel {
    margin: 34px 0 26px;
    padding: 22px;
    border-radius: var(--radius);
    background: rgba(41, 37, 36, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-soft);
}

.filter-controls {
    display: grid;
    grid-template-columns: 1fr 180px 180px;
    gap: 12px;
}

.filter-controls input,
.filter-controls select {
    min-height: 46px;
    padding: 0 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.category-overview {
    padding-top: 22px;
}

.category-overview-block {
    margin-bottom: 56px;
}

.detail-hero {
    position: relative;
    min-height: 520px;
    overflow: hidden;
    background: var(--stone-950);
}

.detail-bg,
.detail-bg-mask {
    position: absolute;
    inset: 0;
}

.detail-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(12px) saturate(1.1);
    transform: scale(1.05);
    opacity: 0.38;
}

.detail-bg-mask {
    background:
        linear-gradient(90deg, rgba(12, 10, 9, 0.98), rgba(12, 10, 9, 0.66)),
        linear-gradient(0deg, var(--stone-950), transparent 45%);
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 34px;
    align-items: center;
    padding: 76px 0 58px;
}

.detail-poster {
    overflow: hidden;
    border-radius: 24px;
    box-shadow: var(--shadow-card);
    background: var(--stone-800);
}

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

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

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

.detail-info h1 {
    margin: 14px 0 18px;
    font-size: clamp(2.2rem, 5vw, 5rem);
    line-height: 1;
    letter-spacing: -0.05em;
}

.detail-one-line {
    max-width: 800px;
    margin: 0 0 24px;
    font-size: 1.12rem;
}

.player-section {
    margin-top: -54px;
    position: relative;
    z-index: 3;
}

.video-shell {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #000;
    box-shadow: var(--shadow-card);
    aspect-ratio: 16 / 9;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

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

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.28), rgba(0, 0, 0, 0.52));
    cursor: pointer;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-triangle {
    width: 86px;
    height: 86px;
    border-radius: 50%;
    background: rgba(245, 158, 11, 0.9);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.35);
    position: relative;
}

.play-triangle::after {
    content: "";
    position: absolute;
    left: 34px;
    top: 25px;
    border-left: 25px solid var(--stone-950);
    border-top: 17px solid transparent;
    border-bottom: 17px solid transparent;
}

.detail-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
    margin-top: 42px;
}

.detail-article,
.detail-side,
.rank-feature {
    padding: 28px;
    border-radius: var(--radius);
    background: rgba(41, 37, 36, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: var(--shadow-soft);
}

.detail-article h2,
.detail-side h2 {
    margin: 0 0 16px;
}

.detail-article h2:not(:first-child) {
    margin-top: 30px;
}

.detail-article p {
    margin: 0;
    white-space: pre-line;
}

.info-list {
    margin: 0;
}

.info-list div {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.info-list dt {
    color: var(--stone-400);
}

.info-list dd {
    margin: 0;
    color: var(--stone-100);
}

.site-footer {
    margin-top: 74px;
    padding: 38px 0;
    background: linear-gradient(180deg, rgba(28, 25, 23, 0.2), var(--stone-950));
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 28px;
    align-items: center;
}

.footer-inner strong {
    color: var(--amber-200);
    font-size: 1.2rem;
}

.footer-inner p {
    margin: 8px 0 0;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    color: var(--stone-300);
}

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

@media (max-width: 1120px) {
    .movie-grid,
    .small-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

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

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

@media (max-width: 820px) {
    .nav-toggle {
        display: inline-block;
    }

    .primary-nav {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 74px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        border-radius: 18px;
        background: rgba(28, 25, 23, 0.98);
        box-shadow: var(--shadow-card);
    }

    .primary-nav.is-open {
        display: flex;
    }

    .nav-link {
        padding: 13px 14px;
        border-radius: 12px;
    }

    .hero {
        min-height: 82vh;
    }

    .hero-overlay {
        background:
            linear-gradient(180deg, rgba(12, 10, 9, 0.35), rgba(12, 10, 9, 0.96)),
            linear-gradient(0deg, var(--stone-950), transparent 42%);
    }

    .hero-content {
        padding: 90px 0 154px;
        justify-content: end;
    }

    .hero-search {
        border-radius: 22px;
        flex-direction: column;
        gap: 8px;
    }

    .hero-search input {
        min-height: 44px;
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.07);
    }

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

    .intro-strip,
    .section-heading,
    .filter-title-row,
    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }

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

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

    .category-grid,
    .rank-list,
    .rank-list.wide {
        grid-template-columns: 1fr;
    }

    .rank-row {
        grid-template-columns: 42px 1fr;
    }

    .rank-meta {
        grid-column: 2;
    }

    .detail-hero-inner,
    .detail-content-grid {
        grid-template-columns: 1fr;
    }

    .detail-poster {
        width: min(260px, 72vw);
    }

    .player-section {
        margin-top: -24px;
    }
}

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

    .movie-grid,
    .small-grid {
        grid-template-columns: 1fr;
    }

    .movie-card-link {
        display: grid;
        grid-template-columns: 118px 1fr;
    }

    .movie-poster-wrap {
        aspect-ratio: 3 / 4;
        height: 100%;
    }

    .movie-card-body h3 {
        min-height: auto;
    }
}
