:root {
    --orange: #f97316;
    --red: #ef4444;
    --pink: #db2777;
    --dark: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--dark);
    background: #f9fafb;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    -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;
    color: #fff;
    background: linear-gradient(90deg, var(--orange), var(--red), var(--pink));
    box-shadow: 0 14px 30px rgba(239, 68, 68, 0.28);
}

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

.logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 14px;
    color: var(--orange);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.logo-text {
    font-size: 20px;
}

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

.nav-link {
    padding: 8px 0;
    font-size: 15px;
    opacity: 0.94;
    transition: color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #fff7cc;
    opacity: 1;
    transform: translateY(-1px);
}

.nav-link.soft {
    font-size: 14px;
    opacity: 0.82;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.12);
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 5px auto;
    background: #fff;
    border-radius: 99px;
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 10px 0 18px;
}

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

.mobile-link {
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.1);
}

.mobile-link.active {
    background: rgba(255, 255, 255, 0.18);
}

.hero-section {
    position: relative;
    overflow: hidden;
    min-height: 680px;
    color: #fff;
    background: linear-gradient(135deg, #f97316 0%, #ef4444 52%, #db2777 100%);
}

.hero-glow {
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    filter: blur(28px);
    opacity: 0.28;
    background: #fff;
}

.hero-glow.one {
    top: -160px;
    left: -140px;
}

.hero-glow.two {
    right: -120px;
    bottom: -160px;
}

.hero-shell {
    position: relative;
    z-index: 1;
    padding: 78px 0 54px;
}

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

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.62fr);
    gap: 48px;
    align-items: center;
    opacity: 0;
    transform: translateY(18px);
    pointer-events: none;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.hero-slide.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.hero-kicker,
.section-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 14px;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    color: #fff7ed;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(8px);
}

.hero-copy h1 {
    margin: 0;
    font-size: clamp(40px, 6vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero-copy p {
    max-width: 680px;
    margin: 22px 0 0;
    font-size: 19px;
    color: rgba(255, 255, 255, 0.9);
}

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

.hero-tags span,
.tag-cloud span {
    padding: 7px 11px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
}

.tag-cloud span {
    color: #9a3412;
    background: #ffedd5;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    margin-top: 30px;
}

.primary-button,
.ghost-button,
.text-button,
.ranking-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
    color: var(--orange);
    background: #fff;
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.18);
}

.primary-button:hover,
.ghost-button:hover,
.ranking-action:hover {
    transform: translateY(-2px);
}

.ghost-button {
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.38);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
}

.text-button {
    color: #fff7cc;
}

.hero-poster {
    position: relative;
    justify-self: end;
    width: min(360px, 100%);
    overflow: hidden;
    border: 10px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.26);
    aspect-ratio: 3 / 4;
    background: rgba(255, 255, 255, 0.14);
}

.hero-poster img,
.card-poster img,
.detail-poster img,
.ranking-thumb img,
.hero-mini img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
}

.hero-dots {
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 13px;
    height: 13px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
}

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

.hero-search {
    display: flex;
    width: min(460px, 100%);
    overflow: hidden;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
}

.hero-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 0 20px;
    color: var(--dark);
}

.hero-search button {
    border: 0;
    padding: 14px 22px;
    color: #fff;
    font-weight: 800;
    background: linear-gradient(90deg, var(--orange), var(--red));
}

.hero-mini-row {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    margin-top: 26px;
}

.hero-mini {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 12px;
    align-items: center;
    min-width: 0;
    padding: 10px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
}

.hero-mini img {
    width: 54px;
    height: 70px;
    border-radius: 12px;
}

.hero-mini span {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-weight: 700;
}

.stat-section {
    margin-top: -36px;
    position: relative;
    z-index: 2;
}

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

.stat-card {
    padding: 24px;
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--shadow);
}

.stat-card strong {
    display: block;
    font-size: 24px;
}

.stat-card span {
    color: var(--muted);
}

.section {
    padding: 72px 0;
}

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

.section-title h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.section-title a {
    color: var(--orange);
    font-weight: 800;
}

.section-title .section-kicker,
.page-hero .section-kicker,
.detail-info .section-kicker {
    color: #ea580c;
    background: #ffedd5;
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 55px rgba(15, 23, 42, 0.16);
}

.card-poster {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, #fed7aa, #fecdd3);
}

.card-poster img {
    transition: transform 0.35s ease;
}

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

.badge {
    position: absolute;
    z-index: 2;
    padding: 5px 8px;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 800;
    color: #fff;
}

.badge.region {
    top: 10px;
    left: 10px;
    background: linear-gradient(90deg, var(--orange), var(--red));
}

.badge.year {
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.65);
}

.play-dot {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--orange);
    font-size: 34px;
    opacity: 0;
    background: rgba(0, 0, 0, 0.28);
    transition: opacity 0.2s ease;
}

.movie-card:hover .play-dot {
    opacity: 1;
}

.card-body {
    padding: 16px;
}

.card-body h3 {
    margin: 0 0 8px;
    font-size: 16px;
    line-height: 1.35;
}

.card-body h3 a:hover {
    color: var(--orange);
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
}

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

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

