:root {
    --amber-950: #451a03;
    --amber-900: #78350f;
    --amber-800: #92400e;
    --amber-700: #b45309;
    --amber-600: #d97706;
    --amber-500: #f59e0b;
    --orange-500: #f97316;
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-200: #e2e8f0;
    --slate-100: #f1f5f9;
    --slate-50: #f8fafc;
    --white: #ffffff;
    --shadow-soft: 0 18px 50px rgba(15, 23, 42, 0.12);
    --shadow-warm: 0 18px 45px rgba(146, 64, 14, 0.18);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--slate-900);
    background: var(--slate-50);
    font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", Arial, 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(100% - 32px, var(--container));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    color: var(--white);
    background: linear-gradient(90deg, var(--amber-950), var(--amber-800), var(--amber-950));
    box-shadow: 0 14px 40px rgba(69, 26, 3, 0.28);
}

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

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

.brand-mark {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    color: var(--white);
    font-size: 25px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--amber-500), var(--amber-700));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 12px 28px rgba(0, 0, 0, 0.22);
    transition: transform 0.25s ease;
}

.brand:hover .brand-mark {
    transform: scale(1.08) rotate(-3deg);
}

.brand-text {
    display: grid;
    line-height: 1.15;
}

.brand-text strong {
    font-size: 22px;
    letter-spacing: 0.02em;
}

.brand-text small {
    color: #fde68a;
    font-size: 12px;
}

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

.desktop-nav a,
.mobile-nav a {
    padding: 10px 16px;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.92);
    transition: background 0.25s ease, transform 0.25s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
    background: rgba(251, 191, 36, 0.2);
    transform: translateY(-1px);
}

.menu-button {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    cursor: pointer;
}

.menu-button span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 5px auto;
    background: var(--white);
}

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

.mobile-nav.open {
    display: grid;
    gap: 6px;
}

.hero-carousel {
    position: relative;
    min-height: 680px;
    color: var(--white);
    background: var(--amber-950);
    overflow: hidden;
}

.hero-slide {
    display: none;
    min-height: 680px;
    background-position: center;
    background-size: cover;
}

.hero-slide.active {
    display: block;
    animation: fadeIn 0.7s ease both;
}

.hero-content {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) 360px;
    align-items: center;
    gap: 48px;
    min-height: 680px;
    padding: 64px 0;
}

.hero-copy {
    max-width: 760px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: #fde68a;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.eyebrow.dark {
    color: var(--amber-700);
}

.hero-copy h1,
.page-hero h1,
.detail-info h1 {
    margin: 0;
    font-size: clamp(38px, 6vw, 74px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero-copy p {
    max-width: 660px;
    margin: 22px 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 20px;
}

.hero-meta,
.detail-actions,
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.hero-meta span {
    padding: 7px 12px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
}

.hero-actions {
    margin-top: 30px;
}

.primary-button,
.ghost-button,
.hero-search button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 24px;
    border: 0;
    border-radius: 999px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.primary-button {
    color: var(--white);
    background: linear-gradient(90deg, var(--amber-500), var(--orange-500));
    box-shadow: 0 15px 35px rgba(245, 158, 11, 0.32);
}

.primary-button:hover,
.hero-search button:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 44px rgba(245, 158, 11, 0.36);
}

.ghost-button {
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.08);
}

.ghost-button:hover {
    color: var(--amber-950);
    background: var(--white);
}

.ghost-button.warm {
    color: var(--amber-700);
    border-color: var(--amber-500);
    background: var(--white);
}

.hero-search {
    display: flex;
    width: min(100%, 620px);
    margin-top: 28px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(16px);
}

.hero-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    color: var(--white);
    background: transparent;
    padding: 0 18px;
}

.hero-search input::placeholder {
    color: rgba(255, 255, 255, 0.72);
}

.hero-search button {
    color: var(--amber-950);
    background: var(--white);
}

.hero-poster {
    position: relative;
    display: block;
    overflow: hidden;
    border: 10px solid rgba(255, 255, 255, 0.12);
    border-radius: 32px;
    box-shadow: 0 35px 80px rgba(0, 0, 0, 0.4);
    transform: rotate(2deg);
}

.hero-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    background: linear-gradient(135deg, var(--amber-900), var(--slate-900));
}

.hero-poster span {
    position: absolute;
    right: 18px;
    bottom: 18px;
    padding: 8px 14px;
    border-radius: 999px;
    color: var(--amber-950);
    background: var(--white);
    font-weight: 800;
}

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

.hero-dots button {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.42);
    cursor: pointer;
}

.hero-dots button.active {
    width: 34px;
    border-radius: 999px;
    background: var(--white);
}

