:root {
    --lava-50: #fff1ed;
    --lava-100: #ffe1d8;
    --lava-500: #ff5a2d;
    --lava-600: #e34017;
    --lava-700: #bb2e10;
    --volcanic-50: #fafafa;
    --volcanic-100: #f3f4f6;
    --volcanic-200: #e5e7eb;
    --volcanic-300: #d1d5db;
    --volcanic-500: #6b7280;
    --volcanic-700: #374151;
    --volcanic-800: #1f2937;
    --volcanic-900: #111827;
    --paper: #ffffff;
    --ink: #171717;
    --muted: #6b7280;
    --radius-xl: 28px;
    --radius-lg: 20px;
    --shadow-soft: 0 20px 60px rgba(17, 24, 39, 0.12);
    --shadow-card: 0 18px 45px rgba(17, 24, 39, 0.10);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(255, 90, 45, 0.12), transparent 32rem),
        linear-gradient(180deg, #fafafa 0%, #ffffff 45%, #f7f7f7 100%);
    font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
}

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

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

button,
input {
    font: inherit;
}

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

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    transition: background 0.25s ease, box-shadow 0.25s ease, backdrop-filter 0.25s ease;
}

.site-header.is-scrolled,
.site-header.is-open {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(18px);
    box-shadow: 0 14px 35px rgba(17, 24, 39, 0.08);
}

.header-inner {
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--lava-600), #ff8a3d 52%, var(--volcanic-900));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo-mark {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, var(--lava-600), #ff9f43);
    box-shadow: 0 12px 30px rgba(227, 64, 23, 0.32);
    font-size: 14px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 30px;
    font-size: 16px;
    font-weight: 700;
}

.desktop-nav a,
.mobile-nav a {
    position: relative;
    color: var(--volcanic-800);
    transition: color 0.2s ease;
}

.desktop-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -8px;
    height: 2px;
    transform: scaleX(0);
    transform-origin: left;
    background: var(--lava-600);
    transition: transform 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-active,
.mobile-nav a:hover,
.mobile-nav a.is-active {
    color: var(--lava-600);
}

.desktop-nav a:hover::after,
.desktop-nav a.is-active::after {
    transform: scaleX(1);
}

.mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.75);
    box-shadow: 0 10px 26px rgba(17, 24, 39, 0.10);
    cursor: pointer;
}

.mobile-menu-button span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    border-radius: 999px;
    background: var(--volcanic-800);
}

.mobile-nav {
    display: none;
    padding: 12px 20px 18px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 20px 38px rgba(17, 24, 39, 0.12);
}

.mobile-nav a {
    display: block;
    padding: 12px 10px;
    border-radius: 12px;
    font-weight: 800;
}

.hero-slider {
    position: relative;
    min-height: 82vh;
    overflow: hidden;
    background: var(--volcanic-900);
}

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

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

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
    transition: transform 6s ease;
}

.hero-slide.is-active img {
    transform: scale(1);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.48) 42%, rgba(0, 0, 0, 0.18) 100%),
        linear-gradient(0deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.12) 55%);
}

.hero-content {
    position: relative;
    height: 82vh;
    display: flex;
    align-items: flex-end;
    padding-bottom: 86px;
}

.hero-copy {
    max-width: 760px;
    color: #ffffff;
    animation: fadeUp 0.75s ease both;
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: var(--lava-500);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
    margin: 0;
    font-size: clamp(40px, 7vw, 86px);
    line-height: 0.98;
    letter-spacing: -0.06em;
    font-weight: 950;
}

.hero-copy p {
    max-width: 680px;
    margin: 24px 0 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(17px, 2vw, 22px);
}

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

.hero-tags {
    margin-top: 22px;
}

.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    color: var(--lava-700);
    background: var(--lava-50);
    font-size: 12px;
    font-weight: 800;
}

.hero-tags span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
}

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

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--lava-600), #ff7a2e);
    box-shadow: 0 14px 34px rgba(227, 64, 23, 0.30);
}

.button-ghost {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(12px);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(12px);
    cursor: pointer;
    font-size: 36px;
    line-height: 1;
    transition: transform 0.2s ease, background 0.2s ease;
}

