:root {
    color-scheme: light;
    --bg: #f8fafc;
    --card: #ffffff;
    --text: #111827;
    --muted: #64748b;
    --line: #e5e7eb;
    --dark: #0f172a;
    --dark-2: #111827;
    --amber: #f59e0b;
    --orange: #ea580c;
    --blue: #2563eb;
    --green: #16a34a;
    --purple: #9333ea;
    --radius: 18px;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

* {
    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(--text);
    background: var(--bg);
    line-height: 1.65;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
}

.nav-wrap {
    max-width: 1180px;
    margin: 0 auto;
    min-height: 76px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

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

.brand-icon {
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fbbf24, #f97316);
    box-shadow: 0 14px 32px rgba(249, 115, 22, 0.35);
}

.brand-icon::before {
    content: "";
    position: absolute;
    inset: -5px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.55), rgba(249, 115, 22, 0.45));
    filter: blur(10px);
    z-index: -1;
}

.brand-icon span {
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 13px solid #fff;
    margin-left: 3px;
}

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

.brand-text strong {
    font-size: 20px;
    letter-spacing: 0.01em;
    background: linear-gradient(90deg, #d97706, #ea580c);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-text em {
    margin-top: 4px;
    color: #64748b;
    font-size: 12px;
    font-style: normal;
}

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

.desktop-nav a,
.mobile-nav a {
    font-weight: 700;
    color: #374151;
    border-radius: 12px;
    transition: 0.2s ease;
}

.desktop-nav a {
    padding: 10px 14px;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
    background: #f3f4f6;
}

.desktop-nav a.is-active,
.mobile-nav a.is-active {
    color: #fff;
    background: linear-gradient(90deg, #f59e0b, #f97316);
    box-shadow: 0 12px 24px rgba(245, 158, 11, 0.25);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: #f3f4f6;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.nav-toggle span {
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: #111827;
}

.mobile-nav {
    display: none;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px 18px;
}

.mobile-nav a {
    display: block;
    padding: 12px 14px;
    margin-top: 6px;
}

.hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 18% 18%, rgba(251, 191, 36, 0.2), transparent 28%),
        radial-gradient(circle at 84% 26%, rgba(249, 115, 22, 0.22), transparent 30%),
        linear-gradient(135deg, #0f172a 0%, #111827 50%, #1f2937 100%);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.2;
    background-image:
        radial-gradient(circle at 2px 2px, rgba(255, 255, 255, 0.25) 1px, transparent 0);
    background-size: 34px 34px;
}

.hero-inner {
    position: relative;
    max-width: 1180px;
    margin: 0 auto;
    padding: 84px 20px 96px;
}

.hero-copy {
    text-align: center;
    max-width: 860px;
    margin: 0 auto 42px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.18);
    color: #fde68a;
    font-weight: 800;
    font-size: 14px;
    backdrop-filter: blur(10px);
}

.hero h1 {
    margin: 22px 0 12px;
    font-size: clamp(34px, 7vw, 66px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.045em;
}

.gradient-text {
    background: linear-gradient(90deg, #fcd34d, #fb923c, #fcd34d);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-subtitle {
    margin: 0 0 12px;
    color: #d1d5db;
    font-size: clamp(18px, 3vw, 25px);
    font-weight: 700;
}

.hero-desc {
    margin: 0 auto;
    color: #9ca3af;
    max-width: 760px;
    font-size: 17px;
}

.hero-stage {
    max-width: 980px;
    margin: 0 auto;
}

.hero-slider {
    position: relative;
}

.hero-slide {
    display: none;
}

.hero-slide.is-active {
    display: block;
}

.hero-card {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    min-height: 430px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
    transform: translateZ(0);
    transition: transform 0.45s ease, box-shadow 0.45s ease;
}

.hero-card:hover {
    transform: scale(1.015);
    box-shadow: 0 34px 84px rgba(0, 0, 0, 0.45);
}

.hero-card img {
    width: 100%;
    height: 100%;
    min-height: 430px;
    object-fit: cover;
}

.hero-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.32) 58%, rgba(0, 0, 0, 0.08) 100%);
}

.hero-info {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 34px;
}

.hero-info h2 {
    margin: 12px 0 8px;
    font-size: clamp(26px, 4.5vw, 40px);
    line-height: 1.15;
}

.hero-info p {
    max-width: 690px;
    margin: 0 0 22px;
    color: #e5e7eb;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 13px;
    font-weight: 900;
    transition: 0.2s ease;
}

