:root {
    --brand: #ea580c;
    --brand-dark: #c2410c;
    --accent: #dc2626;
    --ink: #111827;
    --muted: #6b7280;
    --soft: #f9fafb;
    --line: #e5e7eb;
    --card: #ffffff;
    --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(--ink);
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
}

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

img {
    display: block;
    width: 100%;
    height: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, #ea580c 0%, #dc2626 100%);
    box-shadow: 0 12px 30px rgba(194, 65, 12, 0.28);
}

.header-inner {
    max-width: 1280px;
    height: 72px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    min-width: 190px;
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.brand-copy strong {
    font-size: 20px;
    letter-spacing: 0.02em;
}

.brand-copy small {
    margin-top: 5px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.86);
}

.site-nav {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    color: #ffffff;
    font-weight: 700;
}

.site-nav > a,
.nav-dropdown > a {
    padding: 24px 0;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.site-nav a:hover {
    color: #ffedd5;
}

.nav-dropdown {
    position: relative;
}

.dropdown-panel {
    position: absolute;
    top: 68px;
    left: 50%;
    width: 220px;
    padding: 10px;
    border-radius: 16px;
    background: #ffffff;
    color: #374151;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(10px);
    transition: all 0.2s ease;
}

.dropdown-panel a {
    display: block;
    padding: 10px 14px;
    border-radius: 10px;
}

.dropdown-panel a:hover {
    background: #fff7ed;
    color: var(--brand);
}

.nav-dropdown:hover .dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.header-search {
    position: relative;
    width: 280px;
}

.header-search input {
    width: 100%;
    height: 42px;
    border: 0;
    outline: 0;
    border-radius: 999px;
    padding: 0 46px 0 18px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(8px);
}

.header-search input::placeholder {
    color: rgba(255, 255, 255, 0.76);
}

.header-search button {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    cursor: pointer;
}

.nav-toggle {
    display: none;
    margin-left: auto;
    border: 0;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    width: 42px;
    height: 42px;
    font-size: 22px;
    cursor: pointer;
}

.mobile-nav {
    display: none;
    padding: 12px 24px 20px;
    background: #c2410c;
}

.mobile-nav a {
    display: block;
    color: #ffffff;
    padding: 10px 12px;
    border-radius: 10px;
}

.mobile-nav a:hover {
    background: rgba(255, 255, 255, 0.12);
}

.hero {
    position: relative;
    height: 540px;
    overflow: hidden;
    background: #111827;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease;
}

.hero-slide.is-active {
    opacity: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.76) 0%, rgba(0, 0, 0, 0.52) 48%, rgba(0, 0, 0, 0.12) 100%);
}

.hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
}

