
:root {
    --red-50: #fff7ed;
    --red-100: #fee2e2;
    --red-500: #ef4444;
    --red-600: #dc2626;
    --red-700: #b91c1c;
    --orange-500: #f97316;
    --ink: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --panel: #ffffff;
    --soft: #f9fafb;
    --shadow: 0 18px 50px rgba(17, 24, 39, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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%, #fff7ed 38%, #f9fafb 100%);
}

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

img,
video {
    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: 50;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(229, 231, 235, 0.85);
    backdrop-filter: blur(18px);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 190px;
}

.brand-mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(135deg, var(--red-600), var(--orange-500));
    box-shadow: 0 12px 28px rgba(220, 38, 38, 0.32);
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-title {
    font-size: 22px;
    font-weight: 850;
    letter-spacing: -0.04em;
    background: linear-gradient(90deg, var(--red-700), var(--red-500));
    -webkit-background-clip: text;
    color: transparent;
}

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

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-link {
    padding: 10px 13px;
    border-radius: 999px;
    color: #374151;
    font-weight: 650;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--red-600);
    background: #fef2f2;
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    background: #f3f4f6;
    padding: 10px;
}

.menu-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    border-radius: 2px;
    background: #111827;
}

.mobile-panel {
    display: none;
    border-top: 1px solid var(--line);
    background: #fff;
}

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

.mobile-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 14px 0 18px;
}

.hero-slider {
    position: relative;
    overflow: hidden;
    min-height: 620px;
    color: #fff;
    background: radial-gradient(circle at 78% 16%, rgba(255, 255, 255, 0.2), transparent 24%), linear-gradient(135deg, var(--red-700), var(--red-500) 52%, var(--orange-500));
}

.hero-slider::after {
    content: "";
    position: absolute;
    inset: auto -18% -34% 38%;
    height: 320px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    filter: blur(16px);
    transform: rotate(-10deg);
}

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

.hero-slide.active {
    display: flex;
}

.hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
    gap: 46px;
    align-items: center;
    padding: 72px 0 80px;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(8px);
    font-size: 14px;
    font-weight: 750;
}

.hero-slide h1,
.hero-slide h2 {
    margin: 20px 0 18px;
    font-size: clamp(42px, 7vw, 76px);
    line-height: 0.95;
    letter-spacing: -0.065em;
    font-weight: 900;
}

.hero-slide p {
    max-width: 640px;
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.75;
    color: #fff7ed;
}

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

.btn-primary,
.btn-secondary,
.btn-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--red-600), var(--orange-500));
    box-shadow: 0 18px 36px rgba(220, 38, 38, 0.24);
}

.btn-secondary {
    color: var(--red-600);
    background: #fff;
    box-shadow: 0 18px 36px rgba(17, 24, 39, 0.13);
}

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

.btn-primary:hover,
.btn-secondary:hover,
.btn-light:hover {
    transform: translateY(-2px) scale(1.02);
}

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

.hero-poster-card {
    position: relative;
    overflow: hidden;
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 30px 70px rgba(127, 29, 29, 0.34);
    transform: rotate(1.5deg);
}

.hero-poster-card img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

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

.hero-poster-caption {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 22px;
    z-index: 2;
}

.hero-poster-caption strong {
    display: block;
    font-size: 24px;
    margin-bottom: 10px;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.hero-tags span,
.tag-row span,
.detail-tags span,
.filter-chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.hero-tags span {
    padding: 7px 11px;
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
}

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

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

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

.section {
    padding: 70px 0;
}

.section-soft {
    background: linear-gradient(180deg, rgba(255, 247, 237, 0.72), rgba(255, 255, 255, 0.82));
}

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

.section-title {
    margin: 0;
    font-size: clamp(28px, 3.5vw, 44px);
    line-height: 1.12;
    letter-spacing: -0.04em;
    font-weight: 900;
}

.section-desc {
    margin-top: 10px;
    max-width: 680px;
    color: var(--muted);
    line-height: 1.8;
}

.search-panel {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    padding: 16px;
    border: 1px solid rgba(220, 38, 38, 0.12);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow);
}

.search-input {
    width: 100%;
    min-height: 50px;
    padding: 0 18px;
    border: 1px solid var(--line);
    border-radius: 999px;
    outline: none;
    background: #fff;
}

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

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.filter-chip {
    padding: 9px 13px;
    border: 1px solid #fecaca;
    color: var(--red-600);
    background: #fff;
}

.filter-chip.active,
.filter-chip:hover {
    color: #fff;
    background: var(--red-600);
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 16px 42px rgba(17, 24, 39, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: #fecaca;
    box-shadow: 0 24px 62px rgba(220, 38, 38, 0.16);
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, #fee2e2, #fff7ed);
}

.poster-link img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform 0.28s ease;
}

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

.play-chip {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 7px 11px;
    border-radius: 999px;
    color: #fff;
    background: rgba(220, 38, 38, 0.9);
    font-size: 12px;
    font-weight: 850;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.rank-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    z-index: 2;
    display: grid;
    min-width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, var(--red-600), var(--orange-500));
    box-shadow: 0 12px 26px rgba(127, 29, 29, 0.28);
}

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

