:root {
    --bg: #f8fafc;
    --surface: #ffffff;
    --text: #111827;
    --muted: #6b7280;
    --soft: #f3f4f6;
    --line: #e5e7eb;
    --orange: #ea580c;
    --orange-dark: #c2410c;
    --red: #ef4444;
    --teal: #0f766e;
    --shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.8);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.topbar {
    max-width: 1280px;
    height: 68px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

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

.brand-mark {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: white;
    background: linear-gradient(135deg, var(--orange), var(--red));
    box-shadow: 0 10px 22px rgba(234, 88, 12, 0.32);
}

.brand-name {
    font-size: 22px;
}

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

.nav-link,
.mobile-link,
.subnav-link {
    color: #374151;
    font-weight: 700;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active,
.subnav-link:hover {
    color: var(--orange);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: var(--soft);
    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;
    padding: 10px 24px 18px;
    border-top: 1px solid var(--line);
}

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

.mobile-link {
    display: block;
    padding: 10px 12px;
    border-radius: 12px;
}

.mobile-link:hover,
.mobile-link.active {
    background: #fff7ed;
}

.subnav {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px 12px;
    display: flex;
    gap: 10px;
    overflow-x: auto;
}

.subnav-link {
    white-space: nowrap;
    padding: 7px 12px;
    border-radius: 999px;
    background: #fff7ed;
    color: #9a3412;
    font-size: 14px;
}

.hero-carousel {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    background: #111827;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.62fr);
    align-items: center;
    gap: 48px;
    padding: 72px max(24px, calc((100vw - 1280px) / 2 + 24px));
    opacity: 0;
    pointer-events: none;
    transform: scale(1.02);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(90deg, rgba(17, 24, 39, 0.96), rgba(17, 24, 39, 0.78), rgba(17, 24, 39, 0.52)), var(--hero-image);
    background-size: cover;
    background-position: center;
    filter: saturate(1.05);
}

.hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
    position: relative;
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(234, 88, 12, 0.32), transparent 34%), radial-gradient(circle at 80% 60%, rgba(20, 184, 166, 0.24), transparent 38%);
}

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

.eyebrow,
.section-title span,
.ranking-head span,
.page-hero span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--teal);
    font-weight: 800;
    letter-spacing: 0.04em;
}

.hero-content .eyebrow {
    color: #99f6e4;
}

.hero-content h1,
.hero-content h2,
.page-hero h1 {
    margin: 16px 0;
    font-size: clamp(36px, 5vw, 72px);
    line-height: 1.05;
    color: #ffffff;
    letter-spacing: -0.05em;
}

.hero-movie-title {
    color: #fed7aa;
    font-size: 26px;
    font-weight: 800;
    margin: -4px 0 16px;
}

.hero-content p,
.page-hero p {
    max-width: 760px;
    color: #e5e7eb;
    font-size: 18px;
}

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

.hero-actions.single-line {
    margin-top: 18px;
}

.primary-btn,
.ghost-btn,
.search-panel button,
.full-link,
.text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 12px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn,
.search-panel button,
.full-link {
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange), var(--red));
    box-shadow: 0 12px 24px rgba(234, 88, 12, 0.24);
    border: 0;
}

.ghost-btn {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.38);
    background: rgba(255, 255, 255, 0.12);
}

.primary-btn:hover,
.ghost-btn:hover,
.search-panel button:hover,
.full-link:hover,
.text-link:hover {
    transform: translateY(-2px);
}

.hero-poster,
.detail-poster,
.poster {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    background: linear-gradient(145deg, #fb923c, #ef4444 52%, #0f766e);
    box-shadow: var(--shadow);
}

.hero-poster {
    aspect-ratio: 2 / 3;
    max-width: 390px;
    justify-self: center;
    transform: rotate(2deg);
}

.hero-poster img,
.detail-poster img,
.poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
    z-index: 2;
}

.poster-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px;
    color: white;
    font-weight: 900;
    font-size: 22px;
    text-align: center;
    line-height: 1.25;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.24);
}

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

.hero-dot {
    width: 28px;
    height: 6px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.4);
}

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

.section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 56px 24px;
}

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

.section-title.centered {
    max-width: 760px;
    margin: 0 auto 26px;
    display: block;
    text-align: center;
}

.section-title h2,
.ranking-head h2,
.detail-text h2,
.prose-card h2,
.service-grid h2 {
    margin: 6px 0 0;
    font-size: clamp(26px, 3vw, 40px);
    line-height: 1.16;
    letter-spacing: -0.03em;
}

.section-title p {
    margin: 12px auto 0;
    color: var(--muted);
}

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

.intro-section {
    padding-top: 48px;
}

.search-panel {
    max-width: 760px;
    margin: 0 auto 24px;
    display: flex;
    gap: 12px;
    padding: 8px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.search-panel input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 0 14px;
    color: var(--text);
}

.filter-row {
    max-width: 980px;
    margin: 0 auto 28px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.filter-chip {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 14px;
    color: #374151;
    background: #ffffff;
    cursor: pointer;
}

.filter-chip.active,
.filter-chip:hover {
    color: #ffffff;
    border-color: var(--orange);
    background: var(--orange);
}

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

.category-tile,
.category-overview-card,
.prose-card,
.service-grid article,
.ranking-card {
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.07);
}

.category-tile,
.category-overview-card,
.prose-card,
.service-grid article {
    padding: 22px;
}

.category-tile strong,
.category-name {
    display: block;
    font-size: 22px;
    font-weight: 900;
    margin-bottom: 10px;
}

.category-tile p,
.category-overview-card p,
.prose-card p,
.service-grid p,
.card-body p,
.detail-text p {
    color: var(--muted);
}

