:root {
    --bg: #030712;
    --bg-soft: #0b1120;
    --panel: #111827;
    --panel-light: #1f2937;
    --text: #f9fafb;
    --muted: #9ca3af;
    --line: rgba(255, 255, 255, 0.1);
    --amber: #fbbf24;
    --amber-deep: #d97706;
    --red: #ef4444;
    --blue: #3b82f6;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: linear-gradient(180deg, #111827 0%, #030712 35%, #111827 100%);
    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;
    max-width: 100%;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(0, 0, 0, 0.92);
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(18px);
}

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

.site-logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(90deg, var(--amber), #fff7cc);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
}

.logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: var(--amber);
    background: rgba(251, 191, 36, 0.12);
    border: 1px solid rgba(251, 191, 36, 0.35);
    border-radius: 999px;
    box-shadow: 0 0 26px rgba(251, 191, 36, 0.22);
}

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

.desktop-nav a,
.mobile-panel a {
    color: #e5e7eb;
    font-size: 15px;
    transition: color 0.2s ease, transform 0.2s ease;
}

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

.header-search,
.mobile-panel form,
.search-band form,
.search-page-form {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-search input,
.mobile-panel input,
.search-band input,
.search-page-form input,
.local-search {
    width: 100%;
    min-height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    color: #ffffff;
    background: rgba(31, 41, 55, 0.88);
    outline: none;
    padding: 0 18px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.mobile-panel input:focus,
.search-band input:focus,
.search-page-form input:focus,
.local-search:focus {
    border-color: var(--amber);
    box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.12);
}

.header-search button,
.mobile-panel button,
.search-band button,
.search-page-form button,
.filter-row button,
.filter-chips button {
    min-height: 42px;
    border: 0;
    border-radius: 999px;
    color: #111827;
    background: var(--amber);
    padding: 0 18px;
    font-weight: 800;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.header-search button:hover,
.mobile-panel button:hover,
.search-band button:hover,
.search-page-form button:hover,
.filter-row button:hover,
.filter-chips button:hover,
.filter-chips button.active {
    background: #f59e0b;
    transform: translateY(-1px);
}

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    padding: 10px;
}

.menu-button span {
    display: block;
    width: 100%;
    height: 2px;
    margin: 5px 0;
    background: #ffffff;
    border-radius: 999px;
}

.mobile-panel {
    display: none;
    padding: 0 16px 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.96);
}

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

.mobile-panel nav {
    display: grid;
    gap: 14px;
    padding: 18px 0;
}

.site-main {
    min-height: 70vh;
}

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

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

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

.hero-slide > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #000000 0%, rgba(0, 0, 0, 0.76) 45%, rgba(0, 0, 0, 0.08) 100%);
}

.hero-content {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-copy {
    max-width: 720px;
    padding-top: 22px;
}

.hero-kicker,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--amber);
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hero-copy h1 {
    margin: 18px 0 20px;
    font-size: clamp(42px, 6vw, 72px);
    line-height: 1.04;
    letter-spacing: -0.05em;
}

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

.hero-meta,
.movie-meta,
.rank-meta,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: #d1d5db;
}

.hero-meta span,
.detail-meta span {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-tags,
.movie-tags,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.hero-tags span,
.movie-tags span,
.detail-tags a {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    color: #fef3c7;
    background: rgba(251, 191, 36, 0.12);
    border: 1px solid rgba(251, 191, 36, 0.22);
    padding: 5px 10px;
    font-size: 13px;
}

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

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

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

.btn-primary {
    color: #111827;
    background: var(--amber);
    box-shadow: 0 18px 40px rgba(251, 191, 36, 0.28);
}

.btn-ghost {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

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

.hero-dots button {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.38);
}

.hero-dots button.active {
    width: 34px;
    background: var(--amber);
}

.search-band {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 26px;
    align-items: center;
    margin-top: 42px;
    padding: 30px;
    border: 1px solid rgba(251, 191, 36, 0.18);
    border-radius: 28px;
    background: linear-gradient(100deg, rgba(31, 41, 55, 0.78), rgba(17, 24, 39, 0.58));
    box-shadow: var(--shadow);
}

.search-band h2 {
    margin: 0 0 8px;
    font-size: 28px;
}

.search-band p {
    margin: 0;
    color: var(--muted);
}

.content-section {
    padding: 70px 0;
}

.panel-section {
    padding: 42px;
    border-radius: 30px;
    background: linear-gradient(90deg, rgba(31, 41, 55, 0.58), rgba(17, 24, 39, 0.18));
}

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

.section-heading.compact {
    align-items: center;
}

.section-heading h2,
.page-hero h1,
.detail-content h2,
.detail-side h2 {
    margin: 0;
    font-size: clamp(26px, 4vw, 42px);
    letter-spacing: -0.03em;
}

.section-heading a,
.text-link {
    color: var(--amber);
    font-weight: 800;
}

.movie-grid {
    display: grid;
    gap: 22px;
}

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

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

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

.movie-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background: rgba(31, 41, 55, 0.88);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(251, 191, 36, 0.28);
    box-shadow: 0 24px 55px rgba(251, 191, 36, 0.1);
}