.hero-inner {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.hero-copy {
    max-width: 680px;
    color: #ffffff;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 7px 13px;
    border-radius: 999px;
    background: var(--brand);
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
}

.hero-copy h1 {
    margin: 0 0 18px;
    font-size: clamp(36px, 6vw, 62px);
    line-height: 1.03;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.hero-copy p {
    margin: 0 0 28px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 19px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

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

.btn-primary {
    color: #ffffff;
    background: linear-gradient(90deg, #ea580c 0%, #dc2626 100%);
    box-shadow: 0 14px 28px rgba(220, 38, 38, 0.26);
}

.btn-secondary {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.btn-primary:hover,
.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.22);
}

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

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

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

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

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

.section-title {
    margin: 0;
    font-size: clamp(26px, 4vw, 36px);
    line-height: 1.15;
    font-weight: 900;
    color: #111827;
}

.section-desc {
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.7;
}

.section-link {
    color: var(--brand);
    font-weight: 800;
    white-space: nowrap;
}

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

.category-tile {
    min-height: 150px;
    padding: 24px;
    border-radius: 22px;
    color: #ffffff;
    background: linear-gradient(135deg, #f97316 0%, #dc2626 100%);
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:nth-child(2n) {
    background: linear-gradient(135deg, #2563eb 0%, #ea580c 100%);
}

.category-tile:nth-child(3n) {
    background: linear-gradient(135deg, #16a34a 0%, #f97316 100%);
}

.category-tile:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 26px 50px rgba(15, 23, 42, 0.18);
}

.category-tile strong {
    display: block;
    margin-top: 22px;
    font-size: 22px;
}

.category-tile span {
    font-size: 36px;
}

.category-tile small {
    display: block;
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.6;
}

.category-overview-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.category-overview-card .category-tile {
    display: block;
}

.category-samples {
    display: grid;
    gap: 8px;
    padding: 12px 14px;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.category-samples a {
    display: block;
    overflow: hidden;
    color: #374151;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.category-samples a:hover {
    color: var(--brand);
}

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

.movie-card {
    min-width: 0;
}

.movie-card-link {
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    background: #ffffff;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.poster-wrap {
    position: relative;
    margin: 0;
    aspect-ratio: 2 / 3;
    background: #111827;
    overflow: hidden;
}

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

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

.poster-score {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 5px 9px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(234, 88, 12, 0.94);
    font-weight: 900;
}

.movie-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 18px;
}

.movie-meta-line {
    display: flex;
    gap: 10px;
    color: var(--brand);
    font-size: 13px;
    font-weight: 800;
}

.movie-card h2 {
    margin: 8px 0 8px;
    color: #111827;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 900;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: auto;
}

.tag-row span,
.chip {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    color: #9a3412;
    background: #ffedd5;
    font-size: 12px;
    font-weight: 800;
}

.content-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 32px;
}

.rank-panel,
.info-panel,
.detail-card,
.search-panel {
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.rank-panel {
    padding: 22px;
}

.rank-panel h2,
.info-panel h2,
.detail-card h2,
.search-panel h1 {
    margin: 0 0 18px;
    font-size: 24px;
    font-weight: 900;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 42px 58px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 16px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.rank-item:hover {
    background: #fff7ed;
    transform: translateX(3px);
}

.rank-index {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, #ea580c 0%, #dc2626 100%);
    font-weight: 900;
}

.rank-item img {
    width: 58px;
    height: 78px;
    border-radius: 10px;
    object-fit: cover;
    background: #111827;
}

.rank-copy {
    min-width: 0;
}

.rank-copy strong {
    display: block;
    overflow: hidden;
    color: #111827;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-copy small {
    display: block;
    margin-top: 5px;
    overflow: hidden;
    color: var(--muted);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.page-hero {
    background: linear-gradient(135deg, #111827 0%, #7c2d12 100%);
    color: #ffffff;
}

.page-hero-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 70px 24px;
}

.page-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.06;
    font-weight: 900;
}

.page-hero p {
    max-width: 860px;
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
    line-height: 1.8;
}

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

.breadcrumb a {
    color: var(--brand);
    font-weight: 800;
}

.local-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 0 0 28px;
}

.local-tools input,
.local-tools select {
    min-height: 46px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0 18px;
    background: #ffffff;
    color: #111827;
    outline: 0;
}

.local-tools input {
    flex: 1;
    min-width: 260px;
}

.local-tools input:focus,
.local-tools select:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(234, 88, 12, 0.12);
}

.player-page {
    padding: 36px 24px 56px;
}

.player-layout {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 30px;
}

.player-main {
    min-width: 0;
}

.movie-player {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    background: #000000;
    box-shadow: var(--shadow);
}

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

.player-cover {
    position: absolute;
    inset: 0;
    border: 0;
    padding: 0;
    background: #000000;
    cursor: pointer;
    overflow: hidden;
}

.player-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.72;
}

.play-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 86px;
    height: 86px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, #ea580c 0%, #dc2626 100%);
    font-size: 34px;
    transform: translate(-50%, -50%);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.36);
}

.movie-player.is-playing .player-cover {
    display: none;
}

.detail-card {
    margin-top: 22px;
    padding: 28px;
}

.detail-card h1 {
    margin: 0 0 12px;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.18;
    font-weight: 900;
}

.detail-lead {
    margin: 0 0 20px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.8;
}

.meta-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.detail-section {
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.detail-section + .detail-section {
    margin-top: 24px;
}

.detail-section h2 {
    margin: 0 0 14px;
    font-size: 24px;
}

.detail-section p {
    margin: 0;
    color: #374151;
    line-height: 1.9;
    font-size: 16px;
}

.info-panel {
    padding: 22px;
    align-self: start;
    position: sticky;
    top: 96px;
}

.side-poster {
    margin: 0 0 18px;
    border-radius: 18px;
    overflow: hidden;
    background: #111827;
}

.side-poster img {
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.fact-list {
    display: grid;
    gap: 10px;
    color: #374151;
}

.fact-list div {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}

.fact-list span {
    color: var(--muted);
}

.related-list {
    display: grid;
    gap: 12px;
    margin-top: 24px;
}

.search-panel {
    padding: 28px;
    margin-bottom: 28px;
}

.search-panel p {
    color: var(--muted);
    line-height: 1.7;
}

.site-footer {
    background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
    color: #d1d5db;
}

.footer-grid {
    max-width: 1280px;
    margin: 0 auto;
    padding: 48px 24px;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: 30px;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    color: #ffffff;
    font-size: 20px;
}

.footer-brand span {
    color: var(--brand);
}

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

.site-footer p {
    margin: 0;
    color: #9ca3af;
    line-height: 1.8;
}

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

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

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

.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding: 18px 24px 30px;
    color: #9ca3af;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

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

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

    .content-split,
    .player-layout {
        grid-template-columns: 1fr;
    }

    .info-panel {
        position: static;
    }

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

@media (max-width: 820px) {
    .header-inner {
        height: auto;
        min-height: 68px;
        padding: 12px 18px;
        flex-wrap: wrap;
    }

    .site-nav,
    .header-search {
        display: none;
    }

    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

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

    .hero {
        height: 560px;
    }

    .hero-content {
        align-items: flex-end;
        padding-bottom: 80px;
    }

    .hero-shade {
        background: linear-gradient(0deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.42) 100%);
    }

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

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

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

    .hero {
        height: 520px;
    }

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

    .main-wrap,
    .player-page {
        padding-left: 16px;
        padding-right: 16px;
    }

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

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

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