:root {
    --brand: #f97316;
    --brand-strong: #ea580c;
    --rose: #f43f5e;
    --ink: #111827;
    --muted: #6b7280;
    --soft: #fff7ed;
    --line: #e5e7eb;
    --panel: rgba(255, 255, 255, 0.92);
    --shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(249, 115, 22, 0.14), transparent 34rem),
        linear-gradient(180deg, #fff7ed 0%, #ffffff 24rem, #f8fafc 100%);
}

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

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

button,
input,
select {
    font: inherit;
}

.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(229, 231, 235, 0.85);
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.brand-icon,
.footer-brand span {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 900;
    border-radius: 15px;
    background: linear-gradient(135deg, var(--brand), var(--rose));
    box-shadow: 0 12px 25px rgba(249, 115, 22, 0.3);
}

.brand-text strong,
.footer-brand {
    display: block;
    font-size: 22px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--brand-strong), var(--rose));
    -webkit-background-clip: text;
    color: transparent;
}

.brand-text small {
    color: var(--muted);
    font-size: 12px;
}

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

.nav-link {
    padding: 10px 13px;
    border-radius: 12px;
    color: #374151;
    font-weight: 700;
    transition: 0.2s ease;
    white-space: nowrap;
}

.nav-link:hover {
    background: #ffedd5;
    color: var(--brand-strong);
}

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
}

.header-search input,
.big-search input,
.hero-search input,
.filters input,
.filters select {
    border: 0;
    outline: 0;
    background: transparent;
}

.header-search input {
    width: 180px;
    padding: 8px 8px 8px 14px;
}

.header-search button,
.hero-search button,
.big-search button,
.btn-primary {
    border: 0;
    color: #fff;
    font-weight: 800;
    cursor: pointer;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--brand), var(--rose));
    box-shadow: 0 12px 28px rgba(249, 115, 22, 0.28);
}

.header-search button {
    padding: 8px 15px;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: #fff7ed;
    color: var(--brand-strong);
    font-size: 24px;
    cursor: pointer;
}

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

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

.mobile-panel a {
    padding: 12px 14px;
    border-radius: 12px;
    background: #fff7ed;
    color: #9a3412;
    font-weight: 700;
}

.hero {
    position: relative;
    width: min(1180px, calc(100% - 32px));
    margin: 28px auto 0;
    min-height: 640px;
    border-radius: 34px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: #0f172a;
}

.hero-track,
.hero-slide {
    position: absolute;
    inset: 0;
}

.hero-slide {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) 360px;
    align-items: center;
    gap: 42px;
    padding: 72px;
    opacity: 0;
    pointer-events: none;
    transform: scale(1.02);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0.42)),
        var(--hero-bg) center / cover;
    filter: saturate(1.15);
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 48%;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.88), transparent);
}

.hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

.hero-copy,
.hero-poster {
    position: relative;
    z-index: 2;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 13px;
    border-radius: 999px;
    color: #fff;
    background: rgba(249, 115, 22, 0.82);
    font-weight: 800;
    letter-spacing: 0.02em;
}

.hero h1,
.sub-hero h1,
.detail-info h1 {
    margin: 20px 0 16px;
    font-size: clamp(36px, 5vw, 72px);
    line-height: 1.03;
    color: #fff;
    font-weight: 1000;
    letter-spacing: -0.04em;
}

.hero p {
    max-width: 720px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
    line-height: 1.85;
}

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

.hero-tags span,
.tag-row span,
.detail-meta span {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

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

.btn-primary,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 22px;
    min-height: 48px;
}

.btn-ghost {
    color: #fff;
    font-weight: 800;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);
}

.hero-poster {
    aspect-ratio: 2 / 3;
    border-radius: 28px;
    overflow: hidden;
    transform: rotate(2deg);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.hero-poster img,
.poster-link img,
.detail-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-dots {
    position: absolute;
    z-index: 3;
    left: 72px;
    bottom: 110px;
    display: flex;
    gap: 10px;
}

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

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

.hero-search,
.big-search {
    position: absolute;
    z-index: 4;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    display: flex;
    width: min(760px, calc(100% - 42px));
    gap: 10px;
    padding: 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.22);
}

