:root {
    --orange: #f97316;
    --orange-dark: #ea580c;
    --red: #ef4444;
    --yellow: #f59e0b;
    --gray-950: #111827;
    --gray-900: #1f2937;
    --gray-800: #374151;
    --gray-700: #4b5563;
    --gray-600: #6b7280;
    --gray-200: #e5e7eb;
    --gray-100: #f3f4f6;
    --white: #ffffff;
    --shadow: 0 22px 50px rgba(17, 24, 39, 0.12);
    --soft-shadow: 0 12px 30px rgba(17, 24, 39, 0.09);
    --radius: 22px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--gray-900);
    background: linear-gradient(180deg, #fff7ed 0%, #ffffff 42%, #fff1f2 100%);
}

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

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

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.94);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.78);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.brand-icon {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    border-radius: 12px;
    background: linear-gradient(135deg, var(--orange), var(--red));
    box-shadow: 0 12px 24px rgba(249, 115, 22, 0.26);
}

.brand-text {
    font-size: 21px;
    background: linear-gradient(120deg, var(--orange-dark), var(--red));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 26px;
}

.nav-link,
.mobile-link {
    color: var(--gray-700);
    font-weight: 700;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
    color: var(--orange-dark);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 0;
    border-radius: 12px;
    background: #fff7ed;
    cursor: pointer;
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    background: var(--orange-dark);
    border-radius: 999px;
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 14px;
    padding: 10px;
    border-radius: 18px;
    background: var(--white);
    box-shadow: var(--soft-shadow);
}

.mobile-nav.is-open {
    display: grid;
    gap: 4px;
}

.mobile-link {
    padding: 12px 14px;
    border-radius: 12px;
}

.mobile-link:hover,
.mobile-link.active {
    background: #fff7ed;
}

.hero {
    position: relative;
    min-height: 640px;
    overflow: hidden;
    color: var(--white);
    background: var(--gray-950);
}

.hero-bg,
.hero-slide,
.hero-slide img,
.hero-shade {
    position: absolute;
    inset: 0;
}

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

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

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

.hero-shade {
    background:
        radial-gradient(circle at 72% 28%, rgba(249, 115, 22, 0.28), transparent 34%),
        linear-gradient(90deg, rgba(17, 24, 39, 0.94) 0%, rgba(17, 24, 39, 0.68) 42%, rgba(17, 24, 39, 0.22) 100%),
        linear-gradient(0deg, rgba(17, 24, 39, 0.9), transparent 62%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    min-height: 640px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.62fr);
    align-items: center;
    gap: 46px;
    padding: 84px 0 74px;
}

.hero-label,
.section-kicker,
.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: #fed7aa;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-main-copy h1 {
    margin: 0;
    max-width: 760px;
    font-size: clamp(42px, 6vw, 76px);
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.hero-main-copy p {
    max-width: 640px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
    line-height: 1.8;
}

.hero-search {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.hero-search a,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.hero-search a:first-child,
.btn.primary {
    color: var(--white);
    background: linear-gradient(135deg, var(--orange), var(--red));
    box-shadow: 0 18px 32px rgba(239, 68, 68, 0.3);
}

.hero-search a:not(:first-child),
.btn.ghost {
    color: var(--white);
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.24);
}

.hero-search a:hover,
.btn:hover {
    transform: translateY(-2px);
}

.hero-card {
    position: relative;
    min-height: 360px;
    padding: 26px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(20px);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.32);
}

.hero-panel {
    display: none;
}

.hero-panel.is-active {
    display: block;
    animation: fadeUp 0.58s ease both;
}

.hero-panel h2 {
    margin: 0 0 16px;
    font-size: clamp(28px, 3.4vw, 48px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero-panel p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.78;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.hero-dots {
    position: absolute;
    left: 26px;
    bottom: 24px;
    display: flex;
    gap: 8px;
}

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

.hero-dot.is-active {
    width: 34px;
    background: var(--white);
}

.stats-strip {
    margin-top: -44px;
    position: relative;
    z-index: 4;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.stats-strip div {
    padding: 24px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow);
}

.stats-strip strong {
    display: block;
    color: var(--orange-dark);
    font-size: 32px;
    line-height: 1;
}

.stats-strip span {
    display: block;
    margin-top: 8px;
    color: var(--gray-600);
    font-weight: 700;
}

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

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

.section-head h2,
.page-hero h1,
.detail-info h1,
.content-card h2 {
    margin: 0;
    color: var(--gray-950);
    letter-spacing: -0.035em;
}

.section-head h2 {
    font-size: clamp(28px, 4vw, 42px);
}

.section-head p,
.page-hero p {
    max-width: 720px;
    margin: 10px 0 0;
    color: var(--gray-600);
    line-height: 1.8;
}

.section-kicker {
    color: var(--orange-dark);
}

.section-more {
    display: inline-flex;
    flex: none;
    align-items: center;
    min-height: 42px;
    padding: 0 18px;
    color: var(--orange-dark);
    border-radius: 999px;
    background: #fff7ed;
    font-weight: 900;
}

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

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

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

.movie-card {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: var(--white);
    box-shadow: var(--soft-shadow);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.poster {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, #fff7ed, #fee2e2);
}

.poster img,
.category-tile img,
.player-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.poster-badge,
.rank-mark {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    color: var(--white);
    font-size: 12px;
    font-weight: 900;
}

.poster-badge {
    left: 12px;
    bottom: 12px;
    padding: 6px 10px;
    background: rgba(17, 24, 39, 0.7);
    backdrop-filter: blur(10px);
}

.rank-mark {
    top: 10px;
    left: 10px;
    min-width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--yellow), var(--red));
    box-shadow: 0 10px 24px rgba(239, 68, 68, 0.28);
}

.card-body {
    padding: 16px;
}

.card-body h3 {
    margin: 0;
    font-size: 18px;
    line-height: 1.35;
}

.card-body h3 a:hover {
    color: var(--orange-dark);
}

.card-meta,
.card-desc {
    margin: 8px 0 0;
    color: var(--gray-600);
    font-size: 14px;
    line-height: 1.62;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 12px;
}

.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 9px;
    color: var(--orange-dark);
    border-radius: 999px;
    background: #fff7ed;
    font-size: 12px;
    font-weight: 800;
}

