:root {
    --ash-50: #f8f9fa;
    --ash-100: #eef1f4;
    --ash-200: #d8dde3;
    --ash-300: #b6bec8;
    --ash-400: #88929f;
    --ash-500: #65707e;
    --ash-600: #4a5360;
    --ash-700: #2b3139;
    --ash-800: #1a1f26;
    --ash-900: #0d0f12;
    --volcanic-50: #fff4ee;
    --volcanic-100: #fdeae1;
    --volcanic-200: #fbd5c3;
    --volcanic-300: #f8bfa5;
    --volcanic-600: #f07f4a;
    --volcanic-700: #ec602e;
    --volcanic-800: #e84118;
    --volcanic-900: #c03711;
    --lava-50: #fff9e8;
    --lava-100: #fff0bd;
    --lava-400: #ffb81a;
    --lava-600: #e68a00;
    --white: #ffffff;
    --shadow-sm: 0 8px 24px rgba(13, 15, 18, 0.08);
    --shadow-md: 0 18px 48px rgba(13, 15, 18, 0.14);
    --shadow-lg: 0 28px 68px rgba(232, 65, 24, 0.28);
    font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ash-900);
    background: linear-gradient(180deg, var(--ash-50) 0%, var(--white) 44%, var(--volcanic-50) 100%);
    min-height: 100vh;
}

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

img {
    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: 80;
    background: linear-gradient(90deg, var(--volcanic-800), var(--volcanic-900));
    box-shadow: 0 14px 30px rgba(13, 15, 18, 0.22);
}

.nav-wrap {
    width: min(1180px, calc(100% - 32px));
    height: 76px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--white);
}

.brand-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--ash-900);
    background: var(--lava-400);
    box-shadow: 0 0 36px rgba(255, 184, 26, 0.48);
    transition: transform 0.25s ease;
}

.brand:hover .brand-icon {
    transform: scale(1.08) rotate(4deg);
}

.brand-text {
    display: grid;
    gap: 2px;
}

.brand-text strong {
    font-size: 22px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.brand-text em {
    font-size: 12px;
    color: var(--volcanic-100);
    font-style: normal;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 26px;
}

.nav-link {
    color: var(--white);
    font-weight: 650;
    position: relative;
    transition: color 0.2s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -10px;
    height: 3px;
    border-radius: 999px;
    background: var(--lava-400);
    transform: scaleX(0);
    transition: transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--lava-400);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

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

.mobile-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--white);
    border-radius: 999px;
}

.mobile-panel {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.mobile-panel.is-open {
    display: grid;
    gap: 10px;
}

.mobile-link {
    color: var(--white);
    padding: 10px 2px;
    font-weight: 650;
}

.mobile-link.active {
    color: var(--lava-400);
}

.hero-slider {
    position: relative;
    height: 600px;
    overflow: hidden;
    background: var(--ash-900);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1s ease;
}

.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
}

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

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 38%, rgba(255, 184, 26, 0.32), transparent 32%),
        linear-gradient(0deg, rgba(13, 15, 18, 0.94) 0%, rgba(13, 15, 18, 0.58) 46%, rgba(13, 15, 18, 0.16) 100%);
}

.hero-content {
    position: absolute;
    left: max(24px, calc((100vw - 1180px) / 2));
    bottom: 72px;
    max-width: 760px;
    color: var(--white);
    padding-right: 24px;
}

.hero-kicker,
.page-hero-content span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    margin-bottom: 18px;
    border-radius: 999px;
    color: var(--lava-400);
    background: rgba(13, 15, 18, 0.5);
    backdrop-filter: blur(10px);
    font-weight: 700;
}

.hero-content h1,
.page-hero-content h1 {
    margin: 0 0 18px;
    font-size: clamp(34px, 6vw, 62px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.04em;
    text-shadow: 0 14px 44px rgba(0, 0, 0, 0.55);
}

.hero-content p,
.page-hero-content p {
    margin: 0 0 22px;
    max-width: 760px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 18px;
    line-height: 1.8;
}

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

.hero-tags span,
.tag-row span {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--volcanic-900);
    background: var(--volcanic-100);
    font-size: 12px;
    font-weight: 700;
}

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

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

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

.btn-primary {
    color: var(--white);
    background: linear-gradient(90deg, var(--volcanic-600), var(--volcanic-800));
    box-shadow: var(--shadow-lg);
}

.btn-ghost {
    color: var(--white);
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px);
}

.btn-dark {
    color: var(--lava-400);
    background: rgba(13, 15, 18, 0.78);
    box-shadow: inset 0 0 0 1px rgba(255, 184, 26, 0.3);
}

.btn-outline {
    color: var(--volcanic-800);
    background: var(--white);
    box-shadow: inset 0 0 0 1px var(--volcanic-200), var(--shadow-sm);
}

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

.hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.active {
    width: 34px;
    background: var(--lava-400);
}

.intro-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: -34px;
    position: relative;
    z-index: 12;
    padding: 28px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(14px);
}

.intro-copy h2,
.section-head h2,
.detail-card h2,
.side-card h2 {
    margin: 0;
    color: var(--ash-900);
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 900;
    letter-spacing: -0.02em;
}

.intro-copy p,
.section-head p {
    margin: 10px 0 0;
    color: var(--ash-600);
    line-height: 1.8;
}

.intro-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    flex-shrink: 0;
}

.page-section {
    padding: 68px 0;
}

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

.section-head::after {
    content: "";
    flex: 1;
    height: 4px;
    min-width: 80px;
    margin-bottom: 12px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--volcanic-600), transparent);
}

.section-more,
.text-link {
    color: var(--volcanic-800);
    font-weight: 800;
    white-space: nowrap;
}

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

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

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

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

.movie-card {
    min-width: 0;
}

.card-cover {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    border-radius: 16px;
    background: var(--ash-200);
    box-shadow: var(--shadow-sm);
}

.wide-card .card-cover,
.landscape-grid .card-cover {
    aspect-ratio: 16 / 9;
}

.card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(13, 15, 18, 0.78), rgba(13, 15, 18, 0.08));
    opacity: 0.78;
    transition: opacity 0.25s ease;
}

.movie-card:hover .card-overlay {
    opacity: 0.52;
}

.play-badge,
.player-play {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.86);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--white);
    background: linear-gradient(135deg, var(--volcanic-600), var(--volcanic-800));
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.year-badge,
.card-rank {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 9px;
    border-radius: 10px;
    color: var(--white);
    background: rgba(0, 0, 0, 0.64);
    backdrop-filter: blur(8px);
    font-size: 12px;
    font-weight: 800;
}

.card-rank {
    left: 10px;
    right: auto;
    background: var(--lava-600);
}

.card-body {
    padding: 12px 2px 0;
}

.card-body h3 {
    margin: 0 0 8px;
    font-size: 16px;
    line-height: 1.45;
    font-weight: 850;
}

.card-body h3 a {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color 0.2s ease;
}

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

.card-body p {
    display: -webkit-box;
    margin: 0 0 10px;
    color: var(--ash-600);
    font-size: 13px;
    line-height: 1.65;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--ash-500);
    font-size: 12px;
}

.category-band {
    background: linear-gradient(135deg, var(--volcanic-50), var(--lava-50));
}

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

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

.category-panel {
    display: grid;
    grid-template-columns: 210px 1fr;
    gap: 22px;
    padding: 18px;
    border-radius: 24px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.category-directory .category-panel {
    grid-template-columns: 240px 320px 1fr;
}

.category-hero {
    position: relative;
    min-height: 180px;
    overflow: hidden;
    border-radius: 18px;
    background: var(--ash-900);
}

.category-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.78;
    transition: transform 0.35s ease;
}

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

.category-hero span {
    position: absolute;
    left: 16px;
    bottom: 16px;
    color: var(--white);
    font-size: 22px;
    font-weight: 900;
    text-shadow: 0 8px 26px rgba(0, 0, 0, 0.5);
}

.category-panel-body h2 {
    margin: 6px 0 12px;
    font-size: 24px;
}

.category-panel-body p {
    margin: 0 0 14px;
    color: var(--ash-600);
    line-height: 1.8;
}

.category-preview {
    display: none;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.category-directory .category-preview {
    display: grid;
}

.category-preview .card-body p,
.category-preview .tag-row,
.category-preview .meta-line {
    display: none;
}

.category-preview .card-body h3 {
    font-size: 13px;
}

.two-column-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 36px;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 52px 96px 1fr;
    align-items: stretch;
    min-height: 118px;
    overflow: hidden;
    border-radius: 18px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-row:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.rank-num {
    display: grid;
    place-items: center;
    color: var(--white);
    font-size: 24px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--volcanic-600), var(--volcanic-900));
}

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

.rank-info {
    display: grid;
    gap: 8px;
    align-content: center;
    padding: 14px;
}

.rank-info strong {
    font-size: 17px;
    font-weight: 900;
}

.rank-info em {
    display: -webkit-box;
    overflow: hidden;
    color: var(--ash-600);
    font-size: 13px;
    line-height: 1.6;
    font-style: normal;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.rank-info b {
    color: var(--volcanic-800);
    font-size: 12px;
}

.full-rank {
    gap: 14px;
}

.full-rank .rank-row {
    grid-template-columns: 70px 138px 1fr;
    min-height: 152px;
}

.page-hero {
    position: relative;
    min-height: 380px;
    overflow: hidden;
    background: var(--ash-900);
}

.slim-hero {
    min-height: 340px;
}

.page-hero img {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    object-fit: cover;
}

.page-hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(13, 15, 18, 0.92), rgba(13, 15, 18, 0.38));
}

