:root {
    --color-ink: #292524;
    --color-muted: #78716c;
    --color-soft: #fafaf9;
    --color-card: #ffffff;
    --color-line: #e7e5e4;
    --color-amber: #d97706;
    --color-amber-dark: #92400e;
    --color-amber-soft: #fef3c7;
    --color-night: #1c1917;
    --shadow-card: 0 16px 40px rgba(41, 37, 36, 0.12);
    --shadow-hover: 0 24px 56px rgba(41, 37, 36, 0.18);
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 10px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--color-ink);
    background: linear-gradient(180deg, #fffbeb 0%, #fafaf9 38%, #f5f5f4 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255, 251, 235, 0.92);
    border-bottom: 1px solid rgba(231, 229, 228, 0.8);
    backdrop-filter: blur(16px);
}

.nav-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

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

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    color: #fff;
    background: linear-gradient(135deg, #f59e0b, #b45309);
    border-radius: 13px;
    box-shadow: 0 12px 26px rgba(217, 119, 6, 0.32);
}

.brand-text {
    font-size: 22px;
    color: var(--color-ink);
}

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

.nav-link {
    padding: 10px 14px;
    border-radius: 999px;
    color: #57534e;
    font-weight: 700;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
    background: var(--color-amber);
    transform: translateY(-1px);
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: var(--color-amber);
    cursor: pointer;
}

.mobile-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: #fff;
    border-radius: 999px;
}

.mobile-nav {
    display: none;
    padding: 0 16px 16px;
}

.mobile-nav .nav-link {
    display: block;
    margin: 6px auto;
    max-width: 1180px;
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: 680px;
    background: linear-gradient(135deg, #92400e 0%, #d97706 54%, #f59e0b 100%);
}

.hero:before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.22), transparent 26%), radial-gradient(circle at 78% 38%, rgba(255, 255, 255, 0.16), transparent 28%);
    pointer-events: none;
}

.hero-slider {
    position: relative;
    min-height: 680px;
}

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

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

.hero-image {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
}

.hero-image:after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(28, 25, 23, 0.08), rgba(28, 25, 23, 0.62));
}

.hero-copy {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 100px 0 160px;
    color: #fff;
}

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

.hero h1 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(42px, 8vw, 82px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero-desc {
    max-width: 660px;
    margin: 24px 0 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(17px, 2.2vw, 22px);
}

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

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

.hero-tags span,
.tag-list span {
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
}

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

.tag-list span {
    color: #92400e;
    background: #fffbeb;
    border: 1px solid #fde68a;
}

.hero-actions,
.section-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 34px;
}

.primary-button,
.ghost-button,
.text-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
    min-height: 48px;
    padding: 0 24px;
    color: #fff;
    background: var(--color-amber);
    box-shadow: 0 16px 36px rgba(217, 119, 6, 0.32);
}

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

.ghost-button {
    min-height: 48px;
    padding: 0 24px;
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(12px);
}

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

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

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

.hero-strip {
    position: absolute;
    left: 50%;
    bottom: 0;
    z-index: 6;
    width: min(1180px, calc(100% - 32px));
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    transform: translate(-50%, 50%);
}

