:root {
    --amber: #d97706;
    --amber-dark: #92400e;
    --rose: #e11d48;
    --rose-dark: #9f1239;
    --sky: #0284c7;
    --ink: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --panel: rgba(255, 255, 255, 0.86);
    --shadow: 0 24px 70px rgba(15, 23, 42, 0.18);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(245, 158, 11, 0.12), transparent 34rem),
        radial-gradient(circle at top right, rgba(225, 29, 72, 0.10), transparent 36rem),
        linear-gradient(180deg, #fff7ed 0%, #fff 24rem, #f8fafc 100%);
}

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

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

.site-header {
    position: fixed;
    z-index: 50;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(90deg, rgba(255, 251, 235, 0.92), rgba(255, 241, 242, 0.92), rgba(240, 249, 255, 0.92));
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow: 0 10px 35px rgba(15, 23, 42, 0.10);
}

.nav-shell {
    width: min(1180px, calc(100% - 32px));
    height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.03em;
    background: linear-gradient(90deg, var(--amber), var(--rose), var(--sky));
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.brand-mark,
.footer-brand span {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    color: #fff;
    font-size: 14px;
    background: linear-gradient(135deg, var(--amber), var(--rose));
    box-shadow: 0 12px 28px rgba(225, 29, 72, 0.24);
}

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

.desktop-nav a,
.mobile-panel a {
    padding: 10px 14px;
    border-radius: 999px;
    color: #374151;
    font-size: 14px;
    font-weight: 700;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.mobile-panel a:hover,
.desktop-nav a.active,
.mobile-panel a.active {
    color: #9f1239;
    background: rgba(255, 255, 255, 0.78);
    transform: translateY(-1px);
}

.menu-button {
    display: none;
    border: 0;
    border-radius: 14px;
    padding: 9px 12px;
    background: rgba(255, 255, 255, 0.78);
    font-size: 22px;
    color: #374151;
}

.mobile-panel {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 14px;
    padding: 10px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
}

.mobile-panel a {
    display: block;
}

main {
    padding-top: 68px;
}

.hero {
    position: relative;
    min-height: 650px;
    overflow: hidden;
    color: #fff;
    background: #111827;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
    align-items: center;
    gap: 44px;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s ease;
}

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

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.08) contrast(1.08);
}

.hero-slide::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(120, 53, 15, 0.94), rgba(136, 19, 55, 0.86), rgba(7, 89, 133, 0.80)),
        radial-gradient(circle at 20% 28%, rgba(251, 191, 36, 0.34), transparent 26rem);
}

.hero-content,
.hero-poster-panel {
    position: relative;
    z-index: 2;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(12px);
    color: #fde68a;
    font-size: 14px;
    font-weight: 800;
}

.hero h1 {
    margin: 22px 0 18px;
    font-size: clamp(42px, 7vw, 86px);
    line-height: 0.94;
    letter-spacing: -0.08em;
    text-shadow: 0 20px 48px rgba(0, 0, 0, 0.35);
}

.hero p {
    max-width: 760px;
    margin: 0 0 26px;
    color: #ffedd5;
    font-size: clamp(18px, 2vw, 24px);
    line-height: 1.75;
}

.hero-meta,
.detail-meta,
.movie-meta,
.movie-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
}

.hero-meta span,
.detail-meta span,
.movie-tags span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 800;
}

.hero-meta span {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-actions,
.section-head,
.filter-row,
.player-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 44px;
    padding: 12px 20px;
    border: 0;
    border-radius: 999px;
    font-weight: 900;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(90deg, var(--amber), var(--rose));
    box-shadow: 0 16px 38px rgba(225, 29, 72, 0.26);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 48px rgba(225, 29, 72, 0.34);
}

.btn-soft {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.24);
    box-shadow: none;
}

.hero-poster-panel {
    padding: 14px;
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(18px);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.34);
}

.hero-poster-panel img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 24px;
}

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

.hero-dot {
    width: 36px;
    height: 5px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.34);
    cursor: pointer;
}

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

.page-hero,
.detail-hero {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 128px 0 44px;
}

.page-hero h1,
.detail-copy h1 {
    margin: 0 0 16px;
    font-size: clamp(34px, 5vw, 62px);
    line-height: 1.05;
    letter-spacing: -0.05em;
    background: linear-gradient(90deg, #92400e, #be123c, #0369a1);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.page-hero p,
.detail-copy p {
    max-width: 820px;
    color: #4b5563;
    line-height: 1.85;
    font-size: 17px;
}

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

.section {
    padding: 54px 0;
}

.section-head {
    justify-content: space-between;
    margin-bottom: 24px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    font-size: clamp(26px, 3vw, 36px);
    letter-spacing: -0.04em;
}

.section-title::before {
    content: "";
    width: 11px;
    height: 32px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--amber), var(--rose));
}

.section-link {
    font-weight: 900;
    color: #be123c;
}

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

.movie-card {
    overflow: hidden;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.86);
    box-shadow: 0 18px 55px rgba(15, 23, 42, 0.10);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-wrap {
    position: relative;
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, #f59e0b, #e11d48, #0284c7);
}

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

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