.movie-thumb {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #111827;
}

.movie-thumb img,
.mini-card img,
.channel-card img,
.category-cover img,
.rank-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.movie-card:hover .movie-thumb img,
.mini-card:hover img,
.channel-card:hover img,
.category-overview-card:hover .category-cover img,
.rank-item:hover .rank-cover img {
    transform: scale(1.08);
}

.movie-type,
.movie-year {
    position: absolute;
    top: 12px;
    z-index: 2;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.72);
    padding: 5px 10px;
    font-size: 12px;
}

.movie-type {
    left: 12px;
}

.movie-year {
    right: 12px;
}

.movie-info {
    padding: 18px;
}

.movie-info h3 {
    margin: 0 0 10px;
    color: #ffffff;
    font-size: 18px;
    line-height: 1.35;
}

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

.movie-info p {
    display: -webkit-box;
    min-height: 46px;
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 14px;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-meta,
.rank-meta {
    color: #9ca3af;
    font-size: 13px;
}

.movie-meta span:not(:last-child)::after,
.rank-meta span:not(:last-child)::after {
    content: "·";
    margin-left: 10px;
    color: rgba(255, 255, 255, 0.34);
}

.split-section {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 36px;
}

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

.rank-list-page {
    gap: 18px;
}

.rank-item {
    display: grid;
    grid-template-columns: 54px 132px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background: rgba(17, 24, 39, 0.82);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-item:hover {
    transform: translateX(5px);
    border-color: rgba(251, 191, 36, 0.28);
}

.rank-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    color: #111827;
    background: var(--amber);
    font-weight: 900;
}

.rank-cover {
    height: 82px;
    overflow: hidden;
    border-radius: 14px;
    background: #111827;
}

.rank-content h3 {
    margin: 0 0 6px;
    font-size: 18px;
}

.rank-content h3 a:hover {
    color: var(--amber);
}

.rank-content p {
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 14px;
}

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

.mini-card {
    position: relative;
    overflow: hidden;
    min-height: 138px;
    border-radius: 18px;
    background: #111827;
}

.mini-card span {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    padding: 38px 14px 14px;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), transparent);
    color: #ffffff;
    font-weight: 800;
}

.amber-panel {
    position: relative;
    padding: 44px;
    border-radius: 30px;
    background: linear-gradient(135deg, rgba(120, 53, 15, 0.86), rgba(133, 77, 14, 0.72));
    box-shadow: var(--shadow);
}

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

.channel-card {
    position: relative;
    overflow: hidden;
    min-height: 210px;
    border-radius: 22px;
    background: #111827;
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.channel-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.16));
}

.channel-card span,
.channel-card p {
    position: absolute;
    z-index: 2;
    left: 18px;
    right: 18px;
}

.channel-card span {
    bottom: 64px;
    font-size: 21px;
    font-weight: 900;
}

.channel-card p {
    bottom: 18px;
    margin: 0;
    color: #e5e7eb;
    font-size: 13px;
}