.btn.primary {
    color: #fff;
    background: linear-gradient(90deg, #f59e0b, #f97316);
    box-shadow: 0 14px 28px rgba(245, 158, 11, 0.25);
}

.btn.ghost {
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
}

.btn.light {
    color: #92400e;
    background: #fffbeb;
    border: 1px solid #fde68a;
}

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

.hero-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 22px;
}

.hero-dots button {
    width: 12px;
    height: 12px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
    transition: 0.2s ease;
}

.hero-dots button.is-active {
    width: 34px;
    background: #f59e0b;
}

.page-hero {
    position: relative;
    color: #fff;
    background:
        radial-gradient(circle at 18% 25%, rgba(245, 158, 11, 0.28), transparent 28%),
        linear-gradient(135deg, #0f172a, #1f2937);
}

.page-hero .wrap,
.section,
.footer-grid,
.footer-bottom {
    max-width: 1180px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.page-hero .wrap {
    padding-top: 70px;
    padding-bottom: 72px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    color: #fcd34d;
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 18px;
}

.page-hero h1,
.detail-title h1 {
    margin: 0;
    font-size: clamp(30px, 5.5vw, 54px);
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.page-hero p {
    max-width: 760px;
    margin: 16px 0 0;
    color: #d1d5db;
    font-size: 18px;
}

.section {
    padding-top: 62px;
    padding-bottom: 62px;
}

.section.alt {
    background: linear-gradient(90deg, #f9fafb, #f1f5f9);
    max-width: none;
}

.section.alt > .section-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.section-kicker {
    color: #f59e0b;
    font-weight: 900;
    letter-spacing: 0.08em;
    font-size: 13px;
    text-transform: uppercase;
}

.section-head h2,
.section h2 {
    margin: 6px 0 0;
    font-size: clamp(24px, 4vw, 34px);
    line-height: 1.15;
}

.section-head p {
    margin: 8px 0 0;
    color: var(--muted);
}

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

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

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

.movie-card,
.wide-card,
.category-card {
    display: block;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.poster-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #111827;
}

.movie-grid.six .poster-wrap {
    aspect-ratio: 1 / 1;
}

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

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

.badge,
.pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(90deg, #f59e0b, #f97316);
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
}

.badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 7px 10px;
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.18);
}

.badge.alt {
    left: 12px;
    right: auto;
    background: #2563eb;
}

.pill {
    padding: 7px 11px;
}

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

.movie-card h3,
.wide-card h3 {
    margin: 0 0 8px;
    font-size: 17px;
    line-height: 1.35;
    transition: color 0.2s ease;
}

.movie-card:hover h3 {
    color: #d97706;
}

.movie-card p,
.wide-card p {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wide-card p {
    -webkit-line-clamp: 3;
}

.meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
}

.wide-list {
    display: grid;
    gap: 20px;
}

.wide-card {
    display: grid;
    grid-template-columns: 320px 1fr;
}

.wide-poster {
    position: relative;
    overflow: hidden;
    min-height: 220px;
    background: #111827;
}

.wide-content {
    padding: 28px;
}

.tag-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 12px 0 18px;
}

.tag-list span {
    padding: 6px 10px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #475569;
    font-size: 12px;
    font-weight: 800;
}

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

.category-card {
    padding: 24px;
    min-height: 188px;
    position: relative;
    background:
        radial-gradient(circle at 90% 10%, rgba(245, 158, 11, 0.18), transparent 35%),
        #fff;
}

.category-card h2,
.category-card h3 {
    margin: 0 0 12px;
    font-size: 22px;
}

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

.category-card span {
    color: #d97706;
    font-weight: 900;
}

.filter-panel {
    margin: 0 0 28px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.search-line {
    display: flex;
    gap: 10px;
}

.filter-input {
    flex: 1;
    min-height: 48px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 0 16px;
    font: inherit;
    outline: none;
    background: #f8fafc;
}

.filter-input:focus {
    border-color: #f59e0b;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.13);
}

.filter-clear,
.filter-tags button {
    border: 0;
    border-radius: 13px;
    font-weight: 900;
    cursor: pointer;
    transition: 0.2s ease;
}

.filter-clear {
    padding: 0 16px;
    background: #111827;
    color: #fff;
}

.filter-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.filter-tags button {
    padding: 8px 12px;
    color: #475569;
    background: #f3f4f6;
}

.filter-tags button.is-active,
.filter-tags button:hover {
    color: #fff;
    background: linear-gradient(90deg, #f59e0b, #f97316);
}

.empty-state {
    margin-top: 14px;
    color: #64748b;
    font-weight: 800;
}

.rank-panel {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 28px;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 54px 62px 1fr auto;
    align-items: center;
    gap: 14px;
    min-height: 74px;
    padding: 10px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
    transition: 0.2s ease;
}

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

.rank-item img {
    width: 62px;
    height: 54px;
    object-fit: cover;
    border-radius: 10px;
}

.rank-num {
    display: inline-flex;
    justify-content: center;
    font-size: 20px;
    color: #d97706;
    font-weight: 900;
}

.rank-title {
    font-weight: 900;
}

.rank-meta {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.detail-hero {
    color: #fff;
    background:
        linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(17, 24, 39, 0.78)),
        radial-gradient(circle at 80% 10%, rgba(245, 158, 11, 0.18), transparent 32%);
}

.detail-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 42px 20px 72px;
}

.detail-title {
    margin-bottom: 28px;
}

.detail-title p {
    max-width: 780px;
    color: #d1d5db;
    margin: 16px 0 0;
    font-size: 17px;
}

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

.player-box {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    background: #000;
    aspect-ratio: 16 / 9;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
}

.player-box video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.player-cover {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: #000;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.18));
}

.play-button {
    position: relative;
    z-index: 2;
    width: 82px;
    height: 82px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    box-shadow: 0 18px 40px rgba(249, 115, 22, 0.42);
    cursor: pointer;
}

.play-button::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 53%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-top: 16px solid transparent;
    border-bottom: 16px solid transparent;
    border-left: 24px solid #fff;
}

.player-box.is-playing .player-cover {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.detail-side {
    border-radius: 24px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.09);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.13);
}

