@charset "UTF-8";

:root {
    color-scheme: dark;
    --bg: #0c0a09;
    --bg-soft: #1c1917;
    --panel: rgba(41, 37, 36, 0.76);
    --panel-strong: #292524;
    --text: #fafaf9;
    --muted: #a8a29e;
    --line: rgba(120, 113, 108, 0.28);
    --amber: #f59e0b;
    --amber-soft: #fbbf24;
    --copper: #b45309;
    --shadow: rgba(0, 0, 0, 0.38);
    --max: 1480px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at 18% 12%, rgba(245, 158, 11, 0.12), transparent 28rem),
        radial-gradient(circle at 85% 20%, rgba(180, 83, 9, 0.18), transparent 32rem),
        linear-gradient(180deg, #0c0a09 0%, #1c1917 48%, #0c0a09 100%);
    color: var(--text);
    min-height: 100vh;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(28, 25, 23, 0.94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
}

.nav-wrap {
    width: min(100% - 32px, var(--max));
    min-height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--amber), var(--copper));
    color: #ffffff;
    box-shadow: 0 14px 34px rgba(245, 158, 11, 0.22);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.brand-mark.small {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    font-size: 13px;
}

.brand:hover .brand-mark {
    transform: scale(1.08) rotate(-4deg);
    box-shadow: 0 18px 42px rgba(245, 158, 11, 0.34);
}

.brand-name {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 0.02em;
    background: linear-gradient(90deg, var(--amber-soft), var(--copper));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 18px;
    color: #d6d3d1;
    font-weight: 650;
}

.nav-links a {
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover {
    color: var(--amber-soft);
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(41, 37, 36, 0.8);
    color: #fff;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 5px auto;
    border-radius: 999px;
    background: currentColor;
}

main {
    overflow: hidden;
}

.hero {
    position: relative;
    min-height: 72vh;
    overflow: hidden;
    background: #0c0a09;
}

.hero-track {
    position: absolute;
    inset: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.7s ease, visibility 0.7s ease;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
    filter: saturate(0.98) contrast(1.05);
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 70% 35%, rgba(245, 158, 11, 0.18), transparent 30rem),
        linear-gradient(90deg, rgba(12, 10, 9, 0.96) 0%, rgba(12, 10, 9, 0.78) 42%, rgba(12, 10, 9, 0.22) 100%),
        linear-gradient(0deg, #0c0a09 0%, rgba(12, 10, 9, 0.58) 44%, rgba(12, 10, 9, 0.34) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(100% - 32px, var(--max));
    min-height: 72vh;
    margin: 0 auto;
    display: flex;
    align-items: flex-end;
    padding: 88px 0 76px;
}

.hero-panel {
    max-width: 780px;
    animation: fadeUp 0.72s ease both;
}

.eyebrow,
.meta-row,
.tag-row,
.breadcrumbs,
.category-chip-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.eyebrow span,
.tag-row span,
.category-chip-row a {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.16);
    border: 1px solid rgba(245, 158, 11, 0.24);
    color: #fcd34d;
    font-size: 13px;
    font-weight: 700;
}

.hero h1,
.page-hero h1,
.detail-title h1 {
    margin: 16px 0;
    font-size: clamp(38px, 7vw, 82px);
    line-height: 1.04;
    letter-spacing: -0.055em;
    font-weight: 950;
}

.hero h1 {
    text-shadow: 0 18px 50px var(--shadow);
}

.hero p,
.page-hero p,
.detail-title p {
    margin: 0;
    color: #d6d3d1;
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.8;
}

.hero-actions,
.section-head,
.detail-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.hero-actions {
    margin-top: 30px;
}

.primary-button,
.secondary-button,
.ghost-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 14px;
    font-weight: 850;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.primary-button {
    color: #fff;
    background: linear-gradient(90deg, var(--amber), var(--copper));
    box-shadow: 0 18px 38px rgba(245, 158, 11, 0.24);
}

.secondary-button,
.ghost-link {
    color: #f5f5f4;
    border: 1px solid rgba(214, 211, 209, 0.2);
    background: rgba(41, 37, 36, 0.64);
}

.primary-button:hover,
.secondary-button:hover,
.ghost-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 44px rgba(245, 158, 11, 0.18);
}

