:root {
    --orange: #ea580c;
    --amber: #f59e0b;
    --deep: #111827;
    --soft: #f9fafb;
    --muted: #6b7280;
    --line: #e5e7eb;
    --card: #ffffff;
    --shadow: 0 12px 36px rgba(17, 24, 39, 0.12);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: #111827;
    background: #f9fafb;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.8);
}

.nav-shell {
    width: min(1180px, calc(100% - 32px));
    height: 70px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--orange);
    font-weight: 900;
    letter-spacing: -0.03em;
}

.brand-mark {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, var(--orange), var(--amber));
    border-radius: 999px;
    box-shadow: 0 8px 20px rgba(234, 88, 12, 0.28);
    font-size: 14px;
}

.brand-text {
    font-size: 24px;
}

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

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

.nav-link:hover,
.nav-link.active {
    color: var(--orange);
    background: #fff7ed;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: #fff7ed;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 5px auto;
    background: var(--orange);
    border-radius: 999px;
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 14px;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.08);
}

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

.mobile-hot-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--line);
}

.mobile-hot-links a {
    padding: 7px 10px;
    border-radius: 999px;
    background: #fff7ed;
    color: var(--orange);
    font-size: 13px;
    font-weight: 700;
}

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

.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(120deg, #f97316 0%, #f59e0b 42%, #fb923c 100%);
    color: #fff;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 12% 20%, rgba(255, 255, 255, 0.24), transparent 30%),
        radial-gradient(circle at 80% 10%, rgba(17, 24, 39, 0.22), transparent 32%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.02));
}

.hero-inner {
    position: relative;
    width: min(1180px, calc(100% - 32px));
    min-height: 540px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
    align-items: center;
    gap: 42px;
    padding: 72px 0;
}

.hero-slide {
    display: none;
    animation: fadeIn 0.35s ease;
}

.hero-slide.is-active {
    display: block;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.17);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: rgba(255, 255, 255, 0.94);
    font-weight: 800;
}

.hero h1,
.hero h2 {
    margin: 18px 0 18px;
    font-size: clamp(40px, 6vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.06em;
}

.hero p {
    max-width: 680px;
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 18px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 26px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 12px 18px;
    border-radius: 999px;
    font-weight: 900;
    transition: 0.2s ease;
}

.btn-primary {
    color: var(--orange);
    background: #fff;
    box-shadow: 0 12px 24px rgba(17, 24, 39, 0.16);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 28px rgba(17, 24, 39, 0.2);
}

.btn-ghost {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.32);
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.hero-meta span,
.card-tags span,
.detail-tags span {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.hero-meta span {
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
}

.hero-visual {
    position: relative;
}

.hero-poster {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: 0 30px 70px rgba(17, 24, 39, 0.3);
    transform: rotate(2deg);
}

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

.hero-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(17, 24, 39, 0.56), transparent 55%);
}

.hero-float-card {
    position: absolute;
    left: -24px;
    bottom: 24px;
    width: min(310px, 78%);
    padding: 16px;
    color: #111827;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    box-shadow: 0 20px 45px rgba(17, 24, 39, 0.22);
    backdrop-filter: blur(14px);
}

.hero-float-card strong {
    display: block;
    margin-bottom: 4px;
    color: var(--orange);
}

.hero-dots {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
}

.hero-dot {
    width: 32px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.34);
    cursor: pointer;
}

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

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

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

.section-head h1,
.section-head h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.15;
    letter-spacing: -0.04em;
}

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

.text-link {
    color: var(--orange);
    font-weight: 900;
}

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

.movie-card {
    min-width: 0;
    background: var(--card);
    border: 1px solid rgba(229, 231, 235, 0.82);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(17, 24, 39, 0.08);
    transition: 0.25s ease;
}

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

.card-link {
    display: block;
    height: 100%;
}

.poster-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, #fed7aa, #ffedd5);
}

.compact-card .poster-wrap {
    aspect-ratio: 4 / 5;
}

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

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

.play-glow {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 46px;
    opacity: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.55), transparent);
    transition: opacity 0.25s ease;
}

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

.region-pill,
.rank-badge {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #fff;
    font-weight: 900;
}

.region-pill {
    right: 12px;
    top: 12px;
    padding: 6px 10px;
    background: rgba(234, 88, 12, 0.94);
    font-size: 12px;
}

