:root {
    --red-900: #7f1d1d;
    --red-800: #991b1b;
    --red-700: #b91c1c;
    --red-600: #dc2626;
    --yellow-400: #facc15;
    --yellow-300: #fde047;
    --gray-950: #111827;
    --gray-900: #1f2937;
    --gray-700: #374151;
    --gray-600: #4b5563;
    --gray-500: #6b7280;
    --gray-200: #e5e7eb;
    --gray-100: #f3f4f6;
    --white: #ffffff;
    --shadow-soft: 0 16px 40px rgba(15, 23, 42, 0.12);
    --shadow-strong: 0 28px 70px rgba(127, 29, 29, 0.28);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 12px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, var(--red-600), var(--red-800));
    color: var(--white);
    box-shadow: 0 12px 30px rgba(127, 29, 29, 0.22);
}

.header-inner {
    max-width: 1280px;
    height: 68px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

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

.logo-mark {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    color: var(--red-800);
    background: var(--yellow-400);
    box-shadow: 0 8px 22px rgba(250, 204, 21, 0.38);
    font-size: 15px;
}

.main-nav,
.mobile-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.nav-link:hover,
.nav-link.active {
    color: var(--yellow-300);
    background: rgba(255, 255, 255, 0.12);
}

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

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 5px auto;
    background: var(--white);
    border-radius: 999px;
}

.mobile-nav {
    display: none;
    flex-wrap: wrap;
    padding: 12px 24px 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.hero {
    position: relative;
    min-height: 560px;
    overflow: hidden;
    color: var(--white);
    background:
        radial-gradient(circle at 18% 20%, rgba(250, 204, 21, 0.32), transparent 30%),
        radial-gradient(circle at 86% 8%, rgba(255, 255, 255, 0.18), transparent 28%),
        linear-gradient(135deg, #450a0a 0%, var(--red-800) 42%, #111827 100%);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.44), rgba(0, 0, 0, 0.08)),
        linear-gradient(0deg, rgba(0, 0, 0, 0.18), transparent 42%);
}

.hero-inner {
    position: relative;
    max-width: 1280px;
    min-height: 560px;
    margin: 0 auto;
    padding: 72px 24px 86px;
}

.hero-slide {
    display: none;
    grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.62fr);
    align-items: center;
    gap: 54px;
    min-height: 410px;
    animation: fadeUp 0.5s ease both;
}

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

.eyebrow {
    margin: 0 0 12px;
    color: var(--yellow-300);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

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

.hero-desc,
.page-hero p {
    max-width: 720px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(17px, 2vw, 22px);
}

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

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

.hero-tags span,
.detail-tags span,
.card-tags span {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: inherit;
    font-size: 12px;
    font-weight: 700;
}

.hero-tags span,
.detail-tags span {
    padding: 7px 12px;
}

.card-tags span {
    padding: 4px 8px;
    color: var(--red-700);
    background: #fee2e2;
}

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

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

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

.btn-primary {
    color: #321300;
    background: linear-gradient(135deg, var(--yellow-300), var(--yellow-400));
    box-shadow: 0 14px 30px rgba(250, 204, 21, 0.3);
}

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

.btn-link {
    color: var(--yellow-300);
    padding-left: 8px;
    padding-right: 8px;
}

.hero-poster {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-strong);
    transform: rotate(1.5deg);
}

.hero-poster::before {
    content: "";
    position: absolute;
    inset: 16px -16px -16px 16px;
    z-index: -1;
    border-radius: inherit;
    background: rgba(250, 204, 21, 0.22);
    filter: blur(24px);
}

.hero-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.hero-poster:hover img {
    transform: scale(1.05);
}

.hero-play,
.play-icon {
    position: absolute;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--white);
    background: rgba(220, 38, 38, 0.86);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
}

.hero-play {
    left: 24px;
    bottom: 24px;
    width: 58px;
    height: 58px;
    font-size: 22px;
}