.hero-controls {
    position: absolute;
    z-index: 4;
    right: max(16px, calc((100vw - var(--max)) / 2));
    bottom: 42px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-dot,
.hero-arrow {
    border: 0;
    color: #fff;
    background: rgba(41, 37, 36, 0.72);
    backdrop-filter: blur(10px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.hero-dot {
    width: 12px;
    height: 12px;
    padding: 0;
    border-radius: 999px;
}

.hero-dot.is-active {
    width: 34px;
    background: linear-gradient(90deg, var(--amber), var(--copper));
}

.hero-arrow {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    font-size: 24px;
}

.section,
.page-hero,
.detail-wrap {
    width: min(100% - 32px, var(--max));
    margin: 0 auto;
}

.section {
    padding: 70px 0;
}

.section.alt {
    width: 100%;
    padding: 70px max(16px, calc((100vw - var(--max)) / 2));
    background: linear-gradient(135deg, rgba(41, 37, 36, 0.72), rgba(28, 25, 23, 0.94));
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.section-head {
    justify-content: space-between;
    margin-bottom: 30px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title i {
    width: 8px;
    height: 32px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--amber), var(--copper));
}

.section-title h2,
.page-hero h1,
.detail-section h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 900;
    letter-spacing: -0.035em;
}

.section-head p,
.page-hero p {
    max-width: 820px;
    color: var(--muted);
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(41, 37, 36, 0.72);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.movie-card:hover {
    transform: translateY(-8px) scale(1.012);
    border-color: rgba(245, 158, 11, 0.42);
    box-shadow: 0 26px 64px rgba(245, 158, 11, 0.12);
}

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

.movie-card.compact .poster-link {
    aspect-ratio: 16 / 11;
}

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

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

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 35%, rgba(12, 10, 9, 0.82) 100%);
}

.score-pill,
.rank-badge {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
}

.score-pill {
    right: 12px;
    top: 12px;
    color: #0c0a09;
    background: #fbbf24;
}

.rank-badge {
    left: 12px;
    top: 12px;
    color: #fff;
    background: linear-gradient(90deg, #dc2626, var(--amber));
}

.movie-info {
    padding: 18px;
}

.meta-row {
    color: #a8a29e;
    font-size: 13px;
    gap: 8px;
}

.meta-row span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.meta-row span + span::before {
    content: "";
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(168, 162, 158, 0.55);
}

.movie-info h3 {
    margin: 10px 0 8px;
    font-size: 19px;
    line-height: 1.3;
    font-weight: 850;
}

.movie-info h3 a:hover {
    color: var(--amber-soft);
}

.movie-info p {
    margin: 0 0 14px;
    color: #c7c2bd;
    line-height: 1.72;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-card.compact .movie-info p {
    -webkit-line-clamp: 2;
}

.tag-row span {
    min-height: 24px;
    padding: 2px 8px;
    font-size: 12px;
    color: #f5d38a;
    background: rgba(245, 158, 11, 0.1);
}

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

.category-tile {
    min-height: 146px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background:
        radial-gradient(circle at 75% 20%, rgba(245, 158, 11, 0.2), transparent 7rem),
        rgba(41, 37, 36, 0.76);
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.category-tile:hover {
    transform: translateY(-5px);
    border-color: rgba(245, 158, 11, 0.46);
    background:
        radial-gradient(circle at 75% 20%, rgba(245, 158, 11, 0.3), transparent 8rem),
        rgba(68, 64, 60, 0.78);
}

.category-tile span {
    display: block;
    margin-bottom: 10px;
    font-size: 22px;
    font-weight: 900;
    color: #fbbf24;
}

.category-tile p {
    margin: 0;
    color: #c7c2bd;
    line-height: 1.7;
}

.page-hero {
    padding: 64px 0 28px;
}

.breadcrumbs {
    margin-bottom: 16px;
    color: #a8a29e;
    font-size: 14px;
}

.breadcrumbs a:hover {
    color: var(--amber-soft);
}

.filter-panel {
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 16px;
    margin: 28px 0 34px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(28, 25, 23, 0.68);
}

.filter-panel label {
    flex: 1 1 220px;
    display: grid;
    gap: 8px;
    color: #d6d3d1;
    font-size: 14px;
    font-weight: 760;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 48px;
    border: 1px solid rgba(168, 162, 158, 0.26);
    border-radius: 14px;
    outline: none;
    background: rgba(12, 10, 9, 0.72);
    color: #fff;
    padding: 0 14px;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: rgba(245, 158, 11, 0.7);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12);
}

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

.ranking-row {
    display: grid;
    grid-template-columns: 64px 112px 1fr auto;
    align-items: center;
    gap: 18px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(41, 37, 36, 0.7);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.ranking-row:hover {
    transform: translateX(4px);
    border-color: rgba(245, 158, 11, 0.36);
}

.ranking-number {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    color: #0c0a09;
    background: linear-gradient(135deg, var(--amber-soft), var(--amber));
    font-size: 17px;
    font-weight: 950;
}

.ranking-poster {
    overflow: hidden;
    border-radius: 16px;
    aspect-ratio: 3 / 4;
    background: #1c1917;
}

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

.ranking-main h3 {
    margin: 7px 0;
    font-size: 22px;
}

.ranking-main h3 a:hover {
    color: var(--amber-soft);
}

.ranking-main p {
    margin: 0;
    color: #c7c2bd;
    line-height: 1.7;
}

.detail-hero {
    position: relative;
    isolation: isolate;
    min-height: 58vh;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}

.detail-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--detail-bg) center / cover no-repeat;
    filter: blur(18px) saturate(1.08);
    transform: scale(1.08);
    opacity: 0.38;
    z-index: -2;
}

.detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, #0c0a09 0%, rgba(12, 10, 9, 0.84) 48%, rgba(12, 10, 9, 0.54) 100%),
        linear-gradient(0deg, #0c0a09 0%, rgba(12, 10, 9, 0.2) 100%);
    z-index: -1;
}

.detail-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 42px;
    padding: 54px 0;
}

.detail-title .eyebrow {
    margin-bottom: 14px;
}

.detail-poster {
    overflow: hidden;
    border: 1px solid rgba(245, 158, 11, 0.22);
    border-radius: 28px;
    background: rgba(41, 37, 36, 0.8);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
}

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

.player-section {
    width: min(100% - 32px, var(--max));
    margin: 48px auto 0;
}

.player-frame {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(245, 158, 11, 0.24);
    border-radius: 28px;
    background: #000;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
    aspect-ratio: 16 / 9;
}

.player-frame video {
    width: 100%;
    height: 100%;
    background: #000;
}

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background-position: center;
    background-size: cover;
    cursor: pointer;
    transition: opacity 0.28s ease, visibility 0.28s ease;
}