.hero-arrow:hover {
    transform: translateY(-50%) scale(1.08);
    background: rgba(0, 0, 0, 0.55);
}

.hero-prev {
    left: 24px;
    transform: translateY(-50%);
}

.hero-next {
    right: 24px;
    transform: translateY(-50%);
}

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

.hero-dots button {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease;
}

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

.quick-search {
    position: relative;
    z-index: 8;
    margin-top: -38px;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 18px;
    border: 1px solid rgba(229, 231, 235, 0.95);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow-soft);
}

.search-box {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 999px;
    background: var(--volcanic-100);
}

.search-box span {
    color: var(--lava-600);
    font-weight: 900;
}

.search-box input {
    width: 100%;
    border: 0;
    outline: 0;
    color: var(--volcanic-900);
    background: transparent;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.filter-chips button {
    min-height: 34px;
    padding: 0 12px;
    border: 0;
    border-radius: 999px;
    color: var(--volcanic-700);
    background: var(--volcanic-100);
    font-weight: 800;
    cursor: pointer;
}

.filter-chips button.is-active,
.filter-chips button:hover {
    color: #ffffff;
    background: var(--lava-600);
}

.section-block {
    margin-top: 72px;
}

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

.section-heading h2,
.content-card h2,
.category-overview-text h2 {
    margin: 0;
    color: var(--volcanic-900);
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1.05;
    letter-spacing: -0.04em;
    font-weight: 950;
}

.section-heading p,
.category-overview-text p,
.content-card p {
    margin: 12px 0 0;
    color: var(--muted);
}

.text-link {
    flex: 0 0 auto;
    color: var(--lava-600);
    font-weight: 900;
}

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

.channel-card {
    min-height: 148px;
    padding: 22px;
    border: 1px solid rgba(229, 231, 235, 0.92);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 241, 237, 0.9)),
        var(--paper);
    box-shadow: 0 18px 40px rgba(17, 24, 39, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.channel-card strong {
    display: block;
    margin-bottom: 10px;
    color: var(--volcanic-900);
    font-size: 20px;
}

.channel-card span {
    color: var(--muted);
    font-size: 14px;
}

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

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

.movie-card {
    position: relative;
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 14px 35px rgba(17, 24, 39, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.movie-poster {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    background: linear-gradient(135deg, #171717, #3d1209);
}

.movie-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.28s ease, filter 0.28s ease;
}

.movie-card:hover .movie-poster img {
    transform: scale(1.06);
    filter: saturate(1.08);
}

.poster-play {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(227, 64, 23, 0.92);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}

.rank-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    min-width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, #ff9f43, var(--lava-600));
    font-weight: 950;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}

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

.movie-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--lava-600);
    font-size: 12px;
    font-weight: 900;
}

.movie-card h3 {
    margin: 9px 0 8px;
    color: var(--volcanic-900);
    font-size: 17px;
    line-height: 1.25;
    font-weight: 950;
}

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

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

.movie-card-compact p {
    min-height: 38px;
    font-size: 12px;
}

.page-main {
    padding-top: 76px;
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 88px 0 66px;
    color: #ffffff;
    background:
        radial-gradient(circle at 15% 20%, rgba(255, 122, 46, 0.42), transparent 26rem),
        linear-gradient(135deg, #111827, #311006 58%, #111827);
}

.page-hero p {
    max-width: 820px;
    margin: 20px 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 18px;
}

.page-hero h1 {
    color: #ffffff;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
    font-weight: 800;
}

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

.category-overview-list {
    display: grid;
    gap: 22px;
    margin-top: 58px;
}

.category-overview-card {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(280px, 1.05fr);
    gap: 24px;
    align-items: center;
    padding: 24px;
    border: 1px solid rgba(229, 231, 235, 0.95);
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-card);
}

.category-overview-text .button {
    margin-top: 18px;
}

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

.category-sample-grid a {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    aspect-ratio: 2 / 3;
    background: var(--volcanic-900);
}

.category-sample-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
}

.category-sample-grid span {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 10px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.detail-main {
    padding-top: 0;
}

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

.detail-backdrop {
    position: absolute;
    inset: 0;
}

.detail-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(12px) saturate(1.08);
    transform: scale(1.08);
    opacity: 0.34;
}

