:root {
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --orange-500: #f97316;
    --orange-600: #ea580c;
    --yellow-50: #fefce8;
    --amber-50: #fffbeb;
    --orange-50: #fff7ed;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-500: #6b7280;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --white: #ffffff;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --shadow-lg: 0 18px 45px rgba(17, 24, 39, 0.12);
    --shadow-sm: 0 8px 24px rgba(17, 24, 39, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--gray-800);
    background: linear-gradient(135deg, var(--amber-50), var(--orange-50) 48%, var(--yellow-50));
    -webkit-font-smoothing: antialiased;
}

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, var(--amber-500), var(--orange-500), var(--amber-600));
    box-shadow: 0 10px 30px rgba(180, 83, 9, 0.28);
}

.header-inner {
    min-height: 64px;
    display: flex;
    align-items: center;
    gap: 22px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: var(--white);
    white-space: nowrap;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    font-size: 23px;
    transition: transform 0.25s ease;
}

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

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

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

.main-nav a,
.mobile-panel a {
    color: rgba(255, 255, 255, 0.92);
    font-weight: 700;
    transition: color 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover,
.main-nav a.is-active,
.mobile-panel a:hover,
.mobile-panel a.is-active {
    color: #fff7d6;
    transform: translateY(-1px);
}

.header-search,
.mobile-search,
.filter-panel {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-search input,
.mobile-search input,
.filter-panel input,
.filter-panel select {
    border: 0;
    outline: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--gray-800);
    padding: 11px 16px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.header-search input {
    width: 210px;
}

.header-search button,
.mobile-search button {
    border: 0;
    border-radius: 999px;
    background: var(--gray-900);
    color: var(--white);
    padding: 10px 16px;
    cursor: pointer;
}

.nav-toggle {
    display: none;
    margin-left: auto;
    border: 0;
    background: transparent;
    color: var(--white);
    font-size: 28px;
    cursor: pointer;
}

.mobile-panel {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
}

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

.mobile-panel nav {
    display: grid;
    gap: 12px;
    padding: 16px 0;
}

.mobile-search input {
    flex: 1;
}

.hero {
    position: relative;
    height: 600px;
    overflow: hidden;
    background: var(--gray-900);
}

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

.hero-slide {
    opacity: 0;
    background-size: cover;
    background-position: center;
    transition: opacity 1s ease;
}

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

.hero-shade {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.54) 44%, rgba(0, 0, 0, 0.12));
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 760px;
    color: var(--white);
}

.hero-label,
.eyebrow {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 8px;
    color: var(--amber-600);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-label {
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.95);
    color: var(--white);
    box-shadow: var(--shadow-sm);
}

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

.hero-feature {
    margin: 0 0 12px;
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 800;
    color: rgba(255, 255, 255, 0.92);
}

.hero-copy {
    max-width: 620px;
    margin: 0 0 28px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
    line-height: 1.8;
}

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

.primary-btn,
.ghost-btn,
.section-link,
.tile-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
    background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
    color: var(--white);
    padding: 14px 24px;
    box-shadow: 0 16px 34px rgba(217, 119, 6, 0.35);
}

.primary-btn.small {
    padding: 10px 18px;
    font-size: 14px;
}

.ghost-btn {
    border: 1px solid rgba(255, 255, 255, 0.65);
    color: var(--white);
    padding: 13px 22px;
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.12);
}

.ghost-btn.dark {
    color: var(--gray-800);
    border-color: rgba(31, 41, 55, 0.18);
    background: rgba(255, 255, 255, 0.7);
}

.primary-btn:hover,
.ghost-btn:hover,
.section-link:hover,
.tile-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

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

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

.quick-categories {
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(245, 158, 11, 0.18);
}

.quick-category-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 18px 0;
}

.quick-category-inner span {
    font-weight: 900;
    color: var(--gray-900);
}

