:root {
    --bg: #f8fafc;
    --text: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --card: #ffffff;
    --red: #dc2626;
    --red-dark: #991b1b;
    --orange: #f97316;
    --gold: #facc15;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    --soft-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(229, 231, 235, 0.9);
    backdrop-filter: blur(18px);
}

.header-inner {
    width: min(1180px, calc(100% - 32px));
    height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.brand-mark {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    color: #fff;
    box-shadow: 0 10px 25px rgba(220, 38, 38, 0.25);
}

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

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: 8px;
}

.nav-link {
    font-size: 15px;
    font-weight: 650;
    color: #374151;
    transition: color 0.2s ease;
}

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

.header-search {
    margin-left: auto;
    display: flex;
    align-items: center;
    width: 300px;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    overflow: hidden;
    background: #fff;
}

.header-search input,
.mobile-search input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 10px 15px;
    color: #111827;
}

.header-search button,
.mobile-search button {
    border: 0;
    padding: 10px 16px;
    color: #fff;
    background: var(--red);
    cursor: pointer;
    transition: background 0.2s ease;
}

.header-search button:hover,
.mobile-search button:hover {
    background: var(--red-dark);
}

.mobile-toggle {
    display: none;
    margin-left: auto;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    color: #374151;
    background: #f3f4f6;
    cursor: pointer;
}

.mobile-panel {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 14px 0 18px;
    border-top: 1px solid #e5e7eb;
}

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

.mobile-panel nav,
.mobile-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.mobile-panel a,
.mobile-categories a {
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    color: #374151;
    background: #f3f4f6;
    font-size: 14px;
    font-weight: 650;
}

.mobile-search {
    display: flex;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    overflow: hidden;
    background: #fff;
}

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

.hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: radial-gradient(circle at 78% 18%, rgba(220, 38, 38, 0.32), transparent 28%), radial-gradient(circle at 15% 78%, rgba(250, 204, 21, 0.18), transparent 31%), linear-gradient(135deg, #111827 0%, #1f2937 48%, #111827 100%);
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    filter: blur(48px);
    opacity: 0.32;
}

.hero::before {
    top: 70px;
    right: 8%;
    width: 260px;
    height: 260px;
    background: var(--red);
}

.hero::after {
    left: 8%;
    bottom: 30px;
    width: 340px;
    height: 340px;
    background: var(--gold);
}

.hero-inner {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    min-height: 640px;
    margin: 0 auto;
    padding: 64px 0 40px;
}

.hero-slider {
    position: relative;
}

.hero-slide {
    display: none;
    align-items: center;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.72fr);
    gap: 54px;
}

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

.hero-copy {
    max-width: 720px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(220, 38, 38, 0.92);
    box-shadow: 0 14px 35px rgba(220, 38, 38, 0.25);
    font-weight: 750;
}

.hero h1 {
    margin: 22px 0 18px;
    font-size: clamp(40px, 6vw, 70px);
    line-height: 1.02;
    letter-spacing: -0.07em;
}

.hero-summary {
    max-width: 680px;
    margin: 0 0 22px;
    color: #d1d5db;
    font-size: 18px;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.hero-tags span {
    padding: 7px 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    color: #f9fafb;
    font-size: 14px;
}

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

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

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

.primary-button:hover,
.secondary-button:hover {
    transform: translateY(-2px);
}

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

.secondary-button {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-art {
    position: relative;
}

.hero-poster {
    position: relative;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    border-radius: 28px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    background: #111827;
    box-shadow: 0 35px 80px rgba(0, 0, 0, 0.42);
    transform: rotate(1deg);
    transition: transform 0.25s ease;
}

.hero-poster:hover {
    transform: rotate(0) scale(1.02);
}

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

.hero-poster::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 42%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent);
}

