:root {
    --page: #f8fafc;
    --surface: #ffffff;
    --surface-soft: #fff7ed;
    --ink: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --brand: #f59e0b;
    --brand-deep: #d97706;
    --brand-soft: #fde68a;
    --danger: #ef4444;
    --shadow: 0 20px 45px rgba(15, 23, 42, 0.10);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(245, 158, 11, 0.16), transparent 34rem),
        linear-gradient(180deg, #fff7ed 0%, #ffffff 26rem, var(--page) 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.65;
}

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

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

button,
input,
select,
textarea {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.88);
    border-bottom: 1px solid rgba(229, 231, 235, 0.88);
    backdrop-filter: blur(18px);
}

.navbar {
    width: min(1220px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    letter-spacing: -0.04em;
    font-size: 1.35rem;
    white-space: nowrap;
}

.logo-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand), #f97316);
    box-shadow: 0 14px 28px rgba(245, 158, 11, 0.32);
}

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

.nav-links a {
    padding: 9px 14px;
    border-radius: 999px;
    color: #374151;
    font-weight: 700;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--brand-deep);
    background: #fffbeb;
    transform: translateY(-1px);
}

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

.header-search input {
    min-width: 0;
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 11px 14px;
    color: var(--ink);
}

.header-search button {
    border: 0;
    cursor: pointer;
    color: #ffffff;
    background: var(--brand);
    padding: 11px 16px;
    font-weight: 800;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #ffffff;
    cursor: pointer;
    color: var(--ink);
}

.mobile-panel {
    display: none;
    width: min(1220px, calc(100% - 32px));
    margin: 0 auto 16px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #ffffff;
    box-shadow: var(--shadow);
    padding: 14px;
}

.mobile-panel.open {
    display: block;
}

.mobile-panel a {
    display: block;
    padding: 12px 14px;
    border-radius: 14px;
    color: #374151;
    font-weight: 800;
}

.mobile-panel a:hover {
    background: #fff7ed;
    color: var(--brand-deep);
}

.mobile-panel .header-search {
    max-width: none;
    margin-top: 10px;
}

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

.main-space {
    padding: 32px 0 56px;
}

.hero {
    position: relative;
    overflow: hidden;
    border-radius: 0 0 38px 38px;
    background: linear-gradient(135deg, #111827, #78350f 48%, #f59e0b 100%);
    color: #ffffff;
    box-shadow: 0 30px 70px rgba(120, 53, 15, 0.22);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 16% 22%, rgba(255, 255, 255, 0.22), transparent 18rem),
        radial-gradient(circle at 86% 16%, rgba(255, 255, 255, 0.18), transparent 16rem),
        linear-gradient(90deg, rgba(17, 24, 39, 0.88), rgba(17, 24, 39, 0.32));
    pointer-events: none;
}

.hero-inner {
    position: relative;
    width: min(1220px, calc(100% - 32px));
    min-height: 620px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
    gap: 42px;
    align-items: center;
    padding: 58px 0 64px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 999px;
    color: #fffbeb;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(14px);
    font-weight: 800;
}

.hero-title {
    margin: 22px 0 18px;
    font-size: clamp(2.6rem, 7vw, 5.6rem);
    line-height: 0.98;
    letter-spacing: -0.08em;
}

.hero-desc {
    max-width: 650px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.08rem;
    margin: 0 0 28px;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 11px 18px;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

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

.btn-primary {
    color: #111827;
    background: #ffffff;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.18);
}

.btn-primary:hover {
    color: var(--brand-deep);
}

.btn-amber {
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand), #f97316);
    box-shadow: 0 18px 32px rgba(245, 158, 11, 0.30);
}

.btn-ghost {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.36);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    max-width: 640px;
}

.hero-stat {
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(18px);
}

.hero-stat strong {
    display: block;
    font-size: 1.45rem;
}

.hero-stat span {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.92rem;
}

.hero-frame {
    position: relative;
    min-height: 520px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateX(24px) scale(0.98);
    transition: opacity 0.55s ease, transform 0.55s ease;
    pointer-events: none;
}

.hero-slide.active {
    opacity: 1;
    transform: translateX(0) scale(1);
    pointer-events: auto;
}

.hero-poster {
    position: relative;
    overflow: hidden;
    min-height: 520px;
    border-radius: 32px;
    background: linear-gradient(135deg, #92400e, #111827);
    box-shadow: 0 36px 72px rgba(0, 0, 0, 0.28);
}

.hero-poster img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    transform: scale(1.03);
    transition: transform 0.65s ease;
}

.hero-slide.active .hero-poster img {
    transform: scale(1);
}

.image-missing img {
    opacity: 0;
}

