:root {
    --red: #dc2626;
    --red-dark: #b91c1c;
    --orange: #f97316;
    --slate: #0f172a;
    --slate-soft: #1e293b;
    --ink: #1f2937;
    --muted: #64748b;
    --line: #e5e7eb;
    --soft: #fff7ed;
    --white: #ffffff;
    --shadow: 0 24px 60px rgba(15, 23, 42, 0.14);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: linear-gradient(180deg, #fff 0%, #fff7ed 36%, #f8fafc 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.1);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand-icon,
.footer-brand span {
    width: 44px;
    height: 44px;
    display: inline-grid;
    place-items: center;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, var(--red), var(--orange));
    box-shadow: 0 14px 30px rgba(220, 38, 38, 0.28);
    transition: transform 0.3s ease;
}

.brand:hover .brand-icon {
    transform: scale(1.08) rotate(-3deg);
}

.brand-copy {
    display: grid;
    line-height: 1.15;
}

.brand-name {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.04em;
    background: linear-gradient(90deg, var(--red), var(--orange));
    -webkit-background-clip: text;
    color: transparent;
}

.brand-subtitle {
    margin-top: 5px;
    color: var(--muted);
    font-size: 12px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    color: #334155;
    font-weight: 700;
}

.main-nav a,
.mobile-panel a,
.footer-links a {
    transition: color 0.25s ease, transform 0.25s ease;
}

.main-nav a:hover,
.mobile-panel a:hover,
.footer-links a:hover {
    color: var(--red);
}

.menu-toggle {
    display: none;
    border: 0;
    border-radius: 12px;
    background: #f1f5f9;
    width: 44px;
    height: 44px;
    color: var(--slate);
    cursor: pointer;
}

.mobile-panel {
    display: none;
    padding: 0 24px 20px;
    border-top: 1px solid #f1f5f9;
    background: rgba(255, 255, 255, 0.98);
}

.mobile-panel a {
    display: block;
    padding: 12px 0;
    color: #334155;
    font-weight: 700;
}

.hero-carousel {
    position: relative;
    height: 640px;
    overflow: hidden;
    background: var(--slate);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease;
}

.hero-slide.is-active {
    opacity: 1;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 22%, rgba(249, 115, 22, 0.34), transparent 32%),
        linear-gradient(0deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.48) 48%, rgba(0, 0, 0, 0.22));
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding-bottom: 90px;
    color: #fff;
}

.hero-kicker,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fde68a;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-content h1,
.hero-content h2 {
    max-width: 860px;
    margin: 14px 0 0;
    font-size: clamp(34px, 6vw, 72px);
    line-height: 1.02;
    font-weight: 950;
    letter-spacing: -0.06em;
}

.hero-content h2 + p,
.hero-content h1 + h2 + p {
    max-width: 680px;
    margin: 20px 0 0;
    color: #e5e7eb;
    font-size: clamp(16px, 2vw, 20px);
    line-height: 1.7;
}

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

.hero-meta span,
.detail-meta-row span {
    border-radius: 999px;
    padding: 7px 13px;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    font-weight: 700;
    backdrop-filter: blur(10px);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border-radius: 999px;
    padding: 0 28px;
    font-weight: 900;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

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

.btn-primary {
    color: #fff;
    background: var(--red);
    box-shadow: 0 16px 30px rgba(220, 38, 38, 0.32);
}

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

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

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

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

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

.hero-search-card {
    position: absolute;
    left: 50%;
    bottom: 30px;
    z-index: 5;
    transform: translateX(-50%);
    display: grid;
    gap: 16px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 28px;
    padding: 18px;
    background: rgba(15, 23, 42, 0.62);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
}

.hero-search {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}

.hero-search input,
.filter-panel input,
.filter-panel select {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 14px 16px;
    color: #111827;
    background: #fff;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.hero-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.12);
}

.hero-search button {
    border: 0;
    border-radius: 16px;
    padding: 0 24px;
    color: #fff;
    background: linear-gradient(135deg, var(--red), var(--orange));
    font-weight: 900;
    cursor: pointer;
}

.hero-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.hero-chips a {
    border-radius: 999px;
    padding: 8px 13px;
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    font-size: 13px;
    font-weight: 800;
}

.page-stack {
    display: grid;
    gap: 44px;
    padding: 48px 0 72px;
}

.content-section {
    position: relative;
}

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

.section-head h2 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 950;
    letter-spacing: -0.04em;
}

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