.quick-category-inner a {
    border-radius: 999px;
    padding: 8px 14px;
    background: var(--white);
    color: var(--gray-700);
    box-shadow: var(--shadow-sm);
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.quick-category-inner a:hover {
    color: var(--white);
    background: var(--amber-500);
    transform: translateY(-2px);
}

.page-section {
    padding: 64px 0;
}

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

.section-heading h2 {
    margin: 8px 0 0;
    font-size: clamp(30px, 4vw, 42px);
    line-height: 1.1;
    color: var(--gray-900);
}

.section-link,
.tile-link {
    color: var(--amber-600);
    background: var(--white);
    padding: 10px 16px;
    box-shadow: var(--shadow-sm);
}

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

.compact-grid,
.feature-grid,
.related-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.movie-card {
    background: rgba(255, 255, 255, 0.94);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.movie-thumb {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, var(--gray-900), var(--gray-700));
}

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

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

.movie-type,
.movie-score,
.rank-badge {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
    color: var(--white);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
}

.movie-type {
    left: 12px;
    top: 12px;
    padding: 6px 10px;
    background: var(--amber-500);
}

.movie-score {
    right: 12px;
    top: 12px;
    padding: 6px 10px;
    background: rgba(17, 24, 39, 0.82);
}

.rank-badge {
    left: 12px;
    bottom: 12px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #facc15, var(--orange-500));
    font-size: 18px;
}

.movie-body {
    padding: 18px;
}

.movie-body h3 {
    margin: 0 0 10px;
    color: var(--gray-900);
    font-size: 18px;
    line-height: 1.35;
}

.movie-body p {
    min-height: 48px;
    margin: 0 0 12px;
    color: var(--gray-500);
    font-size: 14px;
    line-height: 1.7;
}

.movie-meta {
    margin-bottom: 12px;
    color: var(--gray-500);
    font-size: 13px;
    line-height: 1.6;
}

.tag-row,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.tag-row span,
.detail-tags span {
    border-radius: 999px;
    background: #fff7ed;
    color: var(--orange-600);
    padding: 5px 9px;
    font-size: 12px;
    font-weight: 800;
}

.latest-band {
    background: linear-gradient(135deg, rgba(255, 237, 213, 0.8), rgba(254, 243, 199, 0.95));
}

.ranking-band {
    padding: 64px 0;
    background: linear-gradient(135deg, #ffedd5, #fef3c7, #fef9c3);
}

.ranking-band.standalone {
    min-height: 65vh;
}

.ranking-box {
    display: grid;
    gap: 14px;
    max-width: 920px;
    margin: 0 auto;
    padding: 20px;
    border-radius: var(--radius-xl);
    background: var(--white);
    box-shadow: var(--shadow-lg);
}

.ranking-box.large {
    max-width: 1000px;
}

.ranking-row {
    display: grid;
    grid-template-columns: 48px 74px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 12px;
    border-radius: 16px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.ranking-row:hover {
    background: var(--gray-50);
    transform: translateX(4px);
}

.ranking-number {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--white);
    font-size: 20px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
}

.ranking-row img {
    width: 74px;
    height: 74px;
    border-radius: 14px;
    object-fit: cover;
    background: var(--gray-900);
}

.ranking-info {
    display: grid;
    gap: 4px;
}

.ranking-info strong {
    color: var(--gray-900);
    font-size: 17px;
}

.ranking-info em {
    overflow: hidden;
    color: var(--gray-500);
    font-size: 14px;
    font-style: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ranking-meta {
    color: var(--amber-600);
    font-weight: 900;
}

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

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

.category-tile,
.category-card,
.text-card,
.support-card,
.detail-card {
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-sm);
}

.category-tile,
.category-card {
    padding: 24px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-tile h3,
.category-card h2,
.text-card h2,
.support-card h2,
.detail-card h2 {
    margin: 0 0 12px;
    color: var(--gray-900);
}

.category-tile p,
.category-card p,
.text-card p,
.support-card p,
.detail-card p {
    color: var(--gray-700);
    line-height: 1.85;
}

.mini-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0;
}

.mini-links a,
.category-card li a {
    color: var(--amber-600);
    font-weight: 800;
}

.category-card ul {
    display: grid;
    gap: 8px;
    min-height: 150px;
    margin: 18px 0;
    padding-left: 18px;
}

.sub-hero {
    padding: 86px 0;
    color: var(--white);
    background: linear-gradient(120deg, var(--amber-500), var(--orange-600));
}

.sub-hero h1 {
    margin: 12px 0;
    font-size: clamp(38px, 6vw, 56px);
    line-height: 1.08;
}

.sub-hero p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    line-height: 1.8;
}

.filter-panel {
    margin-bottom: 28px;
    padding: 16px;
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow-sm);
}

