:root {
    --bg-page: #f8fafc;
    --bg-card: #ffffff;
    --text-main: #111827;
    --text-muted: #64748b;
    --text-soft: #94a3b8;
    --line-soft: #e2e8f0;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --red-700: #b91c1c;
    --red-600: #dc2626;
    --red-500: #ef4444;
    --red-100: #fee2e2;
    --orange-500: #f97316;
    --shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
    --shadow-soft: 0 10px 32px rgba(15, 23, 42, 0.08);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

img,
video {
    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: linear-gradient(90deg, var(--slate-900), var(--slate-800), var(--slate-900));
    color: #fff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.35);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.brand-mark {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--red-600);
    color: #fff;
    box-shadow: 0 12px 30px rgba(220, 38, 38, 0.35);
}

.brand-text {
    font-size: 20px;
    background: linear-gradient(90deg, #f87171, #fb923c);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.nav-link {
    color: #cbd5e1;
    padding: 9px 15px;
    border-radius: 10px;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: #fff;
    background: var(--red-600);
}

.nav-link:hover {
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    background: #fff;
    border-radius: 10px;
}

.hero-slider {
    position: relative;
    overflow: hidden;
    min-height: 660px;
    color: #fff;
    background: radial-gradient(circle at 10% 10%, rgba(239, 68, 68, 0.35), transparent 30%), linear-gradient(135deg, #0f172a 0%, #7f1d1d 55%, #0f172a 100%);
}

.hero-slide {
    display: none;
    position: relative;
    min-height: 660px;
}

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

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.68), rgba(15, 23, 42, 0.92)), var(--hero-image);
    background-size: cover;
    background-position: center;
    filter: saturate(0.9);
    transform: scale(1.04);
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 75% 20%, rgba(248, 113, 113, 0.28), transparent 24%), radial-gradient(circle at 28% 80%, rgba(249, 115, 22, 0.18), transparent 22%);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    min-height: 660px;
    margin: 0 auto;
    padding: 92px 0 86px;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.75fr);
    gap: 52px;
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    color: #fecaca;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    font-size: 14px;
}

.hero-copy h1,
.page-hero h1 {
    margin: 18px 0 18px;
    font-size: clamp(38px, 6vw, 68px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero-copy h1 span,
.page-hero h1 span {
    color: #f87171;
}

.hero-copy p {
    max-width: 720px;
    margin: 0 0 24px;
    font-size: 18px;
    color: #cbd5e1;
}

.hero-actions,
.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 26px 0;
}

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

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

.btn-primary {
    background: var(--red-600);
    color: #fff;
    box-shadow: 0 14px 34px rgba(220, 38, 38, 0.35);
}

.btn-primary:hover {
    background: var(--red-700);
}

.btn-ghost {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(12px);
}

.btn-light {
    background: #fff;
    color: var(--red-600);
}

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

.hero-tags span,
.tag-row span,
.detail-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 12px;
    color: #b91c1c;
    background: #fee2e2;
}

.hero-tags span {
    color: #fecaca;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-panel {
    position: relative;
}

.hero-glow {
    position: absolute;
    inset: 8% 4%;
    background: rgba(239, 68, 68, 0.28);
    filter: blur(42px);
    border-radius: 36px;
}

.hero-card {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.hero-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 22px;
}

.hero-card-info {
    display: grid;
    gap: 12px;
    padding: 18px 4px 4px;
}

.hero-card-info strong {
    font-size: 20px;
}

.hero-card-info p {
    margin: 0;
    color: #cbd5e1;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.stat-box {
    padding: 15px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.10);
}

.stat-box strong {
    display: block;
    font-size: 24px;
    color: #f87171;
}

.stat-box span {
    color: #cbd5e1;
    font-size: 13px;
}

.hero-controls {
    position: absolute;
    z-index: 4;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
}

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

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

.section {
    padding: 68px 0;
}

.section-white {
    background: #fff;
}

.section-red {
    color: #fff;
    background: linear-gradient(135deg, var(--red-600), var(--orange-500));
}

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

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

.section-head h2,
.content-block h2,
.player-section h2 {
    margin: 0 0 8px;
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.15;
}

.section-head p,
.page-hero p,
.content-block p {
    margin: 0;
    color: var(--text-muted);
}

.section-red .section-head p {
    color: #fee2e2;
}

.text-link {
    color: var(--red-600);
    font-weight: 800;
}

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

.feature-box {
    padding: 24px;
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-box:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.feature-icon {
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--red-600);
    background: var(--red-100);
    font-size: 24px;
}

.feature-box h3 {
    margin: 16px 0 8px;
}

.feature-box p {
    margin: 0;
    color: var(--text-muted);
}

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

.category-tile {
    position: relative;
    min-height: 230px;
    overflow: hidden;
    display: flex;
    align-items: end;
    border-radius: 24px;
    color: #fff;
    background: var(--slate-900);
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-image {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(0deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.30)), var(--category-image);
    background-position: center;
    background-size: cover;
    transition: transform 0.3s ease;
}

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

.category-info {
    position: relative;
    z-index: 1;
    padding: 22px;
}

.category-info strong,
.category-info em,
.category-info small {
    display: block;
}

.category-info strong {
    margin-bottom: 8px;
    font-size: 22px;
}

.category-info em {
    color: #e2e8f0;
    font-style: normal;
    font-size: 14px;
}

.category-info small {
    margin-top: 12px;
    color: #fecaca;
}

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

.movie-card {
    min-width: 0;
}

