:root {
    --accent: #ef4444;
    --accent-2: #f97316;
    --accent-3: #ec4899;
    --ink: #111827;
    --muted: #6b7280;
    --line: #f3e8e8;
    --soft: #fff7ed;
    --panel: #ffffff;
    --shadow: 0 24px 60px rgba(17, 24, 39, 0.12);
    --radius-lg: 28px;
    --radius-md: 20px;
    --radius-sm: 14px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: linear-gradient(180deg, #ffffff 0%, #fff7f2 44%, #ffffff 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(239, 68, 68, 0.10);
}

.site-header-inner {
    width: min(1240px, calc(100% - 32px));
    height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    color: var(--ink);
    white-space: nowrap;
    letter-spacing: 0.02em;
}

.site-logo-mark {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    color: #fff;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2), var(--accent-3));
    box-shadow: 0 14px 34px rgba(239, 68, 68, 0.28);
}

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

.nav-link {
    padding: 10px 14px;
    color: #374151;
    border-radius: 999px;
    transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--accent);
    background: #fff1f2;
}

.header-search,
.mobile-search,
.hero-search {
    display: flex;
    align-items: center;
    overflow: hidden;
    border: 1px solid rgba(239, 68, 68, 0.18);
    background: #fff;
    border-radius: 999px;
    box-shadow: 0 10px 32px rgba(17, 24, 39, 0.08);
}

.header-search input,
.mobile-search input,
.hero-search input {
    width: 190px;
    border: 0;
    outline: 0;
    padding: 12px 16px;
    color: var(--ink);
    background: transparent;
}

.header-search button,
.mobile-search button,
.hero-search button {
    border: 0;
    color: #fff;
    cursor: pointer;
    padding: 12px 18px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    background: #fff1f2;
    cursor: pointer;
    padding: 10px;
}

.mobile-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    margin: 5px 0;
    background: var(--accent);
    border-radius: 999px;
}

.mobile-panel {
    display: none;
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto 16px;
    padding: 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
}

.mobile-panel.is-open {
    display: grid;
    gap: 10px;
}

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

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
    gap: 42px;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    padding: 120px max(32px, calc((100vw - 1180px) / 2)) 130px;
    color: #fff;
    transition: opacity 0.7s ease;
    background-image: linear-gradient(90deg, rgba(17, 24, 39, 0.86) 0%, rgba(17, 24, 39, 0.58) 45%, rgba(17, 24, 39, 0.16) 100%), var(--hero-image), linear-gradient(135deg, var(--accent), var(--accent-2), var(--accent-3));
    background-size: cover;
    background-position: center;
}

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

.hero-content {
    max-width: 720px;
    animation: fadeUp 0.75s ease both;
}

.eyebrow,
.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: #fff1f2;
    padding: 8px 14px;
    border-radius: 999px;
}

.hero-content .eyebrow {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(12px);
}

.hero-content h1 {
    margin: 24px 0 18px;
    font-size: clamp(42px, 7vw, 78px);
    line-height: 1.02;
    letter-spacing: -0.05em;
}

.hero-one-line {
    max-width: 720px;
    margin: 0;
    color: rgba(255, 255, 255, 0.90);
    font-size: clamp(18px, 2.5vw, 26px);
    font-weight: 300;
}

.hero-tags,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.hero-tags span,
.detail-tags span {
    display: inline-flex;
    padding: 8px 12px;
    color: #fff;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(14px);
}

.detail-tags span {
    color: var(--accent);
    background: #fff1f2;
}

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

.primary-btn,
.ghost-btn,
.section-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 800;
    transition: all 0.2s ease;
}

.primary-btn {
    color: var(--accent);
    background: #fff;
    box-shadow: 0 18px 50px rgba(255, 255, 255, 0.22);
}

.primary-btn:hover,
.ghost-btn:hover,
.section-more:hover {
    transform: translateY(-2px);
}

.ghost-btn {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
}

.hero-card {
    display: grid;
    gap: 18px;
    padding: 18px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.20);
    backdrop-filter: blur(20px);
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.32);
}

.hero-card-poster,
.detail-poster,
.movie-poster {
    background-image: linear-gradient(135deg, rgba(239, 68, 68, 0.28), rgba(249, 115, 22, 0.22)), var(--poster-image);
    background-size: cover;
    background-position: center;
}

.hero-card-poster {
    aspect-ratio: 16 / 10;
    border-radius: 22px;
}

.hero-card span,
.hero-card em {
    display: block;
    color: rgba(255, 255, 255, 0.78);
    font-style: normal;
}

