:root {
    --brand-red: #dc2626;
    --brand-red-dark: #991b1b;
    --brand-yellow: #eab308;
    --ink: #111827;
    --muted: #6b7280;
    --soft: #f8fafc;
    --line: #e5e7eb;
    --card: #ffffff;
    --shadow: 0 14px 35px rgba(15, 23, 42, 0.12);
    --shadow-hover: 0 20px 45px rgba(15, 23, 42, 0.18);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

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

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

img,
video {
    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: 90;
    border-bottom: 1px solid rgba(254, 202, 202, 0.75);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

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

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

.logo-mark {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, var(--brand-red), var(--brand-red-dark));
    box-shadow: 0 12px 24px rgba(220, 38, 38, 0.22);
    position: relative;
}

.logo-mark::after {
    content: "";
    position: absolute;
    width: 9px;
    height: 9px;
    right: -2px;
    top: -2px;
    border-radius: 999px;
    background: var(--brand-yellow);
    animation: pulse 1.9s infinite;
}

.logo-text {
    font-size: 20px;
    background: linear-gradient(90deg, var(--brand-red), var(--brand-red-dark));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.main-nav a {
    transition: color 0.2s ease;
}

.main-nav a:hover {
    color: var(--brand-red);
}

.header-search {
    width: min(320px, 32vw);
    position: relative;
}

.header-search input {
    width: 100%;
    border: 1px solid #d1d5db;
    outline: none;
    border-radius: 999px;
    padding: 11px 46px 11px 18px;
    background: #fff;
    color: var(--ink);
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

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

.header-search button {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    color: var(--brand-red);
    background: #fee2e2;
}

.mobile-toggle {
    display: none;
    border: 0;
    border-radius: 12px;
    padding: 10px 12px;
    background: #fee2e2;
    color: var(--brand-red);
    font-weight: 800;
}

.mobile-panel {
    display: none;
    padding: 0 0 16px;
}

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

.mobile-panel .main-nav {
    display: grid;
    gap: 12px;
    padding: 14px 0;
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: 620px;
    color: #fff;
    background:
        radial-gradient(circle at 82% 18%, rgba(220, 38, 38, 0.38), transparent 28%),
        radial-gradient(circle at 12% 78%, rgba(234, 179, 8, 0.24), transparent 34%),
        linear-gradient(135deg, #111827 0%, #1f2937 42%, #111827 100%);
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    filter: blur(70px);
    opacity: 0.55;
    pointer-events: none;
}

.hero::before {
    width: 360px;
    height: 360px;
    right: 9%;
    top: 10%;
    background: rgba(220, 38, 38, 0.38);
}

.hero::after {
    width: 460px;
    height: 460px;
    left: 3%;
    bottom: -8%;
    background: rgba(234, 179, 8, 0.2);
}

.hero-slide {
    display: none;
    min-height: 620px;
    align-items: center;
    position: relative;
    z-index: 2;
}

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

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 420px);
    gap: 48px;
    align-items: center;
    padding: 74px 0;
}

.hero-copy {
    display: grid;
    gap: 22px;
}

.hero-kicker {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 15px;
    border-radius: 999px;
    color: #fff;
    background: rgba(220, 38, 38, 0.92);
    box-shadow: 0 15px 35px rgba(220, 38, 38, 0.25);
    font-weight: 750;
}

.hero h1 {
    margin: 0;
    font-size: clamp(40px, 7vw, 72px);
    line-height: 0.96;
    letter-spacing: -0.05em;
}

.hero-desc {
    max-width: 720px;
    margin: 0;
    color: #d1d5db;
    font-size: 18px;
    line-height: 1.85;
}

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

.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: inherit;
    font-size: 14px;
    backdrop-filter: blur(10px);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 999px;
    padding: 13px 22px;
    font-weight: 750;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

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

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

.btn-primary:hover {
    background: var(--brand-red-dark);
    box-shadow: 0 22px 40px rgba(220, 38, 38, 0.35);
}

.btn-ghost {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-poster-wrap {
    position: relative;
}

.hero-poster {
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 28px;
    border: 5px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
    transform: rotate(1deg);
}

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

.hero-card-float {
    position: absolute;
    left: -26px;
    bottom: 34px;
    max-width: 260px;
    border-radius: 22px;
    padding: 16px;
    color: #fff;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(14px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.28);
}

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

.hero-dot {
    width: 34px;
    height: 8px;
    border-radius: 999px;
    border: 0;
    background: rgba(255, 255, 255, 0.28);
}

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

.page-hero {
    padding: 64px 0 54px;
    color: #fff;
    background:
        radial-gradient(circle at 74% 8%, rgba(220, 38, 38, 0.34), transparent 28%),
        linear-gradient(135deg, #111827 0%, #1f2937 60%, #111827 100%);
}

.page-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(34px, 5vw, 56px);
    letter-spacing: -0.04em;
}

.page-hero p {
    max-width: 780px;
    margin: 0;
    color: #d1d5db;
    line-height: 1.8;
    font-size: 17px;
}

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

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

.section {
    padding: 54px 0;
}

.section.compact {
    padding: 32px 0;
}

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

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title span {
    width: 5px;
    height: 34px;
    border-radius: 999px;
    background: var(--brand-red);
}

.section-title h2 {
    margin: 0;
    font-size: clamp(24px, 3vw, 34px);
    letter-spacing: -0.02em;
}

.section-sub {
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.7;
}

.more-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--brand-red);
    font-weight: 750;
}

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

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

.movie-card {
    display: block;
    overflow: hidden;
    border-radius: 18px;
    background: var(--card);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.10);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster {
    position: relative;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    background: #111827;
}

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

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

.poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 38%, rgba(0, 0, 0, 0.86));
}