.movie-card a {
    display: block;
    height: 100%;
    overflow: hidden;
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.poster-box {
    position: relative;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    background: linear-gradient(135deg, #1e293b, #7f1d1d);
}

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

.movie-card a:hover img {
    transform: scale(1.06);
    opacity: 0.86;
}

.score-badge,
.rank-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 3px 8px;
    border-radius: 999px;
    color: #fff;
    background: var(--red-600);
    font-size: 12px;
    font-weight: 800;
}

.rank-badge {
    left: 10px;
    right: auto;
    background: rgba(15, 23, 42, 0.86);
}

.play-hover {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 34px;
    background: rgba(0, 0, 0, 0.38);
    opacity: 0;
    transition: opacity 0.2s ease;
}

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

.card-body {
    padding: 14px;
}

.card-body h3 {
    margin: 0 0 6px;
    font-size: 15px;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-meta,
.card-desc {
    margin: 0 0 9px;
    color: var(--text-muted);
    font-size: 12px;
}

.card-desc {
    display: -webkit-box;
    min-height: 38px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.section-red .movie-card a {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(14px);
}

.section-red .card-meta,
.section-red .card-desc {
    color: #fee2e2;
}

.section-red .tag-row span {
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
}

.page-hero {
    color: #fff;
    background: radial-gradient(circle at 80% 20%, rgba(239, 68, 68, 0.34), transparent 28%), linear-gradient(135deg, #0f172a, #7f1d1d 55%, #0f172a);
}

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

.page-hero p {
    max-width: 760px;
    color: #cbd5e1;
    font-size: 18px;
}

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

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

.filter-panel {
    margin-bottom: 26px;
    padding: 18px;
    display: grid;
    grid-template-columns: minmax(240px, 1fr) repeat(3, minmax(130px, 0.25fr));
    gap: 14px;
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--line-soft);
    border-radius: 12px;
    padding: 0 13px;
    outline: none;
    color: var(--text-main);
    background: #fff;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--red-500);
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12);
}

.no-results {
    display: none;
    margin: 24px 0 0;
    padding: 24px;
    text-align: center;
    border-radius: 18px;
    color: var(--text-muted);
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.detail-hero {
    color: #fff;
    background: radial-gradient(circle at 85% 12%, rgba(239, 68, 68, 0.30), transparent 28%), linear-gradient(135deg, #0f172a, #7f1d1d 58%, #0f172a);
}

.detail-hero-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 68px 0;
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 38px;
    align-items: center;
}

.detail-poster {
    overflow: hidden;
    border-radius: 24px;
    box-shadow: var(--shadow);
    background: rgba(255, 255, 255, 0.08);
}

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

.detail-copy h1 {
    margin: 14px 0 14px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.08;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: #cbd5e1;
}

.detail-copy p {
    max-width: 850px;
    color: #dbeafe;
    font-size: 17px;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.main-layout {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 58px 0 70px;
}

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

.player-box video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #020617;
}

.player-cover {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: rgba(2, 6, 23, 0.46);
    z-index: 3;
}

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

.player-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.52;
    filter: blur(1px);
}

.player-cover button {
    position: relative;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 58px;
    padding: 0 28px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: var(--red-600);
    box-shadow: 0 18px 45px rgba(220, 38, 38, 0.38);
    cursor: pointer;
    font-weight: 800;
}

.player-cover button span {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--red-600);
    background: #fff;
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
    margin-top: 34px;
}

.content-block,
.side-panel {
    border-radius: 24px;
    padding: 28px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.content-block + .content-block {
    margin-top: 24px;
}

.side-panel h2 {
    margin: 0 0 18px;
    font-size: 22px;
}

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

.mini-item {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.mini-item img {
    width: 72px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 12px;
}

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

.mini-item span {
    color: var(--text-muted);
    font-size: 12px;
}

.related-section {
    margin-top: 42px;
}

.site-footer {
    color: #cbd5e1;
    background: var(--slate-900);
}

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

.footer-logo .brand-text {
    color: #fff;
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
}

.footer-brand p {
    max-width: 460px;
    margin: 18px 0 0;
    color: #94a3b8;
}

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

.footer-links a {
    display: block;
    margin: 8px 0;
    color: #94a3b8;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #f87171;
}

.footer-bottom {
    padding: 18px 16px;
    text-align: center;
    color: #94a3b8;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
}

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

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

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

    .nav-menu {
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 12px 16px 18px;
        background: var(--slate-900);
        box-shadow: 0 20px 32px rgba(15, 23, 42, 0.34);
    }

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

    .nav-link {
        width: 100%;
    }

    .hero-inner,
    .detail-hero-inner,
    .content-grid,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .hero-panel {
        max-width: 480px;
    }

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

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

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

@media (max-width: 580px) {
    .nav-wrap,
    .container,
    .main-layout,
    .detail-hero-inner,
    .footer-inner,
    .hero-inner {
        width: min(100% - 24px, 1180px);
    }

    .hero-slider,
    .hero-slide,
    .hero-inner {
        min-height: 760px;
    }

    .hero-inner {
        padding-top: 56px;
        gap: 28px;
    }

    .hero-copy h1,
    .page-hero h1,
    .detail-copy h1 {
        font-size: 34px;
    }

    .section {
        padding: 46px 0;
    }

    .section-head {
        align-items: flex-start;
        flex-direction: column;
    }

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

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

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

    .card-body {
        padding: 12px;
    }

    .content-block,
    .side-panel {
        padding: 20px;
    }
}
