:root {
    --orange: #f97316;
    --deep-orange: #ea580c;
    --red: #ef4444;
    --pink: #ec4899;
    --slate: #0f172a;
    --slate-soft: #1e293b;
    --muted: #64748b;
    --line: rgba(148, 163, 184, 0.22);
    --card: #ffffff;
    --body: #f8fafc;
    --text: #111827;
    --shadow: 0 20px 55px rgba(15, 23, 42, 0.14);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    background: var(--body);
    color: var(--text);
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: #ffffff;
    background: linear-gradient(90deg, var(--orange), var(--red), var(--pink));
    box-shadow: 0 12px 32px rgba(239, 68, 68, 0.28);
}

.nav-shell {
    max-width: 1280px;
    margin: 0 auto;
    min-height: 72px;
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 0 24px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    font-size: 22px;
    white-space: nowrap;
}

.logo-mark {
    width: 34px;
    height: 34px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--orange);
    background: #ffffff;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.18);
}

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

.desktop-nav a,
.mobile-links a {
    padding: 10px 14px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 700;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-links a:hover,
.mobile-links a.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
}

.top-search {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-search input,
.mobile-panel input,
.search-hero input,
.filter-panel input {
    width: 260px;
    border: 0;
    outline: 0;
    color: #ffffff;
    border-radius: 999px;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.top-search input::placeholder,
.mobile-panel input::placeholder,
.search-hero input::placeholder {
    color: rgba(255, 255, 255, 0.74);
}

.top-search button,
.mobile-panel button,
.search-hero button,
.filter-panel button,
.primary-btn,
.ghost-btn {
    border: 0;
    cursor: pointer;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.top-search button,
.mobile-panel button {
    color: var(--orange);
    background: #ffffff;
    padding: 11px 16px;
}

.top-search button:hover,
.mobile-panel button:hover,
.search-hero button:hover,
.filter-panel button:hover,
.primary-btn:hover,
.ghost-btn:hover {
    transform: translateY(-2px);
}

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

.mobile-panel {
    display: none;
    padding: 16px 24px 22px;
    background: rgba(194, 65, 12, 0.95);
    backdrop-filter: blur(18px);
}

.mobile-panel.is-open {
    display: block;
}

.mobile-panel form {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
}

.mobile-panel input {
    flex: 1;
    width: auto;
}

.mobile-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-carousel {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    color: #ffffff;
    background: #111827;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.03);
    transition: opacity 0.6s ease, transform 1s ease;
    pointer-events: none;
}

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

.hero-bg {
    position: absolute;
    inset: 0;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.08) contrast(1.06);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(249, 115, 22, 0.55), transparent 34%),
        linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.72) 46%, rgba(15, 23, 42, 0.28)),
        linear-gradient(0deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.12));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    min-height: 680px;
    margin: 0 auto;
    padding: 120px 24px 130px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 8px 14px;
    border-radius: 999px;
    color: #fff7ed;
    background: rgba(249, 115, 22, 0.22);
    box-shadow: inset 0 0 0 1px rgba(251, 146, 60, 0.5);
    font-weight: 800;
    letter-spacing: 0.04em;
}

.hero-content h1 {
    max-width: 820px;
    margin: 22px 0 20px;
    font-size: clamp(42px, 8vw, 88px);
    line-height: 1.02;
    letter-spacing: -0.06em;
    text-shadow: 0 20px 45px rgba(0, 0, 0, 0.38);
}

.hero-content p {
    max-width: 720px;
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 19px;
    line-height: 1.8;
}

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

.hero-tags span,
.card-tags span,
.detail-tags span {
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 13px;
    font-weight: 800;
}

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

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.primary-btn,
.ghost-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 24px;
}

.primary-btn {
    color: #ffffff;
    background: linear-gradient(90deg, var(--orange), var(--red));
    box-shadow: 0 18px 36px rgba(239, 68, 68, 0.32);
}

.ghost-btn {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(14px);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(14px);
    font-size: 36px;
    line-height: 1;
    cursor: pointer;
}

.hero-prev {
    left: 28px;
}

