:root {
    --brand: #ea580c;
    --brand-dark: #c2410c;
    --accent: #dc2626;
    --bg: #f8fafc;
    --text: #111827;
    --muted: #64748b;
    --card: #ffffff;
    --line: rgba(148, 163, 184, 0.28);
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: #ffffff;
    background: linear-gradient(90deg, #ea580c, #dc2626);
    box-shadow: 0 10px 30px rgba(127, 29, 29, 0.28);
}

.nav-wrap {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

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

.logo-mark {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    font-weight: 600;
}

.site-nav a {
    opacity: 0.94;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
    opacity: 1;
    transform: translateY(-1px);
}

.mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.14);
    cursor: pointer;
}

.mobile-menu-button span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: #ffffff;
    border-radius: 999px;
}

.hero {
    position: relative;
    height: min(72vh, 620px);
    min-height: 500px;
    overflow: hidden;
    background: linear-gradient(135deg, #7f1d1d, #9a3412);
}

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

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

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

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.08));
}

.hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding-bottom: 78px;
}

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

.hero-kicker {
    display: inline-flex;
    align-items: center;
    padding: 8px 15px;
    margin-bottom: 18px;
    border-radius: 999px;
    color: #ffffff;
    background: #dc2626;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.32);
}

.hero h1,
.hero-copy h1 {
    margin: 0 0 16px;
    font-size: clamp(36px, 6vw, 64px);
    line-height: 1.05;
    font-weight: 900;
}

.hero-copy p,
.simple-hero p,
.category-hero p {
    max-width: 760px;
    margin: 0 0 20px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    line-height: 1.8;
}

.hero-meta,
.detail-meta,
.meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 18px;
}

.hero-meta {
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.82);
}

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

.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    color: #c2410c;
    background: #ffedd5;
}

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

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

.primary-button,
.ghost-button,
.section-more,
.search-large button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 22px;
    border-radius: 12px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
    color: #ffffff;
    background: #ea580c;
    box-shadow: 0 14px 30px rgba(234, 88, 12, 0.3);
}

.primary-button:hover,
.search-large button:hover {
    transform: translateY(-2px);
    background: #c2410c;
}

.ghost-button {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(12px);
}

.ghost-button:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.24);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    font-size: 40px;
    line-height: 1;
    cursor: pointer;
    backdrop-filter: blur(12px);
}

.hero-prev {
    left: 22px;
}

.hero-next {
    right: 22px;
}

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

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

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

.section-block {
    padding: 52px 0;
}

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

.section-heading > div {
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(26px, 4vw, 36px);
    font-weight: 900;
}

.section-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: #ffedd5;
}

.section-more {
    min-height: 40px;
    color: #c2410c;
    background: #ffedd5;
}

.movie-grid {
    display: grid;
    gap: 24px;
}

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

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

.movie-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(250px, 1fr);
    gap: 22px;
    overflow-x: auto;
    padding-bottom: 14px;
    scroll-snap-type: x proximity;
}

.movie-card {
    overflow: hidden;
    border-radius: 18px;
    background: var(--card);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #7f1d1d, #f97316);
}

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

.movie-card:hover img,
.category-tile:hover img,
.detail-cover:hover img {
    transform: scale(1.08);
}

.poster-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.45), transparent 55%);
}

.poster-type,
.poster-score {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
}

.poster-type {
    left: 12px;
    top: 12px;
    padding: 5px 10px;
    background: #dc2626;
}

.poster-score {
    right: 12px;
    bottom: 12px;
    padding: 6px 9px;
    background: rgba(0, 0, 0, 0.74);
}

.movie-card-body {
    padding: 18px;
}

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

.movie-card-title:hover {
    color: #ea580c;
}

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

.meta-row {
    margin-bottom: 14px;
    color: #64748b;
    font-size: 13px;
}

