:root {
    --bg: #030712;
    --bg-soft: #111827;
    --bg-card: #1f2937;
    --bg-card-2: #263244;
    --text: #f9fafb;
    --muted: #9ca3af;
    --muted-2: #6b7280;
    --amber: #fbbf24;
    --amber-dark: #d97706;
    --red: #ef4444;
    --blue: #3b82f6;
    --green: #22c55e;
    --border: rgba(255, 255, 255, 0.08);
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
    --radius: 20px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: radial-gradient(circle at top left, rgba(251, 191, 36, 0.16), transparent 30%), var(--bg);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

img,
video {
    display: block;
    width: 100%;
    height: auto;
}

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(0, 0, 0, 0.92);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.38);
    backdrop-filter: blur(14px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 68px;
    gap: 24px;
}

.logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.03em;
    color: transparent;
    background: linear-gradient(90deg, var(--amber), #fef3c7);
    -webkit-background-clip: text;
    background-clip: text;
}

.logo-mark,
.footer-logo span {
    display: inline-grid;
    width: 32px;
    height: 32px;
    place-items: center;
    color: var(--amber);
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.28);
    border-radius: 50%;
    transition: transform 0.5s ease;
}

.logo:hover .logo-mark {
    transform: rotate(180deg) scale(1.08);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    color: #e5e7eb;
    font-weight: 700;
}

.desktop-nav a,
.mobile-nav a {
    transition: color 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-nav a:hover,
.mobile-nav a.active {
    color: var(--amber);
}

.header-search {
    position: relative;
    display: flex;
    align-items: center;
    width: 290px;
    background: var(--bg-card);
    border: 1px solid transparent;
    border-radius: 999px;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search:focus-within {
    border-color: rgba(251, 191, 36, 0.55);
    box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.12);
}

.header-search input,
.mobile-nav input,
.filter-input {
    width: 100%;
    color: var(--text);
    background: transparent;
    border: 0;
    outline: 0;
    padding: 12px 16px;
}

.header-search button,
.mobile-nav button,
.btn,
.hero-button,
.section-link,
.filter-button {
    border: 0;
    cursor: pointer;
    font-weight: 900;
}

.header-search button {
    color: #111827;
    background: var(--amber);
    padding: 12px 16px;
}

.menu-toggle {
    display: none;
    color: var(--text);
    background: transparent;
    border: 0;
    font-size: 28px;
}

.mobile-nav {
    display: none;
    padding: 16px;
    border-top: 1px solid var(--border);
    background: rgba(3, 7, 18, 0.98);
}

.mobile-nav.is-open {
    display: grid;
    gap: 14px;
}

.mobile-nav form {
    display: flex;
    background: var(--bg-card);
    border-radius: 14px;
    overflow: hidden;
}

.mobile-nav button {
    color: #111827;
    background: var(--amber);
    padding: 0 16px;
}

.hero {
    position: relative;
    min-height: 600px;
    overflow: hidden;
    background: #000;
}

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

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

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.96), rgba(0, 0, 0, 0.72) 45%, rgba(0, 0, 0, 0.16)), linear-gradient(0deg, rgba(3, 7, 18, 1), transparent 34%);
}

.hero-content {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 600px;
    padding: 80px 0;
}

.hero-copy {
    width: min(680px, 100%);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--amber);
    font-size: 18px;
    font-weight: 900;
    margin-bottom: 18px;
}

.eyebrow span {
    display: inline-grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 50%;
    background: rgba(251, 191, 36, 0.12);
    border: 1px solid rgba(251, 191, 36, 0.28);
    animation: pulse 1.8s ease-in-out infinite;
}

.hero h1 {
    margin: 0 0 24px;
    font-size: clamp(42px, 7vw, 76px);
    line-height: 1.04;
    letter-spacing: -0.06em;
    text-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.hero p {
    max-width: 620px;
    color: #d1d5db;
    font-size: 20px;
    margin: 0 0 28px;
}

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

.hero-meta span,
.detail-meta span,
.meta-list span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #e5e7eb;
    background: rgba(17, 24, 39, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    padding: 7px 12px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 34px;
}

.hero-button,
.btn,
.filter-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    color: #111827;
    background: var(--amber);
    border-radius: 12px;
    padding: 0 22px;
    box-shadow: 0 18px 40px rgba(251, 191, 36, 0.26);
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.hero-button:hover,
.btn:hover,
.filter-button:hover {
    background: #f59e0b;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 22px 54px rgba(251, 191, 36, 0.34);
}

.btn-ghost {
    color: var(--text);
    background: rgba(31, 41, 55, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: none;
}

main {
    background: linear-gradient(180deg, #030712 0%, #020617 45%, #111827 100%);
}

.section {
    padding: 72px 0;
}

.section-soft {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 54px 32px;
    border-radius: 32px;
    background: linear-gradient(90deg, rgba(31, 41, 55, 0.72), rgba(17, 24, 39, 0.15));
    border: 1px solid var(--border);
}

.section-glow {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    position: relative;
    border-radius: 32px;
    padding: 54px 32px;
    overflow: hidden;
    border: 1px solid rgba(251, 191, 36, 0.1);
}

.section-glow::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(120, 53, 15, 0.25), transparent);
    pointer-events: none;
}

.section-glow > * {
    position: relative;
}

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

.section-heading > div {
    display: grid;
    gap: 8px;
}

.section-heading h2,
.page-hero h1,
.detail-title h1 {
    margin: 0;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.section-heading p,
.page-hero p,
.detail-title p {
    margin: 0;
    color: var(--muted);
}

.section-icon {
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: var(--amber);
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: 14px;
    font-size: 22px;
}

.section-link {
    color: var(--amber);
    background: rgba(251, 191, 36, 0.08);
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: 999px;
    padding: 10px 16px;
    box-shadow: none;
}

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

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

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

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

.movie-card,
.movie-card-horizontal,
.category-card,
.rank-item,
.content-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.22);
    transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease, background 0.24s ease;
}