.hero-next {
    right: 28px;
}

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

.hero-dots button {
    width: 34px;
    height: 6px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
}

.hero-dots button.is-active {
    background: #ffffff;
}

.search-hero {
    max-width: 1280px;
    margin: -58px auto 0;
    position: relative;
    z-index: 8;
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 28px;
    align-items: center;
    padding: 30px;
    border-radius: 30px;
    color: #ffffff;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.96), rgba(239, 68, 68, 0.92), rgba(236, 72, 153, 0.92));
    box-shadow: var(--shadow);
}

.search-hero h2 {
    margin: 0 0 12px;
    font-size: clamp(26px, 4vw, 42px);
}

.search-hero p {
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.8;
}

.search-hero form {
    display: flex;
    gap: 12px;
}

.search-hero input {
    flex: 1;
    width: auto;
}

.search-hero button {
    color: var(--orange);
    background: #ffffff;
    padding: 0 22px;
}

.section-block {
    max-width: 1280px;
    margin: 52px auto;
    padding: 0 24px;
}

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

.section-head h2 {
    margin: 12px 0 0;
    font-size: clamp(28px, 4vw, 44px);
    letter-spacing: -0.04em;
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: 24px;
    background: var(--card);
    box-shadow: 0 12px 36px rgba(15, 23, 42, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, #111827, #334155);
}

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

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

.poster-link::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 46%;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.82), transparent);
}

.poster-badge,
.rank-num {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    color: #ffffff;
    font-weight: 900;
}

.poster-badge {
    right: 12px;
    top: 12px;
    padding: 6px 10px;
    background: rgba(15, 23, 42, 0.62);
    backdrop-filter: blur(12px);
}

.rank-num {
    left: 12px;
    top: 12px;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--orange), var(--red));
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.28);
}

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

.card-tags span,
.detail-tags span {
    color: var(--deep-orange);
    background: #fff7ed;
}

.movie-card h3 {
    margin: 12px 0 8px;
    font-size: 19px;
    line-height: 1.35;
}

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

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 700;
}

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

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

.category-tile,
.category-card a {
    display: block;
    min-height: 150px;
    padding: 24px;
    border-radius: 26px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--slate), #334155);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.category-tile span,
.category-card h2 {
    display: block;
    margin: 0 0 10px;
    color: #fed7aa;
    font-size: 24px;
    font-style: normal;
    font-weight: 900;
}

.category-tile em,
.category-card p {
    color: rgba(255, 255, 255, 0.75);
    font-style: normal;
    line-height: 1.7;
}

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

.category-cover-row img {
    aspect-ratio: 2 / 3;
    border-radius: 16px;
    object-fit: cover;
}

.page-main,
.detail-main {
    max-width: 1280px;
    margin: 0 auto;
    padding: 34px 24px 60px;
}