.page-hero-content {
    position: relative;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 86px 0 60px;
    color: var(--white);
}

.filter-bar {
    display: flex;
    gap: 12px;
    margin: 0 0 28px;
}

.filter-bar input,
.filter-bar select {
    min-height: 48px;
    border: 1px solid var(--ash-200);
    border-radius: 16px;
    color: var(--ash-900);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.filter-bar input {
    flex: 1;
    padding: 0 16px;
}

.filter-bar select {
    width: 168px;
    padding: 0 12px;
}

.player-section {
    background: var(--ash-900);
    padding: 28px 0 44px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 18px;
    color: var(--ash-300);
    font-size: 14px;
}

.breadcrumb a {
    color: var(--lava-400);
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #000000;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
}

.player-video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.player-cover {
    position: absolute;
    inset: 0;
    border: 0;
    padding: 0;
    cursor: pointer;
    background: #000000;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.player-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.72;
}

.player-gradient {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(240, 127, 74, 0.22), rgba(0, 0, 0, 0.72));
}

.player-play {
    width: 78px;
    height: 78px;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    font-size: 30px;
}

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

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 34px;
    padding: 44px 0 76px;
}

.detail-main,
.detail-side {
    display: grid;
    align-content: start;
    gap: 24px;
}

.detail-card,
.side-card {
    padding: 28px;
    border-radius: 24px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.detail-card h1 {
    margin: 0 0 12px;
    color: var(--ash-900);
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.1;
    font-weight: 950;
    letter-spacing: -0.03em;
}

.detail-one-line {
    margin: 0 0 20px;
    color: var(--ash-700);
    font-size: 18px;
    line-height: 1.8;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.detail-meta span {
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--ash-700);
    background: var(--ash-100);
    font-weight: 700;
}

.detail-tags {
    margin-bottom: 28px;
}

.detail-card h2 {
    margin-top: 28px;
    margin-bottom: 12px;
    font-size: 24px;
}

.detail-card p {
    color: var(--ash-700);
    font-size: 16px;
    line-height: 2;
}

.side-rank .rank-row {
    grid-template-columns: 42px 72px 1fr;
    min-height: 96px;
}

.side-rank .rank-info em,
.side-rank .rank-info b {
    display: none;
}

.side-rank .rank-info strong {
    font-size: 14px;
}

.site-footer {
    color: var(--ash-300);
    background: var(--ash-900);
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 46px 0;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 28px;
}

.footer-logo {
    margin-bottom: 12px;
    color: var(--white);
    font-size: 24px;
    font-weight: 900;
}

.footer-brand p,
.footer-copy p {
    margin: 0 0 8px;
    color: var(--ash-400);
    line-height: 1.8;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    align-content: start;
}

.footer-links span {
    flex-basis: 100%;
    color: var(--white);
    font-weight: 800;
}

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

.footer-links a:hover {
    color: var(--lava-400);
}

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

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

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

    .category-directory .category-panel {
        grid-template-columns: 220px 1fr;
    }

    .category-directory .category-preview {
        grid-column: 1 / -1;
    }

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

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

    .mobile-toggle {
        display: block;
    }

    .hero-slider {
        height: 540px;
    }

    .hero-content {
        bottom: 64px;
    }

    .intro-strip,
    .section-head,
    .two-column-layout,
    .footer-inner {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }

    .section-head::after {
        display: none;
    }

    .card-grid,
    .all-grid,
    .landscape-grid,
    .related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .category-preview {
        display: none !important;
    }

    .filter-bar {
        flex-direction: column;
    }

    .filter-bar select {
        width: 100%;
    }

    .full-rank .rank-row,
    .rank-row {
        grid-template-columns: 48px 86px 1fr;
        min-height: 112px;
    }
}

@media (max-width: 520px) {
    .container,
    .nav-wrap,
    .mobile-panel,
    .footer-inner,
    .page-hero-content {
        width: min(100% - 24px, 1180px);
    }

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

    .brand-text em {
        display: none;
    }

    .hero-slider {
        height: 500px;
    }

    .hero-content h1,
    .page-hero-content h1 {
        font-size: 34px;
    }

    .hero-content p,
    .page-hero-content p {
        font-size: 15px;
    }

    .hero-actions,
    .intro-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .page-section {
        padding: 46px 0;
    }

    .card-grid,
    .all-grid,
    .landscape-grid,
    .related-grid {
        gap: 16px;
    }

    .card-body h3 {
        font-size: 14px;
    }

    .card-body p,
    .tag-row {
        display: none;
    }

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