.hero-card strong {
    display: block;
    margin: 8px 0;
    color: #fff;
    font-size: 26px;
    line-height: 1.2;
}

.hero-bottom {
    position: absolute;
    left: 50%;
    bottom: 30px;
    width: min(1180px, calc(100% - 32px));
    display: grid;
    grid-template-columns: 320px 1fr auto;
    align-items: center;
    gap: 18px;
    transform: translateX(-50%);
    z-index: 3;
}

.hero-search input {
    width: 230px;
}

.hero-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-categories a {
    color: #fff;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
}

.hero-dots {
    display: flex;
    gap: 8px;
}

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

.hero-dot.is-active {
    width: 28px;
    background: #fff;
}

.page-section {
    padding: 72px 0;
}

.soft-section {
    background: linear-gradient(180deg, #fff7ed 0%, #fff 100%);
}

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

.section-head h2 {
    margin: 14px 0 8px;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.12;
    letter-spacing: -0.03em;
}

.section-head p {
    max-width: 720px;
    margin: 0;
    color: var(--muted);
}

.section-more {
    color: var(--accent);
    background: #fff1f2;
    white-space: nowrap;
}

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

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

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

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

.movie-card-link {
    display: block;
    height: 100%;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: 0 20px 45px rgba(17, 24, 39, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.08);
    transition: all 0.22s ease;
}

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

.movie-poster {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
}

.poster-tag,
.rank-badge {
    position: absolute;
    top: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 30px;
    padding: 0 10px;
    color: #fff;
    border-radius: 999px;
    font-weight: 800;
    background: rgba(17, 24, 39, 0.62);
    backdrop-filter: blur(12px);
}

.poster-tag {
    right: 14px;
}

.rank-badge {
    left: 14px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

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

.movie-meta-line,
.movie-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-size: 13px;
}

.movie-card-body h3 {
    min-height: 2.7em;
    margin: 10px 0 8px;
    font-size: 20px;
    line-height: 1.35;
}

.movie-card-body p {
    min-height: 4.8em;
    margin: 0 0 16px;
    color: #4b5563;
    font-size: 14px;
}

.movie-card-foot span:last-child {
    color: var(--accent);
    font-weight: 800;
}

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

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

.category-tile {
    position: relative;
    min-height: 210px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: end;
    gap: 10px;
    padding: 24px;
    color: #fff;
    border-radius: 28px;
    background-image: linear-gradient(180deg, rgba(17, 24, 39, 0.10) 0%, rgba(17, 24, 39, 0.82) 100%), var(--tile-image), linear-gradient(135deg, var(--accent), var(--accent-2));
    background-size: cover;
    background-position: center;
    box-shadow: 0 22px 54px rgba(17, 24, 39, 0.13);
    transition: transform 0.22s ease;
}

.category-tile:hover {
    transform: translateY(-5px);
}

.category-glow {
    position: absolute;
    width: 160px;
    height: 160px;
    right: -40px;
    top: -40px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    filter: blur(6px);
}

.category-tile strong {
    position: relative;
    font-size: 26px;
    line-height: 1.1;
}

.category-tile em {
    position: relative;
    min-height: 4.8em;
    color: rgba(255, 255, 255, 0.80);
    font-style: normal;
    font-size: 14px;
}

.category-tile span:last-child {
    position: relative;
    width: max-content;
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--accent);
    background: #fff;
    font-weight: 800;
}

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

.ranking-panel,
.detail-rank-list {
    position: sticky;
    top: 92px;
    border-radius: 28px;
    background: #fff;
    border: 1px solid rgba(239, 68, 68, 0.10);
    box-shadow: var(--shadow);
    padding: 22px;
}

.ranking-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-weight: 900;
}

.ranking-panel-head a {
    color: var(--accent);
    font-size: 14px;
}

.compact-list {
    display: grid;
    gap: 10px;
}

.compact-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 12px;
    border-radius: 16px;
    background: #fff7ed;
    transition: all 0.2s ease;
}

.compact-item:hover {
    background: #fff1f2;
    transform: translateX(4px);
}

.list-rank,
.list-dot {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 12px;
    color: #fff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.list-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
}

.compact-title {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 800;
}

.compact-meta {
    color: var(--muted);
    font-size: 13px;
    white-space: nowrap;
}

.sub-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    padding: 90px 0 86px;
    background: linear-gradient(135deg, #111827 0%, #991b1b 45%, #f97316 100%);
}

.sub-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 12% 20%, rgba(255, 255, 255, 0.22), transparent 28%), radial-gradient(circle at 88% 16%, rgba(255, 255, 255, 0.18), transparent 26%);
}

