:root {
    --bg: #fff7ed;
    --paper: #ffffff;
    --ink: #1f2937;
    --muted: #6b7280;
    --line: #f3d7ad;
    --amber: #f59e0b;
    --amber-dark: #b45309;
    --orange: #ea580c;
    --yellow: #facc15;
    --red: #ef4444;
    --shadow: 0 18px 45px rgba(146, 64, 14, 0.14);
    --soft-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    color: var(--ink);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(251, 191, 36, 0.24), transparent 32rem),
        linear-gradient(135deg, #fffaf0 0%, #fff7ed 45%, #fef3c7 100%);
}

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: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(245, 158, 11, 0.18);
    box-shadow: 0 8px 24px rgba(146, 64, 14, 0.08);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.brand-mark {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    flex: none;
    border-radius: 15px;
    color: #ffffff;
    font-size: 26px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--yellow), var(--amber), var(--orange));
    box-shadow: 0 10px 22px rgba(234, 88, 12, 0.32);
}

.brand-copy {
    display: grid;
    gap: 2px;
}

.brand-name {
    font-size: 24px;
    font-weight: 900;
    line-height: 1.1;
    color: transparent;
    background: linear-gradient(90deg, var(--amber-dark), var(--orange), #ca8a04);
    -webkit-background-clip: text;
    background-clip: text;
    white-space: nowrap;
}

.brand-sub {
    color: var(--muted);
    font-size: 12px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    color: #374151;
    font-size: 15px;
    font-weight: 700;
}

.nav-links a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover {
    color: var(--amber-dark);
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    border: 0;
    border-radius: 12px;
    padding: 9px 12px;
    background: #fef3c7;
    color: var(--amber-dark);
    cursor: pointer;
}

.mobile-nav {
    display: none;
    border-top: 1px solid rgba(245, 158, 11, 0.18);
    background: rgba(255, 255, 255, 0.97);
}

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

.mobile-nav a {
    display: block;
    padding: 14px 0;
    font-weight: 700;
    border-bottom: 1px solid #f8e1bc;
}

.hero-slider {
    position: relative;
    min-height: 70vh;
    overflow: hidden;
    background: #111827;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s ease;
}

.hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

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

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.56) 46%, rgba(0, 0, 0, 0.08) 100%),
        linear-gradient(0deg, rgba(0, 0, 0, 0.55), transparent 38%);
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.hero-copy {
    width: min(680px, 100%);
    color: #ffffff;
    padding: 74px 0 92px;
}

.hero-badge,
.section-kicker,
.rank-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 800;
    color: #ffffff;
    background: linear-gradient(90deg, var(--amber), var(--orange));
    box-shadow: 0 10px 22px rgba(234, 88, 12, 0.35);
}

.hero-copy h1,
.hero-copy h2 {
    margin: 22px 0 14px;
    font-size: clamp(42px, 7vw, 72px);
    line-height: 1.02;
    letter-spacing: -0.04em;
    font-weight: 950;
}

.hero-copy p {
    margin: 0;
    color: #e5e7eb;
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.7;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 22px 0 30px;
    color: #fef3c7;
    font-size: 14px;
}

.hero-meta span {
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(6px);
}

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

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 22px;
    border-radius: 999px;
    border: 0;
    color: #ffffff;
    font-weight: 850;
    cursor: pointer;
    background: linear-gradient(90deg, var(--amber), var(--orange));
    box-shadow: 0 14px 30px rgba(234, 88, 12, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 18px 36px rgba(234, 88, 12, 0.36);
}

.button.secondary {
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.32);
    backdrop-filter: blur(8px);
}

.button.light {
    color: var(--amber-dark);
    background: #ffffff;
    box-shadow: var(--soft-shadow);
}

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

.hero-dots button {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    padding: 0;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease;
}

.hero-dots button.is-active {
    width: 30px;
    background: var(--amber);
}

.section {
    padding: 68px 0;
}

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

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

.section-title {
    display: grid;
    gap: 10px;
}

.section-title h2,
.section-title h1 {
    margin: 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.15;
    font-weight: 950;
    color: #1f2937;
}