.badge,
.year-badge,
.heat-badge {
    position: absolute;
    z-index: 2;
    border-radius: 8px;
    padding: 5px 8px;
    font-size: 12px;
    font-weight: 750;
}

.badge {
    top: 10px;
    left: 10px;
    color: #fff;
    background: var(--brand-red);
}

.year-badge {
    top: 10px;
    right: 10px;
    color: #111827;
    background: var(--brand-yellow);
}

.heat-badge {
    right: 10px;
    bottom: 10px;
    color: #111827;
    background: #facc15;
}

.play-hover {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    opacity: 0;
    transition: opacity 0.25s ease;
}

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

.play-hover span {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #fff;
    background: var(--brand-red);
    box-shadow: 0 12px 30px rgba(220, 38, 38, 0.35);
}

.poster-title {
    position: absolute;
    z-index: 3;
    left: 12px;
    right: 12px;
    bottom: 14px;
    color: #fff;
}

.poster-title strong {
    display: -webkit-box;
    margin-bottom: 4px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-height: 1.35;
}

.poster-title small {
    display: -webkit-box;
    color: #d1d5db;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
}

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

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

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

.category-card {
    min-height: 168px;
    display: grid;
    align-content: space-between;
    border-radius: 22px;
    padding: 22px;
    background: #fff;
    box-shadow: var(--shadow);
    border: 1px solid #fee2e2;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-card h3 {
    margin: 0 0 10px;
    font-size: 22px;
}

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

.filter-bar {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 180px 180px;
    gap: 14px;
    padding: 18px;
    margin: 26px 0 30px;
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--shadow);
}

.filter-bar input,
.filter-bar select {
    width: 100%;
    outline: none;
    border: 1px solid #d1d5db;
    border-radius: 14px;
    padding: 12px 14px;
    background: #fff;
    color: var(--ink);
}

.filter-empty {
    display: none;
    padding: 34px;
    border-radius: 22px;
    text-align: center;
    color: var(--muted);
    background: #fff;
    box-shadow: var(--shadow);
}

.filter-empty.is-visible {
    display: block;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 68px 82px minmax(0, 1fr) 120px;
    gap: 18px;
    align-items: center;
    padding: 14px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 9px 22px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.rank-num {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(135deg, var(--brand-red), var(--brand-red-dark));
    font-weight: 850;
}

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

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

.rank-main h3 {
    margin: 0 0 8px;
    font-size: 18px;
}

.rank-main p {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: var(--muted);
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.rank-meta {
    text-align: right;
    color: var(--brand-red);
    font-weight: 800;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 2.05fr) minmax(300px, 0.95fr);
    gap: 30px;
    padding: 42px 0 64px;
}

.panel {
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.panel-pad {
    padding: 26px;
}

.player-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 22px 22px 0 0;
    background: #000;
}

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

.player-button {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: grid;
    place-items: center;
    gap: 12px;
    border: 0;
    color: #fff;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.70));
}

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

.player-button span {
    width: 84px;
    height: 84px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: var(--brand-red);
    box-shadow: 0 20px 45px rgba(220, 38, 38, 0.35);
    font-size: 30px;
}

.player-button strong {
    font-size: 18px;
}

.detail-title {
    margin: 14px 0 12px;
    font-size: clamp(28px, 4vw, 42px);
    letter-spacing: -0.03em;
}

.detail-desc {
    color: #4b5563;
    font-size: 17px;
    line-height: 1.85;
}

.meta-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0;
}

.meta-list span {
    border-radius: 999px;
    padding: 8px 12px;
    color: var(--brand-red-dark);
    background: #fee2e2;
    font-size: 14px;
    font-weight: 700;
}

.article-block {
    border-top: 1px solid var(--line);
    padding-top: 22px;
    margin-top: 24px;
}

.article-block h2 {
    margin: 0 0 12px;
    font-size: 22px;
}

.article-block p {
    margin: 0;
    color: #374151;
    line-height: 1.9;
}

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

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

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

.side-link {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.side-link img {
    width: 62px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 10px;
    background: #111827;
}

.side-link strong {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.side-link small {
    color: var(--muted);
}

.site-footer {
    color: #d1d5db;
    background: linear-gradient(135deg, #111827 0%, #0f172a 55%, #111827 100%);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: 28px;
    padding: 46px 0;
}

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

.site-footer p,
.site-footer li {
    color: #9ca3af;
    line-height: 1.8;
}

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

.footer-bottom {
    padding: 18px 0 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #9ca3af;
    font-size: 14px;
}

@keyframes pulse {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.62;
        transform: scale(1.16);
    }
}

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

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

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

@media (max-width: 820px) {
    .main-nav,
    .header-inner > .header-search {
        display: none;
    }

    .mobile-toggle {
        display: inline-flex;
    }

    .header-inner {
        height: 64px;
    }

    .hero,
    .hero-slide {
        min-height: auto;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 50px 0 82px;
    }

    .hero-poster-wrap {
        max-width: 340px;
        margin: 0 auto;
    }

    .hero-card-float {
        left: 16px;
        right: 16px;
        bottom: 18px;
        max-width: none;
    }

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

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

    .rank-item {
        grid-template-columns: 48px 70px minmax(0, 1fr);
    }

    .rank-meta {
        grid-column: 3;
        text-align: left;
    }

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

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

    .hero h1 {
        font-size: 38px;
    }

    .hero-desc {
        font-size: 16px;
    }

    .section {
        padding: 38px 0;
    }

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

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

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

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

    .rank-item {
        grid-template-columns: 44px 62px minmax(0, 1fr);
        gap: 12px;
    }

    .rank-num {
        width: 40px;
        height: 40px;
        border-radius: 12px;
    }

    .panel-pad {
        padding: 20px;
    }
}
