* {
    box-sizing: border-box;
}

:root {
    --brand: #ea580c;
    --brand-dark: #c2410c;
    --brand-soft: #fff7ed;
    --ink: #1f2937;
    --muted: #6b7280;
    --line: #e5e7eb;
    --card: #ffffff;
    --page: #f8fafc;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    --radius: 18px;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--page);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: #fff;
    background: linear-gradient(135deg, #f97316 0%, #dc2626 100%);
    box-shadow: 0 12px 26px rgba(220, 38, 38, 0.22);
}

.header-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 23px;
    font-weight: 850;
    letter-spacing: 0.02em;
}

.brand-mark {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #f97316;
    background: #fff;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.14);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    font-weight: 650;
}

.site-nav a {
    opacity: 0.94;
    transition: color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
    color: #ffedd5;
    opacity: 1;
    transform: translateY(-1px);
}

.nav-cats {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-left: 18px;
    border-left: 1px solid rgba(255, 255, 255, 0.25);
    font-size: 14px;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    cursor: pointer;
}

.hero {
    position: relative;
    min-height: 560px;
    overflow: hidden;
    color: #fff;
    background: #111827;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.65s ease, transform 0.9s ease;
}

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

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

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 25%, rgba(249, 115, 22, 0.35), transparent 34%),
        linear-gradient(90deg, rgba(17, 24, 39, 0.94) 0%, rgba(17, 24, 39, 0.72) 42%, rgba(17, 24, 39, 0.18) 100%),
        linear-gradient(0deg, rgba(17, 24, 39, 0.75), rgba(17, 24, 39, 0.05));
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 560px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: min(720px, calc(100% - 32px));
    margin: 0 auto;
    padding: 96px 0 80px;
}

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

.hero-content p {
    max-width: 680px;
    margin: 0 0 24px;
    font-size: clamp(16px, 2.2vw, 20px);
    color: rgba(255, 255, 255, 0.82);
}

.hero-kicker,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 7px 12px;
    border-radius: 999px;
    color: #fed7aa;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    font-weight: 750;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
    color: rgba(255, 255, 255, 0.82);
}

.hero-actions,
.section-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 11px 20px;
    border: 0;
    border-radius: 13px;
    font-weight: 780;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    color: #fff;
    background: var(--brand);
    box-shadow: 0 16px 34px rgba(234, 88, 12, 0.36);
}

.btn-primary:hover {
    background: var(--brand-dark);
}

.btn-ghost {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(12px);
}

.btn-light {
    color: var(--brand-dark);
    background: #fff;
}

.hero-arrow {
    position: absolute;
    z-index: 3;
    top: 50%;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    cursor: pointer;
}

.hero-arrow:hover {
    background: rgba(255, 255, 255, 0.28);
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

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

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

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

.section {
    padding: 58px 0;
}

.section-compact {
    padding: 34px 0 58px;
}

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

.section-title {
    margin: 0;
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: var(--ink);
}

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

.feature-panel {
    padding: 28px;
    border-radius: 26px;
    color: #fff;
    background: linear-gradient(135deg, #f97316 0%, #ef4444 48%, #7c2d12 100%);
    box-shadow: var(--shadow);
}

.feature-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 24px;
    align-items: center;
}

.feature-grid h2 {
    margin: 0 0 14px;
    font-size: clamp(26px, 3.5vw, 42px);
    line-height: 1.14;
    font-weight: 900;
}

.feature-grid p {
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.84);
}

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

.feature-list a {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 14px;
    align-items: center;
    padding: 10px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.12);
    transition: background 0.2s ease, transform 0.2s ease;
}

.feature-list a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(3px);
}

.feature-list img {
    width: 72px;
    height: 96px;
    border-radius: 14px;
    object-fit: cover;
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.08);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(249, 115, 22, 0.38);
    box-shadow: var(--shadow);
}

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

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

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

.score {
    position: absolute;
    top: 12px;
    right: 12px;
    min-width: 44px;
    padding: 5px 8px;
    border-radius: 999px;
    color: #fff;
    text-align: center;
    font-weight: 850;
    background: rgba(234, 88, 12, 0.92);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
}

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

.movie-card-title {
    min-height: 1.35em;
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 850;
}

.movie-card-title a:hover {
    color: var(--brand);
}

.movie-meta-line {
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 13px;
}