.section-title p {
    margin: 0;
    color: var(--muted);
    line-height: 1.75;
    max-width: 760px;
}

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

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

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

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

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

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

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

.poster-wrap::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 44%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent);
}

.card-badge,
.card-duration {
    position: absolute;
    z-index: 2;
    top: 10px;
    border-radius: 999px;
    padding: 5px 9px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    background: rgba(0, 0, 0, 0.66);
    backdrop-filter: blur(7px);
}

.card-badge {
    left: 10px;
}

.card-duration {
    right: 10px;
}

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

.movie-body h3 {
    margin: 0 0 8px;
    font-size: 15px;
    line-height: 1.35;
    min-height: 40px;
    font-weight: 850;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-body p {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
    min-height: 40px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: #92400e;
    font-size: 12px;
    font-weight: 750;
}

.card-meta span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.feature-panel {
    border-radius: 30px;
    padding: 34px;
    background: linear-gradient(135deg, #fff7ed 0%, #fffbeb 52%, #fef3c7 100%);
    box-shadow: var(--soft-shadow);
}

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

.category-tile {
    display: grid;
    gap: 12px;
    border-radius: 22px;
    padding: 22px;
    min-height: 170px;
    color: #ffffff;
    background: linear-gradient(135deg, #d97706, #ea580c);
    box-shadow: 0 16px 34px rgba(234, 88, 12, 0.26);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-tile:nth-child(3n + 2) {
    background: linear-gradient(135deg, #f59e0b, #ca8a04);
}

.category-tile:nth-child(3n) {
    background: linear-gradient(135deg, #b45309, #f97316);
}

.category-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(234, 88, 12, 0.32);
}

.category-tile strong {
    font-size: 22px;
}

.category-tile span {
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.65;
}

.ranking-list {
    display: grid;
    gap: 14px;
}

.rank-row {
    display: grid;
    grid-template-columns: 58px 86px 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 14px;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: var(--soft-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-row:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow);
}

.rank-number {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: #ffffff;
    font-size: 18px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--yellow), var(--orange));
}

.rank-thumb {
    aspect-ratio: 3 / 4;
    border-radius: 14px;
    overflow: hidden;
    background: #fef3c7;
}

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

.rank-info h3 {
    margin: 0 0 7px;
    font-size: 18px;
    font-weight: 900;
}

.rank-info p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rank-stats {
    color: #92400e;
    font-weight: 850;
    white-space: nowrap;
}

.page-hero {
    padding: 64px 0 34px;
}

.page-card {
    border-radius: 30px;
    padding: 36px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow);
}

.toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin: 0 0 26px;
}

.search-input,
.select-input {
    min-height: 46px;
    border: 1px solid #f3d7ad;
    border-radius: 999px;
    padding: 0 18px;
    color: #374151;
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(146, 64, 14, 0.06);
    outline: none;
}

.search-input {
    flex: 1 1 280px;
}

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

.filter-chip {
    min-height: 40px;
    border: 0;
    border-radius: 999px;
    padding: 0 15px;
    color: #92400e;
    font-weight: 800;
    background: #ffffff;
    box-shadow: var(--soft-shadow);
    cursor: pointer;
}

.filter-chip:hover,
.filter-chip.is-active {
    color: #ffffff;
    background: linear-gradient(90deg, var(--amber), var(--orange));
}

.detail-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: #111827;
}

.detail-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.34;
    filter: blur(1px);
}

.detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.48)),
        linear-gradient(0deg, rgba(0, 0, 0, 0.76), transparent 48%);
}

.detail-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 34px;
    align-items: end;
    padding: 68px 0;
}

.detail-poster {
    border-radius: 26px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: #fde68a;
    font-size: 14px;
    font-weight: 750;
}

