:root {
    --bg: #020617;
    --panel: rgba(15, 23, 42, 0.84);
    --panel-solid: #0f172a;
    --panel-soft: rgba(30, 41, 59, 0.78);
    --line: rgba(148, 163, 184, 0.18);
    --text: #f8fafc;
    --muted: #94a3b8;
    --soft: #cbd5e1;
    --accent: #f59e0b;
    --accent-2: #fb923c;
    --accent-3: #38bdf8;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at 10% 0%, rgba(245, 158, 11, 0.16), transparent 32rem),
        radial-gradient(circle at 90% 15%, rgba(56, 189, 248, 0.12), transparent 28rem),
        linear-gradient(180deg, #020617 0%, #0f172a 48%, #020617 100%);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--line);
    background: rgba(2, 6, 23, 0.82);
    backdrop-filter: blur(18px);
}

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

.site-logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    letter-spacing: -0.04em;
    font-size: 24px;
}

.site-logo::before,
.footer-logo::before {
    content: "";
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 12px 28px rgba(245, 158, 11, 0.35);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-nav a {
    color: var(--soft);
    font-weight: 700;
    padding: 10px 14px;
    border-radius: 999px;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
    color: #111827;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    border: 1px solid var(--line);
    color: var(--text);
    background: rgba(15, 23, 42, 0.9);
    border-radius: 12px;
    width: 42px;
    height: 42px;
    font-size: 20px;
}

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

.hero-section {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}

.hero-slider {
    position: relative;
    min-height: 620px;
}

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

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

.hero-slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.05) brightness(0.64);
}

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.94) 0%, rgba(2, 6, 23, 0.78) 42%, rgba(2, 6, 23, 0.2) 100%),
        linear-gradient(180deg, rgba(2, 6, 23, 0.08) 0%, rgba(2, 6, 23, 0.94) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    min-height: 620px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    align-items: center;
    gap: 60px;
    padding: 80px 0 70px;
}

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

.hero-eyebrow,
.section-kicker,
.detail-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fed7aa;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(245, 158, 11, 0.14);
    border: 1px solid rgba(245, 158, 11, 0.28);
    border-radius: 999px;
    padding: 8px 12px;
    margin-bottom: 20px;
}

.hero-copy h1 {
    margin: 0;
    max-width: 860px;
    font-size: clamp(40px, 7vw, 82px);
    line-height: 0.96;
    letter-spacing: -0.08em;
}

.hero-copy p {
    max-width: 720px;
    margin: 24px 0 0;
    color: var(--soft);
    font-size: clamp(17px, 2.1vw, 22px);
    line-height: 1.72;
}

.hero-tags,
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.hero-tags span,
.tag-list span,
.info-chip,
.movie-cat,
.rank-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 5px 10px;
    color: #fef3c7;
    font-size: 13px;
    font-weight: 700;
    border: 1px solid rgba(245, 158, 11, 0.26);
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.12);
}

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

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 12px 20px;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
    color: #111827;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 18px 38px rgba(245, 158, 11, 0.28);
}

.btn-secondary {
    color: var(--text);
    border: 1px solid var(--line);
    background: rgba(15, 23, 42, 0.72);
}

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

.hero-poster {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transform: rotate(2deg);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-poster img {
    position: static;
    width: 100%;
    aspect-ratio: 3 / 4.35;
    object-fit: cover;
    filter: none;
}

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

.hero-indicators button {
    width: 34px;
    height: 7px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.28);
    cursor: pointer;
}

.hero-indicators button.active {
    background: var(--accent);
}

.section-block {
    padding: 54px 0;
}

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

.section-title h2,
.page-title h1,
.detail-info h1 {
    margin: 0;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.08;
    letter-spacing: -0.05em;
}

.section-title p,
.page-title p,
.detail-info p,
.content-block p,
.movie-card p,
.rank-content p {
    color: var(--muted);
    line-height: 1.75;
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.82), rgba(15, 23, 42, 0.72));
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.2);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-7px);
    border-color: rgba(245, 158, 11, 0.48);
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.34);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4.1;
    overflow: hidden;
    background: #0f172a;
}

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

.movie-card:hover .poster-link img {
    transform: scale(1.06);
}

.poster-link::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 46%;
    background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.82));
}

.poster-badge,
.poster-play {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.poster-badge {
    top: 12px;
    left: 12px;
    color: #111827;
    background: var(--accent);
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 900;
}

.poster-play {
    right: 12px;
    bottom: 12px;
    width: 40px;
    height: 40px;
    color: white;
    border-radius: 50%;
    background: rgba(245, 158, 11, 0.92);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.28);
}

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

.movie-card-title {
    margin: 0 0 8px;
    font-size: 17px;
    line-height: 1.35;
    font-weight: 900;
}