.section-head a {
    color: var(--red);
    font-weight: 900;
    white-space: nowrap;
}

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

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

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

.card-hover {
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.card-hover:hover {
    transform: translateY(-6px);
}

.poster-wrap {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    border-radius: 18px;
    background: linear-gradient(135deg, #111827, #7f1d1d);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
}

.poster-wrap img,
.rank-poster img,
.mini-thumb img,
.detail-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.movie-card:hover img,
.rank-card:hover img,
.mini-card:hover img,
.detail-cover:hover img {
    transform: scale(1.08);
}

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.75), transparent 58%);
    opacity: 0;
    transition: opacity 0.28s ease;
}

.movie-card:hover .poster-shade {
    opacity: 1;
}

.poster-play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: var(--red);
    background: rgba(255, 255, 255, 0.9);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.88);
    transition: opacity 0.28s ease, transform 0.28s ease;
}

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

.poster-badge {
    position: absolute;
    right: 10px;
    top: 10px;
    border-radius: 8px;
    padding: 5px 9px;
    color: #fff;
    background: var(--red);
    font-size: 12px;
    font-weight: 900;
}

.card-body {
    display: grid;
    gap: 7px;
    padding-top: 12px;
}

.card-body strong,
.rank-info strong,
.mini-info strong {
    color: var(--ink);
    font-weight: 900;
    line-height: 1.35;
    transition: color 0.25s ease;
}

.movie-card:hover .card-body strong,
.rank-card:hover .rank-info strong,
.mini-card:hover .mini-info strong {
    color: var(--red);
}

.card-body small,
.rank-info small,
.mini-info em {
    color: #64748b;
    font-style: normal;
}