.hero-thumbs {
    display: flex;
    gap: 12px;
    margin-top: 30px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.hero-thumb {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 190px;
    padding: 10px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #fff;
}

.hero-thumb img {
    width: 50px;
    height: 68px;
    border-radius: 10px;
    object-fit: cover;
    background: #111827;
}

.hero-thumb strong {
    display: block;
    font-size: 14px;
    line-height: 1.25;
}

.hero-thumb em {
    display: block;
    color: #d1d5db;
    font-size: 12px;
    font-style: normal;
}

.hero-dots {
    display: flex;
    gap: 8px;
    margin-top: 28px;
}

.hero-dot {
    width: 32px;
    height: 6px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
}

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

.content-block {
    padding: 52px 0;
}

.content-block.tight {
    padding-top: 32px;
}

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

.section-heading > div {
    position: relative;
    padding-left: 18px;
}

.section-kicker {
    position: absolute;
    left: 0;
    top: 5px;
    width: 5px;
    height: 34px;
    border-radius: 999px;
    background: var(--red);
}

.section-heading h2 {
    margin: 0;
    color: #111827;
    font-size: clamp(25px, 3vw, 36px);
    line-height: 1.2;
    letter-spacing: -0.04em;
}

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

.section-more {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--red);
    font-weight: 760;
}

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

.movie-card {
    min-width: 0;
    overflow: hidden;
    border-radius: 22px;
    background: var(--card);
    box-shadow: var(--soft-shadow);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

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

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

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

.movie-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 48%, rgba(0, 0, 0, 0.72));
    opacity: 0;
    transition: opacity 0.2s ease;
}

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

.movie-play {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #fff;
    background: rgba(220, 38, 38, 0.92);
    box-shadow: 0 10px 26px rgba(220, 38, 38, 0.35);
    transform: translate(-50%, -50%) scale(0.84);
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

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

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

.movie-card h3 {
    margin: 0 0 5px;
    font-size: 16px;
    line-height: 1.35;
}

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

.movie-meta,
.movie-line {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.movie-line {
    display: -webkit-box;
    min-height: 42px;
    margin-top: 8px;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

.tag-row span,
.info-pill {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border-radius: 999px;
    color: #b91c1c;
    background: #fee2e2;
    font-size: 12px;
    font-weight: 650;
}

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 172px;
    padding: 22px;
    border-radius: 24px;
    color: #fff;
    background: linear-gradient(135deg, #dc2626, #7f1d1d);
    box-shadow: var(--soft-shadow);
}

.category-card::after {
    content: "";
    position: absolute;
    right: -28px;
    bottom: -36px;
    width: 120px;
    height: 120px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
}

.category-card h3 {
    position: relative;
    z-index: 1;
    margin: 0 0 10px;
    font-size: 22px;
}

.category-card p {
    position: relative;
    z-index: 1;
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
}

.ranking-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.38fr);
    gap: 24px;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 58px 92px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 12px;
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--soft-shadow);
    transition: transform 0.2s ease;
}

.rank-item:hover {
    transform: translateX(4px);
}

.rank-num {
    font-size: 24px;
    font-weight: 900;
    color: var(--red);
    text-align: center;
}

.rank-item img {
    width: 92px;
    height: 62px;
    border-radius: 12px;
    object-fit: cover;
    background: #111827;
}

.rank-info h3 {
    margin: 0 0 4px;
    font-size: 17px;
}

.rank-info p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.rank-action {
    display: inline-flex;
    padding: 8px 14px;
    border-radius: 999px;
    color: #fff;
    background: var(--red);
    font-size: 13px;
    font-weight: 760;
}

.side-panel {
    border-radius: 24px;
    padding: 24px;
    background: linear-gradient(135deg, #fff7ed, #fee2e2);
    box-shadow: var(--soft-shadow);
}

.side-panel h3 {
    margin: 0 0 16px;
    font-size: 22px;
}

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

.compact-card {
    display: grid;
    grid-template-columns: 66px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.72);
}

.compact-card:hover strong {
    color: var(--red);
}