.filter-panel.wide input,
.filter-panel input {
    flex: 1;
    min-width: 220px;
    background: var(--white);
}

.filter-panel select {
    min-width: 150px;
    background: var(--white);
}

.empty-state {
    display: none;
    margin: 28px 0 0;
    text-align: center;
    color: var(--gray-500);
    font-weight: 800;
}

.searchable-grid.is-empty + .empty-state {
    display: block;
}

.detail-hero {
    padding: 54px 0;
    background: linear-gradient(135deg, #fff7ed, #fffbeb);
}

.detail-hero-grid {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 42px;
    align-items: center;
}

.detail-cover {
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--gray-900);
    box-shadow: var(--shadow-lg);
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--gray-500);
    font-weight: 700;
}

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

.detail-intro h1 {
    margin: 18px 0 14px;
    color: var(--gray-900);
    font-size: clamp(34px, 6vw, 58px);
    line-height: 1.08;
}

.detail-one-line {
    max-width: 760px;
    color: var(--gray-700);
    font-size: 18px;
    line-height: 1.9;
}

.detail-actions {
    margin-top: 24px;
}

.player-section {
    padding: 42px 0 20px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: #050505;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 16 / 9;
}

.movie-player-video,
.player-cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.movie-player-video {
    z-index: 1;
    background: #000;
}

.player-cover {
    z-index: 2;
    display: grid;
    place-items: center;
    border: 0;
    padding: 0;
    color: var(--white);
    background: #000;
    cursor: pointer;
}

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

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

.play-circle {
    position: relative;
    z-index: 2;
    width: 92px;
    height: 92px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.34);
    font-size: 40px;
}

.player-cover strong {
    position: relative;
    z-index: 2;
    margin-top: 118px;
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.45);
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
    padding: 28px 0 30px;
}

.detail-main,
.detail-side {
    display: grid;
    gap: 24px;
    align-content: start;
}

.detail-card {
    padding: 28px;
}

.info-list dl {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 14px 12px;
    margin: 0;
}

.info-list dt {
    color: var(--gray-500);
    font-weight: 800;
}

.info-list dd {
    margin: 0;
    color: var(--gray-900);
    font-weight: 800;
}

.text-page {
    display: grid;
    gap: 24px;
    padding: 64px 0;
}

.text-card {
    padding: 32px;
}

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

.support-card {
    padding: 26px;
}

.site-footer {
    color: #d1d5db;
    background: linear-gradient(135deg, #111827, #1f2937, #111827);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 30px;
    padding: 48px 0;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    font-size: 20px;
}

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

.site-footer p,
.site-footer li {
    color: #9ca3af;
    line-height: 1.8;
}

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

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

.footer-bottom {
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    color: #9ca3af;
}

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

    .nav-toggle {
        display: block;
    }

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

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

@media (max-width: 820px) {
    .hero {
        height: 560px;
    }

    .hero-shade {
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.4));
    }

    .hero-content {
        justify-content: flex-end;
        padding-bottom: 82px;
    }

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

    .section-heading {
        display: grid;
    }

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

    .detail-cover {
        max-width: 320px;
    }

    .detail-layout {
        display: grid;
    }

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

    .ranking-meta {
        grid-column: 3;
    }
}

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

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

    .hero {
        height: 620px;
    }

    .hero-actions,
    .detail-actions,
    .filter-panel {
        align-items: stretch;
        flex-direction: column;
    }

    .primary-btn,
    .ghost-btn,
    .section-link,
    .tile-link {
        width: 100%;
    }

    .movie-grid,
    .compact-grid,
    .feature-grid,
    .related-grid,
    .category-grid,
    .category-grid.large,
    .support-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .movie-body p {
        min-height: auto;
    }

    .ranking-row {
        grid-template-columns: 38px 58px minmax(0, 1fr);
        gap: 10px;
    }

    .ranking-row img {
        width: 58px;
        height: 58px;
    }

    .ranking-info em {
        white-space: normal;
    }

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

    .play-circle {
        width: 72px;
        height: 72px;
        font-size: 32px;
    }
}