.movie-card-title a {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-card p {
    display: -webkit-box;
    min-height: 50px;
    margin: 0 0 12px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 14px;
}

.movie-meta {
    margin-bottom: 12px;
    color: #64748b;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

.category-card {
    position: relative;
    min-height: 164px;
    overflow: hidden;
    border-radius: 22px;
    border: 1px solid var(--line);
    background: var(--panel-solid);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.2);
}

.category-card img {
    width: 100%;
    height: 100%;
    min-height: 164px;
    object-fit: cover;
    filter: brightness(0.62) saturate(1.05);
    transition: transform 0.32s ease;
}

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

.category-mask {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.08), rgba(2, 6, 23, 0.86));
}

.category-name,
.category-count {
    position: absolute;
    left: 18px;
    right: 18px;
    z-index: 2;
}

.category-name {
    bottom: 48px;
    font-size: 22px;
    font-weight: 900;
}

.category-count {
    bottom: 20px;
    color: #fed7aa;
    font-weight: 800;
}

.page-hero,
.detail-hero {
    padding: 54px 0 24px;
}

.page-title {
    max-width: 820px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 14px;
    padding-top: 26px;
}

.breadcrumb a {
    color: #fed7aa;
}

.breadcrumb span:not(:last-child)::after,
.breadcrumb a:not(:last-child)::after {
    content: "/";
    margin-left: 8px;
    color: #475569;
}

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

.detail-poster {
    overflow: hidden;
    border-radius: 28px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

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

.info-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.player-section,
.content-block,
.related-block,
.rank-card,
.search-panel,
.category-intro {
    border: 1px solid var(--line);
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.72));
    box-shadow: 0 18px 58px rgba(0, 0, 0, 0.22);
}

.player-section,
.content-block,
.related-block,
.search-panel,
.category-intro {
    padding: 26px;
    margin-bottom: 30px;
}

.player-section h2,
.content-block h2,
.related-block h2 {
    margin: 0 0 18px;
    font-size: 28px;
    letter-spacing: -0.04em;
}

.player-card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #000;
    aspect-ratio: 16 / 9;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.movie-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #000;
}

.player-cover {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: white;
    border: 0;
    cursor: pointer;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.2), rgba(2, 6, 23, 0.72));
    z-index: 2;
}

.player-cover span {
    width: 76px;
    height: 76px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #111827;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    font-size: 30px;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.36);
}

.player-cover strong {
    font-size: 18px;
    letter-spacing: 0.06em;
}

.player-card.is-playing .player-cover {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease;
}

.content-block p {
    font-size: 17px;
}

.content-block .text-segment + .text-segment {
    margin-top: 20px;
}

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

.rank-card {
    display: grid;
    grid-template-columns: 82px 120px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    padding: 14px;
}

.rank-number {
    width: 62px;
    height: 62px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    color: #111827;
    font-size: 24px;
    font-weight: 1000;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.rank-card img {
    width: 120px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 16px;
}

.rank-content h2,
.rank-content h3 {
    margin: 0 0 8px;
    font-size: 22px;
}

.rank-content p {
    margin: 0 0 12px;
}

.search-form {
    display: flex;
    gap: 12px;
}

.search-form input {
    flex: 1;
    min-height: 52px;
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.65);
    padding: 0 18px;
    outline: none;
}

.search-form input:focus {
    border-color: rgba(245, 158, 11, 0.62);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12);
}

.search-count {
    color: var(--muted);
    margin-top: 14px;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 34px;
}

.pagination a,
.pagination span {
    min-width: 40px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 14px;
    color: var(--soft);
    background: rgba(15, 23, 42, 0.76);
    padding: 0 12px;
}

.pagination a.active,
.pagination a:hover {
    color: #111827;
    border-color: transparent;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.site-footer {
    border-top: 1px solid var(--line);
    margin-top: 50px;
    background: rgba(2, 6, 23, 0.72);
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 38px 0;
    display: grid;
    gap: 18px;
}

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

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.footer-links a {
    color: var(--soft);
}

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

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

    .hero-poster {
        display: none;
    }
}

@media (max-width: 820px) {
    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .site-nav {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 74px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        border: 1px solid var(--line);
        border-radius: 22px;
        padding: 12px;
        background: rgba(2, 6, 23, 0.96);
        box-shadow: var(--shadow);
    }

    .site-nav.open {
        display: flex;
    }

    .site-nav a {
        border-radius: 14px;
    }

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

    .section-head {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .detail-poster {
        max-width: 260px;
    }

    .rank-card {
        grid-template-columns: 52px 84px minmax(0, 1fr);
        gap: 12px;
    }

    .rank-number {
        width: 46px;
        height: 46px;
        border-radius: 16px;
        font-size: 18px;
    }

    .rank-card img {
        width: 84px;
    }

    .search-form {
        flex-direction: column;
    }
}

@media (max-width: 520px) {
    .hero-section,
    .hero-slider,
    .hero-content {
        min-height: 560px;
    }

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

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

    .player-section,
    .content-block,
    .related-block,
    .search-panel,
    .category-intro {
        padding: 18px;
        border-radius: 22px;
    }
}
