:root {
    --page-bg: #f8fafc;
    --dark-bg: #0f172a;
    --dark-panel: #111827;
    --soft-panel: #ffffff;
    --muted: #64748b;
    --text: #0f172a;
    --line: #e2e8f0;
    --accent: #f59e0b;
    --accent-strong: #ea580c;
    --danger: #ef4444;
    --shadow: 0 22px 60px rgba(15, 23, 42, 0.14);
    --radius: 20px;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 50%, #e5e7eb 100%);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

body,
button,
input {
    font: inherit;
}

img {
    max-width: 100%;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(15, 23, 42, 0.94);
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    backdrop-filter: blur(18px);
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 22px;
}

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

.site-logo-mark {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--accent), var(--danger));
    color: #ffffff;
    box-shadow: 0 12px 28px rgba(245, 158, 11, 0.35);
}

.site-logo-text {
    font-size: 1.18rem;
}

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

.site-nav a,
.footer-links a,
.section-link {
    color: inherit;
    transition: color 0.2s ease, transform 0.2s ease;
}

.site-nav a {
    color: #cbd5e1;
    font-size: 0.96rem;
}

.site-nav a:hover,
.footer-links a:hover,
.section-link:hover {
    color: var(--accent);
}

.header-search {
    display: flex;
    align-items: center;
    width: min(300px, 26vw);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    overflow: hidden;
}

.header-search input,
.big-search input,
.filter-panel input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
}

.header-search input {
    color: #ffffff;
    padding: 10px 14px;
}

.header-search input::placeholder {
    color: #94a3b8;
}

.header-search button,
.big-search button {
    border: 0;
    background: var(--accent);
    color: #111827;
    font-weight: 800;
    padding: 10px 16px;
    white-space: nowrap;
}

.menu-toggle {
    display: none;
    margin-left: auto;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    padding: 8px 12px;
}

.hero {
    position: relative;
    height: 70vh;
    min-height: 540px;
    overflow: hidden;
    background: #020617;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.9s ease;
}

.hero-slide.is-active {
    opacity: 1;
    z-index: 2;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
    filter: saturate(1.05) contrast(1.02);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.95) 0%, rgba(2, 6, 23, 0.62) 46%, rgba(2, 6, 23, 0.18) 100%),
        linear-gradient(0deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.1) 55%, rgba(2, 6, 23, 0.22) 100%);
}

.hero-content {
    position: absolute;
    inset: 0;
    z-index: 3;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px 76px;
    display: flex;
    align-items: flex-end;
}

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

.hero-eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    width: max-content;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.16);
    color: #fbbf24;
    font-weight: 800;
    letter-spacing: 0.06em;
    padding: 7px 14px;
    font-size: 0.84rem;
}

.hero h1 {
    margin: 18px 0 18px;
    font-size: clamp(2.7rem, 7vw, 5.8rem);
    line-height: 0.95;
    letter-spacing: -0.06em;
    font-weight: 900;
}

.hero p {
    color: #e2e8f0;
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.85;
    max-width: 680px;
}

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

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

.hero-tags span,
.tag-row span {
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 0.82rem;
    background: rgba(255, 255, 255, 0.12);
    color: #f8fafc;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.tag-row span {
    background: #f1f5f9;
    color: #475569;
    border-color: #e2e8f0;
}

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

.button-primary,
.button-secondary,
.section-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 850;
}

.button-primary {
    min-height: 48px;
    padding: 0 24px;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: #111827;
    box-shadow: 0 18px 34px rgba(245, 158, 11, 0.24);
}

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

.button-secondary {
    min-height: 48px;
    padding: 0 22px;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
}

.button-secondary.light {
    color: #111827;
    border-color: rgba(15, 23, 42, 0.12);
    background: #ffffff;
}

.hero-arrow {
    position: absolute;
    z-index: 4;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.48);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 2rem;
    line-height: 1;
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

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

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

.hero-dot.is-active {
    width: 44px;
    background: var(--accent);
}

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

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

.section-heading h2 {
    margin-top: 12px;
    font-size: clamp(1.8rem, 4vw, 2.65rem);
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -0.045em;
}

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

.section-link {
    min-width: max-content;
    color: #111827;
    border: 1px solid #cbd5e1;
    padding: 10px 16px;
    background: #ffffff;
}