.hero-search input,
.big-search input {
    flex: 1;
    padding: 14px 20px;
}

.hero-search button,
.big-search button {
    padding: 12px 22px;
}

.section-wrap {
    width: min(1180px, calc(100% - 32px));
    margin: 62px auto;
}

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

.section-head span,
.sub-hero span {
    display: block;
    color: var(--brand-strong);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.section-head h2,
.detail-content h2 {
    margin: 4px 0 0;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.15;
}

.section-head a {
    color: var(--brand-strong);
    font-weight: 900;
}

.section-head.compact {
    align-items: center;
}

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

.category-tile {
    overflow: hidden;
    border-radius: 24px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-main {
    display: block;
    padding: 22px;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--rose));
}

.category-main span {
    display: block;
    font-size: 22px;
    font-weight: 950;
    margin-bottom: 10px;
}

.category-main strong {
    font-size: 14px;
    line-height: 1.7;
    font-weight: 700;
}

.category-tile div {
    display: grid;
    gap: 8px;
    padding: 16px 18px 20px;
}

.category-tile div a {
    color: #4b5563;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.category-tile div a:hover {
    color: var(--brand-strong);
}

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

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

.movie-card {
    border-radius: 22px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(229, 231, 235, 0.8);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: #111827;
}

.poster-link img {
    transition: transform 0.55s ease;
}

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

.play-mark {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 48px;
    opacity: 0;
    background: rgba(15, 23, 42, 0.32);
    transition: opacity 0.25s ease;
}

.movie-card:hover .play-mark {
    opacity: 1;
}

.poster-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    color: #fff;
    font-weight: 800;
    font-size: 12px;
    background: linear-gradient(135deg, var(--brand), var(--rose));
}

