:root {
    --orange: #ea580c;
    --orange-dark: #c2410c;
    --red: #dc2626;
    --amber: #d97706;
    --ink: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --soft: #f9fafb;
    --warm: #fff7ed;
    --white: #ffffff;
    --shadow: 0 18px 45px rgba(17, 24, 39, 0.12);
    --shadow-soft: 0 10px 28px rgba(17, 24, 39, 0.08);
}

* {
    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(180deg, #f9fafb 0%, #f3f4f6 100%);
    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: 100;
    color: #ffffff;
    background: linear-gradient(90deg, var(--amber), var(--orange), var(--red));
    box-shadow: 0 10px 28px rgba(127, 29, 29, 0.22);
}

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

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

.brand {
    font-size: 24px;
}

.brand-mark {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--orange);
    background: #ffffff;
    border-radius: 999px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    font-weight: 700;
}

.nav-links a,
.mobile-menu a {
    opacity: 0.92;
    transition: opacity 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    opacity: 1;
    color: #fde68a;
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.mobile-toggle span {
    width: 20px;
    height: 2px;
    background: #ffffff;
    border-radius: 20px;
}

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

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

.mobile-menu a {
    padding: 10px 14px;
    border-radius: 10px;
}

.mobile-menu a:hover,
.mobile-menu a.active {
    background: rgba(255, 255, 255, 0.13);
}

.hero-carousel {
    position: relative;
    height: 600px;
    overflow: hidden;
    background: #000000;
}

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

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

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

.hero-mask {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.56) 42%, rgba(0, 0, 0, 0.16) 100%);
}

.hero-content {
    position: absolute;
    left: max(32px, calc((100vw - 1180px) / 2));
    right: 32px;
    bottom: 86px;
    max-width: 760px;
    color: #ffffff;
    z-index: 2;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    width: max-content;
    max-width: 100%;
    padding: 6px 12px;
    color: #ffffff;
    background: rgba(234, 88, 12, 0.88);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.eyebrow.dark {
    color: var(--orange-dark);
    background: #ffedd5;
}

.hero-content h1,
.hero-content h2 {
    margin: 18px 0 14px;
    font-size: clamp(38px, 6vw, 68px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.hero-content p {
    max-width: 660px;
    margin: 0 0 22px;
    color: #e5e7eb;
    font-size: 18px;
}

.hero-tags,
.tag-row,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-tags span,
.tag-row span,
.detail-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 13px;
}

.hero-tags span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 13px;
    font-weight: 800;
    box-shadow: var(--shadow-soft);
    transition: transform 0.22s ease, background 0.22s ease, color 0.22s ease;
}

.btn:hover {
    transform: translateY(-2px) scale(1.02);
}

.btn-primary {
    color: #ffffff;
    background: linear-gradient(90deg, var(--orange), var(--red));
}

.btn-ghost {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
}

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 46px;
    height: 46px;
    border: 0;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.45);
    border-radius: 999px;
    font-size: 36px;
    line-height: 1;
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-control:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: translateY(-2px);
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

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

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

.hero-dots button.active {
    width: 34px;
    background: var(--orange);
}

.hero-quick {
    position: absolute;
    right: max(24px, calc((100vw - 1180px) / 2));
    bottom: 28px;
    z-index: 4;
    display: flex;
    gap: 10px;
}

.hero-quick a {
    padding: 9px 14px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    backdrop-filter: blur(8px);
}

.section-wrap,
.search-panel,
.detail-layout {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.section-wrap {
    padding: 56px 0;
}

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

.section-heading.left-only {
    align-items: start;
    justify-content: flex-start;
}

.section-heading h2,
.search-panel h2,
.related-card h2,
.copy-section h2,
.footer-inner h2 {
    margin: 10px 0 0;
    color: var(--ink);
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.2;
}

.section-heading p,
.search-panel p {
    margin: 8px 0 0;
    color: var(--muted);
}

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

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

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

.dense-grid {
    gap: 18px;
}

.movie-card {
    display: block;
    overflow: hidden;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover,
.mini-media:hover,
.category-tile:hover,
.overview-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

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

.movie-card-wide .poster-wrap {
    aspect-ratio: 16 / 10;
}

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

.movie-card:hover .poster-wrap img,
.mini-media:hover img,
.category-tile:hover img,
.overview-card:hover img {
    transform: scale(1.08);
}

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), transparent 58%);
    opacity: 0;
    transition: opacity 0.22s ease;
}

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

.corner-label,
.rank-badge,
.mini-rank {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
}