.inner-page {
    background: radial-gradient(circle at top, rgba(251, 191, 36, 0.12), transparent 34%), linear-gradient(180deg, #111827, #030712 38%);
}

.page-hero {
    padding: 76px 0 36px;
}

.page-hero h1 {
    margin: 10px 0 12px;
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: #d1d5db;
    font-size: 18px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    align-items: center;
    color: #d1d5db;
    margin-top: 18px;
    font-size: 14px;
}

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

.category-overview-grid {
    display: grid;
    gap: 22px;
    padding-bottom: 70px;
}

.category-overview-card {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 24px;
    align-items: center;
    padding: 18px;
    border-radius: 24px;
    background: rgba(31, 41, 55, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.category-cover {
    height: 176px;
    overflow: hidden;
    border-radius: 18px;
}

.category-overview-card h2 {
    margin: 0 0 10px;
    font-size: 28px;
}

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

.category-samples {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.category-samples a {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    padding: 6px 12px;
    color: #e5e7eb;
    font-size: 13px;
}

.filter-panel {
    display: grid;
    gap: 16px;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    background: rgba(17, 24, 39, 0.82);
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.filter-row input {
    flex: 1 1 280px;
}

.filter-row button,
.filter-chips button {
    color: #e5e7eb;
    background: rgba(255, 255, 255, 0.08);
}

.filter-row button.active,
.filter-chips button.active {
    color: #111827;
    background: var(--amber);
}

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

.detail-page {
    background: #030712;
}

.detail-hero {
    position: relative;
    min-height: 520px;
    overflow: hidden;
    background: #000000;
}

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

.detail-hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.78) 52%, rgba(0, 0, 0, 0.16) 100%), linear-gradient(0deg, #030712 0%, transparent 40%);
}

.detail-hero-content {
    position: relative;
    min-height: 520px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 1240px;
}

.detail-hero h1 {
    max-width: 850px;
    margin: 18px 0;
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.detail-hero p {
    max-width: 760px;
    margin: 0 0 24px;
    color: #d1d5db;
    font-size: 19px;
}

.player-section {
    margin-top: -92px;
    position: relative;
    z-index: 3;
}

.player-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #000000;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

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

.player-start {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.46));
    z-index: 2;
}

.player-start span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 96px;
    height: 96px;
    padding-left: 6px;
    border-radius: 999px;
    color: #111827;
    background: var(--amber);
    font-size: 40px;
    box-shadow: 0 0 60px rgba(251, 191, 36, 0.5);
    transition: transform 0.2s ease;
}

.player-start:hover span {
    transform: scale(1.08);
}

.player-wrap.is-playing .player-start {
    display: none;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
    padding-top: 46px;
}

.detail-content,
.detail-side {
    border-radius: 24px;
    background: rgba(17, 24, 39, 0.84);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 28px;
}

.detail-content h2,
.detail-side h2 {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 26px;
}

.detail-content p {
    color: #d1d5db;
    font-size: 17px;
}

.side-link {
    display: block;
    margin-top: 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    padding: 12px 14px;
    color: #e5e7eb;
}

.side-link:hover {
    color: var(--amber);
    background: rgba(251, 191, 36, 0.1);
}

.search-page-form {
    margin-top: 28px;
    max-width: 760px;
}

.search-page-form input {
    flex: 1;
}

.search-status {
    margin-bottom: 20px;
    color: #d1d5db;
    font-size: 18px;
}

.site-footer {
    margin-top: 60px;
    background: #111827;
    color: #d1d5db;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.8fr 0.8fr 1fr;
    gap: 34px;
    padding: 52px 0;
}

.footer-grid h2 {
    margin: 0 0 16px;
    color: #ffffff;
    font-size: 18px;
}

.footer-grid p {
    color: #9ca3af;
}

.footer-grid a:not(.footer-logo) {
    display: block;
    margin: 8px 0;
    color: #d1d5db;
}

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

.footer-bottom {
    padding: 20px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #9ca3af;
    text-align: center;
}

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

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

    .menu-button {
        display: block;
    }

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

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

    .split-section,
    .detail-layout,
    .search-band {
        grid-template-columns: 1fr;
    }

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

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

    .site-logo {
        font-size: 18px;
    }

    .hero-section {
        height: 640px;
    }

    .hero-shade {
        background: linear-gradient(0deg, #000000 0%, rgba(0, 0, 0, 0.76) 60%, rgba(0, 0, 0, 0.18) 100%);
    }

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

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

    .hero-actions,
    .filter-row,
    .search-page-form,
    .search-band form {
        flex-direction: column;
        align-items: stretch;
    }

    .grid-three,
    .grid-four,
    .grid-five {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .movie-info {
        padding: 14px;
    }

    .movie-info h3 {
        font-size: 16px;
    }

    .panel-section,
    .amber-panel {
        padding: 24px;
    }

    .rank-item {
        grid-template-columns: 44px 92px minmax(0, 1fr);
        gap: 12px;
    }

    .rank-cover {
        height: 76px;
    }

    .rank-content p {
        display: none;
    }

    .mini-grid,
    .channel-grid {
        grid-template-columns: 1fr;
    }

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

    .category-cover {
        height: 210px;
    }

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

    .player-section {
        margin-top: -42px;
    }

    .player-start span {
        width: 74px;
        height: 74px;
        font-size: 30px;
    }

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

@media (max-width: 480px) {
    .grid-three,
    .grid-four,
    .grid-five {
        grid-template-columns: 1fr;
    }

    .hero-copy h1,
    .detail-hero h1 {
        font-size: 36px;
    }
}