.compact-card img {
    width: 66px;
    height: 48px;
    border-radius: 10px;
    object-fit: cover;
    background: #111827;
}

.compact-card strong,
.compact-card em {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.compact-card strong {
    font-size: 14px;
}

.compact-card em {
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
}

.page-hero {
    padding: 54px 0;
    color: #fff;
    background: linear-gradient(135deg, #111827, #7f1d1d);
}

.page-hero h1 {
    max-width: 900px;
    margin: 0 0 14px;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.08;
    letter-spacing: -0.06em;
}

.page-hero p {
    max-width: 800px;
    margin: 0;
    color: #e5e7eb;
    font-size: 17px;
}

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

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

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
    padding: 38px 0 58px;
}

.player-card,
.detail-card,
.review-card,
.related-card {
    overflow: hidden;
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--soft-shadow);
}

.player-wrap {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000;
}

.player-wrap video {
    width: 100%;
    height: 100%;
    display: block;
    background: #000;
}

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: #fff;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.58));
    cursor: pointer;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-ring {
    width: 88px;
    height: 88px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(220, 38, 38, 0.94);
    box-shadow: 0 18px 40px rgba(220, 38, 38, 0.35);
    font-size: 34px;
    transform: translateX(2px);
}

.detail-card,
.review-card,
.related-card {
    padding: 28px;
    margin-top: 22px;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.detail-card h1 {
    margin: 0 0 12px;
    font-size: clamp(27px, 4vw, 42px);
    line-height: 1.15;
    letter-spacing: -0.04em;
}

.detail-lead {
    color: #4b5563;
    font-size: 18px;
}

.detail-section {
    padding-top: 22px;
    margin-top: 22px;
    border-top: 1px solid #e5e7eb;
}

.detail-section h2,
.review-card h2,
.related-card h2 {
    margin: 0 0 12px;
    font-size: 22px;
}

.detail-section p,
.review-card p {
    margin: 0;
    color: #374151;
    text-align: justify;
}

.related-card {
    position: sticky;
    top: 94px;
    margin-top: 0;
}

.search-panel {
    max-width: 860px;
    margin-top: 28px;
    display: flex;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
}

.search-panel input {
    width: 100%;
    border: 0;
    outline: 0;
    color: #fff;
    background: transparent;
    padding: 16px 20px;
}

.search-panel input::placeholder {
    color: #e5e7eb;
}

.search-panel button {
    border: 0;
    padding: 0 26px;
    color: #fff;
    background: var(--red);
    cursor: pointer;
    font-weight: 760;
}

.empty-state {
    padding: 42px;
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--soft-shadow);
    text-align: center;
    color: var(--muted);
}

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

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 34px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.footer-inner strong {
    color: #fff;
    font-size: 18px;
}

.footer-inner p {
    max-width: 680px;
    margin: 8px 0 0;
    color: #9ca3af;
}

.footer-inner nav {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.footer-inner a:hover {
    color: #fff;
}

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

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

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

    .related-card {
        position: static;
    }
}

@media (max-width: 860px) {
    .desktop-nav,
    .header-search {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .hero-inner {
        min-height: auto;
        padding: 44px 0 30px;
    }

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

    .hero-art {
        max-width: 310px;
        margin-top: 34px;
    }

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

    .footer-inner {
        display: block;
    }

    .footer-inner nav {
        margin-top: 18px;
    }
}

@media (max-width: 640px) {
    .header-inner,
    .container,
    .hero-inner,
    .footer-inner,
    .mobile-panel {
        width: min(100% - 24px, 1180px);
    }

    .brand-text {
        font-size: 18px;
    }

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

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

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

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

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

    .rank-item img {
        width: 72px;
        height: 52px;
    }

    .rank-action {
        display: none;
    }

    .detail-card,
    .review-card,
    .related-card {
        padding: 20px;
    }

    .content-block {
        padding: 38px 0;
    }
}
