:root {
    color-scheme: light;
    --bg: #f9fafb;
    --surface: #ffffff;
    --surface-soft: #fff7ed;
    --text: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --dark: #0f172a;
    --dark-2: #111827;
    --orange: #f97316;
    --orange-dark: #ea580c;
    --red: #ef4444;
    --yellow: #facc15;
    --shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
    --shadow-soft: 0 12px 28px rgba(15, 23, 42, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    -webkit-font-smoothing: antialiased;
}

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

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

button,
input {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, #0f172a, #1f2937, #111827);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 68px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.brand-icon {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--orange), var(--red));
    color: #fff;
    box-shadow: 0 12px 24px rgba(239, 68, 68, 0.3);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    color: #d1d5db;
    font-size: 15px;
    font-weight: 700;
    transition: color 0.2s ease;
}

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

.menu-toggle {
    display: none;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
}

.hero {
    position: relative;
    height: 640px;
    overflow: hidden;
    background: #020617;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    opacity: 0;
    background-position: center;
    background-size: cover;
    transform: scale(1.04);
    transition: opacity 0.8s ease, transform 1.6s ease;
}

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(249, 115, 22, 0.35), transparent 36%),
        linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.48));
}

.hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 130px;
    background: linear-gradient(0deg, var(--bg), rgba(249, 250, 251, 0));
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

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

.eyebrow {
    margin: 0 0 12px;
    color: var(--orange);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0 0 18px;
    font-size: clamp(36px, 6vw, 72px);
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.hero h2 {
    margin: 0 0 14px;
    font-size: clamp(26px, 3vw, 42px);
    line-height: 1.2;
}

.hero p {
    max-width: 700px;
    margin: 0 0 24px;
    color: #e5e7eb;
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.7;
}

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

.hero-tags span,
.tag-row span,
.tag-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.tag-row span,
.tag-pill {
    background: #f3f4f6;
    color: #4b5563;
}

.hero-actions,
.index-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 26px;
}

.btn-primary,
.btn-secondary,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 22px;
    border-radius: 12px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
    border: 0;
    background: linear-gradient(90deg, var(--orange), var(--red));
    color: #fff;
    box-shadow: 0 16px 28px rgba(239, 68, 68, 0.26);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 34px rgba(239, 68, 68, 0.34);
}

.btn-secondary {
    background: #1f2937;
    color: #fff;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.2);
}

.btn-secondary:hover {
    background: #374151;
    transform: translateY(-2px);
}

.btn-ghost {
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    backdrop-filter: blur(10px);
}

.btn-ghost.dark {
    border-color: var(--line);
    color: var(--text);
    background: #fff;
}

.full {
    width: 100%;
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 4;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    transform: translateY(-50%);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.55);
    color: #fff;
    font-size: 34px;
    cursor: pointer;
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

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

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

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

.section {
    padding: 72px 0;
}

.white-section {
    background: #fff;
}

.warm-section {
    background: linear-gradient(135deg, #fff7ed, #fef3c7);
}

.section-heading {
    margin-bottom: 32px;
}

.section-heading.center {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-heading.split {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
}

.section-heading h2,
.page-hero h1,
.detail-card h1 {
    margin: 0 0 12px;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.section-heading p,
.page-hero p {
    margin: 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.7;
}

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

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

.category-tile {
    position: relative;
    min-height: 210px;
    overflow: hidden;
    border-radius: 22px;
    background: #111827;
    box-shadow: var(--shadow-soft);
    transform: translateY(0);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.category-tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.category-tile:hover img {
    transform: scale(1.08);
}

.tile-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.88));
}

.category-tile strong,
.category-tile em {
    position: absolute;
    left: 22px;
    right: 22px;
    z-index: 2;
    color: #fff;
}

.category-tile strong {
    bottom: 68px;
    font-size: 24px;
}

.category-tile em {
    bottom: 22px;
    color: #e5e7eb;
    font-style: normal;
    font-size: 14px;
    line-height: 1.45;
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow-soft);
    transform: translateY(0);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

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

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

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

.poster-play {
    position: absolute;
    left: 50%;
    top: 50%;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    transform: translate(-50%, -50%) scale(0.88);
    border-radius: 999px;
    background: rgba(249, 115, 22, 0.92);
    color: #fff;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.poster-badge {
    position: absolute;
    right: 10px;
    top: 10px;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.78);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

.card-body {
    padding: 16px;
}

.card-body h2 {
    margin: 0 0 10px;
    font-size: 17px;
    line-height: 1.35;
}

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

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

.meta-line {
    margin-bottom: 10px;
    color: #6b7280;
    font-size: 13px;
    font-weight: 700;
}

.page-hero {
    padding: 76px 0;
}

.dark-page-hero {
    background:
        radial-gradient(circle at 15% 30%, rgba(249, 115, 22, 0.28), transparent 34%),
        linear-gradient(90deg, #0f172a, #1f2937);
    color: #fff;
}

.orange-page-hero {
    background: linear-gradient(90deg, var(--orange), var(--red));
    color: #fff;
}

.page-hero p {
    max-width: 820px;
    color: rgba(255, 255, 255, 0.84);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: #d1d5db;
    font-size: 14px;
}

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

.breadcrumb.light {
    color: #f3f4f6;
}

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

.overview-card {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 22px;
    padding: 18px;
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.overview-cover {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
    overflow: hidden;
    border-radius: 16px;
    background: #111827;
}

.overview-cover img {
    width: 100%;
    height: 100%;
    min-height: 90px;
    object-fit: cover;
}

.overview-card h2 {
    margin: 4px 0 10px;
    font-size: 24px;
}

.overview-card p {
    margin: 0 0 18px;
    color: var(--muted);
    line-height: 1.7;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 64px 1fr;
    align-items: stretch;
    gap: 14px;
}

.rank-number {
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--orange), var(--red));
    color: #fff;
    font-size: 22px;
    font-weight: 900;
    box-shadow: var(--shadow-soft);
}

.rank-item {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 18px;
    padding: 14px;
}

.rank-cover {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 14px;
    background: #111827;
}

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

.rank-title {
    display: inline-block;
    margin: 4px 0 8px;
    font-size: 22px;
    font-weight: 900;
}

.rank-title:hover {
    color: var(--orange-dark);
}

.rank-body p {
    margin: 0 0 12px;
    color: var(--muted);
    line-height: 1.7;
}

.search-hero-box {
    text-align: center;
}

.search-form {
    position: relative;
    display: flex;
    max-width: 760px;
    margin: 30px auto 0;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 20px 36px rgba(127, 29, 29, 0.22);
}

.search-form input {
    width: 100%;
    min-height: 58px;
    padding: 0 154px 0 24px;
    border: 0;
    border-radius: 999px;
    outline: 0;
    color: var(--text);
    font-size: 17px;
}

.search-form button {
    position: absolute;
    right: 7px;
    top: 7px;
    bottom: 7px;
    min-width: 126px;
    border: 0;
    border-radius: 999px;
    background: #ea580c;
    color: #fff;
    font-weight: 900;
    cursor: pointer;
}

.filter-panel {
    display: grid;
    gap: 20px;
    margin-bottom: 28px;
    padding: 24px;
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.filter-group h2 {
    margin: 0 0 12px;
    font-size: 18px;
}

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

.filter-btn {
    border: 0;
    border-radius: 999px;
    padding: 9px 15px;
    background: #f3f4f6;
    color: #374151;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--orange);
    color: #fff;
}

.search-status {
    margin-bottom: 20px;
    color: var(--muted);
    font-weight: 800;
}

.empty-state {
    padding: 70px 20px;
    border-radius: 22px;
    background: #fff;
    text-align: center;
    box-shadow: var(--shadow-soft);
}

.player-section {
    padding: 28px 0 42px;
    background:
        radial-gradient(circle at 12% 20%, rgba(249, 115, 22, 0.24), transparent 34%),
        linear-gradient(180deg, #020617, #111827);
}

.video-shell {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 24px;
    background: #000;
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.48);
}

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

.play-cover {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: grid;
    place-items: center;
    border: 0;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.54));
    color: #fff;
    cursor: pointer;
}