.card-body em,
.rank-info em {
    display: -webkit-box;
    overflow: hidden;
    color: #64748b;
    font-size: 13px;
    font-style: normal;
    line-height: 1.55;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

.tag-row span {
    display: inline-flex;
    border-radius: 999px;
    padding: 4px 9px;
    color: #475569;
    background: #f1f5f9;
    font-size: 12px;
    font-weight: 700;
}

.soft-panel {
    border-radius: 32px;
    padding: 34px;
    background: linear-gradient(135deg, #fff1f2, #ffedd5);
}

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

.category-tile,
.category-feature {
    display: grid;
    gap: 9px;
    min-height: 150px;
    border-radius: 22px;
    padding: 24px;
    color: #fff;
    background: linear-gradient(135deg, var(--slate), #7f1d1d);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.16);
}

.category-tile:nth-child(2n),
.category-feature:nth-child(2n) {
    background: linear-gradient(135deg, #991b1b, #ea580c);
}

.category-tile:nth-child(3n),
.category-feature:nth-child(3n) {
    background: linear-gradient(135deg, #14532d, #0f766e);
}

.category-tile span,
.category-feature h2 {
    font-size: 24px;
    font-weight: 950;
}

.category-tile strong,
.category-feature p {
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
    line-height: 1.6;
}

.category-tile em,
.category-feature em {
    margin-top: auto;
    font-style: normal;
    font-weight: 900;
}

.category-mark {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.18);
}

.rank-panel,
.dark-panel {
    border-radius: 32px;
    padding: 34px;
    color: #fff;
    background: linear-gradient(135deg, var(--slate), #7f1d1d 55%, #0f172a);
    box-shadow: var(--shadow);
}

.rank-panel .section-head h2,
.rank-panel .section-head p,
.dark-panel .section-head h2,
.dark-panel .section-head p,
.dark-panel .section-head a {
    color: #fff;
}

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

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

.rank-card {
    display: grid;
    grid-template-columns: 56px 120px 1fr;
    gap: 18px;
    align-items: stretch;
    border-radius: 22px;
    padding: 14px;
    background: #fff;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12);
}

.rank-number {
    align-self: start;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(135deg, var(--red), var(--orange));
    font-weight: 950;
}

.rank-poster {
    overflow: hidden;
    aspect-ratio: 2 / 3;
    border-radius: 16px;
    background: #111827;
}

.rank-info {
    display: grid;
    align-content: center;
    gap: 8px;
}

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

.mini-card {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 14px;
    overflow: hidden;
    border-radius: 18px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    transition: background 0.25s ease, transform 0.25s ease;
}

.mini-card:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-3px);
}

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

.mini-info {
    display: grid;
    align-content: center;
    gap: 8px;
}

.dark-panel .mini-info strong,
.dark-panel .mini-info em {
    color: #fff;
}

.page-hero,
.detail-hero {
    color: #fff;
    background:
        radial-gradient(circle at 18% 18%, rgba(249, 115, 22, 0.32), transparent 30%),
        linear-gradient(135deg, #0f172a 0%, #7f1d1d 60%, #111827 100%);
}

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

.slim-hero .container {
    padding: 62px 0;
}

.page-hero h1,
.detail-copy h1 {
    margin: 12px 0 14px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.05;
    font-weight: 950;
    letter-spacing: -0.05em;
}

.page-hero p,
.detail-copy p {
    max-width: 760px;
    color: #e5e7eb;
    font-size: 18px;
    line-height: 1.75;
}

.filter-panel {
    border: 1px solid #fee2e2;
    border-radius: 26px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.filter-title {
    margin-bottom: 16px;
    color: var(--ink);
    font-size: 20px;
    font-weight: 950;
}

.filter-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 16px;
}

.filter-grid label {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-weight: 800;
}

.movie-card.is-hidden,
.rank-card.is-hidden {
    display: none;
}

.detail-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 42px;
    align-items: center;
    padding: 68px 0;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #fed7aa;
    font-weight: 800;
}

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

.detail-cover {
    overflow: hidden;
    border-radius: 24px;
    aspect-ratio: 2 / 3;
    background: #111827;
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.28);
}

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

.player-section {
    margin-top: -22px;
}

.player-box {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #000;
    box-shadow: 0 26px 70px rgba(15, 23, 42, 0.24);
}

.movie-video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

.player-start {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    border: 0;
    border-radius: 999px;
    padding: 16px 28px;
    color: #fff;
    background: rgba(220, 38, 38, 0.92);
    box-shadow: 0 18px 40px rgba(220, 38, 38, 0.38);
    transform: translate(-50%, -50%);
    cursor: pointer;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.player-start:hover {
    transform: translate(-50%, -50%) scale(1.04);
}

.player-box.is-playing .player-start {
    pointer-events: none;
    opacity: 0;
}

.player-start span {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--red);
    background: #fff;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 32px;
}

.detail-article,
.related-panel {
    border-radius: 28px;
    padding: 30px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.detail-article h2,
.related-panel h2 {
    margin: 0 0 16px;
    color: var(--ink);
    font-size: 24px;
    font-weight: 950;
}

.detail-article p {
    margin: 0 0 26px;
    color: #475569;
    font-size: 17px;
    line-height: 1.9;
    text-align: justify;
}

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

.related-panel .mini-card {
    background: #f8fafc;
}

.related-panel .mini-info strong {
    color: var(--ink);
}

.related-panel .mini-info em {
    color: var(--muted);
}

.site-footer {
    color: #fff;
    background: linear-gradient(135deg, #0f172a, #7f1d1d 58%, #111827);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 34px;
    padding: 52px 0 38px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    font-size: 22px;
    font-weight: 950;
}

.footer-brand span {
    width: 36px;
    height: 36px;
    font-size: 14px;
}

.site-footer h3 {
    margin: 0 0 14px;
    color: #fecaca;
}

.site-footer p {
    margin: 0;
    color: #cbd5e1;
    line-height: 1.8;
}

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

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

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

    .main-nav {
        gap: 14px;
        font-size: 14px;
    }
}

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

    .menu-toggle {
        display: inline-grid;
        place-items: center;
    }

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

    .hero-carousel {
        height: 720px;
    }

    .hero-content {
        padding-bottom: 210px;
    }

    .hero-dots {
        bottom: 190px;
    }

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

    .category-grid,
    .category-feature-grid,
    .home-rank,
    .mini-grid,
    .footer-grid,
    .filter-grid,
    .detail-layout,
    .detail-hero-grid {
        grid-template-columns: 1fr;
    }

    .detail-cover {
        max-width: 240px;
    }

    .rank-card {
        grid-template-columns: 46px 96px 1fr;
        gap: 12px;
    }
}

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

    .brand-name {
        font-size: 20px;
    }

    .brand-subtitle {
        display: none;
    }

    .hero-carousel {
        height: 760px;
    }

    .hero-search {
        grid-template-columns: 1fr;
    }

    .hero-search button {
        min-height: 46px;
    }

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

    .soft-panel,
    .rank-panel,
    .dark-panel,
    .detail-article,
    .related-panel {
        padding: 22px;
        border-radius: 24px;
    }

    .rank-card {
        grid-template-columns: 42px 1fr;
    }

    .rank-poster {
        display: none;
    }

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

    .player-start {
        padding: 12px 18px;
    }
}