.intro-strip {
    padding-top: 40px;
    padding-bottom: 24px;
}

.intro-card,
.content-card,
.detail-side-card,
.rank-panel,
.filter-panel,
.category-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(226, 232, 240, 0.88);
    box-shadow: var(--shadow);
    border-radius: var(--radius);
}

.intro-card {
    padding: clamp(26px, 5vw, 46px);
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 28px;
    align-items: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 247, 237, 0.9));
}

.intro-card h2 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 900;
    letter-spacing: -0.04em;
}

.intro-card p {
    color: var(--muted);
    line-height: 1.85;
    margin-top: 12px;
}

.big-search {
    display: flex;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
    box-shadow: 0 20px 42px rgba(15, 23, 42, 0.08);
}

.big-search input {
    padding: 16px 20px;
}

.big-search button {
    padding: 0 24px;
}

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

.compact-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}

.movie-card {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 18px;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 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: rgba(245, 158, 11, 0.45);
    box-shadow: 0 24px 46px rgba(15, 23, 42, 0.16);
}

.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.28s ease;
}

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

.movie-badge {
    position: absolute;
    left: 10px;
    top: 10px;
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.72);
    color: #ffffff;
    padding: 5px 9px;
    font-size: 0.75rem;
    backdrop-filter: blur(8px);
}

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

.movie-card h3 {
    font-size: 1rem;
    font-weight: 850;
    line-height: 1.35;
    min-height: 2.7em;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.movie-meta {
    margin-top: 8px;
    color: #64748b;
    font-size: 0.84rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.movie-line {
    margin-top: 8px;
    color: #475569;
    line-height: 1.6;
    font-size: 0.9rem;
    min-height: 2.9em;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.tag-row {
    margin-top: 12px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.large-category-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.category-card {
    overflow: hidden;
    color: inherit;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.category-covers {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    height: 150px;
    overflow: hidden;
    background: #111827;
}

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

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

.category-card h3 {
    font-size: 1.15rem;
    font-weight: 900;
}

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

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px;
    align-items: start;
}

.rank-panel {
    position: sticky;
    top: 92px;
    padding: 18px;
}

.rank-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    font-weight: 900;
}

.rank-panel-head a {
    color: var(--accent-strong);
    font-size: 0.9rem;
}

.rank-row {
    display: grid;
    grid-template-columns: 42px 54px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 12px 0;
    border-top: 1px solid #e2e8f0;
}

.rank-row img {
    width: 54px;
    height: 72px;
    border-radius: 10px;
    object-fit: cover;
    background: #111827;
}

.rank-num {
    font-size: 1.05rem;
    font-weight: 900;
    color: var(--accent-strong);
}

.rank-title {
    min-width: 0;
    font-weight: 850;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rank-meta {
    grid-column: 3;
    color: #64748b;
    font-size: 0.82rem;
}

.page-hero {
    background: radial-gradient(circle at 20% 20%, rgba(245, 158, 11, 0.28), transparent 36%), linear-gradient(135deg, #020617, #172554 56%, #111827);
    color: #ffffff;
}

.small-hero {
    padding: 80px 24px;
}

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

.page-hero h1 {
    margin-top: 18px;
    font-size: clamp(2.3rem, 6vw, 4.8rem);
    line-height: 1;
    font-weight: 900;
    letter-spacing: -0.055em;
}

.page-hero p {
    max-width: 760px;
    margin-top: 18px;
    color: #cbd5e1;
    font-size: 1.1rem;
    line-height: 1.85;
}

.filter-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px;
    margin-bottom: 28px;
}

.filter-panel input {
    min-height: 46px;
    padding: 0 16px;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-chip {
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    color: #475569;
    padding: 9px 13px;
    background: #ffffff;
}

.filter-chip.is-active {
    color: #111827;
    border-color: rgba(245, 158, 11, 0.8);
    background: rgba(245, 158, 11, 0.16);
}

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

.ranking-item {
    display: grid;
    grid-template-columns: 54px 76px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 14px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.ranking-number {
    font-size: 1.35rem;
    color: var(--accent-strong);
    font-weight: 900;
    text-align: center;
}

.ranking-item img {
    width: 76px;
    height: 104px;
    object-fit: cover;
    border-radius: 12px;
    background: #111827;
}

.ranking-main strong,
.ranking-main em {
    display: block;
}

.ranking-main strong {
    font-size: 1.08rem;
    font-style: normal;
    font-weight: 900;
}

.ranking-main em {
    margin-top: 6px;
    color: var(--muted);
    font-style: normal;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.ranking-side {
    color: #64748b;
    white-space: nowrap;
}

.player-section {
    color: #ffffff;
    background: radial-gradient(circle at 76% 22%, rgba(245, 158, 11, 0.22), transparent 30%), linear-gradient(135deg, #020617, #0f172a 55%, #111827);
}

.detail-shell {
    padding-top: 34px;
}

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

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

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

.detail-title-row h1 {
    margin-top: 14px;
    font-size: clamp(2.2rem, 5vw, 4.4rem);
    line-height: 1;
    font-weight: 900;
    letter-spacing: -0.05em;
}

.detail-title-row p {
    max-width: 780px;
    margin-top: 14px;
    color: #cbd5e1;
    font-size: 1.06rem;
    line-height: 1.8;
}

.player-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    align-items: start;
}

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

.player-box video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

.player-cover {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.68), rgba(2, 6, 23, 0.18));
    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: 76px;
    height: 76px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), var(--danger));
    color: #ffffff;
    font-size: 2rem;
    box-shadow: 0 20px 40px rgba(245, 158, 11, 0.25);
}

.play-name {
    font-weight: 900;
    font-size: 1.1rem;
}

.detail-side-card {
    padding: 16px;
    color: #0f172a;
}

.detail-side-card img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 16px;
    background: #111827;
}

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

.detail-side-card dl div {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.detail-side-card dt {
    color: #64748b;
}

.detail-side-card dd {
    margin: 0;
    font-weight: 800;
}

.wide-tags span {
    background: rgba(245, 158, 11, 0.12);
    color: #92400e;
    border-color: rgba(245, 158, 11, 0.28);
}

.detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.content-card {
    padding: clamp(22px, 4vw, 34px);
}

.content-card h2 {
    font-size: 1.45rem;
    font-weight: 900;
    margin-bottom: 14px;
}

.content-card p {
    color: #334155;
    line-height: 2;
    font-size: 1.02rem;
}

.accent-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 247, 237, 0.92));
}