.card-body {
    padding: 16px;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

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

.card-body h3 a:hover {
    color: var(--brand-strong);
}

.card-body p {
    min-height: 44px;
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
}

.tag-row span {
    color: #c2410c;
    background: #ffedd5;
}

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

.rank-panel {
    position: sticky;
    top: 98px;
    padding: 22px;
    border-radius: 24px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

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

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

.rank-item {
    display: grid;
    grid-template-columns: auto 58px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 18px;
    background: #fff7ed;
    transition: 0.2s ease;
}

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

.rank-item img {
    width: 58px;
    height: 78px;
    object-fit: cover;
    border-radius: 12px;
}

.rank-num {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #fff;
    font-weight: 950;
    background: linear-gradient(135deg, var(--brand), var(--rose));
}

.rank-item strong,
.rank-item em {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-item strong {
    font-size: 15px;
}

.rank-item em {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
}

.sub-hero {
    width: min(1180px, calc(100% - 32px));
    margin: 28px auto 0;
    padding: 58px;
    border-radius: 32px;
    color: #fff;
    background:
        radial-gradient(circle at top right, rgba(244, 63, 94, 0.55), transparent 26rem),
        linear-gradient(135deg, #111827, #7c2d12 58%, #fb923c);
    box-shadow: var(--shadow);
}

.sub-hero p {
    max-width: 800px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 18px;
    line-height: 1.8;
}

.category-hero {
    padding-bottom: 36px;
}

.filters {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 180px 180px;
    gap: 12px;
    margin-top: 28px;
}

.filters input,
.filters select {
    width: 100%;
    padding: 13px 15px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.92);
    color: #111827;
}

.empty-state {
    display: none;
    margin: 28px 0;
    padding: 30px;
    border-radius: 22px;
    text-align: center;
    color: #9a3412;
    background: #ffedd5;
    font-weight: 900;
}

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

.breadcrumb {
    width: min(1180px, calc(100% - 32px));
    margin: 26px auto;
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    color: var(--muted);
    font-weight: 800;
}

.breadcrumb a {
    color: var(--brand-strong);
}

.detail-hero {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 42px;
    align-items: center;
    padding: 38px;
    border-radius: 34px;
    color: #fff;
    background:
        radial-gradient(circle at 80% 20%, rgba(244, 63, 94, 0.46), transparent 26rem),
        linear-gradient(135deg, #111827, #7c2d12);
    box-shadow: var(--shadow);
}

.detail-poster {
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
}

.detail-info h1 {
    color: #fff;
}

.detail-line {
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
    line-height: 1.8;
}

.detail-meta {
    margin: 18px 0;
}

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

.video-shell {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #020617;
    box-shadow: var(--shadow);
}

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

.video-play {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 164px;
    height: 164px;
    border: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    gap: 6px;
    color: #fff;
    font-size: 42px;
    cursor: pointer;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.98), rgba(244, 63, 94, 0.86));
    box-shadow: 0 20px 60px rgba(249, 115, 22, 0.36);
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.video-play span {
    display: block;
    font-size: 16px;
    font-weight: 900;
}

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

.video-shell.is-playing .video-play {
    opacity: 0;
    pointer-events: none;
}

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

.detail-content article,
.detail-content aside {
    padding: 28px;
    border-radius: 26px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
}

.detail-content p {
    color: #374151;
    line-height: 2;
    font-size: 16px;
}

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

.detail-content dt {
    color: var(--muted);
    font-weight: 800;
}

.detail-content dd {
    margin: 0;
    font-weight: 800;
}

.detail-content dd a {
    color: var(--brand-strong);
}

.search-status {
    margin-bottom: 20px;
    color: var(--brand-strong);
    font-weight: 950;
    font-size: 20px;
}

.big-search {
    position: static;
    transform: none;
    margin-top: 28px;
    width: min(700px, 100%);
}

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

.footer-grid {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.3fr 1fr 0.8fr;
    gap: 42px;
    padding: 54px 0 34px;
}

.footer-grid p {
    max-width: 420px;
    color: #9ca3af;
    line-height: 1.8;
}

.footer-grid h3 {
    color: #fff;
    margin: 0 0 16px;
}

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

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

.footer-links a:hover {
    color: #fff;
    background: rgba(249, 115, 22, 0.36);
}

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 22px 0 34px;
    color: #9ca3af;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

    .header-inner {
        justify-content: space-between;
    }

    .menu-toggle {
        display: grid;
        place-items: center;
    }

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

    .hero-poster {
        display: none;
    }

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

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

    .rank-panel {
        position: static;
    }
}

@media (max-width: 760px) {
    .hero {
        min-height: 650px;
        border-radius: 24px;
    }

    .hero-slide {
        padding: 38px 24px 130px;
    }

    .hero h1,
    .sub-hero h1,
    .detail-info h1 {
        font-size: 36px;
    }

    .hero-dots {
        left: 24px;
        bottom: 112px;
    }

    .hero-search,
    .big-search {
        border-radius: 22px;
        flex-direction: column;
    }

    .hero-search button,
    .big-search button {
        width: 100%;
    }

    .sub-hero,
    .detail-hero {
        padding: 30px 22px;
        border-radius: 24px;
    }

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

    .category-grid,
    .category-overview,
    .movie-grid,
    .featured-grid,
    .rank-list.large {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .card-body {
        padding: 13px;
    }

    .card-body p,
    .tag-row {
        display: none;
    }

    .detail-hero {
        gap: 24px;
    }

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

    .video-play {
        width: 118px;
        height: 118px;
        font-size: 30px;
    }

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

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

    .brand-text small {
        display: none;
    }

    .movie-grid,
    .featured-grid,
    .category-grid,
    .category-overview {
        grid-template-columns: 1fr;
    }

    .rank-item {
        grid-template-columns: auto 52px minmax(0, 1fr);
    }
}