.page-hero {
    position: relative;
    overflow: hidden;
    border-radius: 34px;
    color: #ffffff;
    background:
        radial-gradient(circle at top left, rgba(249, 115, 22, 0.55), transparent 35%),
        linear-gradient(135deg, var(--slate), #312e81 55%, #831843);
    box-shadow: var(--shadow);
}

.small-hero {
    min-height: 280px;
    display: flex;
    align-items: center;
    padding: 42px;
}

.small-hero h1 {
    margin: 16px 0 12px;
    font-size: clamp(34px, 6vw, 64px);
    line-height: 1;
    letter-spacing: -0.06em;
}

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

.filter-panel {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 26px;
    padding: 22px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 12px 36px rgba(15, 23, 42, 0.08);
}

.filter-panel label {
    display: grid;
    gap: 8px;
    flex: 1;
    color: var(--slate-soft);
    font-weight: 900;
}

.filter-panel input {
    width: 100%;
    color: var(--text);
    background: #f1f5f9;
    box-shadow: inset 0 0 0 1px #e2e8f0;
}

.filter-panel input::placeholder {
    color: #94a3b8;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-panel button {
    padding: 10px 14px;
    color: var(--deep-orange);
    background: #fff7ed;
}

.detail-main {
    padding-top: 28px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 8px 0 22px;
    color: var(--muted);
    font-weight: 700;
}

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

.detail-layout {
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 34px;
    align-items: stretch;
}

.detail-poster,
.detail-info,
.player-section,
.detail-text {
    border-radius: 30px;
    background: #ffffff;
    box-shadow: 0 12px 36px rgba(15, 23, 42, 0.08);
}

.detail-poster {
    overflow: hidden;
}

.detail-poster img {
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.poster-info {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 16px;
    color: var(--deep-orange);
    font-weight: 900;
}

.detail-info {
    padding: 34px;
}

.detail-info h1 {
    margin: 18px 0 16px;
    font-size: clamp(36px, 6vw, 70px);
    line-height: 1.05;
    letter-spacing: -0.06em;
}

.lead-text {
    color: var(--slate-soft);
    font-size: 19px;
    line-height: 1.8;
}

.detail-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin: 26px 0 0;
}

.detail-meta div {
    padding: 14px;
    border-radius: 18px;
    background: #f8fafc;
}

.detail-meta dt {
    margin-bottom: 6px;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 900;
}

.detail-meta dd {
    margin: 0;
    color: var(--slate);
    font-weight: 900;
}

.player-section {
    margin-top: 34px;
    padding: 18px;
    background: #020617;
}

.player-box {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #000000;
    aspect-ratio: 16 / 9;
}

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

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.26), rgba(0, 0, 0, 0.38));
    cursor: pointer;
}

.play-overlay.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.play-icon {
    width: 86px;
    height: 86px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 6px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--orange), var(--red));
    box-shadow: 0 20px 40px rgba(239, 68, 68, 0.32);
    font-size: 36px;
}

.detail-text {
    padding: 30px;
}

.detail-text h2 {
    margin: 0 0 14px;
    font-size: 30px;
}

.detail-text h2:not(:first-child) {
    margin-top: 28px;
}

.detail-text p {
    margin: 0;
    color: var(--slate-soft);
    font-size: 17px;
    line-height: 1.9;
}

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

.site-footer {
    color: #ffffff;
    background: linear-gradient(180deg, #1e293b, #0f172a);
    margin-top: 70px;
}

.footer-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 34px;
    padding: 48px 24px;
}

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

.site-footer p {
    margin: 0;
    color: rgba(255, 255, 255, 0.74);
    line-height: 1.8;
}

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

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

.footer-bottom {
    padding: 18px 24px;
    text-align: center;
    color: rgba(255, 255, 255, 0.62);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.is-filter-hidden {
    display: none !important;
}

.compact-card {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 18px;
    background: #ffffff;
}

.compact-card img {
    aspect-ratio: 2 / 3;
    border-radius: 12px;
    object-fit: cover;
}

.compact-card strong,
.compact-card em {
    display: block;
}

.compact-card em {
    margin-top: 6px;
    color: var(--muted);
    font-size: 13px;
    font-style: normal;
}

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

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

    .detail-layout {
        grid-template-columns: 280px minmax(0, 1fr);
    }

    .top-search {
        display: none;
    }
}

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

    .menu-toggle {
        display: block;
    }

    .hero-carousel,
    .hero-content {
        min-height: 620px;
    }

    .hero-content {
        padding: 104px 22px 120px;
    }

    .hero-arrow {
        display: none;
    }

    .search-hero,
    .filter-panel,
    .detail-layout,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .search-hero {
        margin: -42px 18px 0;
    }

    .search-hero form,
    .filter-panel {
        flex-direction: column;
        align-items: stretch;
    }

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

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

    .detail-meta {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 520px) {
    .nav-shell {
        min-height: 64px;
        padding: 0 16px;
    }

    .logo {
        font-size: 19px;
    }

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

    .hero-content p {
        font-size: 16px;
    }

    .section-block,
    .page-main,
    .detail-main {
        padding-left: 16px;
        padding-right: 16px;
    }

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

    .small-hero {
        padding: 28px;
        border-radius: 24px;
    }

    .detail-info,
    .detail-text {
        padding: 24px;
    }

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