.movie-desc {
    min-height: 3.2em;
    margin: 0 0 12px;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.62;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.tag {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 9px;
    border-radius: 999px;
    color: #9a3412;
    background: #ffedd5;
    font-size: 12px;
    font-weight: 720;
}

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

.category-card {
    min-height: 164px;
    padding: 20px;
    border-radius: 22px;
    color: #fff;
    background: linear-gradient(135deg, #fb923c, #dc2626);
    box-shadow: 0 18px 35px rgba(234, 88, 12, 0.18);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card:nth-child(2n) {
    background: linear-gradient(135deg, #f97316, #b91c1c);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 44px rgba(234, 88, 12, 0.28);
}

.category-card h2,
.category-card h3 {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 900;
}

.category-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 14px;
}

.page-hero {
    padding: 62px 0;
    color: #fff;
    background:
        radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.18), transparent 28%),
        linear-gradient(135deg, #f97316 0%, #dc2626 55%, #7f1d1d 100%);
}

.page-hero h1 {
    max-width: 880px;
    margin: 0 0 12px;
    font-size: clamp(34px, 5vw, 54px);
    line-height: 1.12;
    font-weight: 900;
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 18px;
}

.search-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    margin-bottom: 24px;
    padding: 18px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.search-panel input {
    width: 100%;
    min-height: 48px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    outline: none;
}

.search-panel input:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.14);
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 24px;
}

.filter-pill {
    min-height: 38px;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: #4b5563;
    background: #fff;
    cursor: pointer;
}

.filter-pill.is-active,
.filter-pill:hover {
    color: #fff;
    border-color: var(--brand);
    background: var(--brand);
}

.ranking-layout {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 24px;
}

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

.mini-card {
    display: grid;
    grid-template-columns: auto 64px 1fr;
    gap: 14px;
    align-items: center;
    padding: 12px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mini-card:hover {
    transform: translateX(4px);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12);
}

.mini-card img {
    width: 64px;
    height: 88px;
    border-radius: 12px;
    object-fit: cover;
}

.mini-card strong {
    display: block;
    margin-bottom: 5px;
    font-size: 16px;
    line-height: 1.35;
}

.mini-card em {
    color: var(--muted);
    font-size: 13px;
    font-style: normal;
}

.rank-num {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #fff;
    background: var(--brand);
    font-weight: 900;
}

.detail-wrap {
    padding: 42px 0 62px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    color: var(--muted);
    font-size: 14px;
}

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

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

.detail-main,
.detail-side,
.content-box {
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
}

.detail-main {
    overflow: hidden;
}

.player-box {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #050505;
}

.player-box video {
    width: 100%;
    height: 100%;
    display: block;
    background: #000;
    cursor: pointer;
}

.player-layer {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(17, 24, 39, 0.48);
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-layer.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.play-button {
    width: 88px;
    height: 88px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: rgba(234, 88, 12, 0.96);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.36);
    font-size: 34px;
    cursor: pointer;
}

.detail-content {
    padding: 26px;
}

.detail-content h1 {
    margin: 0 0 12px;
    font-size: clamp(28px, 3.4vw, 42px);
    line-height: 1.18;
    font-weight: 900;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
    color: var(--muted);
}

.detail-content h2,
.detail-side h2,
.content-box h2 {
    margin: 0 0 14px;
    font-size: 22px;
    font-weight: 900;
}

.detail-content p {
    color: #374151;
}

.detail-cover {
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 20px;
    object-fit: cover;
}

.detail-side {
    padding: 20px;
}

.side-list {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.content-box {
    padding: 22px;
    margin-top: 24px;
}

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

.no-result {
    display: none;
    padding: 22px;
    border-radius: 18px;
    color: var(--muted);
    text-align: center;
    background: #fff;
}

.no-result.is-visible {
    display: block;
}

.site-footer {
    color: #d1d5db;
    background: #111827;
}

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

.footer-brand {
    color: #fff;
    margin-bottom: 12px;
}

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

.site-footer p {
    max-width: 420px;
    margin: 0;
}

.site-footer ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer a:hover {
    color: #fb923c;
}

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

[hidden] {
    display: none !important;
}

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

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

    .detail-side {
        order: -1;
    }
}

@media (max-width: 760px) {
    .container {
        width: min(100% - 24px, 1180px);
    }

    .header-inner {
        min-height: 64px;
    }

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .site-nav {
        position: absolute;
        left: 12px;
        right: 12px;
        top: 64px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 14px;
        border-radius: 18px;
        background: rgba(194, 65, 12, 0.96);
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
    }

    .site-nav.is-open {
        display: flex;
    }

    .nav-cats {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding-left: 0;
        padding-top: 8px;
        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.22);
    }

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

    .hero-content {
        padding-top: 76px;
        padding-bottom: 72px;
    }

    .hero-arrow {
        display: none;
    }

    .section {
        padding: 42px 0;
    }

    .section-head,
    .search-panel {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: flex-start;
    }

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

    .movie-card-body {
        padding: 13px;
    }

    .movie-card-title {
        font-size: 16px;
    }

    .movie-desc {
        min-height: auto;
    }

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

@media (max-width: 460px) {
    .movie-grid,
    .category-grid,
    .related-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions,
    .section-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .mini-card {
        grid-template-columns: auto 58px 1fr;
    }
}