.section {
    padding: 76px 0;
}

.section-light {
    background: var(--white);
}

.section-warm {
    background: linear-gradient(135deg, #fff7ed, #fffbeb);
}

.section-heading {
    margin-bottom: 34px;
    text-align: center;
}

.section-heading.align-left {
    text-align: left;
}

.section-heading h2,
.rank-panel h2,
.story-card h2 {
    margin: 0;
    color: var(--slate-900);
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.12;
    letter-spacing: -0.03em;
}

.section-heading p,
.page-hero p {
    max-width: 720px;
    margin: 12px auto 0;
    color: var(--slate-600);
    font-size: 17px;
}

.inline-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    text-align: left;
}

.inline-heading p {
    margin-left: 0;
}

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

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

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

.category-card {
    display: grid;
    gap: 16px;
    padding: 18px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-thumbs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.category-thumbs img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--amber-800), var(--slate-800));
}

.category-copy {
    display: grid;
    gap: 4px;
}

.category-copy strong {
    font-size: 20px;
}

.category-copy small,
.card-meta,
.compact-card small {
    color: var(--slate-500);
}

.category-arrow {
    color: var(--amber-700);
    font-weight: 800;
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-link,
.poster-frame {
    display: block;
}

.poster-frame {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--amber-900), var(--slate-900));
}

.poster-frame img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform 0.45s ease;
}

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

.poster-shade {
    position: absolute;
    inset: auto 0 0;
    height: 46%;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.78), transparent);
}

.poster-score {
    position: absolute;
    right: 12px;
    top: 12px;
    padding: 5px 9px;
    border-radius: 999px;
    color: var(--white);
    background: rgba(245, 158, 11, 0.92);
    font-weight: 900;
}

.card-body {
    padding: 16px;
}

.card-tags,
.rank-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.card-tags span,
.rank-tags span {
    padding: 4px 8px;
    border-radius: 999px;
    color: var(--amber-800);
    background: #fef3c7;
    font-size: 12px;
    font-weight: 800;
}

.big-tags span {
    padding: 7px 12px;
    font-size: 13px;
}

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

.movie-card h3 a:hover,
.ranking-row h2 a:hover,
.movie-data-list a:hover {
    color: var(--amber-700);
}

.card-meta {
    margin: 0 0 10px;
    font-size: 13px;
}

.card-desc {
    display: -webkit-box;
    min-height: 48px;
    margin: 0;
    overflow: hidden;
    color: var(--slate-700);
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

.rank-panel {
    position: sticky;
    top: 98px;
    padding: 24px;
    border-radius: var(--radius-xl);
    color: var(--white);
    background: linear-gradient(160deg, var(--amber-950), var(--amber-800));
    box-shadow: var(--shadow-warm);
}

.rank-panel h2 {
    color: var(--white);
    font-size: 30px;
}

.compact-list {
    display: grid;
    gap: 12px;
    margin-top: 20px;
}

.compact-card {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.1);
}

.compact-card img {
    width: 58px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--amber-800), var(--slate-900));
}

.compact-card strong,
.compact-card small {
    display: block;
}

.compact-card small {
    color: rgba(255, 255, 255, 0.7);
}

.compact-card em {
    color: #fde68a;
    font-style: normal;
    font-weight: 900;
}

.page-hero,
.detail-hero {
    color: var(--white);
    background-color: var(--amber-950);
    background-position: center;
    background-size: cover;
}

.simple-hero {
    background: radial-gradient(circle at 20% 10%, rgba(245, 158, 11, 0.35), transparent 35%), linear-gradient(135deg, var(--amber-950), var(--slate-950));
}

.page-hero .container {
    padding: 86px 0;
}

.page-hero h1 {
    font-size: clamp(42px, 5vw, 68px);
}

.page-hero p {
    margin-left: 0;
    color: rgba(255, 255, 255, 0.82);
}

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

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

.page-filter {
    display: flex;
    align-items: center;
    gap: 12px;
    width: min(100%, 560px);
    margin-top: 28px;
    padding: 10px 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
}

.page-filter span {
    font-weight: 800;
    white-space: nowrap;
}

.page-filter input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    color: var(--white);
    background: transparent;
}

.page-filter input::placeholder {
    color: rgba(255, 255, 255, 0.64);
}

.search-wide {
    width: min(100%, 760px);
}

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

.ranking-row {
    display: grid;
    grid-template-columns: 70px 92px minmax(0, 1fr) 80px;
    gap: 18px;
    align-items: center;
    padding: 16px;
    border-radius: 24px;
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.ranking-row.top {
    border: 1px solid rgba(245, 158, 11, 0.38);
    background: linear-gradient(135deg, #fff7ed, var(--white));
}

.rank-number {
    color: var(--amber-700);
    font-size: 28px;
    font-weight: 900;
}

.rank-poster img {
    width: 92px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--amber-800), var(--slate-800));
}