.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: block;
    min-height: 150px;
    padding: 24px;
    border: 1px solid rgba(249, 115, 22, 0.14);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.category-card span {
    display: block;
    margin-bottom: 10px;
    color: #c2410c;
    font-size: 22px;
    font-weight: 900;
}

.category-card p {
    margin: 0;
    color: var(--muted);
}

.category-card strong {
    display: inline-flex;
    margin-top: 16px;
    color: var(--orange);
}

.page-hero {
    padding: 76px 0;
    color: #fff;
    background: linear-gradient(135deg, var(--orange), var(--red), var(--pink));
}

.page-hero h1 {
    max-width: 860px;
    margin: 0;
    font-size: clamp(36px, 5vw, 58px);
    line-height: 1.1;
}

.page-hero p {
    max-width: 780px;
    margin: 18px 0 0;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.88);
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto;
    gap: 14px;
    align-items: end;
    margin-bottom: 28px;
    padding: 18px;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.search-box {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-weight: 700;
}

.search-box input,
.filter-panel select {
    min-height: 46px;
    border: 1px solid var(--line);
    border-radius: 14px;
    outline: 0;
    padding: 0 14px;
    background: #fff;
}

.search-box input:focus,
.filter-panel select:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.select-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.empty-state {
    display: none;
    padding: 40px;
    border-radius: 24px;
    text-align: center;
    color: var(--muted);
    background: #fff;
}

.empty-state.show {
    display: block;
}

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

.ranking-row {
    display: grid;
    grid-template-columns: 64px 92px 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 14px;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.ranking-number {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 18px;
    color: #fff;
    font-size: 20px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--orange), var(--red));
}

.ranking-thumb {
    overflow: hidden;
    width: 92px;
    height: 122px;
    border-radius: 16px;
    background: #fed7aa;
}

.ranking-content h3 {
    margin: 0 0 6px;
    font-size: 20px;
}

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

.ranking-action {
    color: #fff;
    background: linear-gradient(90deg, var(--orange), var(--red));
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
    color: var(--muted);
    font-size: 14px;
}

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

.detail-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 40px;
    align-items: center;
}

.detail-poster {
    overflow: hidden;
    border-radius: 30px;
    aspect-ratio: 3 / 4;
    background: #fed7aa;
    box-shadow: var(--shadow);
}

.detail-info h1 {
    margin: 0;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.12;
    letter-spacing: -0.035em;
}

.lead {
    margin: 18px 0 0;
    color: #374151;
    font-size: 19px;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.detail-meta span {
    padding: 8px 12px;
    border-radius: 999px;
    color: #9a3412;
    font-weight: 800;
    background: #fed7aa;
}

.detail-info .primary-button {
    margin-top: 26px;
    color: #fff;
    background: linear-gradient(90deg, var(--orange), var(--red));
}

.player-section {
    padding-top: 58px;
}

.player-card {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #020617;
    box-shadow: var(--shadow);
    aspect-ratio: 16 / 9;
}

.movie-player {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #020617;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 14px;
    border: 0;
    color: #fff;
    text-align: center;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.2), rgba(2, 6, 23, 0.68));
}

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

.player-button {
    display: grid;
    place-items: center;
    width: 86px;
    height: 86px;
    border-radius: 50%;
    color: var(--orange);
    font-size: 34px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.24);
}

.player-overlay strong {
    max-width: min(720px, calc(100% - 32px));
    font-size: clamp(24px, 4vw, 42px);
}

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

.article-card {
    padding: 30px;
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
}

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

.article-card p {
    margin: 0;
    color: #374151;
    font-size: 17px;
}

.site-footer {
    color: #d1d5db;
    background: #111827;
}

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

.footer-logo {
    margin-bottom: 14px;
    color: #fff;
}

.site-footer p {
    margin: 0;
    color: #cbd5e1;
}

.site-footer h3 {
    margin: 0 0 14px;
    color: #fff;
}

.site-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer li + li {
    margin-top: 8px;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #9ca3af;
}

@media (max-width: 1100px) {
    .desktop-nav {
        gap: 14px;
    }

    .nav-link.soft {
        display: none;
    }

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

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

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

    .menu-toggle {
        display: block;
    }

    .hero-section {
        min-height: 800px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .hero-poster {
        justify-self: start;
        width: min(260px, 80vw);
    }

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

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

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

    .category-grid,
    .category-grid.large,
    .footer-grid,
    .content-grid,
    .detail-grid,
    .filter-panel {
        grid-template-columns: 1fr;
    }

    .ranking-row {
        grid-template-columns: 48px 74px 1fr;
    }

    .ranking-action {
        grid-column: 2 / 4;
    }
}

@media (max-width: 560px) {
    .hero-shell {
        padding-top: 46px;
    }

    .hero-section {
        min-height: 840px;
    }

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

    .hero-search {
        width: 100%;
    }

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

    .section {
        padding: 52px 0;
    }

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

    .card-body {
        padding: 12px;
    }

    .ranking-row {
        grid-template-columns: 42px 1fr;
    }

    .ranking-thumb {
        display: none;
    }

    .ranking-action {
        grid-column: 1 / 3;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
    }
}