.corner-label {
    top: 12px;
    right: 12px;
    min-height: 28px;
    padding: 4px 9px;
    background: var(--orange);
    border-radius: 8px;
    font-size: 12px;
}

.rank-badge {
    left: 12px;
    top: 12px;
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, var(--orange), var(--red));
    border-radius: 999px;
}

.play-dot {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 3;
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: rgba(234, 88, 12, 0.92);
    border-radius: 999px;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.86);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

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

.card-body {
    display: grid;
    gap: 9px;
    padding: 16px;
}

.card-body strong,
.mini-info strong {
    color: var(--ink);
    line-height: 1.32;
    transition: color 0.2s ease;
}

.movie-card:hover strong,
.mini-media:hover strong,
.category-tile:hover strong,
.overview-card:hover h2 a {
    color: var(--orange);
}

.card-desc,
.mini-info span,
.overview-card p,
.detail-card p,
.footer-inner p {
    color: var(--muted);
}

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

.card-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-size: 14px;
}

.warm-strip {
    margin: 36px 0;
    padding: 48px max(16px, calc((100vw - 1180px) / 2));
    background: linear-gradient(90deg, #fff7ed, #fff1f2);
}

.scroll-row {
    display: flex;
    gap: 22px;
    overflow-x: auto;
    padding: 4px 2px 22px;
    scroll-snap-type: x mandatory;
}

.scroll-row .movie-card {
    flex: 0 0 268px;
    scroll-snap-align: start;
}

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

.category-tile {
    position: relative;
    min-height: 176px;
    overflow: hidden;
    border-radius: 20px;
    color: #ffffff;
    background: #111827;
    box-shadow: var(--shadow-soft);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-tile img {
    width: 100%;
    height: 100%;
    min-height: 176px;
    object-fit: cover;
    opacity: 0.72;
    transition: transform 0.45s ease, opacity 0.2s ease;
}

.category-tile:hover img {
    opacity: 0.56;
}

.category-tile span {
    position: absolute;
    inset: auto 18px 18px 18px;
    z-index: 2;
    display: grid;
    gap: 8px;
}

.category-tile strong {
    font-size: 21px;
}

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

.two-column,
.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 350px;
    gap: 28px;
    align-items: start;
}

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

.rank-box,
.related-card,
.detail-card,
.search-panel,
.overview-card,
.player-shell {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
}

.rank-box,
.related-card {
    position: sticky;
    top: 88px;
    padding: 24px;
}

.rank-list,
.stack-list,
.related-list,
.rank-wall {
    display: grid;
    gap: 14px;
}

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

.mini-media {
    position: relative;
    display: flex;
    gap: 14px;
    align-items: center;
    min-height: 98px;
    padding: 12px;
    background: #ffffff;
    border-radius: 18px;
    transition: transform 0.24s ease, box-shadow 0.24s ease, background 0.2s ease;
}

.mini-media:hover {
    background: #fff7ed;
}

.mini-rank {
    position: static;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--orange), var(--red));
    border-radius: 999px;
}

.mini-thumb {
    flex: 0 0 92px;
    height: 72px;
    overflow: hidden;
    border-radius: 12px;
    background: #111827;
}

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

