:root {
    --bg: #f9fafb;
    --text: #111827;
    --muted: #6b7280;
    --soft: #f3f4f6;
    --line: #e5e7eb;
    --card: #ffffff;
    --brand: #ea580c;
    --brand-dark: #c2410c;
    --brand-soft: #ffedd5;
    --red: #dc2626;
    --shadow: 0 20px 45px rgba(15, 23, 42, 0.10);
    --radius: 22px;
    --header-height: 76px;
}

* {
    box-sizing: border-box;
}

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

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

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

button,
input {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(229, 231, 235, 0.8);
    backdrop-filter: blur(14px);
}

.site-nav {
    min-height: var(--header-height);
    display: flex;
    align-items: center;
    gap: 22px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: max-content;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--brand), var(--red));
    color: #fff;
    box-shadow: 0 12px 28px rgba(234, 88, 12, 0.28);
    font-size: 16px;
}

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

.brand-title {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.04em;
    background: linear-gradient(90deg, var(--brand), var(--red));
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.brand-subtitle {
    color: var(--muted);
    font-size: 12px;
    margin-top: 2px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-left: auto;
}

.nav-links a {
    color: #374151;
    font-weight: 700;
    font-size: 15px;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--brand);
}

.site-search {
    position: relative;
    width: 250px;
}

.site-search-input,
.category-filter-input {
    width: 100%;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 999px;
    padding: 12px 18px;
    outline: none;
    color: var(--text);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-search-input:focus,
.category-filter-input:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(234, 88, 12, 0.14);
}

.site-search-results {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: min(420px, 92vw);
    max-height: 460px;
    overflow: auto;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 8px;
    display: none;
}

.site-search-results.is-open {
    display: block;
}

.search-result-item {
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 12px;
    padding: 10px;
    border-radius: 14px;
}

.search-result-item:hover {
    background: var(--soft);
}

.search-result-item img {
    width: 58px;
    height: 76px;
    object-fit: cover;
    border-radius: 10px;
}

.search-result-item strong {
    display: block;
    line-height: 1.35;
}

.search-result-item span {
    color: var(--muted);
    font-size: 13px;
}

.mobile-menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: var(--soft);
    padding: 10px;
}

.mobile-menu-toggle span {
    display: block;
    height: 2px;
    background: #374151;
    margin: 5px 0;
    border-radius: 999px;
}

.mobile-menu {
    display: none;
    padding: 0 16px 18px;
    border-top: 1px solid var(--line);
}

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

.mobile-menu a {
    display: block;
    padding: 12px 0;
    color: #374151;
    font-weight: 700;
}

.mobile-search {
    width: 100%;
    margin-top: 8px;
}

.hero-carousel {
    position: relative;
    min-height: calc(78vh - var(--header-height));
    overflow: hidden;
    background: #111827;
}

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

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

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

.hero-cover {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.52) 45%, rgba(0, 0, 0, 0.12));
}

.hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    max-width: 1180px;
    color: #fff;
}

.hero-kicker,
.page-kicker,
.detail-kicker {
    display: inline-flex;
    align-items: center;
    width: max-content;
    border-radius: 999px;
    background: var(--brand);
    color: #fff;
    padding: 8px 14px;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 0.02em;
}

.hero-content h1 {
    max-width: 760px;
    margin: 18px 0 14px;
    font-size: clamp(42px, 7vw, 76px);
    line-height: 0.95;
    font-weight: 950;
    letter-spacing: -0.06em;
}

.hero-content p {
    max-width: 680px;
    color: #e5e7eb;
    font-size: clamp(18px, 2.2vw, 24px);
    margin: 0 0 22px;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    color: #f3f4f6;
    margin-bottom: 30px;
}

.hero-meta span {
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    padding: 8px 13px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
}

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

.primary-button,
.ghost-button,
.inline-link,
.section-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 999px;
    font-weight: 850;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.primary-button {
    color: #fff;
    background: var(--brand);
    padding: 14px 24px;
    box-shadow: 0 16px 34px rgba(234, 88, 12, 0.30);
}

.primary-button:hover {
    background: var(--brand-dark);
    transform: translateY(-2px);
}