.movie-title {
    display: -webkit-box;
    min-height: 47px;
    overflow: hidden;
    font-size: 17px;
    line-height: 1.38;
    font-weight: 850;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-title:hover {
    color: var(--red-600);
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0;
    color: var(--muted);
    font-size: 13px;
}

.movie-card p {
    display: -webkit-box;
    min-height: 58px;
    overflow: hidden;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.65;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.tag-row,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 13px;
}

.tag-row span,
.detail-tags span {
    padding: 6px 9px;
    color: var(--red-600);
    background: #fef2f2;
}

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

.category-tile {
    position: relative;
    display: flex;
    min-height: 230px;
    overflow: hidden;
    border-radius: 28px;
    box-shadow: var(--shadow);
    background: #111827;
}

.category-tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.78;
    transition: transform 0.28s ease;
}

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

.category-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.82));
}

.category-name,
.category-copy {
    position: absolute;
    left: 18px;
    right: 18px;
    z-index: 2;
    color: #fff;
}

.category-name {
    bottom: 64px;
    font-size: 24px;
    font-weight: 900;
}

.category-copy {
    bottom: 22px;
    color: #f3f4f6;
    font-size: 14px;
    line-height: 1.55;
}

.page-hero {
    padding: 78px 0 48px;
    color: #fff;
    background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.22), transparent 22%), linear-gradient(135deg, var(--red-700), var(--red-500) 56%, var(--orange-500));
}

.page-hero h1 {
    margin: 0;
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1.02;
    letter-spacing: -0.055em;
    font-weight: 950;
}

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

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

.breadcrumb a:hover {
    text-decoration: underline;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 68px 96px 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(17, 24, 39, 0.06);
}

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

.rank-row img {
    width: 96px;
    aspect-ratio: 3 / 4;
    border-radius: 18px;
    object-fit: cover;
}

.rank-row h2 {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 900;
}

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

.hot-score {
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--red-600);
    background: #fef2f2;
    font-weight: 850;
}

.detail-shell {
    padding: 42px 0 70px;
}

.detail-grid {
    display: grid;
    grid-template-columns: 330px 1fr;
    gap: 34px;
    align-items: start;
}

.detail-poster {
    position: sticky;
    top: 96px;
    overflow: hidden;
    border-radius: 30px;
    background: #fff;
    box-shadow: var(--shadow);
}

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

.detail-content {
    min-width: 0;
}

.detail-title {
    margin: 0;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.08;
    letter-spacing: -0.05em;
    font-weight: 950;
}

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

.detail-meta span,
.detail-meta a {
    padding: 8px 12px;
    border-radius: 999px;
    background: #fff;
    color: #4b5563;
    border: 1px solid var(--line);
    font-weight: 700;
}

.player-card {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #111827;
    box-shadow: 0 26px 70px rgba(17, 24, 39, 0.28);
}

.player-card video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    object-fit: cover;
}

.player-trigger {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: #fff;
    background: radial-gradient(circle, rgba(220, 38, 38, 0.15), rgba(0, 0, 0, 0.56));
}

.player-trigger span {
    display: grid;
    width: 86px;
    height: 86px;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--red-600), var(--orange-500));
    box-shadow: 0 20px 44px rgba(220, 38, 38, 0.36);
    font-size: 34px;
    transform: translateX(3px);
}

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

.article-panel {
    margin-top: 26px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 16px 44px rgba(17, 24, 39, 0.08);
}

.article-panel h2 {
    margin: 0 0 14px;
    font-size: 26px;
    font-weight: 900;
}

.article-panel p {
    margin: 0 0 16px;
    color: #374151;
    font-size: 16px;
    line-height: 1.9;
}

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

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

.footer-grid strong {
    display: block;
    margin-bottom: 10px;
    font-size: 22px;
}

.footer-grid p {
    max-width: 620px;
    color: #d1d5db;
    line-height: 1.8;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.footer-links a {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #e5e7eb;
}

.footer-links a:hover {
    background: rgba(255, 255, 255, 0.16);
}

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

.empty-state {
    display: none;
    padding: 28px;
    border-radius: 24px;
    color: var(--muted);
    background: #fff;
    text-align: center;
}

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

    .desktop-nav {
        gap: 0;
    }

    .nav-link {
        padding: 9px 10px;
        font-size: 14px;
    }
}

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

    .menu-toggle {
        display: block;
    }

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

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

    .hero-layout {
        padding: 52px 0 92px;
    }

    .detail-poster {
        position: static;
        max-width: 360px;
    }

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

    .section-head,
    .search-panel,
    .rank-row {
        grid-template-columns: 1fr;
    }

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

    .rank-row {
        display: grid;
    }

    .footer-links {
        justify-content: flex-start;
    }
}

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

    .brand-title {
        font-size: 19px;
    }

    .hero-slide h1,
    .hero-slide h2 {
        font-size: 42px;
    }

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

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

    .movie-title {
        font-size: 15px;
    }

    .movie-card p {
        min-height: 48px;
        font-size: 13px;
        -webkit-line-clamp: 2;
    }

    .section {
        padding: 48px 0;
    }

    .page-hero {
        padding: 54px 0 38px;
    }

    .rank-row {
        grid-template-columns: 48px 76px 1fr;
    }

    .rank-row .btn-primary,
    .rank-row .hot-score {
        grid-column: 1 / -1;
        justify-self: start;
    }

    .rank-row img {
        width: 76px;
    }

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