.sub-hero .container {
    position: relative;
    z-index: 2;
}

.sub-hero .section-eyebrow {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
}

.sub-hero h1 {
    margin: 18px 0 12px;
    font-size: clamp(36px, 6vw, 64px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.sub-hero p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 18px;
}

.channel-hero {
    background-image: linear-gradient(90deg, rgba(17, 24, 39, 0.86), rgba(185, 28, 28, 0.64)), var(--channel-image), linear-gradient(135deg, var(--accent), var(--accent-2));
    background-size: cover;
    background-position: center;
}

.crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.78);
}

.crumbs a:hover {
    color: #fff;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) 160px 160px;
    gap: 12px;
    margin-bottom: 24px;
    padding: 16px;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 18px 44px rgba(17, 24, 39, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.08);
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    height: 46px;
    border: 1px solid #fee2e2;
    border-radius: 16px;
    color: var(--ink);
    background: #fff7ed;
    outline: 0;
    padding: 0 14px;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: rgba(239, 68, 68, 0.45);
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.10);
}

[data-card].is-hidden {
    display: none;
}

.detail-hero {
    padding: 42px 0 0;
    color: #fff;
    background: radial-gradient(circle at 10% 10%, rgba(249, 115, 22, 0.40), transparent 30%), linear-gradient(135deg, #111827 0%, #7f1d1d 55%, #111827 100%);
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 30px;
    align-items: stretch;
}

.video-shell {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #000;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.34);
}

.site-player {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.42));
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-overlay span {
    width: 78px;
    height: 78px;
    display: grid;
    place-items: center;
    padding-left: 5px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 24px 60px rgba(239, 68, 68, 0.35);
    font-size: 32px;
}

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

.detail-side {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.detail-poster {
    flex: 1;
    min-height: 360px;
    border-radius: 30px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.24);
}

.detail-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 34px;
    align-items: start;
}

.content-main {
    padding: 28px;
    border-radius: 30px;
    background: #fff;
    box-shadow: 0 20px 54px rgba(17, 24, 39, 0.08);
}

.content-main h1 {
    margin: 18px 0 12px;
    font-size: clamp(32px, 5vw, 54px);
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.content-main h2 {
    margin: 30px 0 12px;
    font-size: 26px;
}

.content-main p {
    color: #374151;
    font-size: 17px;
}

.lead-text {
    color: var(--ink) !important;
    font-size: 20px !important;
    font-weight: 600;
}

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

.detail-meta div {
    padding: 14px;
    border-radius: 18px;
    background: #fff7ed;
}

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

.detail-meta dd {
    margin: 4px 0 0;
    font-weight: 800;
}

.detail-meta a {
    color: var(--accent);
}

.detail-nav-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 28px;
}

.detail-nav-links a {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 14px 16px;
    border-radius: 16px;
    color: var(--accent);
    background: #fff1f2;
    font-weight: 800;
}

.site-footer {
    margin-top: 50px;
    color: #fff;
    background: #111827;
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 30px;
    padding: 42px 0;
}

.footer-inner p {
    max-width: 620px;
    margin: 10px 0 0;
    color: rgba(255, 255, 255, 0.68);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-content: start;
}

.footer-links a {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1080px) {
    .site-nav,
    .header-search {
        display: none;
    }

    .mobile-toggle {
        display: inline-block;
        margin-left: auto;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        padding-top: 100px;
    }

    .hero-card {
        display: none;
    }

    .hero-bottom {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .hero-dots {
        justify-content: center;
    }

    .movie-grid,
    .featured-grid,
    .compact-grid,
    .catalog-grid,
    .ranking-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

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

    .ranking-panel,
    .detail-rank-list {
        position: static;
    }

    .detail-poster {
        min-height: 420px;
    }
}

@media (max-width: 720px) {
    .site-header-inner {
        height: 64px;
    }

    .site-logo {
        font-size: 15px;
    }

    .hero-slider {
        min-height: 720px;
    }

    .hero-slide {
        padding: 82px 16px 180px;
    }

    .hero-actions,
    .hero-categories {
        gap: 8px;
    }

    .primary-btn,
    .ghost-btn {
        width: 100%;
    }

    .movie-grid,
    .featured-grid,
    .compact-grid,
    .catalog-grid,
    .ranking-grid,
    .category-grid,
    .large-category-grid {
        grid-template-columns: 1fr;
    }

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

    .section-head,
    .footer-inner,
    .compact-item,
    .detail-nav-links {
        grid-template-columns: 1fr;
        display: grid;
    }

    .compact-meta {
        white-space: normal;
    }

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

    .detail-poster {
        min-height: 360px;
    }
}