.movie-card:hover,
.movie-card-horizontal:hover,
.category-card:hover,
.rank-item:hover {
    transform: translateY(-5px);
    border-color: rgba(251, 191, 36, 0.28);
    box-shadow: 0 24px 60px rgba(251, 191, 36, 0.12);
}

.movie-card-cover,
.minimal-cover,
.horizontal-cover,
.detail-cover {
    position: relative;
    display: block;
    overflow: hidden;
    background: #020617;
}

.movie-card-cover {
    height: 270px;
}

.movie-card-large .movie-card-cover {
    height: 360px;
}

.movie-card-cover img,
.minimal-cover img,
.horizontal-cover img,
.detail-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.movie-card:hover img,
.movie-card-horizontal:hover img,
.category-card:hover img,
.rank-item:hover img {
    transform: scale(1.08);
}

.movie-pill,
.movie-score,
.minimal-cover span,
.rank-number {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    background: rgba(0, 0, 0, 0.72);
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 900;
    backdrop-filter: blur(10px);
}

.movie-pill {
    top: 12px;
    left: 12px;
}

.movie-score {
    right: 12px;
    bottom: 12px;
    color: var(--amber);
}

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

.movie-card h3,
.movie-card-horizontal h3,
.rank-item h3 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 18px;
    line-height: 1.35;
}

.movie-card h3 a,
.movie-card-horizontal h3 a,
.rank-item h3 a {
    transition: color 0.2s ease;
}

.movie-card h3 a:hover,
.movie-card-horizontal h3 a:hover,
.rank-item h3 a:hover {
    color: var(--amber);
}

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

.movie-desc,
.movie-card-horizontal p,
.rank-item p {
    color: var(--muted);
    font-size: 14px;
    margin: 0;
}

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

.tag-row span,
.tag {
    color: #fef3c7;
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.18);
    border-radius: 999px;
    padding: 5px 9px;
    font-size: 12px;
}

.movie-card-minimal {
    background: transparent;
    border: 0;
    box-shadow: none;
}

.movie-card-minimal:hover {
    transform: none;
    box-shadow: none;
}

.minimal-cover {
    height: 225px;
    border-radius: 16px;
    margin-bottom: 12px;
}

.minimal-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 0.25s ease;
}

.movie-card-minimal:hover .minimal-cover::after {
    background: rgba(0, 0, 0, 0.3);
}

.minimal-cover span {
    right: 10px;
    bottom: 10px;
}

.movie-card-minimal h3 {
    margin: 0 0 4px;
    font-size: 16px;
}

.movie-card-minimal p {
    margin: 0;
    color: var(--muted-2);
    font-size: 13px;
}

.movie-card-horizontal {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 14px;
    padding: 12px;
}

.horizontal-cover {
    height: 96px;
    border-radius: 12px;
}

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

.category-card {
    min-height: 176px;
    padding: 22px;
    background: linear-gradient(135deg, rgba(31, 41, 55, 1), rgba(17, 24, 39, 0.85));
}

.category-card strong {
    display: block;
    margin: 16px 0 8px;
    font-size: 22px;
}

.category-card p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.category-card span {
    display: inline-grid;
    width: 44px;
    height: 44px;
    place-items: center;
    color: var(--amber);
    background: rgba(251, 191, 36, 0.1);
    border-radius: 14px;
}

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

.rank-item {
    position: relative;
    display: grid;
    grid-template-columns: 96px 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 14px;
}

.rank-cover {
    height: 72px;
    border-radius: 12px;
    overflow: hidden;
}

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

.rank-number {
    left: 8px;
    top: 8px;
    color: #111827;
    background: var(--amber);
}

.rank-score {
    color: var(--amber);
    font-size: 24px;
    font-weight: 900;
}