.rank-copy h2 {
    margin: 0 0 8px;
    font-size: 22px;
}

.rank-copy p {
    margin: 0 0 10px;
    color: var(--slate-600);
}

.rank-score {
    display: grid;
    justify-items: end;
}

.rank-score strong {
    color: var(--amber-700);
    font-size: 26px;
}

.rank-score span {
    color: var(--slate-500);
}

.detail-hero {
    background: radial-gradient(circle at 20% 0%, rgba(245, 158, 11, 0.2), transparent 38%), linear-gradient(145deg, var(--slate-950), var(--amber-950));
}

.detail-hero .container {
    padding: 42px 0 74px;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    gap: 34px;
    align-items: center;
}

.player-card {
    position: relative;
    overflow: hidden;
    border: 10px solid rgba(255, 255, 255, 0.08);
    border-radius: 30px;
    background: var(--slate-950);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
}

.player-card video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--slate-950);
}

.big-play {
    position: absolute;
    left: 50%;
    top: 50%;
    display: grid;
    place-items: center;
    width: 82px;
    height: 82px;
    border: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
    box-shadow: 0 20px 50px rgba(245, 158, 11, 0.35);
    cursor: pointer;
    transform: translate(-50%, -50%);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.big-play span {
    width: 0;
    height: 0;
    margin-left: 6px;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 23px solid var(--white);
}

.player-card.is-playing .big-play {
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0.9);
}

.detail-info h1 {
    font-size: clamp(34px, 5vw, 58px);
}

.detail-line {
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
}

.detail-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 26px 0;
}

.detail-meta-grid span {
    display: grid;
    gap: 3px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.09);
}

.detail-meta-grid small {
    color: rgba(255, 255, 255, 0.62);
}

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

.story-card {
    padding: 28px;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.story-card.full {
    grid-column: 1 / -1;
}

.story-card h2 {
    margin-bottom: 14px;
    font-size: 28px;
}

.story-card p {
    margin: 0;
    color: var(--slate-700);
    font-size: 17px;
}

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

.movie-data-list div {
    padding: 14px;
    border-radius: 14px;
    background: var(--slate-50);
}

.movie-data-list dt {
    color: var(--slate-500);
    font-size: 13px;
}

.movie-data-list dd {
    margin: 4px 0 0;
    font-weight: 800;
}

.search-results {
    display: grid;
    gap: 18px;
}

.search-result-card {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 16px;
    border-radius: 22px;
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.search-result-card img {
    width: 86px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--amber-800), var(--slate-800));
}

.search-result-card h2 {
    margin: 0 0 6px;
    font-size: 22px;
}

.search-result-card p {
    margin: 0;
    color: var(--slate-600);
}

.search-result-card strong {
    color: var(--amber-700);
}

.site-footer {
    color: rgba(255, 255, 255, 0.78);
    background: linear-gradient(180deg, var(--slate-900), var(--slate-950));
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 1fr;
    gap: 34px;
    padding: 46px 0;
}

.site-footer h2 {
    margin: 0 0 12px;
    color: var(--white);
    font-size: 20px;
}

.site-footer p {
    margin: 0;
}

.site-footer a {
    display: block;
    margin: 8px 0;
}

.site-footer a:hover {
    color: #fde68a;
}

.footer-bottom {
    padding: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.52);
    text-align: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

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

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

    .hero-poster {
        width: min(100%, 330px);
        margin: 0 auto;
    }

    .rank-panel {
        position: static;
    }
}

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

    .menu-button {
        display: block;
    }

    .brand-text strong {
        font-size: 18px;
    }

    .hero-carousel,
    .hero-slide,
    .hero-content {
        min-height: auto;
    }

    .hero-content {
        padding: 58px 0 86px;
    }

    .hero-copy p {
        font-size: 17px;
    }

    .hero-search,
    .page-filter {
        align-items: stretch;
        flex-direction: column;
        border-radius: 22px;
    }

    .hero-search input,
    .page-filter input {
        min-height: 42px;
    }

    .category-grid,
    .category-grid.large,
    .movie-grid,
    .movie-grid.small-grid,
    .related-grid,
    .article-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .inline-heading {
        display: grid;
    }

    .ranking-row,
    .search-result-card {
        grid-template-columns: 64px minmax(0, 1fr);
    }

    .rank-poster,
    .rank-score,
    .search-result-card strong {
        display: none;
    }

    .detail-meta-grid,
    .movie-data-list {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 54px 0;
    }
}