.rank-badge {
    left: 12px;
    top: 12px;
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    background: linear-gradient(135deg, #f97316, #f59e0b);
    box-shadow: 0 8px 18px rgba(234, 88, 12, 0.26);
}

.card-body {
    padding: 18px;
}

.card-body h3 {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.35;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

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

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
    color: #4b5563;
    font-size: 13px;
    font-weight: 800;
}

.card-meta span:last-child {
    color: var(--orange);
}

.card-tags,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.card-tags span,
.detail-tags span {
    color: #c2410c;
    background: #fff7ed;
}

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 150px;
    padding: 20px;
    color: #fff;
    background: linear-gradient(135deg, #f97316, #f59e0b);
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(234, 88, 12, 0.18);
}

.category-card::after {
    content: "";
    position: absolute;
    right: -30px;
    bottom: -30px;
    width: 110px;
    height: 110px;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 999px;
}

.category-card h2,
.category-card h3 {
    position: relative;
    z-index: 1;
    margin: 0 0 8px;
    font-size: 22px;
}

.category-card p {
    position: relative;
    z-index: 1;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto;
    gap: 14px;
    align-items: end;
    margin: 24px 0 30px;
    padding: 18px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(17, 24, 39, 0.06);
}

.search-box {
    display: grid;
    gap: 6px;
    color: #374151;
    font-weight: 800;
}

.search-box input,
.filter-select {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    color: #111827;
    background: #f9fafb;
    border: 1px solid var(--line);
    border-radius: 14px;
    outline: none;
}

.search-box input:focus,
.filter-select:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 4px rgba(234, 88, 12, 0.12);
}

.filter-row {
    display: flex;
    gap: 10px;
}

.no-results {
    padding: 28px;
    color: var(--muted);
    text-align: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
}

.sub-hero {
    padding: 58px 0;
    color: #fff;
    background: linear-gradient(120deg, #f97316, #f59e0b);
}

.sub-hero .page-shell {
    display: grid;
    gap: 12px;
}

.sub-hero h1 {
    margin: 0;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.1;
    letter-spacing: -0.05em;
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 28px auto 0;
    color: #6b7280;
    font-size: 14px;
}

.breadcrumb a {
    color: var(--orange);
    font-weight: 800;
}

.detail-layout {
    width: min(1180px, calc(100% - 32px));
    margin: 32px auto 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 30px;
    align-items: start;
}

.player-card,
.detail-card,
.side-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: 0 10px 28px rgba(17, 24, 39, 0.08);
    overflow: hidden;
}

.player-stage {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #0f172a;
}

.player-stage video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
    cursor: pointer;
}

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.2);
}

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

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

.player-cover.is-hidden {
    display: none;
}

.player-button {
    position: relative;
    z-index: 3;
    width: 86px;
    height: 86px;
    border: 0;
    border-radius: 999px;
    color: var(--orange);
    background: #fff;
    font-size: 34px;
    cursor: pointer;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
    transition: 0.2s ease;
}

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

.detail-card {
    padding: 28px;
    margin-top: 24px;
}

.detail-card h1 {
    margin: 0 0 12px;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 18px;
    color: #4b5563;
    font-weight: 800;
}

.detail-meta span {
    padding: 7px 10px;
    background: #f3f4f6;
    border-radius: 999px;
}

.detail-card h2,
.side-card h2 {
    margin: 28px 0 12px;
    font-size: 24px;
}

.detail-card p {
    color: #374151;
    font-size: 16px;
}

.side-card {
    padding: 18px;
}

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

.side-item {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 8px;
    border-radius: 14px;
    transition: 0.2s ease;
}

.side-item:hover {
    background: #fff7ed;
}

.side-item img {
    width: 76px;
    height: 92px;
    object-fit: cover;
    border-radius: 10px;
    background: #ffedd5;
}

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

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

.next-prev {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 22px;
}

.next-prev a {
    flex: 1;
    padding: 14px;
    color: var(--orange);
    background: #fff7ed;
    border-radius: 14px;
    font-weight: 900;
    text-align: center;
}

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

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

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

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

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

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

    .nav-toggle {
        display: block;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        min-height: auto;
        padding: 46px 0;
    }

    .hero-visual {
        max-width: 420px;
        margin: 0 auto;
    }

    .section-head {
        display: block;
    }

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

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

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

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

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

    .hero h1,
    .hero h2 {
        font-size: 38px;
    }

    .card-body p {
        min-height: auto;
    }

    .next-prev {
        flex-direction: column;
    }
}