.mini-info {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.mini-info span {
    display: -webkit-box;
    overflow: hidden;
    font-size: 13px;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.mini-info em {
    color: #9ca3af;
    font-size: 12px;
    font-style: normal;
}

.masonry-grid {
    columns: 3 260px;
    column-gap: 22px;
}

.masonry-grid .movie-card {
    break-inside: avoid;
    margin-bottom: 22px;
}

.search-panel {
    margin-top: 46px;
    padding: 26px;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
    gap: 28px;
    align-items: center;
}

.compact-panel {
    margin-top: 36px;
}

.search-tools {
    display: grid;
    gap: 14px;
}

.search-tools input {
    width: 100%;
    min-height: 52px;
    padding: 0 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
    outline: none;
    background: #f9fafb;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

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

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

.filter-row button {
    min-height: 38px;
    padding: 0 14px;
    border: 0;
    color: #7c2d12;
    background: #ffedd5;
    border-radius: 999px;
    font-weight: 800;
    transition: background 0.2s ease, color 0.2s ease;
}

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

.page-hero,
.player-hero {
    color: #ffffff;
    background: radial-gradient(circle at 18% 18%, rgba(253, 186, 116, 0.42), transparent 32%), linear-gradient(120deg, #7c2d12, var(--orange), var(--red));
}

.page-hero {
    min-height: 300px;
    display: flex;
    align-items: center;
    padding: 72px max(16px, calc((100vw - 1180px) / 2));
}

.small-hero {
    min-height: 240px;
}

.page-hero h1 {
    margin: 16px 0 12px;
    font-size: clamp(36px, 6vw, 58px);
    line-height: 1.1;
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: #ffedd5;
    font-size: 18px;
}

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

.overview-card {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 20px;
    padding: 18px;
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.overview-cover {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
    overflow: hidden;
    border-radius: 18px;
    background: #111827;
}

.overview-cover img {
    width: 100%;
    height: 118px;
    object-fit: cover;
    transition: transform 0.35s ease;
}

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

.empty-state {
    display: none;
    margin: 26px 0 0;
    padding: 22px;
    color: var(--muted);
    text-align: center;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
}

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

.player-hero {
    padding: 32px max(16px, calc((100vw - 1180px) / 2)) 46px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
    color: #ffedd5;
    font-size: 14px;
}

.breadcrumb a:hover {
    color: #ffffff;
}

.player-shell {
    position: relative;
    overflow: hidden;
    background: #000000;
    border-radius: 24px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

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

.player-layer {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: rgba(0, 0, 0, 0.32);
    transition: background 0.2s ease;
}

.player-layer:hover {
    background: rgba(0, 0, 0, 0.5);
}

.player-layer span {
    width: 88px;
    height: 88px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 6px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange), var(--red));
    border-radius: 999px;
    font-size: 38px;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.36);
    transition: transform 0.22s ease;
}

.player-layer:hover span {
    transform: scale(1.08);
}

.player-layer.hidden {
    display: none;
}

.detail-layout {
    padding: 46px 0 60px;
}

.detail-main,
.related-card {
    min-width: 0;
}

.detail-card {
    padding: 32px;
}

.detail-title-row {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.detail-title-row h1 {
    margin: 14px 0 0;
    font-size: clamp(32px, 5vw, 48px);
    line-height: 1.12;
}

.pill-link {
    flex: 0 0 auto;
    padding: 8px 14px;
    color: #ffffff;
    background: linear-gradient(90deg, var(--orange), var(--red));
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
}

.lead-text {
    margin: 0 0 22px;
    padding: 18px;
    color: #374151;
    background: linear-gradient(90deg, #f9fafb, #fff7ed);
    border-radius: 16px;
    font-size: 18px;
}

.detail-meta {
    margin-bottom: 20px;
}

.detail-meta span,
.tag-row span {
    color: #7c2d12;
    background: #ffedd5;
}

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

.copy-section h2 {
    margin-bottom: 12px;
    font-size: 24px;
}

.copy-section p {
    margin: 0;
    color: #374151;
    font-size: 16px;
}

.review-block {
    padding: 24px;
    border: 0;
    border-radius: 18px;
    background: linear-gradient(90deg, #fff7ed, #fff1f2);
}

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

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 46px 0;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 40px;
}

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

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

.footer-links {
    display: grid;
    gap: 8px;
}

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

.copyright {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 22px 0;
    color: #9ca3af;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

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

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

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

    .rank-box,
    .related-card {
        position: static;
    }

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

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

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

    .brand {
        font-size: 20px;
    }

    .nav-links {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    .hero-carousel {
        height: 560px;
    }

    .hero-content {
        left: 20px;
        right: 20px;
        bottom: 104px;
    }

    .hero-content h1,
    .hero-content h2 {
        font-size: 36px;
    }

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

    .hero-quick {
        left: 20px;
        right: 20px;
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-control {
        display: none;
    }

    .section-heading,
    .detail-title-row,
    .search-panel {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .search-panel {
        padding: 20px;
    }

    .card-grid,
    .full-grid,
    .landscape-grid,
    .category-grid,
    .rank-wall {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .overview-card {
        grid-template-columns: 1fr;
    }

    .overview-cover img {
        height: 110px;
    }

    .page-hero {
        padding-top: 48px;
        padding-bottom: 48px;
    }

    .detail-card,
    .related-card,
    .rank-box {
        padding: 20px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

@media (max-width: 460px) {
    .card-grid,
    .full-grid,
    .landscape-grid,
    .category-grid,
    .rank-wall {
        grid-template-columns: 1fr;
    }

    .mini-media {
        align-items: start;
    }

    .mini-thumb {
        flex-basis: 86px;
        height: 66px;
    }

    .player-layer span {
        width: 72px;
        height: 72px;
        font-size: 30px;
    }
}