.hero-dots {
    position: absolute;
    left: 24px;
    bottom: 38px;
    display: flex;
    gap: 10px;
}

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

.hero-dot.is-active {
    background: var(--yellow-400);
}

.feature-strip {
    max-width: 1180px;
    margin: -38px auto 0;
    padding: 0 24px;
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.feature-item {
    padding: 24px;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.feature-item strong {
    display: block;
    color: var(--red-700);
    font-size: 24px;
    line-height: 1.1;
}

.feature-item span {
    display: block;
    margin-top: 8px;
    color: var(--gray-600);
}

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

.section-heading {
    margin-bottom: 28px;
}

.section-heading.center {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-heading h2,
.hot-copy h2,
.detail-text h2 {
    margin: 0;
    color: var(--gray-950);
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.16;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.section-heading p,
.hot-copy p,
.detail-text p,
.category-info p {
    color: var(--gray-600);
}

.filter-panel {
    margin: 0 0 28px;
    padding: 18px;
    display: grid;
    grid-template-columns: minmax(240px, 1fr) 190px 190px;
    gap: 14px;
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.filter-field label {
    display: block;
    margin-bottom: 7px;
    color: var(--gray-600);
    font-size: 13px;
    font-weight: 800;
}

.filter-field input,
.filter-field select {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    color: var(--gray-900);
    background: #fff;
    outline: none;
}

.filter-field input:focus,
.filter-field select:focus {
    border-color: var(--red-600);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

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

.movie-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.14);
}

.poster-wrap {
    position: relative;
    margin: 0;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    background: linear-gradient(145deg, #fee2e2, #f3f4f6);
}

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

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

.poster-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.48), transparent 42%);
    opacity: 0;
    transition: opacity 0.2s ease;
}

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

.play-icon {
    left: 50%;
    top: 50%;
    width: 46px;
    height: 46px;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.92);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.year-badge,
.rank-badge {
    position: absolute;
    top: 10px;
    padding: 5px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.year-badge {
    left: 10px;
    color: var(--white);
    background: rgba(17, 24, 39, 0.72);
}

.rank-badge {
    right: 10px;
    color: #321300;
    background: var(--yellow-400);
}

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

.movie-card h3 {
    margin: 0 0 6px;
    overflow: hidden;
    color: var(--gray-900);
    font-size: 15px;
    font-weight: 900;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.movie-card:hover h3 {
    color: var(--red-700);
}

.movie-card p {
    min-height: 42px;
    margin: 0 0 10px;
    display: -webkit-box;
    overflow: hidden;
    color: var(--gray-500);
    font-size: 13px;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

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

.category-card {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 20px;
    overflow: hidden;
    padding: 16px;
    border-radius: var(--radius-xl);
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.category-cover {
    overflow: hidden;
    border-radius: 18px;
    background: #fee2e2;
}

.category-cover img {
    width: 100%;
    height: 100%;
    min-height: 220px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.category-info h2 {
    margin: 0 0 8px;
    font-size: 26px;
    line-height: 1.2;
}

.mini-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.mini-links a {
    max-width: 100%;
    padding: 6px 10px;
    overflow: hidden;
    border-radius: 999px;
    color: var(--red-700);
    background: #fee2e2;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.hot-entry {
    display: grid;
    grid-template-columns: minmax(280px, 0.36fr) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.hot-copy {
    position: sticky;
    top: 96px;
    padding: 34px;
    border-radius: var(--radius-xl);
    color: var(--white);
    background: linear-gradient(135deg, var(--red-700), var(--red-900));
    box-shadow: var(--shadow-strong);
}

.hot-copy p {
    color: rgba(255, 255, 255, 0.84);
}

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

.page-hero {
    position: relative;
    color: var(--white);
    background:
        radial-gradient(circle at 76% 20%, rgba(250, 204, 21, 0.28), transparent 26%),
        linear-gradient(135deg, var(--red-700), var(--red-900));
}

.page-hero.slim {
    padding: 76px 24px;
}

.page-hero-inner {
    max-width: 1180px;
    margin: 0 auto;
}

.ranking-hero {
    background:
        radial-gradient(circle at 78% 10%, rgba(250, 204, 21, 0.32), transparent 24%),
        linear-gradient(135deg, #111827, var(--red-800));
}

.breadcrumb-bar {
    background: var(--white);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.breadcrumb {
    max-width: 1280px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gray-500);
    font-size: 14px;
}

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

.breadcrumb strong {
    overflow: hidden;
    color: var(--gray-900);
    white-space: nowrap;
    text-overflow: ellipsis;
}

.detail-layout {
    max-width: 1280px;
    margin: 0 auto;
    padding: 42px 24px 0;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
    gap: 28px;
    align-items: start;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #000;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.28);
    aspect-ratio: 16 / 9;
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    border: 0;
    color: var(--white);
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.18));
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.big-play {
    width: 74px;
    height: 74px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #321300;
    background: var(--yellow-400);
    box-shadow: 0 16px 34px rgba(250, 204, 21, 0.34);
    font-size: 30px;
}

.player-controls {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 16px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.22s ease;
}

.player-shell:hover .player-controls,
.player-shell.is-playing .player-controls {
    opacity: 1;
}

.player-controls button {
    border: 0;
    border-radius: 12px;
    padding: 9px 13px;
    color: var(--white);
    background: rgba(17, 24, 39, 0.74);
    cursor: pointer;
}

.detail-card,
.detail-text article {
    border-radius: var(--radius-xl);
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.detail-card {
    padding: 30px;
}

.detail-card h1 {
    margin: 0;
    color: var(--gray-950);
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.12;
    font-weight: 900;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.detail-meta span {
    padding: 7px 10px;
    border-radius: 999px;
    color: var(--gray-700);
    background: var(--gray-100);
    font-size: 13px;
    font-weight: 800;
}

.one-line {
    color: var(--gray-700);
    font-size: 18px;
    font-weight: 700;
}

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

.detail-tags span {
    color: var(--red-700);
    background: #fee2e2;
}

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

.detail-text article {
    padding: 30px;
}

.detail-text p {
    margin: 16px 0 0;
    font-size: 17px;
    line-height: 1.9;
}

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

.site-footer {
    margin-top: 88px;
    color: #d1d5db;
    background: #111827;
}

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

.footer-inner h2,
.footer-inner h3 {
    margin: 0 0 14px;
    color: var(--white);
}

.footer-inner p {
    margin: 0;
    color: #aeb6c2;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links a:hover {
    color: var(--yellow-300);
}

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

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

    .nav-toggle {
        display: block;
    }

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

    .hero-slide,
    .detail-layout,
    .hot-entry,
    .detail-text,
    .category-card,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .hero-poster {
        max-width: 330px;
        transform: none;
    }

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

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

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

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

    .hot-copy {
        position: static;
    }
}

@media (max-width: 680px) {
    .header-inner {
        padding: 0 16px;
    }

    .site-logo {
        font-size: 19px;
    }

    .hero-inner {
        padding: 48px 16px 72px;
    }

    .hero-slide {
        gap: 28px;
    }

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

    .btn {
        width: 100%;
    }

    .feature-strip,
    .movie-grid,
    .related-grid,
    .compact-rank {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .feature-strip {
        margin-top: 18px;
    }

    .section-wrap {
        padding: 54px 16px 0;
    }

    .page-hero.slim {
        padding: 56px 16px;
    }

    .detail-layout {
        padding: 28px 16px 0;
    }

    .breadcrumb {
        padding: 12px 16px;
    }

    .detail-card,
    .detail-text article {
        padding: 22px;
    }

    .footer-inner {
        padding: 38px 16px;
    }
}