.category-band {
    padding: 56px 0;
    background: linear-gradient(90deg, #2563eb, #06b6d4);
}

.category-band .section-heading,
.category-band .section-heading h2 {
    color: #ffffff;
}

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

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

.category-tile {
    overflow: hidden;
    display: block;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 55px rgba(15, 23, 42, 0.18);
}

.category-covers {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    height: 120px;
    overflow: hidden;
    background: linear-gradient(135deg, #7f1d1d, #f97316);
}

.category-covers img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-tile > div:last-child {
    padding: 18px;
}

.category-tile h2 {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 900;
}

.category-tile p {
    margin: 0 0 16px;
    color: #64748b;
    line-height: 1.7;
}

.category-tile span {
    color: #ea580c;
    font-weight: 800;
}

.page-hero,
.detail-hero {
    color: #ffffff;
    background: radial-gradient(circle at 10% 10%, rgba(248, 113, 113, 0.48), transparent 26%), linear-gradient(135deg, #111827, #7f1d1d 54%, #9a3412);
}

.simple-hero,
.category-hero {
    padding: 78px 0;
}

.simple-hero h1,
.category-hero h1 {
    margin: 0 0 16px;
    font-size: clamp(34px, 5vw, 54px);
    font-weight: 900;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 26px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
}

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

.filter-panel {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 16px;
    padding: 18px;
    margin-bottom: 28px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.filter-panel label {
    display: grid;
    gap: 8px;
    color: #334155;
    font-weight: 800;
}

.filter-panel input,
.filter-panel select,
.search-large input {
    width: 100%;
    min-height: 46px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0 14px;
    outline: 0;
    background: #f8fafc;
    font: inherit;
}

.filter-panel input:focus,
.filter-panel select:focus,
.search-large input:focus {
    border-color: #fb923c;
    box-shadow: 0 0 0 4px rgba(251, 146, 60, 0.16);
}

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

.rank-item {
    display: grid;
    grid-template-columns: 64px 1fr;
    align-items: center;
    gap: 18px;
}

.rank-number {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 18px;
    color: #ffffff;
    background: linear-gradient(135deg, #ea580c, #dc2626);
    font-size: 22px;
    font-weight: 900;
    box-shadow: 0 12px 28px rgba(220, 38, 38, 0.22);
}

.compact-card {
    display: grid;
    grid-template-columns: minmax(220px, 320px) 1fr;
}

.compact-card .poster-link {
    aspect-ratio: 16 / 9;
}

.detail-hero {
    padding: 42px 0 58px;
}

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

.detail-cover {
    overflow: hidden;
    border-radius: 24px;
    background: linear-gradient(135deg, #7f1d1d, #f97316);
    box-shadow: 0 28px 65px rgba(0, 0, 0, 0.35);
}

.detail-cover img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform 0.45s ease, opacity 0.2s ease;
}

.detail-info h1 {
    margin: 0 0 18px;
    font-size: clamp(36px, 5vw, 58px);
    line-height: 1.08;
    font-weight: 900;
}

.detail-one-line {
    max-width: 780px;
    margin: 0 0 20px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 18px;
    line-height: 1.8;
}

.detail-meta {
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.82);
}

.large-tags span {
    padding: 7px 12px;
}

.watch-panel {
    overflow: hidden;
    border-radius: 24px;
    background: #0f172a;
    box-shadow: var(--shadow);
}

.player-shell {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.player-shell video {
    width: 100%;
    height: 100%;
    display: block;
    background: #000000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 16px;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle at center, rgba(234, 88, 12, 0.24), rgba(0, 0, 0, 0.68));
    cursor: pointer;
    font: inherit;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-overlay.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.play-circle {
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #ea580c;
    font-size: 34px;
    box-shadow: 0 20px 40px rgba(234, 88, 12, 0.36);
}

.detail-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
    padding-bottom: 24px;
}

.content-card {
    padding: 28px;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.content-card h2 {
    margin: 0 0 14px;
    font-size: 26px;
    font-weight: 900;
}

.content-card p {
    margin: 0;
    color: #334155;
    line-height: 1.9;
    font-size: 16px;
}

.info-list {
    display: grid;
    gap: 12px;
    margin: 0;
}

.info-list div {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 14px;
}

.info-list dt {
    color: #64748b;
    font-weight: 800;
}

.info-list dd {
    margin: 0;
    color: #111827;
}

.search-large {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    margin-bottom: 28px;
}

.search-large button {
    border: 0;
    color: #ffffff;
    background: #ea580c;
    cursor: pointer;
}

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

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

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

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

.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}

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

.footer-bottom {
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    color: #9ca3af;
}

.image-missing {
    opacity: 0;
}

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

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

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

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

@media (max-width: 820px) {
    .mobile-menu-button {
        display: block;
    }

    .site-nav {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 72px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 10px;
        border-radius: 18px;
        background: linear-gradient(135deg, #ea580c, #dc2626);
        box-shadow: 0 20px 45px rgba(127, 29, 29, 0.35);
    }

    .site-nav.is-open {
        display: flex;
    }

    .site-nav a {
        padding: 13px 14px;
        border-radius: 12px;
    }

    .site-nav a:hover,
    .site-nav a.active {
        background: rgba(255, 255, 255, 0.12);
        transform: none;
    }

    .hero {
        min-height: 560px;
    }

    .hero-arrow {
        display: none;
    }

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

    .four-col,
    .three-col,
    .category-grid,
    .full-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

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

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

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

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

    .site-logo,
    .footer-logo {
        font-size: 20px;
    }

    .hero {
        min-height: 620px;
    }

    .hero-content {
        padding-bottom: 70px;
    }

    .hero h1,
    .hero-copy h1 {
        font-size: 34px;
    }

    .hero-actions,
    .section-heading,
    .search-large {
        flex-direction: column;
        align-items: stretch;
    }

    .section-heading {
        display: grid;
    }

    .four-col,
    .three-col,
    .category-grid,
    .full-grid {
        grid-template-columns: 1fr;
    }

    .movie-row {
        grid-auto-columns: 82%;
    }

    .rank-item {
        grid-template-columns: 1fr;
    }

    .rank-number {
        width: 46px;
        height: 46px;
    }

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