* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
    color: #111827;
    background: #f8fafc;
    line-height: 1.65;
}

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

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

button,
input {
    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.94);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.9);
}

.header-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.brand-mark {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    color: #ffffff;
    border-radius: 12px;
    background: linear-gradient(135deg, #dc2626, #f97316);
    box-shadow: 0 12px 30px rgba(220, 38, 38, 0.25);
}

.brand-text {
    font-size: 24px;
    color: transparent;
    background: linear-gradient(135deg, #dc2626, #f97316);
    -webkit-background-clip: text;
    background-clip: text;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-left: auto;
}

.nav-link {
    color: #4b5563;
    font-weight: 600;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: #dc2626;
}

.header-search {
    display: flex;
    align-items: center;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
    background: #ffffff;
}

.header-search input {
    width: 210px;
    border: 0;
    outline: 0;
    padding: 10px 14px;
    background: transparent;
}

.header-search button,
.inline-filter button {
    border: 0;
    color: #ffffff;
    background: #dc2626;
    padding: 10px 18px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.header-search button:hover,
.inline-filter button:hover {
    background: #b91c1c;
}

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

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

.hero {
    position: relative;
    height: 600px;
    overflow: hidden;
    background: linear-gradient(180deg, #111827, #1f2937);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.02);
    background-position: center;
    background-size: cover;
    transition: opacity 0.8s ease, transform 1.2s ease;
}

.hero-slide.is-active {
    opacity: 1;
    transform: scale(1);
}

.hero-content {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-copy {
    max-width: 680px;
    color: #ffffff;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    color: #fbbf24;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero h1,
.page-hero h1,
.detail-info h1 {
    margin: 0;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero p {
    max-width: 640px;
    margin: 22px 0 0;
    color: #e5e7eb;
    font-size: 20px;
}

.hero-meta,
.detail-meta,
.meta-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.hero-meta {
    margin: 24px 0 32px;
}

.hero-meta span,
.detail-meta span {
    display: inline-flex;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.16);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 12px;
    font-weight: 800;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

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

.btn.primary {
    color: #ffffff;
    background: #dc2626;
    box-shadow: 0 18px 40px rgba(220, 38, 38, 0.35);
}

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

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

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

.hero-dots button.is-active {
    width: 34px;
    background: #ffffff;
}

.section {
    padding: 72px 0;
}

.section.white {
    background: #ffffff;
}

.section.soft {
    background: linear-gradient(180deg, #f9fafb, #ffffff);
}

.section.dark {
    background: #111827;
    color: #ffffff;
}

.category-band {
    background: #fff1f2;
}

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

.section-heading h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.section-heading p {
    margin: 10px 0 0;
    color: #6b7280;
    max-width: 620px;
}

.dark .section-heading p {
    color: #d1d5db;
}

.section-more,
.text-link {
    color: #dc2626;
    font-weight: 800;
}

.featured-grid,
.movie-grid {
    display: grid;
    gap: 28px;
}

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

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

.movie-card {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 60px rgba(15, 23, 42, 0.18);
}

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

.featured-grid .poster-link {
    aspect-ratio: 3 / 4;
}

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

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

.score {
    position: absolute;
    top: 12px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    padding: 4px 9px;
    border-radius: 999px;
    color: #ffffff;
    font-weight: 800;
    background: #f59e0b;
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.28);
}

.card-info {
    padding: 18px;
}

.meta-line {
    color: #6b7280;
    font-size: 14px;
}

.meta-line span + span::before {
    content: "·";
    margin-right: 10px;
    color: #d1d5db;
}

.movie-card h3 {
    margin: 8px 0 8px;
    font-size: 20px;
    line-height: 1.28;
}

.movie-card.compact h3 {
    font-size: 17px;
}

.movie-card h3 a:hover {
    color: #dc2626;
}

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

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

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

.dark-grid .movie-card {
    background: #1f2937;
    color: #ffffff;
}

.dark-grid .movie-card p,
.dark-grid .meta-line {
    color: #d1d5db;
}

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

.category-tile {
    position: relative;
    min-height: 150px;
    overflow: hidden;
    border-radius: 20px;
    background: #111827;
    box-shadow: 0 16px 45px rgba(220, 38, 38, 0.16);
}

.category-tile img {
    width: 100%;
    height: 100%;
    min-height: 150px;
    object-fit: cover;
    opacity: 0.55;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.category-tile:hover img {
    transform: scale(1.06);
    opacity: 0.72;
}

.category-tile span {
    position: absolute;
    left: 18px;
    bottom: 16px;
    color: #ffffff;
    font-size: 20px;
    font-weight: 800;
}

.page-main {
    background: #ffffff;
}

.page-hero {
    padding: 86px 0;
    color: #ffffff;
    background: linear-gradient(135deg, #111827, #1f2937);
    background-size: cover;
    background-position: center;
}

.page-hero.small {
    color: #111827;
    background: linear-gradient(135deg, #fff7ed, #ffffff 55%, #fee2e2);
}

.page-hero.small .eyebrow {
    color: #dc2626;
}

.page-hero p {
    max-width: 760px;
    margin: 18px 0 0;
    font-size: 18px;
    color: inherit;
    opacity: 0.86;
}

.inline-filter {
    display: flex;
    width: min(580px, 100%);
    margin-top: 28px;
    border: 1px solid rgba(229, 231, 235, 0.8);
    border-radius: 999px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
}

.inline-filter.wide {
    width: min(760px, 100%);
}

.inline-filter input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 15px 20px;
    background: transparent;
}

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

.category-card {
    display: grid;
    grid-template-columns: 180px 1fr;
    overflow: hidden;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid #f3f4f6;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.category-card-cover img {
    width: 100%;
    height: 100%;
    min-height: 250px;
    object-fit: cover;
}

.category-card-body {
    padding: 24px;
}

.category-card h2 {
    margin: 0 0 10px;
    font-size: 26px;
}

.category-card p {
    margin: 0 0 16px;
    color: #4b5563;
}

.sample-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
}

.sample-links a {
    color: #6b7280;
}

.sample-links a:hover {
    color: #dc2626;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 92px 72px 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 14px;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid #f3f4f6;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.rank-cover {
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 14px;
}

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

.rank-index {
    font-size: 34px;
    font-weight: 900;
    color: transparent;
    background: linear-gradient(135deg, #dc2626, #f97316);
    -webkit-background-clip: text;
    background-clip: text;
}

.rank-info h2 {
    margin: 0 0 8px;
    font-size: 24px;
}

.rank-info p {
    margin: 0 0 8px;
    color: #4b5563;
}

.rank-play {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    height: 42px;
    border-radius: 999px;
    color: #ffffff;
    background: #dc2626;
    font-weight: 800;
}

.detail-main {
    background: #ffffff;
}

.detail-hero {
    padding: 72px 0;
    color: #ffffff;
    background-size: cover;
    background-position: center;
}

.detail-hero-inner {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 42px;
    align-items: center;
}

.detail-poster {
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: #f3f4f6;
}

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

.detail-info h1 {
    font-size: clamp(36px, 5vw, 64px);
}

.detail-meta {
    margin: 22px 0;
}

.detail-one-line {
    max-width: 860px;
    margin: 0;
    color: #e5e7eb;
    font-size: 20px;
}

.detail-tags span {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.player-section {
    padding-top: 44px;
    padding-bottom: 24px;
    background: #0b1020;
}

.player-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #000000;
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.34);
    aspect-ratio: 16 / 9;
}

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

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 20px;
    color: #ffffff;
    text-align: center;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.68));
    transition: opacity 0.2s ease, visibility 0.2s ease;
    cursor: pointer;
}

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

.player-start {
    width: 84px;
    height: 84px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: #dc2626;
    background: #ffffff;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.player-start:hover {
    transform: scale(1.08);
}

.player-start span {
    margin-left: 5px;
    font-size: 32px;
}

.player-cover strong {
    max-width: 80%;
    font-size: 28px;
}

.detail-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 34px;
}

.detail-article,
.detail-side {
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid #f3f4f6;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.detail-text-block {
    padding: 28px;
}

.detail-text-block + .detail-text-block {
    border-top: 1px solid #f3f4f6;
}

.detail-text-block h2,
.detail-side h2 {
    margin: 0 0 14px;
    font-size: 26px;
}

.detail-text-block p {
    margin: 0;
    color: #374151;
    font-size: 17px;
}

.detail-side {
    padding: 28px;
    align-self: start;
}

.detail-side dl {
    margin: 0;
    display: grid;
    gap: 12px;
}

.detail-side dt {
    color: #6b7280;
    font-size: 13px;
    font-weight: 800;
}

.detail-side dd {
    margin: 0;
    padding-bottom: 12px;
    border-bottom: 1px solid #f3f4f6;
    font-weight: 700;
}

.empty-state {
    display: none;
    margin: 30px 0 0;
    color: #6b7280;
    text-align: center;
    font-weight: 700;
}

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

.site-footer {
    padding-top: 56px;
    color: #d1d5db;
    background: #111827;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 36px;
}

.footer-brand {
    color: #ffffff;
    font-size: 24px;
}

.site-footer p {
    max-width: 460px;
    color: #9ca3af;
}

.site-footer h3 {
    margin: 0 0 16px;
    color: #ffffff;
}

.site-footer a:not(.footer-brand) {
    display: block;
    margin: 8px 0;
    color: #9ca3af;
}

.site-footer a:hover {
    color: #ffffff;
}

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

@media (max-width: 980px) {
    .header-inner {
        flex-wrap: wrap;
        gap: 12px;
        padding: 14px 0;
    }

    .main-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        order: 5;
        padding: 14px 0;
    }

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

    .header-search {
        margin-left: auto;
    }

    .header-search input {
        width: 160px;
    }

    .menu-toggle {
        display: block;
    }

    .featured-grid,
    .movie-grid.four,
    .category-strip,
    .category-list,
    .detail-content,
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .detail-hero-inner {
        grid-template-columns: 220px 1fr;
        gap: 28px;
    }

    .rank-row {
        grid-template-columns: 82px 52px 1fr;
    }

    .rank-play {
        grid-column: 3;
        justify-self: start;
    }
}

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

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

    .header-search {
        width: 100%;
        order: 4;
    }

    .header-search input {
        width: 100%;
        flex: 1;
    }

    .hero {
        height: 560px;
    }

    .hero p,
    .detail-one-line {
        font-size: 17px;
    }

    .section {
        padding: 48px 0;
    }

    .section-heading {
        display: block;
    }

    .section-more {
        display: inline-flex;
        margin-top: 14px;
    }

    .featured-grid,
    .movie-grid.four,
    .category-strip,
    .category-list,
    .detail-content,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

    .category-card-cover img {
        min-height: 220px;
    }

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

    .detail-poster {
        width: min(240px, 70vw);
    }

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

    .rank-index {
        position: absolute;
        margin: 10px 0 0 10px;
        font-size: 24px;
        background: rgba(255, 255, 255, 0.88);
        color: #dc2626;
        padding: 3px 8px;
        border-radius: 999px;
        -webkit-background-clip: initial;
        background-clip: initial;
    }

    .rank-info,
    .rank-play {
        grid-column: 2;
    }

    .inline-filter {
        border-radius: 18px;
    }

    .inline-filter button {
        padding: 10px 14px;
    }
}