.image-missing::after {
    content: attr(data-title);
    position: absolute;
    inset: auto 24px 24px;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 900;
    font-size: clamp(1.8rem, 4vw, 3.6rem);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.hero-caption {
    position: absolute;
    inset: auto 22px 22px;
    border-radius: 24px;
    padding: 22px;
    color: #ffffff;
    background: rgba(17, 24, 39, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(18px);
}

.hero-caption h2 {
    margin: 0 0 8px;
    font-size: clamp(1.6rem, 4vw, 2.6rem);
    line-height: 1.08;
}

.hero-caption p {
    margin: 0 0 16px;
    color: rgba(255, 255, 255, 0.82);
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.tag,
.meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 0.82rem;
    font-weight: 800;
    color: #92400e;
    background: #fffbeb;
    border: 1px solid #fde68a;
}

.hero-controls {
    position: absolute;
    right: 18px;
    top: 18px;
    display: flex;
    gap: 8px;
    z-index: 4;
}

.hero-controls button {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #ffffff;
    background: rgba(17, 24, 39, 0.52);
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.hero-dots {
    position: absolute;
    left: 22px;
    bottom: -34px;
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 28px;
    height: 5px;
    border: 0;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.42);
    cursor: pointer;
}

.hero-dot.active {
    background: #ffffff;
}

.section {
    margin-top: 46px;
}

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

.section-kicker {
    margin: 0 0 6px;
    color: var(--brand-deep);
    font-size: 0.86rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.section-title {
    margin: 0;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    line-height: 1.1;
    letter-spacing: -0.05em;
}

.section-more {
    color: var(--brand-deep);
    font-weight: 900;
    white-space: nowrap;
}

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

.movie-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    border-radius: 22px;
    background: var(--surface);
    border: 1px solid rgba(229, 231, 235, 0.86);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.06);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    border-color: #fcd34d;
    box-shadow: var(--shadow);
}

.movie-cover {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, #f59e0b, #111827);
}

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

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

.movie-cover.image-missing::after {
    inset: 22px;
    display: flex;
    align-items: end;
    font-size: 1.35rem;
}

.cover-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    z-index: 2;
    border-radius: 999px;
    padding: 5px 9px;
    color: #ffffff;
    background: rgba(17, 24, 39, 0.72);
    font-size: 0.78rem;
    font-weight: 900;
    backdrop-filter: blur(10px);
}

.play-float {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 2;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: var(--brand);
    box-shadow: 0 12px 26px rgba(245, 158, 11, 0.34);
}

.movie-info {
    flex: 1;
    padding: 14px;
}

.movie-title {
    margin: 0 0 8px;
    font-size: 1.02rem;
    line-height: 1.32;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.movie-desc {
    display: -webkit-box;
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 0.92rem;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.movie-meta span {
    border-radius: 999px;
    padding: 4px 8px;
    color: #4b5563;
    background: #f3f4f6;
    font-size: 0.78rem;
    font-weight: 800;
}

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 190px;
    border-radius: 26px;
    padding: 22px;
    background: linear-gradient(135deg, #ffffff, #fff7ed);
    border: 1px solid #fde68a;
    box-shadow: 0 16px 32px rgba(245, 158, 11, 0.10);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.category-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    margin-bottom: 22px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand), #f97316);
}

.category-card h3 {
    margin: 0 0 8px;
    font-size: 1.35rem;
}

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

.category-card strong {
    display: block;
    margin-top: 14px;
    color: var(--brand-deep);
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 180px 180px;
    gap: 12px;
    margin-bottom: 22px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.05);
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    border: 1px solid var(--line);
    outline: 0;
    border-radius: 15px;
    background: #ffffff;
    padding: 12px 14px;
    color: var(--ink);
}

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

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

.rank-item {
    display: grid;
    grid-template-columns: 72px 92px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--surface);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.05);
}