.detail-copy h1 {
    margin: 0 0 14px;
    font-size: clamp(38px, 6vw, 66px);
    line-height: 1.08;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.detail-copy .one-line {
    margin: 0 0 22px;
    max-width: 850px;
    color: #e5e7eb;
    font-size: 20px;
    line-height: 1.75;
}

.meta-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.meta-pills span {
    border-radius: 999px;
    padding: 7px 12px;
    color: #fffbeb;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(8px);
    font-size: 13px;
    font-weight: 800;
}

.player-section {
    padding: 54px 0 24px;
}

.player-shell {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    background: #000000;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
    aspect-ratio: 16 / 9;
}

.movie-video {
    width: 100%;
    height: 100%;
    background: #000000;
}

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 3;
    border: 0;
    padding: 0;
    background: #000000;
    cursor: pointer;
}

.player-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.58;
}

.player-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(245, 158, 11, 0.12), rgba(0, 0, 0, 0.42));
}

.player-cover.is-hidden {
    display: none;
}

.play-circle {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 5;
    width: 84px;
    height: 84px;
    display: grid;
    place-items: center;
    transform: translate(-50%, -50%);
    border-radius: 999px;
    color: #ffffff;
    font-size: 34px;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    box-shadow: 0 18px 42px rgba(234, 88, 12, 0.46);
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 26px;
    padding: 26px 0 72px;
}

.article-card {
    border-radius: 28px;
    padding: 30px;
    background: #ffffff;
    box-shadow: var(--soft-shadow);
}

.article-card h2 {
    margin: 0 0 14px;
    color: #1f2937;
    font-size: 26px;
    font-weight: 950;
}

.article-card p {
    margin: 0 0 22px;
    color: #4b5563;
    font-size: 16px;
    line-height: 1.9;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.tag-list span {
    border-radius: 999px;
    padding: 7px 12px;
    color: #92400e;
    background: #fef3c7;
    font-size: 13px;
    font-weight: 800;
}

.side-card {
    position: sticky;
    top: 98px;
    align-self: start;
    border-radius: 26px;
    padding: 22px;
    background: #ffffff;
    box-shadow: var(--soft-shadow);
}

.side-card h2 {
    margin: 0 0 16px;
    font-size: 22px;
    font-weight: 950;
}

.mini-list {
    display: grid;
    gap: 14px;
}

.mini-item {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.mini-item img {
    width: 64px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 12px;
}

.mini-item strong {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mini-item span {
    color: var(--muted);
    font-size: 12px;
}

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

.empty-state {
    display: none;
    border-radius: 24px;
    padding: 32px;
    text-align: center;
    color: var(--muted);
    background: #ffffff;
    box-shadow: var(--soft-shadow);
}

.site-footer {
    color: #fffbeb;
    background: linear-gradient(90deg, #78350f, #7c2d12, #713f12);
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 32px;
    padding: 44px 0;
}

.footer-inner h2,
.footer-inner h3 {
    margin: 0 0 14px;
    color: #fde68a;
}

.footer-inner p,
.footer-inner a {
    color: #fcd9a6;
    line-height: 1.8;
}

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

.footer-bottom {
    padding: 18px 0;
    color: #fcd9a6;
    border-top: 1px solid rgba(253, 230, 138, 0.18);
    font-size: 13px;
}

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

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

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

    .side-card {
        position: static;
    }
}

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

    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .brand-name {
        font-size: 19px;
    }

    .brand-sub {
        display: none;
    }

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

    .hero-copy {
        padding: 92px 0 110px;
    }

    .section {
        padding: 46px 0;
    }

    .section-head {
        display: grid;
        align-items: start;
    }

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

    .movie-body {
        padding: 12px;
    }

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

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

    .rank-stats {
        grid-column: 3;
    }

    .page-card {
        padding: 24px;
        border-radius: 24px;
    }

    .detail-grid {
        grid-template-columns: 1fr;
        padding: 44px 0;
    }

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

    .detail-copy .one-line {
        font-size: 17px;
    }

    .player-shell {
        border-radius: 18px;
    }

    .play-circle {
        width: 68px;
        height: 68px;
        font-size: 28px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }
}

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

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

    .movie-body p {
        display: none;
    }

    .hero-copy h1,
    .hero-copy h2 {
        font-size: 40px;
    }

    .rank-info p {
        display: none;
    }
}
