:root {
    color-scheme: light;
    --lava-50: #fff7ed;
    --lava-100: #ffedd5;
    --lava-500: #f97316;
    --lava-600: #ea580c;
    --ember-500: #d97706;
    --volcanic-50: #fafafa;
    --volcanic-100: #f4f4f5;
    --volcanic-200: #e4e4e7;
    --volcanic-500: #71717a;
    --volcanic-600: #52525b;
    --volcanic-700: #3f3f46;
    --volcanic-800: #27272a;
    --volcanic-900: #18181b;
    --surface: #ffffff;
    --text: #18181b;
    --muted: #71717a;
    --shadow: 0 22px 55px rgba(24, 24, 27, 0.12);
    --soft-shadow: 0 12px 30px rgba(24, 24, 27, 0.10);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    color: var(--text);
    background: linear-gradient(180deg, #ffffff 0%, var(--volcanic-50) 42%, #ffffff 100%);
    line-height: 1.65;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.section {
    padding: 72px 0;
}

.section-alt {
    background: linear-gradient(180deg, var(--volcanic-50), #ffffff);
}

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

.section-title {
    margin: 0 0 10px;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.12;
    font-weight: 900;
    letter-spacing: -0.04em;
    background: linear-gradient(90deg, var(--lava-600), var(--lava-500), var(--ember-500));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

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

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

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.04em;
    white-space: nowrap;
}

.logo-mark {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #ffffff;
    font-size: 15px;
    background: linear-gradient(135deg, var(--lava-600), var(--ember-500));
    box-shadow: 0 12px 28px rgba(234, 88, 12, 0.28);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
}

.main-nav::-webkit-scrollbar {
    display: none;
}

.main-nav a,
.mobile-nav a {
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--volcanic-700);
    font-weight: 700;
    white-space: nowrap;
    transition: 0.25s ease;
}

.main-nav a:hover,
.main-nav a.is-active,
.mobile-nav a:hover {
    color: #ffffff;
    background: var(--lava-600);
    box-shadow: 0 12px 24px rgba(234, 88, 12, 0.20);
}

.nav-toggle {
    display: none;
    border: 0;
    border-radius: 14px;
    color: #ffffff;
    background: var(--volcanic-900);
    padding: 10px 13px;
    cursor: pointer;
}

.mobile-nav {
    display: none;
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto 16px;
    padding: 12px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--soft-shadow);
}

.hero {
    position: relative;
    min-height: 86vh;
    overflow: hidden;
    background: #000000;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1s 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-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 78% 20%, rgba(249, 115, 22, 0.34), transparent 32%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.46) 52%, rgba(0, 0, 0, 0.18)),
        linear-gradient(0deg, rgba(0, 0, 0, 0.82), transparent 48%);
}

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

.hero-copy {
    width: min(760px, 100%);
    color: #ffffff;
    animation: fadeIn 0.6s ease;
}

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    margin-bottom: 18px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(234, 88, 12, 0.82);
    box-shadow: 0 16px 38px rgba(234, 88, 12, 0.24);
    font-size: 14px;
    font-weight: 800;
}

.hero h1 {
    margin: 0 0 18px;
    font-size: clamp(42px, 7vw, 82px);
    line-height: 0.98;
    letter-spacing: -0.07em;
    font-weight: 950;
    text-shadow: 0 20px 50px rgba(0, 0, 0, 0.60);
}

.hero p {
    margin: 0 0 26px;
    max-width: 720px;
    color: rgba(255, 255, 255, 0.90);
    font-size: clamp(17px, 2vw, 22px);
}

.hero-actions,
.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 13px 20px;
    border-radius: 999px;
    font-weight: 900;
    transition: 0.25s ease;
}

.btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--lava-600), var(--lava-500));
    box-shadow: 0 18px 34px rgba(234, 88, 12, 0.28);
}

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

.btn-secondary {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.26);
    backdrop-filter: blur(12px);
}

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.hero-dot.is-active {
    width: 36px;
    background: var(--lava-500);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.34);
    cursor: pointer;
    transition: 0.25s ease;
}

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

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

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

.search-panel {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    padding: 14px;
    margin-bottom: 30px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--soft-shadow);
}

.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 50px;
    padding: 0 16px;
    border-radius: 16px;
    color: var(--muted);
    background: var(--volcanic-50);
    border: 1px solid var(--volcanic-200);
}

.search-box input,
.site-sort {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
}

.site-sort {
    width: 190px;
    min-height: 50px;
    padding: 0 14px;
    border-radius: 16px;
    border: 1px solid var(--volcanic-200);
    background: var(--volcanic-50);
}

.category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.category-pills a {
    padding: 11px 16px;
    border-radius: 999px;
    color: var(--volcanic-700);
    background: #ffffff;
    border: 1px solid var(--volcanic-200);
    font-weight: 800;
    box-shadow: 0 10px 22px rgba(24, 24, 27, 0.06);
    transition: 0.25s ease;
}

.category-pills a:hover {
    color: #ffffff;
    background: var(--volcanic-900);
    transform: translateY(-2px);
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: var(--soft-shadow);
    transition: 0.28s ease;
}

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

.poster-link {
    position: relative;
    display: block;
    height: 315px;
    overflow: hidden;
    background: var(--volcanic-100);
}