.sample-titles {
    display: grid;
    gap: 6px;
    margin-top: 16px;
    color: #9a3412;
    font-size: 14px;
}

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

.category-overview-card li a:hover,
.site-footer a:hover {
    color: var(--orange);
}

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

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

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

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

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

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

.poster {
    display: block;
    aspect-ratio: 2 / 3;
    border-radius: 0;
    box-shadow: none;
}

.score {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    padding: 4px 8px;
    border-radius: 999px;
    color: #ffffff;
    font-weight: 900;
    background: rgba(17, 24, 39, 0.82);
}

.card-body {
    padding: 14px;
}

.meta-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    color: var(--teal);
    font-size: 12px;
    font-weight: 800;
}

.card-body h3 {
    margin: 8px 0 7px;
    font-size: 18px;
    line-height: 1.3;
}

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

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

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    background: #fff7ed;
    color: #9a3412;
    font-size: 12px;
    font-weight: 700;
}

.tag-row.large span {
    min-height: 30px;
    padding: 0 10px;
    font-size: 13px;
}

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

.ranking-card {
    padding: 22px;
    position: sticky;
    top: 110px;
}

.ranking-card.wide {
    position: static;
}

.rank-list {
    padding: 0;
    margin: 18px 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.rank-list.large {
    gap: 12px;
}

.rank-link {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 10px;
    border-radius: 14px;
    background: #f9fafb;
}

.rank-link:hover {
    background: #fff7ed;
}

.rank-no {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange), var(--red));
    font-weight: 900;
}

.rank-title,
.rank-meta {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

.rank-meta {
    grid-column: 2;
    color: var(--muted);
    font-size: 13px;
}

.page-hero {
    max-width: 1280px;
    margin: 0 auto;
    padding: 70px 24px;
    color: #ffffff;
    background: radial-gradient(circle at 18% 16%, rgba(251, 146, 60, 0.32), transparent 32%), linear-gradient(135deg, #111827, #1f2937 50%, #0f766e);
    border-radius: 0 0 34px 34px;
}

.compact-hero h1 {
    color: #ffffff;
    max-width: 900px;
}

.compact-hero span {
    color: #99f6e4;
}

.breadcrumb {
    max-width: 1280px;
    margin: 0 auto;
    padding: 22px 24px 0;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 14px;
}

.breadcrumb a {
    color: var(--orange);
    font-weight: 700;
}

.detail-hero {
    max-width: 1280px;
    margin: 0 auto;
    padding: 34px 24px 24px;
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 34px;
    align-items: center;
}

.detail-poster {
    aspect-ratio: 2 / 3;
}

.detail-info {
    min-width: 0;
}

.detail-info h1 {
    margin: 14px 0 12px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.lead {
    max-width: 840px;
    color: #374151;
    font-size: 19px;
}

.detail-meta {
    list-style: none;
    padding: 0;
    margin: 22px 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.detail-meta li {
    padding: 12px;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.detail-meta strong,
.detail-meta span {
    display: block;
}

.detail-meta strong {
    color: var(--muted);
    font-size: 12px;
}

.detail-meta span {
    margin-top: 3px;
    font-weight: 800;
}

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

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #020617;
    box-shadow: var(--shadow);
}

.movie-player {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #020617;
}

.player-overlay {
    position: absolute;
    inset: 0;
    border: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: radial-gradient(circle, rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0.55));
    cursor: pointer;
}

.player-overlay span {
    width: 88px;
    height: 88px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 7px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--orange), var(--red));
    font-size: 34px;
    box-shadow: 0 18px 42px rgba(234, 88, 12, 0.4);
}

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

.detail-text,
.prose-card {
    font-size: 18px;
}

.detail-text p,
.prose-card p {
    margin: 12px 0 24px;
}

.site-footer {
    margin-top: 40px;
    color: #d1d5db;
    background: #111827;
}

.footer-grid {
    max-width: 1280px;
    margin: 0 auto;
    padding: 46px 24px;
    display: grid;
    grid-template-columns: 1.35fr 1fr 1fr 1fr;
    gap: 28px;
}

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

.site-footer h2 {
    margin: 0 0 12px;
    color: #ffffff;
    font-size: 18px;
}

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

.footer-bottom {
    border-top: 1px solid #1f2937;
    padding: 18px 24px;
    text-align: center;
    color: #9ca3af;
}

.empty-state {
    max-width: 760px;
    margin: 0 auto 20px;
    padding: 14px 18px;
    border-radius: 14px;
    color: #9a3412;
    background: #fff7ed;
    text-align: center;
    font-weight: 800;
}

[hidden] {
    display: none !important;
}

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

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

    .highlight-layout,
    .ranking-layout {
        grid-template-columns: 1fr;
    }

    .ranking-card {
        position: static;
    }
}

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

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

    .hero-carousel {
        min-height: 760px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-top: 52px;
        padding-bottom: 70px;
    }

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

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

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

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

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

@media (max-width: 640px) {
    .topbar {
        padding: 0 16px;
    }

    .subnav {
        padding-left: 16px;
        padding-right: 16px;
    }

    .section,
    .page-hero,
    .detail-hero,
    .breadcrumb {
        padding-left: 16px;
        padding-right: 16px;
    }

    .movie-grid,
    .home-grid,
    .listing-grid,
    .rank-grid,
    .related-grid,
    .category-grid,
    .category-overview-grid,
    .service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .card-body h3 {
        font-size: 16px;
    }

    .search-panel {
        display: grid;
    }

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

    .player-overlay span {
        width: 68px;
        height: 68px;
        font-size: 26px;
    }
}