.site-footer {
    color: #cbd5e1;
    background: #020617;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
}

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

.footer-logo {
    margin-bottom: 14px;
}

.footer-inner p {
    max-width: 560px;
    color: #94a3b8;
    line-height: 1.8;
}

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

.footer-links a {
    color: #cbd5e1;
}

.footer-links.compact {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.movie-card.is-hidden,
.ranking-item.is-hidden {
    display: none;
}

@media (max-width: 1080px) {
    .header-inner {
        flex-wrap: wrap;
    }

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

    .site-nav {
        order: 3;
        display: none;
        width: 100%;
        margin-left: 0;
        padding: 14px 0 4px;
    }

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

    .header-search {
        width: min(100%, 420px);
    }

    .split-section,
    .player-grid,
    .detail-content,
    .intro-card {
        grid-template-columns: 1fr;
    }

    .rank-panel {
        position: static;
    }
}

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

    .site-nav {
        flex-direction: column;
        align-items: flex-start;
    }

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

    .hero {
        min-height: 620px;
        height: 78vh;
    }

    .hero-content {
        padding: 0 18px 72px;
    }

    .hero-arrow {
        display: none;
    }

    .section {
        padding: 42px 16px;
    }

    .section-heading,
    .detail-title-row,
    .filter-panel {
        align-items: stretch;
        flex-direction: column;
    }

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

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

    .category-covers {
        height: 130px;
    }

    .ranking-item {
        grid-template-columns: 38px 58px minmax(0, 1fr);
    }

    .ranking-item img {
        width: 58px;
        height: 82px;
    }

    .ranking-side {
        grid-column: 3;
    }

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

@media (max-width: 420px) {
    .movie-grid {
        grid-template-columns: 1fr;
    }

    .hero h1,
    .page-hero h1,
    .detail-title-row h1 {
        letter-spacing: -0.035em;
    }
}