.player-cover::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at center, rgba(245, 158, 11, 0.22), transparent 22rem),
        linear-gradient(0deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.35));
}

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

.play-button {
    position: relative;
    z-index: 2;
    width: 92px;
    height: 92px;
    border: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--amber), var(--copper));
    box-shadow: 0 20px 60px rgba(245, 158, 11, 0.35);
}

.play-button span {
    display: block;
    width: 0;
    height: 0;
    margin-left: 35px;
    border-top: 18px solid transparent;
    border-bottom: 18px solid transparent;
    border-left: 26px solid #fff;
}

.player-message {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 20px;
    z-index: 3;
    color: #fef3c7;
    text-align: center;
    font-weight: 700;
}

.detail-section {
    width: min(100% - 32px, var(--max));
    margin: 0 auto;
    padding: 56px 0;
}

.detail-section article {
    max-width: 980px;
}

.detail-section p {
    color: #d6d3d1;
    font-size: 18px;
    line-height: 2;
}

.detail-section h2 {
    margin-bottom: 18px;
}

.info-table {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 26px;
}

.info-table div {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(41, 37, 36, 0.72);
}

.info-table strong {
    display: block;
    margin-bottom: 8px;
    color: #fbbf24;
}

.no-result {
    display: none;
    margin: 30px 0;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 18px;
    color: #d6d3d1;
    background: rgba(41, 37, 36, 0.68);
}

.site-footer {
    border-top: 1px solid var(--line);
    background: rgba(28, 25, 23, 0.96);
}

.footer-grid {
    width: min(100% - 32px, var(--max));
    margin: 0 auto;
    padding: 54px 0 44px;
    display: grid;
    grid-template-columns: 1.35fr 1fr 1fr 1fr;
    gap: 34px;
}

.site-footer h3 {
    margin: 0 0 14px;
    color: #fbbf24;
}

.site-footer p,
.site-footer li,
.site-footer a {
    color: #a8a29e;
    line-height: 1.8;
}

.site-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer a:hover {
    color: var(--amber-soft);
}

.footer-bottom {
    width: min(100% - 32px, var(--max));
    margin: 0 auto;
    padding: 20px 0 28px;
    border-top: 1px solid var(--line);
    color: #78716c;
    text-align: center;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

@media (max-width: 900px) {
    .nav-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 76px;
        display: none;
        padding: 16px;
        border: 1px solid var(--line);
        border-radius: 18px;
        background: rgba(28, 25, 23, 0.98);
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.36);
    }

    .nav-links.is-open {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .hero-content {
        align-items: center;
        padding-bottom: 88px;
    }

    .hero-controls {
        left: 16px;
        right: auto;
        bottom: 24px;
    }

    .movie-grid,
    .movie-grid.six,
    .category-grid,
    .footer-grid,
    .info-table {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

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

    .ranking-row {
        grid-template-columns: 48px 92px 1fr;
    }

    .ranking-row .ghost-link {
        grid-column: 2 / -1;
        width: max-content;
    }
}

@media (max-width: 620px) {
    .brand-name {
        font-size: 20px;
    }

    .hero,
    .hero-content {
        min-height: 76vh;
    }

    .hero h1,
    .page-hero h1,
    .detail-title h1 {
        font-size: 38px;
    }

    .section,
    .section.alt,
    .detail-section {
        padding-top: 48px;
        padding-bottom: 48px;
    }

    .movie-grid,
    .movie-grid.six,
    .category-grid,
    .footer-grid,
    .info-table {
        grid-template-columns: 1fr;
    }

    .ranking-row {
        grid-template-columns: 42px 82px 1fr;
        gap: 12px;
    }

    .ranking-number {
        width: 40px;
        height: 40px;
        border-radius: 12px;
        font-size: 14px;
    }

    .ranking-main p {
        display: none;
    }

    .player-frame {
        border-radius: 18px;
    }

    .play-button {
        width: 74px;
        height: 74px;
    }

    .play-button span {
        margin-left: 29px;
        border-top-width: 14px;
        border-bottom-width: 14px;
        border-left-width: 21px;
    }
}