.card-compact .poster-link {
    height: 255px;
}

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

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

.poster-shade {
    position: absolute;
    inset: 0;
    opacity: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.74), rgba(0, 0, 0, 0.08));
    transition: opacity 0.25s ease;
}

.play-icon {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%) scale(0.86);
    border-radius: 50%;
    color: #ffffff;
    background: var(--lava-600);
    opacity: 0;
    box-shadow: 0 16px 32px rgba(234, 88, 12, 0.32);
    transition: 0.25s ease;
}

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

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

.rank-badge {
    position: absolute;
    left: 14px;
    top: 14px;
    min-width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--lava-600), var(--ember-500));
    font-weight: 900;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
}

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

.movie-card h3,
.wide-card h3,
.category-card h3 {
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 900;
}

.movie-card h3 a:hover,
.wide-card h3 a:hover {
    color: var(--lava-600);
}

.movie-card p,
.wide-card p,
.category-card p {
    margin: 0;
    color: var(--muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    color: var(--volcanic-500);
    font-size: 13px;
    font-weight: 700;
}

.meta-line span {
    padding: 4px 8px;
    border-radius: 999px;
    background: var(--volcanic-100);
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.tag-row span {
    padding: 4px 8px;
    border-radius: 8px;
    color: var(--volcanic-600);
    background: var(--volcanic-100);
    font-size: 12px;
    font-weight: 800;
}

.scroller {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(268px, 1fr);
    gap: 20px;
    overflow-x: auto;
    padding: 8px 4px 18px;
    scroll-snap-type: x mandatory;
}

.scroller > * {
    scroll-snap-align: start;
}

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

.wide-card {
    display: grid;
    grid-template-columns: 190px 1fr;
    overflow: hidden;
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: var(--soft-shadow);
    transition: 0.25s ease;
}

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

.wide-poster {
    position: relative;
    min-height: 230px;
    overflow: hidden;
    background: var(--volcanic-100);
}

.wide-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wide-poster span {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    color: #ffffff;
    background: rgba(234, 88, 12, 0.88);
}

.wide-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.text-link {
    display: inline-flex;
    align-self: flex-start;
    margin-top: 16px;
    color: var(--lava-600);
    font-weight: 900;
}

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

.category-card {
    padding: 24px;
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: var(--soft-shadow);
    transition: 0.25s ease;
}

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

.category-card h3 {
    font-size: 24px;
}

.category-covers {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-bottom: 18px;
}

.category-covers img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 12px;
    background: var(--volcanic-100);
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 96px 0 56px;
    color: #ffffff;
    background:
        radial-gradient(circle at 75% 12%, rgba(249, 115, 22, 0.46), transparent 34%),
        linear-gradient(135deg, var(--volcanic-900), #000000);
}

.page-hero h1 {
    margin: 0 0 16px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.06;
    font-weight: 950;
    letter-spacing: -0.05em;
}

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

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

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

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

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

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

.player-cover {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: #000000;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.66;
}

.player-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.20));
}

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

.play-button {
    position: relative;
    z-index: 2;
    width: 88px;
    height: 88px;
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, var(--lava-600), var(--lava-500));
    cursor: pointer;
    font-size: 34px;
    box-shadow: 0 20px 48px rgba(234, 88, 12, 0.36);
    transition: 0.25s ease;
}

.play-button:hover {
    transform: scale(1.06);
}

.detail-panel,
.side-panel {
    padding: 26px;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: var(--soft-shadow);
}

.detail-panel h2,
.side-panel h2 {
    margin: 0 0 16px;
    font-size: 26px;
    line-height: 1.2;
    font-weight: 900;
}

.detail-panel p {
    margin: 0 0 16px;
    color: var(--volcanic-700);
}

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

.side-item {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 12px;
    align-items: center;
}

.side-item img {
    width: 72px;
    height: 96px;
    border-radius: 12px;
    object-fit: cover;
    background: var(--volcanic-100);
}

.side-item h3 {
    margin: 0 0 6px;
    font-size: 15px;
    line-height: 1.35;
    font-weight: 900;
}

.side-item span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.site-footer {
    padding: 56px 0;
    color: rgba(255, 255, 255, 0.78);
    background: var(--volcanic-900);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 40px;
}

.footer-logo {
    color: #ffffff;
    margin-bottom: 16px;
}

.site-footer p {
    margin: 16px 0 0;
    max-width: 520px;
}

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

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

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

.hidden-card {
    display: none !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

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

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

    .nav-toggle {
        display: inline-flex;
    }

    .mobile-nav.is-open {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

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

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

    .hero-arrow {
        display: none;
    }

    .section {
        padding: 54px 0;
    }

    .section-head {
        display: block;
    }

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

    .site-sort {
        width: 100%;
    }

    .movie-grid,
    .movie-grid.compact-grid,
    .wide-grid,
    .category-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

    .wide-poster {
        height: 300px;
    }
}

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

    .logo {
        font-size: 20px;
    }

    .hero h1 {
        font-size: 40px;
    }

    .poster-link,
    .card-compact .poster-link {
        height: 290px;
    }

    .mobile-nav.is-open {
        grid-template-columns: 1fr;
    }

    .play-button {
        width: 72px;
        height: 72px;
    }
}