.detail-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(17, 24, 39, 0.95), rgba(17, 24, 39, 0.68)),
        linear-gradient(0deg, rgba(17, 24, 39, 1), rgba(17, 24, 39, 0.15));
}

.detail-hero-inner {
    position: relative;
    padding-top: 120px;
    padding-bottom: 70px;
}

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

.detail-poster {
    overflow: hidden;
    border-radius: var(--radius-xl);
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.38);
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.detail-copy h1 {
    color: #ffffff;
}

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

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 22px 0;
}

.detail-meta span {
    padding: 8px 12px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 13px;
    font-weight: 900;
}

.detail-tags {
    margin-bottom: 28px;
}

.player-section {
    margin-top: -80px;
    position: relative;
    z-index: 4;
}

.video-shell {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: #000000;
    box-shadow: 0 30px 80px rgba(17, 24, 39, 0.28);
    aspect-ratio: 16 / 9;
}

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

.play-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 14px;
    border: 0;
    color: #ffffff;
    background:
        radial-gradient(circle, rgba(227, 64, 23, 0.28), rgba(0, 0, 0, 0.62) 55%),
        rgba(0, 0, 0, 0.26);
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-icon {
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--lava-600), #ff9f43);
    box-shadow: 0 18px 50px rgba(227, 64, 23, 0.45);
    font-size: 30px;
}

.play-cover strong {
    max-width: 80%;
    font-size: clamp(20px, 3vw, 36px);
    text-align: center;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

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

.content-card {
    padding: 28px;
    border: 1px solid rgba(229, 231, 235, 0.95);
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-card);
}

.content-card h2 {
    font-size: 28px;
}

.content-card p {
    color: var(--volcanic-700);
    font-size: 16px;
}

.site-footer {
    margin-top: 86px;
    color: #ffffff;
    background:
        radial-gradient(circle at top right, rgba(255, 122, 46, 0.18), transparent 22rem),
        linear-gradient(135deg, #111827, #21100d 58%, #0f172a);
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(260px, 2fr) 1fr 1fr;
    gap: 36px;
    padding: 58px 0 42px;
}

.footer-grid p {
    max-width: 460px;
    color: rgba(255, 255, 255, 0.68);
}

.footer-grid h2 {
    margin: 0 0 14px;
    font-size: 18px;
}

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

.footer-grid li + li {
    margin-top: 8px;
}

.footer-grid a:not(.footer-logo) {
    color: rgba(255, 255, 255, 0.68);
}

.footer-grid a:not(.footer-logo):hover {
    color: #ffffff;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 22px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    color: rgba(255, 255, 255, 0.58);
    font-size: 14px;
}

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

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

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

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

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

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

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

    .hero-slider,
    .hero-content {
        min-height: 76vh;
        height: 76vh;
    }

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

    .hero-arrow {
        display: none;
    }

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

    .filter-chips {
        justify-content: flex-start;
    }

    .section-heading {
        display: block;
    }

    .text-link {
        display: inline-block;
        margin-top: 12px;
    }

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

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

    .category-overview-card,
    .detail-layout,
    .detail-content,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .detail-poster {
        max-width: 280px;
    }

    .detail-hero-inner {
        padding-top: 98px;
    }

    .footer-bottom {
        flex-direction: column;
    }
}

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

    .header-inner {
        height: 66px;
    }

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

    .logo-mark {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }

    .page-main {
        padding-top: 66px;
    }

    .hero-slider,
    .hero-content {
        min-height: 72vh;
        height: 72vh;
    }

    .hero-copy h1,
    .page-hero h1,
    .detail-copy h1 {
        font-size: clamp(34px, 14vw, 56px);
    }

    .hero-actions {
        gap: 10px;
    }

    .button {
        width: 100%;
    }

    .quick-search {
        margin-top: 20px;
    }

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

    .category-sample-grid {
        display: none;
    }

    .detail-hero {
        min-height: auto;
    }

    .detail-poster {
        max-width: 220px;
    }

    .player-section {
        margin-top: 24px;
    }

    .video-shell {
        border-radius: 18px;
    }
}