.ghost-button {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.42);
    padding: 13px 23px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
}

.ghost-button:hover {
    background: rgba(255, 255, 255, 0.18);
}

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

.hero-dot {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
    width: 34px;
    background: var(--brand);
}

.section-block {
    padding-top: 64px;
    padding-bottom: 64px;
}

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

.section-heading h2 {
    margin: 0 0 8px;
    font-size: clamp(28px, 4vw, 38px);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.section-heading p {
    color: var(--muted);
    margin: 0;
}

.section-more {
    color: var(--brand);
}

.soft-section {
    background: #fff;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

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

.movie-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
    background: var(--card);
    border-radius: 18px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-wrap {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #111827;
}

.movie-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.poster-shade {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.movie-card:hover .poster-shade {
    opacity: 1;
}

.play-chip {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.85);
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(234, 88, 12, 0.92);
    color: #fff;
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .play-chip {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.rank-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    min-width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--brand), var(--red));
    color: #fff;
    font-weight: 900;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.24);
}

.movie-card-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
}

.movie-card strong {
    color: #111827;
    font-size: 18px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-one-line {
    min-height: 42px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-meta,
.movie-tags,
.detail-meta,
.tag-cloud,
.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.movie-meta em {
    font-style: normal;
    color: #4b5563;
    font-size: 13px;
}

.movie-tags span,
.tag-cloud span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: var(--soft);
    color: #4b5563;
    padding: 5px 9px;
    font-size: 12px;
}

.movie-tags span:first-child {
    background: var(--brand-soft);
    color: var(--brand-dark);
}

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

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

.movie-card-wide {
    display: grid;
    grid-template-columns: 220px 1fr;
    min-height: 164px;
}

.movie-card-wide .poster-wrap {
    aspect-ratio: auto;
    height: 100%;
}

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

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

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

.category-card {
    position: relative;
    min-height: 220px;
    overflow: hidden;
    border-radius: var(--radius);
    background: #111827;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.10);
}

.category-card img,
.category-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.78;
    transition: transform 0.5s ease, opacity 0.2s ease;
}

.category-card:hover img,
.category-cover:hover img {
    transform: scale(1.08);
    opacity: 0.9;
}

.category-card span {
    position: absolute;
    inset: auto 18px 18px;
    color: #fff;
    z-index: 2;
}

.category-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.78));
}

.category-card strong {
    display: block;
    font-size: 23px;
    margin-bottom: 8px;
}

.category-card em {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-style: normal;
    color: #e5e7eb;
    font-size: 14px;
}

.page-shell {
    min-height: 70vh;
}

.page-hero {
    padding: 56px 0 32px;
}

.page-kicker {
    margin-bottom: 14px;
}

.page-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(38px, 6vw, 64px);
    line-height: 1;
    letter-spacing: -0.06em;
}

.page-hero p {
    max-width: 760px;
    color: var(--muted);
    font-size: 18px;
    margin: 0;
}

.category-overview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    padding-bottom: 72px;
}

.category-overview-card {
    display: grid;
    grid-template-columns: 210px 1fr;
    overflow: hidden;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.category-cover {
    min-height: 240px;
    overflow: hidden;
    background: #111827;
}

.category-overview-card > div {
    padding: 22px;
}

.category-overview-card h2 {
    margin: 0 0 10px;
    font-size: 24px;
}

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

.category-overview-card ul {
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
}

.category-overview-card li {
    border-bottom: 1px solid var(--line);
}

.category-overview-card li a {
    display: block;
    padding: 7px 0;
    color: #374151;
}

.category-overview-card li a:hover,
.inline-link:hover {
    color: var(--brand);
}

.inline-link {
    color: var(--brand);
}

.category-hero {
    position: relative;
    min-height: 360px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #111827;
    color: #fff;
}

.category-hero > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.42));
}

.category-hero-content {
    position: relative;
    z-index: 2;
}

.category-hero h1 {
    margin: 14px 0;
    font-size: clamp(38px, 6vw, 62px);
    letter-spacing: -0.05em;
}

.category-hero p {
    max-width: 720px;
    color: #e5e7eb;
    font-size: 19px;
}

.breadcrumb-link {
    color: #fed7aa;
    font-weight: 800;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    margin-bottom: 24px;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
}