.detail-side img {
    width: 100%;
    border-radius: 18px;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    margin-bottom: 16px;
}

.info-list {
    display: grid;
    gap: 10px;
}

.info-list div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    color: #e5e7eb;
}

.info-list span:first-child {
    color: #fcd34d;
    font-weight: 900;
}

.article-card {
    max-width: 1180px;
    margin: 0 auto;
    padding: 48px 20px 0;
}

.article-card article {
    padding: 30px;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.article-card h2 {
    margin: 0 0 14px;
    font-size: 26px;
}

.article-card p {
    color: #334155;
    margin: 0 0 22px;
}

.related-section {
    max-width: 1180px;
    margin: 0 auto;
    padding: 46px 20px 68px;
}

.site-footer {
    margin-top: 30px;
    color: #d1d5db;
    background: linear-gradient(135deg, #111827, #0f172a);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 34px;
    padding-top: 44px;
    padding-bottom: 36px;
}

.footer-grid h2 {
    margin: 0 0 14px;
    color: #fff;
    font-size: 17px;
}

.footer-grid p {
    color: #9ca3af;
    max-width: 430px;
}

.footer-grid a,
.footer-grid span {
    display: block;
    margin: 7px 0;
    color: #9ca3af;
    font-size: 14px;
}

.footer-grid a:hover {
    color: #fbbf24;
}

.footer-brand {
    margin-bottom: 16px;
    color: #fff;
    font-size: 20px;
}

.footer-bottom {
    padding-top: 20px;
    padding-bottom: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #9ca3af;
    font-size: 14px;
}

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

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

    .detail-layout,
    .rank-panel {
        grid-template-columns: 1fr;
    }

    .detail-side {
        display: grid;
        grid-template-columns: 220px 1fr;
        gap: 20px;
        align-items: start;
    }
}

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

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

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

    .hero-inner {
        padding-top: 56px;
        padding-bottom: 68px;
    }

    .hero-card,
    .hero-card img {
        min-height: 360px;
    }

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

    .wide-card {
        grid-template-columns: 1fr;
    }

    .wide-poster {
        min-height: 210px;
    }

    .section-head {
        display: block;
    }

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

    .rank-item {
        grid-template-columns: 44px 56px 1fr;
    }

    .rank-meta {
        display: none;
    }

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

@media (max-width: 560px) {
    .brand-text em {
        display: none;
    }

    .nav-wrap {
        min-height: 66px;
    }

    .hero-info {
        padding: 22px;
    }

    .hero-card,
    .hero-card img {
        min-height: 330px;
    }

    .hero-actions,
    .section-actions,
    .search-line {
        flex-direction: column;
        align-items: stretch;
    }

    .btn,
    .filter-clear {
        width: 100%;
    }

    .movie-grid,
    .movie-grid.three,
    .movie-grid.six,
    .category-grid {
        grid-template-columns: 1fr;
    }

    .article-card article {
        padding: 22px;
    }

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