.movie-card.compact .card-desc {
    display: none;
}

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

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

.category-tile {
    position: relative;
    min-height: 250px;
    overflow: hidden;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border-radius: 26px;
    color: var(--white);
    background: var(--gray-950);
    box-shadow: var(--soft-shadow);
}

.category-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.1), rgba(17, 24, 39, 0.92));
}

.category-tile img {
    position: absolute;
    inset: 0;
}

.category-tile span,
.category-tile strong,
.category-tile p {
    position: relative;
    z-index: 2;
}

.category-tile span {
    width: max-content;
    margin-bottom: 10px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(249, 115, 22, 0.88);
    font-size: 12px;
    font-weight: 900;
}

.category-tile strong {
    font-size: 24px;
    line-height: 1.18;
}

.category-tile p {
    margin: 10px 0 0;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.65;
}

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

.page-main {
    padding-bottom: 86px;
}

.page-hero {
    margin-top: 36px;
    padding: 54px;
    border-radius: 34px;
}

.soft-hero {
    background:
        radial-gradient(circle at top right, rgba(249, 115, 22, 0.24), transparent 36%),
        linear-gradient(135deg, rgba(255, 247, 237, 0.98), rgba(255, 255, 255, 0.94));
    box-shadow: var(--soft-shadow);
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    color: var(--gray-600);
    font-size: 14px;
    font-weight: 700;
}

.breadcrumb a:hover {
    color: var(--orange-dark);
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 14px;
    margin-bottom: 24px;
    padding: 14px;
    border: 1px solid rgba(229, 231, 235, 0.86);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--soft-shadow);
}

.search-box {
    display: flex;
    align-items: center;
    gap: 12px;
}

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

.search-box input,
.filter-bar select {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid var(--gray-200);
    border-radius: 14px;
    outline: none;
    background: var(--white);
}

.search-box input:focus,
.filter-bar select:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.empty-state {
    display: none;
    padding: 32px;
    text-align: center;
    color: var(--gray-600);
    border-radius: 20px;
    background: var(--white);
    box-shadow: var(--soft-shadow);
}

.empty-state.is-visible {
    display: block;
}

.detail-hero {
    padding-top: 36px;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.72fr);
    gap: 30px;
    align-items: stretch;
    margin-top: 20px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #050505;
    box-shadow: var(--shadow);
    aspect-ratio: 16 / 9;
}

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

.player-cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    cursor: pointer;
    background: #000000;
}

.player-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.1), rgba(0, 0, 0, 0.58));
}

.player-cover.is-hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.play-circle {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    width: 88px;
    height: 88px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    border-radius: 999px;
    background: linear-gradient(135deg, var(--orange), var(--red));
    box-shadow: 0 22px 42px rgba(239, 68, 68, 0.36);
    transform: translate(-50%, -50%);
    font-size: 30px;
}

.detail-info {
    padding: 32px;
    border-radius: 28px;
    background: var(--white);
    box-shadow: var(--soft-shadow);
}

.detail-info h1 {
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.12;
}

.detail-one-line {
    margin: 16px 0 0;
    color: var(--gray-700);
    font-size: 17px;
    line-height: 1.78;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.detail-meta span {
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--gray-700);
    background: var(--gray-100);
    font-weight: 800;
    font-size: 13px;
}

.detail-tags {
    margin: 18px 0 26px;
}

.detail-play-link {
    border: 0;
    cursor: pointer;
}

.detail-content {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 26px;
}

.content-card {
    padding: 30px;
    border-radius: 26px;
    background: var(--white);
    box-shadow: var(--soft-shadow);
}

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

.content-card p {
    margin: 16px 0 0;
    color: var(--gray-700);
    line-height: 1.9;
}

.site-footer {
    margin-top: 90px;
    color: rgba(255, 255, 255, 0.82);
    background: linear-gradient(135deg, #111827, #1f2937 55%, #111827);
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 54px 0;
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 36px;
}

.footer-logo .brand-text {
    color: var(--white);
    background: none;
}

.footer-brand p,
.site-footer p {
    color: rgba(255, 255, 255, 0.66);
    line-height: 1.75;
}

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

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

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

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 20px 0 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.56);
    font-size: 14px;
}

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

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

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

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

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

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

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

    .hero-content {
        min-height: 720px;
        grid-template-columns: 1fr;
        align-content: center;
        gap: 28px;
    }

    .hero-card {
        min-height: 320px;
    }

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

    .featured-grid,
    .six-grid,
    .ranking-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

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

@media (max-width: 560px) {
    .brand-text {
        font-size: 18px;
    }

    .hero {
        min-height: 760px;
    }

    .hero-content {
        min-height: 760px;
        padding-top: 48px;
    }

    .hero-main-copy h1 {
        font-size: 42px;
    }

    .hero-card,
    .page-hero,
    .detail-info,
    .content-card {
        border-radius: 22px;
        padding: 22px;
    }

    .stats-strip,
    .category-grid,
    .category-grid.large {
        grid-template-columns: 1fr;
    }

    .featured-grid,
    .six-grid,
    .ranking-list {
        gap: 14px;
    }

    .card-body {
        padding: 13px;
    }

    .card-body h3 {
        font-size: 16px;
    }

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