.poster-badge,
.poster-play {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 900;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(10px);
}

.poster-badge {
    top: 12px;
    left: 12px;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 12px;
}

.poster-play {
    right: 12px;
    bottom: 12px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
}

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

.movie-tags {
    margin-bottom: 10px;
}

.movie-tags span,
.detail-meta span {
    color: #9f1239;
    background: #fff1f2;
}

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

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

.movie-card p {
    min-height: 54px;
    margin: 0 0 14px;
    color: var(--muted);
    line-height: 1.65;
    font-size: 14px;
}

.movie-meta {
    justify-content: space-between;
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
}

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 170px;
    padding: 22px;
    border-radius: 28px;
    color: #fff;
    background: linear-gradient(135deg, rgba(146, 64, 14, 0.94), rgba(190, 18, 60, 0.92), rgba(3, 105, 161, 0.88));
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.15);
}

.category-card::after {
    content: "";
    position: absolute;
    right: -34px;
    bottom: -46px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
}

.category-card h2,
.category-card h3 {
    position: relative;
    margin: 0 0 10px;
    font-size: 24px;
}

.category-card p {
    position: relative;
    margin: 0 0 18px;
    color: #ffedd5;
    line-height: 1.7;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 60px 92px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 14px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.90);
    border: 1px solid rgba(255, 255, 255, 0.86);
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
}

.rank-no {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    color: #fff;
    font-size: 18px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--amber), var(--rose));
}

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

.rank-item h3 {
    margin: 0 0 8px;
    font-size: 20px;
}

.rank-item p {
    margin: 0;
    color: #64748b;
    line-height: 1.7;
}

.search-panel,
.filter-panel,
.content-panel {
    border-radius: 28px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.86);
    box-shadow: 0 18px 55px rgba(15, 23, 42, 0.10);
}

.search-box,
.filter-input {
    width: 100%;
    min-height: 52px;
    border: 1px solid #fed7aa;
    border-radius: 18px;
    padding: 0 18px;
    outline: 0;
    color: #111827;
    background: #fff;
    font-size: 16px;
}

.search-box:focus,
.filter-input:focus {
    border-color: #fb7185;
    box-shadow: 0 0 0 4px rgba(251, 113, 133, 0.14);
}

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

.search-result {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 14px;
    padding: 12px;
    border-radius: 18px;
    background: #fff7ed;
}

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

.search-result h3 {
    margin: 0 0 6px;
    font-size: 16px;
}

.search-result p {
    margin: 0;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.5;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    color: #6b7280;
    font-size: 14px;
}

.breadcrumb a {
    color: #be123c;
    font-weight: 800;
}

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

.player-card {
    overflow: hidden;
    border-radius: 30px;
    background: #0f172a;
    box-shadow: 0 30px 90px rgba(15, 23, 42, 0.30);
}

.video-shell {
    position: relative;
    background: #020617;
}

.video-shell video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #020617;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.play-toggle {
    width: 88px;
    height: 88px;
    border: 0;
    border-radius: 50%;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    pointer-events: auto;
    background: linear-gradient(135deg, var(--amber), var(--rose));
    box-shadow: 0 18px 50px rgba(225, 29, 72, 0.42);
}

.player-card-body {
    padding: 20px;
    color: #e5e7eb;
}

.player-card-body h2 {
    margin: 0 0 10px;
    color: #fff;
}

.detail-poster {
    overflow: hidden;
    border-radius: 30px;
    background: linear-gradient(135deg, #f59e0b, #e11d48, #0284c7);
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.18);
}

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

.detail-copy {
    padding-top: 92px;
}

.detail-meta {
    margin: 18px 0 24px;
}

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

.article-copy p {
    color: #374151;
    line-height: 1.95;
    font-size: 16px;
}

.side-card {
    padding: 18px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 18px 55px rgba(15, 23, 42, 0.10);
}

.side-card h2 {
    margin: 0 0 14px;
}

.side-card ul {
    display: grid;
    gap: 10px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.side-card a {
    display: block;
    padding: 12px;
    border-radius: 16px;
    background: #fff7ed;
    color: #9f1239;
    font-weight: 800;
}

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

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

    .menu-button {
        display: inline-flex;
    }

    .hero {
        min-height: 760px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        align-content: center;
        padding-top: 40px;
    }

    .hero-poster-panel {
        max-width: 280px;
        margin: 0 auto;
    }

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

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

    .detail-copy {
        padding-top: 88px;
    }
}

@media (max-width: 640px) {
    .nav-shell {
        width: min(100% - 22px, 1180px);
    }

    .brand {
        font-size: 20px;
    }

    .hero {
        min-height: 730px;
    }

    .hero h1 {
        font-size: 42px;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

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

    .rank-item {
        grid-template-columns: 44px 74px minmax(0, 1fr);
    }

    .rank-item .btn {
        grid-column: 1 / -1;
    }

    .rank-item img {
        width: 74px;
    }
}