.play-cover span {
    display: grid;
    place-items: center;
    width: 92px;
    height: 92px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--orange), var(--red));
    box-shadow: 0 16px 34px rgba(239, 68, 68, 0.42);
    font-size: 38px;
}

.video-shell.playing .play-cover {
    display: none;
}

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

.detail-card,
.side-card {
    margin-bottom: 24px;
    padding: 26px;
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.detail-card h1 {
    font-size: clamp(28px, 4vw, 44px);
}

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

.detail-card p,
.side-card p {
    color: #4b5563;
    font-size: 16px;
    line-height: 1.85;
}

.lead-text {
    padding: 16px 18px;
    border-radius: 16px;
    background: #fff7ed;
    color: #9a3412 !important;
    font-weight: 800;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.detail-meta span {
    padding: 7px 11px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #4b5563;
    font-size: 14px;
    font-weight: 800;
}

.detail-tags {
    margin-top: 24px;
}

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

.detail-side {
    position: sticky;
    top: 92px;
}

.side-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 18px;
    object-fit: cover;
    background: #111827;
}

.side-card h2 {
    margin-top: 18px;
}

.site-footer {
    background: linear-gradient(180deg, #111827, #020617);
    color: #d1d5db;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 32px;
    padding: 48px 0;
}

.site-footer p {
    max-width: 440px;
    color: #9ca3af;
    line-height: 1.7;
}

.site-footer h2 {
    margin: 0 0 16px;
    color: #fff;
    font-size: 18px;
}

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

.footer-links a:hover {
    color: var(--orange);
}

.copyright {
    padding: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #9ca3af;
    text-align: center;
}

[hidden] {
    display: none !important;
}

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

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

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

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

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

@media (max-width: 860px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 68px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px;
        border-radius: 16px;
        background: #111827;
        box-shadow: var(--shadow);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-link {
        padding: 12px;
    }

    .hero {
        height: 620px;
    }

    .hero-arrow {
        display: none;
    }

    .section-heading.split,
    .footer-grid,
    .detail-grid,
    .overview-card,
    .rank-row,
    .rank-item {
        grid-template-columns: 1fr;
    }

    .section-heading.split {
        display: grid;
        align-items: start;
    }

    .detail-side {
        position: static;
    }

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

    .rank-number {
        min-height: 48px;
    }
}

@media (max-width: 640px) {
    .container {
        width: min(100% - 22px, 1280px);
    }

    .brand,
    .footer-brand {
        font-size: 18px;
    }

    .hero {
        height: 660px;
    }

    .hero-copy {
        padding-top: 26px;
    }

    .hero-actions,
    .index-links {
        display: grid;
    }

    .section {
        padding: 52px 0;
    }

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

    .card-body {
        padding: 12px;
    }

    .card-body h2 {
        font-size: 15px;
    }

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

    .page-hero {
        padding: 52px 0;
    }

    .search-form {
        display: grid;
        border-radius: 20px;
        padding: 8px;
    }

    .search-form input {
        min-height: 52px;
        padding: 0 14px;
    }

    .search-form button {
        position: static;
        min-height: 48px;
        margin-top: 8px;
    }

    .detail-card,
    .side-card,
    .filter-panel {
        padding: 18px;
        border-radius: 18px;
    }

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

    .play-cover span {
        width: 72px;
        height: 72px;
        font-size: 30px;
    }
}