.filter-chip {
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: #4b5563;
    padding: 9px 13px;
    font-weight: 750;
}

.filter-chip.is-active,
.filter-chip:hover {
    border-color: var(--brand);
    background: var(--brand-soft);
    color: var(--brand-dark);
}

.empty-state {
    margin-top: 28px;
    padding: 32px;
    border-radius: 18px;
    background: #fff;
    color: var(--muted);
    text-align: center;
}

.player-stage {
    background: #050505;
    padding: 26px 0;
}

.player-container {
    max-width: 1120px;
}

.video-shell {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 22px;
    background: #000;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

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

.center-play-button {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 88px;
    height: 88px;
    border: 0;
    border-radius: 999px;
    background: var(--brand);
    color: #fff;
    font-size: 32px;
    box-shadow: 0 18px 40px rgba(234, 88, 12, 0.38);
    transition: transform 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}

.center-play-button:hover {
    transform: translate(-50%, -50%) scale(1.08);
    background: var(--brand-dark);
}

.video-shell.is-playing .center-play-button {
    opacity: 0;
    pointer-events: none;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
    padding-top: 34px;
    padding-bottom: 72px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    color: var(--muted);
    margin-bottom: 16px;
}

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

.detail-card,
.related-panel {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.detail-card {
    padding: 28px;
}

.detail-head {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 24px;
    margin-bottom: 28px;
}

.detail-head img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 18px;
}

.detail-head h1 {
    margin: 16px 0 14px;
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.detail-head p {
    color: #374151;
    font-size: 18px;
    margin: 0 0 18px;
}

.detail-meta span {
    border-radius: 999px;
    background: var(--soft);
    padding: 8px 12px;
    color: #4b5563;
    font-weight: 750;
}

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

.detail-section h2,
.related-panel h2 {
    margin: 0 0 12px;
    font-size: 23px;
    letter-spacing: -0.03em;
}

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

.review-box {
    background: #fff7ed;
    border: 0;
    border-radius: 18px;
    padding: 22px;
}

.tag-cloud {
    margin-top: 24px;
}

.related-panel {
    height: max-content;
    padding: 22px;
    position: sticky;
    top: 96px;
}

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

.movie-card-compact {
    display: grid;
    grid-template-columns: 118px 1fr;
}

.movie-card-compact .poster-wrap {
    height: 132px;
    aspect-ratio: auto;
}

.movie-card-compact .movie-card-body {
    padding: 12px;
}

.movie-card-compact strong {
    font-size: 15px;
}

.movie-card-compact .movie-one-line,
.movie-card-compact .movie-tags {
    display: none;
}

.site-footer {
    background: #111827;
    color: #d1d5db;
    padding-top: 48px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 34px;
}

.footer-brand {
    color: #fff;
    font-size: 24px;
    font-weight: 950;
    margin-bottom: 12px;
}

.site-footer p {
    max-width: 420px;
    color: #9ca3af;
    margin: 0;
}

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

.site-footer a {
    display: block;
    padding: 5px 0;
    color: #9ca3af;
}

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

.footer-bottom {
    margin-top: 36px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px;
    text-align: center;
    color: #9ca3af;
    font-size: 14px;
}

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

    .site-search {
        margin-left: auto;
    }

    .mobile-menu-toggle {
        display: block;
    }

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

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

    .related-panel {
        position: static;
    }

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

@media (max-width: 820px) {
    .site-search {
        display: none;
    }

    .mobile-search {
        display: block;
    }

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

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

    .movie-card-wide,
    .category-overview-card,
    .detail-head {
        grid-template-columns: 1fr;
    }

    .filter-panel {
        grid-template-columns: 1fr;
    }

    .detail-head img {
        max-width: 280px;
    }
}

@media (max-width: 560px) {
    .container {
        width: min(100% - 24px, 1180px);
    }

    .brand-title {
        font-size: 20px;
    }

    .brand-subtitle {
        font-size: 11px;
    }

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

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

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

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

    .detail-card,
    .related-panel {
        padding: 18px;
    }

    .center-play-button {
        width: 70px;
        height: 70px;
        font-size: 26px;
    }
}