.hero-mini {
    min-height: 104px;
    padding: 14px;
    color: #fff;
    background: rgba(41, 37, 36, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(16px);
}

.hero-mini strong {
    display: block;
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hero-mini span {
    color: #fef3c7;
    font-size: 13px;
}

.section {
    padding: 86px 0;
}

.section.tight {
    padding-top: 54px;
}

.section.alt {
    background: rgba(245, 245, 244, 0.72);
}

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

.section-kicker {
    margin: 0 0 8px;
    color: var(--color-amber);
    font-weight: 900;
    letter-spacing: 0.12em;
}

.section-head h2,
.page-hero h1,
.category-hero h1,
.watch-title h1 {
    margin: 0;
    color: var(--color-ink);
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.section-head h2 {
    font-size: clamp(28px, 4vw, 44px);
}

.section-head p,
.page-hero p,
.category-hero p {
    margin: 10px 0 0;
    color: var(--color-muted);
}

.text-button {
    color: var(--color-amber-dark);
    background: var(--color-amber-soft);
    padding: 12px 16px;
}

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

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

.movie-card {
    min-width: 0;
    background: var(--color-card);
    border: 1px solid rgba(231, 229, 228, 0.9);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.movie-link {
    display: block;
    height: 100%;
}

.poster-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, #fef3c7, #d6d3d1);
}

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

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

.corner-tag,
.rank-badge {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 9px;
    color: #fff;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.corner-tag {
    right: 10px;
    top: 10px;
    background: rgba(146, 64, 14, 0.92);
}

.rank-badge {
    left: 10px;
    top: 10px;
    background: #dc2626;
}

.movie-info {
    padding: 14px;
}

.movie-info h3 {
    min-height: 44px;
    margin: 0;
    display: -webkit-box;
    overflow: hidden;
    color: var(--color-ink);
    font-size: 16px;
    line-height: 1.38;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-meta,
.movie-desc {
    margin: 8px 0 0;
    color: var(--color-muted);
    font-size: 13px;
}

.movie-desc {
    display: -webkit-box;
    min-height: 38px;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

.category-card {
    min-height: 190px;
    padding: 24px;
    background: linear-gradient(145deg, #fff, #fffbeb);
    border: 1px solid #fde68a;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.category-card h2,
.category-card h3 {
    margin: 0 0 10px;
    color: var(--color-ink);
}

.category-card p {
    margin: 0;
    color: var(--color-muted);
    font-size: 14px;
}

.page-hero,
.category-hero {
    padding: 72px 0 44px;
    background: radial-gradient(circle at top left, #fef3c7, transparent 35%), linear-gradient(180deg, #fffbeb, #fafaf9);
}

.page-hero h1,
.category-hero h1 {
    font-size: clamp(34px, 6vw, 60px);
}

.filter-panel {
    display: grid;
    gap: 16px;
    margin: 26px 0 30px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(231, 229, 228, 0.9);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(10px);
}

.search-box {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 12px;
}

.search-box span {
    color: var(--color-amber-dark);
    font-weight: 900;
}

.search-box input {
    width: 100%;
    min-height: 48px;
    padding: 0 16px;
    color: var(--color-ink);
    background: #fff;
    border: 1px solid var(--color-line);
    border-radius: 14px;
    outline: 0;
}

.search-box input:focus {
    border-color: var(--color-amber);
    box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.12);
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-button {
    min-height: 38px;
    padding: 0 13px;
    color: #57534e;
    background: #fff;
    border: 1px solid #e7e5e4;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 800;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.filter-button:hover,
.filter-button.active {
    color: #fff;
    background: var(--color-amber);
    transform: translateY(-1px);
}

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

.rank-row {
    display: grid;
    grid-template-columns: 66px 110px 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 14px;
    background: #fff;
    border: 1px solid var(--color-line);
    border-radius: 18px;
    box-shadow: var(--shadow-card);
}

.rank-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    color: #fff;
    background: linear-gradient(135deg, #ef4444, #d97706);
    border-radius: 16px;
    font-weight: 900;
}

.rank-row img {
    width: 96px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 14px;
}

.rank-row h2,
.rank-row h3 {
    margin: 0 0 8px;
    font-size: 20px;
}

.rank-row p {
    margin: 0;
    color: var(--color-muted);
}

.watch-body {
    background: linear-gradient(180deg, #1c1917 0%, #292524 48%, #fffbeb 48%, #fafaf9 100%);
}

.watch-section {
    padding: 34px 0 70px;
    color: #fff;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
}

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

.watch-card {
    overflow: hidden;
    background: #0c0a09;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 28px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
}

.player-frame {
    position: relative;
    background: #000;
}

.player-frame video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

.play-layer {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: #fff;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.62));
    border: 0;
    cursor: pointer;
    font-size: 18px;
    font-weight: 900;
}

.play-layer:before {
    content: "▶";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    color: #fff;
    background: var(--color-amber);
    border-radius: 50%;
    box-shadow: 0 20px 44px rgba(217, 119, 6, 0.38);
}

.player-frame.is-playing .play-layer {
    display: none;
}

.detail-panel {
    padding: 34px;
}

.watch-title h1 {
    color: #fef3c7;
    font-size: clamp(28px, 5vw, 48px);
}

.watch-title p {
    max-width: 850px;
    margin: 14px 0 0;
    color: #d6d3d1;
    font-size: 18px;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 22px 0;
}

.detail-meta span {
    padding: 7px 12px;
    color: #fef3c7;
    background: rgba(217, 119, 6, 0.14);
    border: 1px solid rgba(251, 191, 36, 0.24);
    border-radius: 999px;
    font-weight: 800;
}

.detail-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin-top: 28px;
}

.detail-block {
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.detail-block h2 {
    margin: 0 0 10px;
    color: #fef3c7;
    font-size: 22px;
}

.detail-block p {
    margin: 0;
    color: #d6d3d1;
}

.related-section {
    padding: 72px 0;
}

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

.compact-card {
    display: block;
    min-width: 0;
    padding: 10px;
    background: #fff;
    border: 1px solid var(--color-line);
    border-radius: 16px;
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.compact-card img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.26s ease;
}

.compact-card span {
    display: block;
    margin-top: 10px;
    overflow: hidden;
    color: var(--color-ink);
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.compact-card em {
    display: block;
    color: var(--color-muted);
    font-size: 13px;
    font-style: normal;
}

.site-footer {
    padding: 44px 0;
    color: #d6d3d1;
    background: #1c1917;
}

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

.footer-brand {
    color: #fef3c7;
    font-size: 22px;
}

.site-footer p {
    max-width: 560px;
    margin: 10px 0 0;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-links a {
    padding: 9px 13px;
    color: #fef3c7;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
}

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

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

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

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

    .hero-mini:nth-child(n+4) {
        display: none;
    }
}

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

    .mobile-toggle {
        display: block;
    }

    .mobile-nav.is-open {
        display: block;
    }

    .hero,
    .hero-slider {
        min-height: 620px;
    }

    .hero-copy {
        padding: 86px 0 150px;
    }

    .hero-strip {
        grid-template-columns: 1fr;
        transform: translate(-50%, 42%);
    }

    .hero-mini:nth-child(n+2) {
        display: none;
    }

    .section {
        padding: 58px 0;
    }

    .section-head,
    .footer-grid {
        display: block;
    }

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

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

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

    .rank-row .primary-button {
        grid-column: 2 / 4;
        width: 100%;
    }

    .rank-row img {
        width: 78px;
    }

    .detail-panel {
        padding: 22px;
    }

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

    .search-box {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 460px) {
    .movie-grid,
    .movie-grid.large,
    .compact-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .movie-info {
        padding: 12px;
    }

    .movie-info h3 {
        font-size: 14px;
    }

    .movie-desc {
        display: none;
    }
}