.cta {
    padding: 58px 28px;
    text-align: center;
    background: linear-gradient(90deg, #78350f, #713f12);
    border-radius: 32px;
    box-shadow: var(--shadow);
}

.cta h2 {
    margin: 0 0 14px;
    font-size: clamp(30px, 4vw, 46px);
}

.cta p {
    margin: 0 0 28px;
    color: #fde68a;
    font-size: 20px;
}

.page-hero {
    padding: 76px 0 54px;
    background: linear-gradient(90deg, #000, #1f2937);
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 14px;
}

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

.filter-bar {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 12px;
    margin: 0 0 28px;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 18px;
}

.filter-input,
.filter-select {
    color: var(--text);
    background: #111827;
    border: 1px solid var(--border);
    border-radius: 12px;
    min-height: 48px;
}

.filter-select {
    padding: 0 14px;
    outline: 0;
}

.empty-state {
    display: none;
    padding: 56px;
    text-align: center;
    color: var(--muted);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 22px;
}

.detail-main {
    padding: 42px 0 82px;
}

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

.player-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #000;
    box-shadow: var(--shadow);
}

.player-wrap video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.18));
    cursor: pointer;
    transition: opacity 0.25s ease;
}

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

.play-button {
    display: grid;
    width: 88px;
    height: 88px;
    place-items: center;
    color: #111827;
    background: var(--amber);
    border: 0;
    border-radius: 50%;
    font-size: 34px;
    box-shadow: 0 20px 70px rgba(251, 191, 36, 0.4);
    transform: translateZ(0);
    transition: transform 0.2s ease, background 0.2s ease;
}

.player-overlay:hover .play-button,
.play-button:hover {
    background: #f59e0b;
    transform: scale(1.08);
}

.detail-title {
    padding: 28px 0;
}

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

.detail-content {
    display: grid;
    gap: 22px;
}

.content-panel {
    padding: 24px;
}

.content-panel h2 {
    margin: 0 0 12px;
    font-size: 24px;
}

.content-panel p {
    margin: 0;
    color: #d1d5db;
}

.detail-side {
    position: sticky;
    top: 92px;
    display: grid;
    gap: 18px;
}

.detail-cover {
    height: 430px;
    border-radius: 20px;
}

.side-panel {
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
}

.side-panel h2 {
    margin: 0 0 14px;
    font-size: 20px;
}

.side-panel a {
    display: block;
    color: #d1d5db;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: color 0.2s ease;
}

.side-panel a:last-child {
    border-bottom: 0;
}

.side-panel a:hover {
    color: var(--amber);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.search-panel {
    padding: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    margin-bottom: 28px;
}

.search-panel form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
}

.search-panel input {
    color: var(--text);
    background: #111827;
    border: 1px solid var(--border);
    border-radius: 14px;
    min-height: 54px;
    padding: 0 16px;
    outline: 0;
}

.site-footer {
    color: #d1d5db;
    background: #111827;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 32px;
    padding: 48px 0;
}

.footer-grid h2 {
    margin: 0 0 14px;
    color: #fff;
    font-size: 17px;
}

.footer-grid p {
    color: var(--muted);
}

.footer-grid a:not(.footer-logo) {
    display: block;
    color: var(--muted);
    margin: 8px 0;
    transition: color 0.2s ease;
}

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

.footer-bottom {
    padding: 20px;
    text-align: center;
    color: var(--muted-2);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.08);
        opacity: 0.78;
    }
}

@media (max-width: 1100px) {
    .grid-large,
    .grid-standard,
    .grid-minimal,
    .related-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

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

    .detail-side {
        position: static;
        grid-template-columns: 260px 1fr;
    }
}

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

    .menu-toggle {
        display: block;
    }

    .hero,
    .hero-content {
        min-height: 560px;
    }

    .grid-large,
    .grid-standard,
    .grid-minimal,
    .grid-horizontal,
    .related-grid,
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .filter-bar {
        grid-template-columns: 1fr;
    }

    .rank-item {
        grid-template-columns: 86px 1fr;
    }

    .rank-score {
        grid-column: 2;
        font-size: 18px;
    }
}

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

    .hero-content {
        align-items: flex-end;
        padding-bottom: 48px;
    }

    .hero p {
        font-size: 16px;
    }

    .hero-actions {
        display: grid;
    }

    .section,
    .page-hero {
        padding: 48px 0;
    }

    .section-soft,
    .section-glow {
        width: min(100% - 24px, 1180px);
        padding: 32px 18px;
        border-radius: 22px;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .grid-large,
    .grid-standard,
    .grid-minimal,
    .grid-horizontal,
    .category-grid,
    .related-grid,
    .footer-grid,
    .detail-side {
        grid-template-columns: 1fr;
    }

    .movie-card-cover,
    .movie-card-large .movie-card-cover,
    .minimal-cover {
        height: 260px;
    }

    .movie-card-horizontal {
        grid-template-columns: 112px 1fr;
    }

    .horizontal-cover {
        height: 88px;
    }

    .detail-cover {
        height: 360px;
    }

    .search-panel form {
        grid-template-columns: 1fr;
    }
}