.rank-num {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    color: #ffffff;
    font-weight: 900;
    font-size: 1.15rem;
    background: linear-gradient(135deg, var(--brand), #f97316);
}

.rank-cover {
    position: relative;
    overflow: hidden;
    width: 92px;
    aspect-ratio: 3 / 4;
    border-radius: 14px;
    background: linear-gradient(135deg, #f59e0b, #111827);
}

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

.rank-cover.image-missing::after {
    inset: 10px;
    font-size: 0.92rem;
}

.rank-content h3 {
    margin: 0 0 8px;
    font-size: 1.18rem;
}

.rank-content p {
    margin: 0;
    color: var(--muted);
}

.rank-score {
    color: var(--brand-deep);
    font-size: 1.15rem;
    font-weight: 900;
    white-space: nowrap;
}

.page-hero {
    padding: 52px 0 22px;
}

.page-hero-card {
    overflow: hidden;
    border-radius: 32px;
    padding: clamp(28px, 6vw, 54px);
    color: #ffffff;
    background:
        radial-gradient(circle at 82% 16%, rgba(255, 255, 255, 0.24), transparent 18rem),
        linear-gradient(135deg, #111827, #92400e 48%, #f59e0b 100%);
    box-shadow: var(--shadow);
}

.page-hero-card h1 {
    margin: 0 0 14px;
    font-size: clamp(2.2rem, 5vw, 4.6rem);
    line-height: 1.02;
    letter-spacing: -0.07em;
}

.page-hero-card p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 1.08rem;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-weight: 800;
    margin-bottom: 18px;
}

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

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

.player-card,
.detail-card,
.text-card {
    border: 1px solid var(--line);
    border-radius: 28px;
    background: var(--surface);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
}

.player-card {
    overflow: hidden;
}

.video-shell {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #020617;
}

.watch-video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    background: #020617;
    cursor: pointer;
}

.video-start {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 3;
    width: 88px;
    height: 88px;
    transform: translate(-50%, -50%);
    border: 0;
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand), #f97316);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.30);
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.video-start:hover {
    transform: translate(-50%, -50%) scale(1.06);
}

.video-shell.playing .video-start {
    opacity: 0;
    pointer-events: none;
}

.video-titlebar {
    padding: 20px 22px 22px;
}

.video-titlebar h1 {
    margin: 0 0 10px;
    font-size: clamp(1.8rem, 4vw, 3.1rem);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.video-titlebar p {
    margin: 0;
    color: var(--muted);
}

.detail-card {
    padding: 22px;
}

.detail-poster {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, #f59e0b, #111827);
    margin-bottom: 18px;
}

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

.detail-poster.image-missing::after {
    inset: 22px;
    display: flex;
    align-items: end;
    font-size: 1.6rem;
}

.meta-table {
    display: grid;
    gap: 10px;
}

.meta-row {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f3f4f6;
}

.meta-row span {
    color: var(--muted);
}

.meta-row strong {
    text-align: right;
}

.text-card {
    padding: 26px;
    margin-top: 24px;
}

.text-card h2 {
    margin: 0 0 14px;
    font-size: 1.55rem;
}

.text-card p {
    margin: 0 0 16px;
    color: #374151;
}

.text-card p:last-child {
    margin-bottom: 0;
}

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

.empty-state {
    display: none;
    padding: 42px;
    text-align: center;
    border: 1px dashed #f59e0b;
    border-radius: 22px;
    background: #fffbeb;
    color: #92400e;
    font-weight: 900;
}

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

.site-footer {
    border-top: 1px solid var(--line);
    background: #ffffff;
    padding: 34px 0;
    color: var(--muted);
}

.footer-inner {
    width: min(1220px, calc(100% - 32px));
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.footer-links a {
    color: #374151;
    font-weight: 800;
}

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

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

@media (max-width: 920px) {
    .nav-links,
    .navbar > .header-search {
        display: none;
    }

    .menu-toggle {
        display: inline-grid;
        place-items: center;
    }

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

    .hero-inner {
        min-height: auto;
    }

    .hero-frame,
    .hero-poster,
    .hero-poster img {
        min-height: 420px;
        height: 420px;
    }

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

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

    .rank-item {
        grid-template-columns: 52px 78px minmax(0, 1fr);
    }

    .rank-score {
        grid-column: 3;
    }
}

@media (max-width: 640px) {
    .navbar,
    .container,
    .hero-inner,
    .footer-inner,
    .mobile-panel {
        width: min(100% - 24px, 1220px);
    }

    .hero {
        border-radius: 0 0 26px 26px;
    }

    .hero-inner {
        padding: 36px 0 50px;
        gap: 28px;
    }

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

    .hero-frame,
    .hero-poster,
    .hero-poster img {
        min-height: 380px;
        height: 380px;
    }

    .hero-caption {
        inset: auto 14px 14px;
        padding: 16px;
    }

    .section-head,
    .footer-inner {
        align-items: start;
        flex-direction: column;
    }

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

    .movie-info {
        padding: 12px;
    }

    .movie-title {
        font-size: 0.96rem;
    }

    .rank-item {
        grid-template-columns: 42px 64px minmax(0, 1fr);
        gap: 10px;
        padding: 10px;
    }

    .rank-num {
        width: 42px;
        height: 42px;
        border-radius: 14px;
    }

    .rank-cover {
        width: 64px;
    }

    .video-start {
        width: 72px;
        height: 72px;
    }
}
