
:root {
    --amber-50: #fffbeb;
    --amber-100: #fef3c7;
    --amber-200: #fde68a;
    --amber-400: #fbbf24;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --orange-50: #fff7ed;
    --orange-500: #f97316;
    --orange-600: #ea580c;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --white: #ffffff;
    --black: #000000;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 8px 20px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 20px 40px rgba(15, 23, 42, 0.13);
    --radius-lg: 18px;
    --radius-xl: 24px;
    --max-width: 1280px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--gray-800);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    background: linear-gradient(135deg, var(--amber-50), var(--orange-50), var(--amber-50));
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.86);
    border-bottom: 1px solid rgba(251, 191, 36, 0.28);
    backdrop-filter: blur(18px);
}

.nav-wrap {
    display: flex;
    align-items: center;
    gap: 24px;
    width: min(100%, var(--max-width));
    margin: 0 auto;
    padding: 14px 20px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    font-weight: 800;
}

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    color: var(--white);
    background: linear-gradient(135deg, var(--amber-400), var(--orange-500));
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease;
}

.brand:hover .brand-mark {
    transform: rotate(10deg) scale(1.05);
}

.brand-text,
.footer-brand span:last-child {
    font-size: 20px;
    color: transparent;
    background: linear-gradient(90deg, var(--amber-600), var(--orange-500));
    background-clip: text;
    -webkit-background-clip: text;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
}

.desktop-nav::-webkit-scrollbar {
    display: none;
}

.desktop-nav a,
.mobile-panel a {
    color: var(--gray-700);
    font-weight: 650;
    transition: color 0.2s ease;
}

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

.nav-search,
.mobile-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-search input,
.mobile-search input,
.filter-bar input,
.filter-bar select {
    height: 40px;
    padding: 0 14px;
    border: 1px solid var(--amber-200);
    border-radius: 999px;
    outline: none;
    background: var(--white);
    color: var(--gray-700);
}

.nav-search input {
    width: 190px;
}

.nav-search input:focus,
.mobile-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
    border-color: var(--amber-400);
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.25);
}

.nav-search button,
.mobile-search button {
    height: 40px;
    padding: 0 18px;
    color: var(--white);
    border: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--amber-500), var(--orange-500));
    cursor: pointer;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    color: var(--gray-700);
    background: var(--amber-100);
    cursor: pointer;
}

.mobile-panel {
    width: min(100%, var(--max-width));
    margin: 0 auto;
    padding: 0 20px 18px;
}

.mobile-panel a {
    display: block;
    padding: 10px 0;
}

.mobile-search {
    margin-bottom: 10px;
}

.mobile-search input {
    flex: 1;
}

.hero {
    position: relative;
    height: 70vh;
    min-height: 520px;
    overflow: hidden;
    background: var(--black);
}

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

.hero-slide.is-active {
    opacity: 1;
    z-index: 1;
}

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.12));
}

.hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: min(100%, var(--max-width));
    margin: 0 auto;
    padding: 0 20px;
    color: var(--white);
}

.hero-content > * {
    max-width: 680px;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 16px;
    color: var(--amber-400);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.hero h1 {
    margin: 0 0 18px;
    font-size: clamp(40px, 6vw, 68px);
    line-height: 1.05;
    font-weight: 900;
}

.hero p {
    margin: 0 0 24px;
    color: #e5e7eb;
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.7;
}

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

.hero-meta span {
    padding: 8px 14px;
    border-radius: 999px;
    color: var(--white);
    background: rgba(245, 158, 11, 0.88);
    backdrop-filter: blur(8px);
}

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

.primary-button,
.ghost-button,
.section-link,
.full-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 24px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
    color: var(--white);
    background: linear-gradient(90deg, var(--amber-500), var(--orange-500));
    box-shadow: var(--shadow-md);
}

.primary-button:hover {
    transform: translateY(-2px) scale(1.03);
    background: linear-gradient(90deg, var(--amber-600), var(--orange-600));
    box-shadow: var(--shadow-lg);
}

.ghost-button {
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.ghost-button:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.18);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    color: var(--white);
    background: rgba(0, 0, 0, 0.52);
    cursor: pointer;
    transform: translateY(-50%);
}

.hero-arrow:hover {
    background: rgba(0, 0, 0, 0.72);
}

.hero-prev {
    left: 22px;
}

.hero-next {
    right: 22px;
}

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

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

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

.page-shell {
    width: min(100%, var(--max-width));
    margin: 0 auto;
    padding: 56px 20px;
}

.home-shell {
    display: grid;
    gap: 56px;
}

.section-card,
.page-hero-card,
.detail-card,
.side-card,
.player-card {
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-md);
}

.section-card {
    padding: 32px;
}

.blue-card {
    background: linear-gradient(135deg, #eff6ff, #ecfeff);
}

.purple-card {
    background: linear-gradient(135deg, #faf5ff, #fff7ed);
}

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

.section-head > div {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0 12px;
    align-items: center;
}

.section-head h2 {
    margin: 0;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.2;
}

.section-head p {
    grid-column: 2;
    margin: 6px 0 0;
    color: var(--gray-600);
}

.section-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: var(--white);
    border-radius: 14px;
    background: linear-gradient(135deg, var(--amber-400), var(--orange-500));
    box-shadow: var(--shadow-sm);
}

.section-link {
    min-height: 38px;
    padding-inline: 18px;
    color: var(--amber-600);
    background: var(--amber-50);
}

.section-link:hover {
    color: var(--amber-700);
    background: var(--amber-100);
}

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

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

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

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

.poster-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.poster-link:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.poster-frame {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, var(--amber-100), var(--orange-50));
}

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

.poster-link:hover img {
    transform: scale(1.08);
}

.poster-frame::after {
    position: absolute;
    inset: auto 0 0;
    height: 42%;
    content: "";
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.62), transparent);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.poster-link:hover .poster-frame::after {
    opacity: 1;
}

.type-badge,
.year-badge,
.rank-badge {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 9px;
    border-radius: 8px;
    color: var(--white);
    font-size: 12px;
    font-weight: 750;
    backdrop-filter: blur(8px);
}

.type-badge {
    top: 10px;
    right: 10px;
    background: rgba(245, 158, 11, 0.9);
}

.year-badge {
    left: 10px;
    bottom: 10px;
    background: rgba(0, 0, 0, 0.62);
}

.rank-badge {
    left: 10px;
    top: 10px;
    background: rgba(220, 38, 38, 0.92);
}

.card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
}

.card-body strong {
    display: -webkit-box;
    overflow: hidden;
    color: var(--gray-800);
    font-size: 16px;
    line-height: 1.45;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color 0.2s ease;
}

.poster-link:hover strong {
    color: var(--amber-600);
}

.card-body em {
    display: -webkit-box;
    overflow: hidden;
    min-height: 42px;
    color: var(--gray-600);
    font-size: 14px;
    font-style: normal;
    line-height: 1.5;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-meta {
    justify-content: space-between;
    margin-top: auto;
    color: var(--gray-500);
    font-size: 12px;
}

.card-meta span:first-child {
    padding: 5px 9px;
    color: var(--amber-700);
    border-radius: 999px;
    background: var(--amber-50);
}

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

.movie-row {
    display: grid;
    grid-template-columns: 112px auto 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 14px;
    border-radius: 16px;
    background: var(--white);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.row-cover {
    width: 112px;
    height: 70px;
    overflow: hidden;
    border-radius: 12px;
    background: var(--amber-100);
}

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

.list-rank {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    color: var(--white);
    border-radius: 50%;
    background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
    font-weight: 850;
}

.row-text {
    min-width: 0;
}

.row-text strong,
.row-text em {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.row-text strong {
    color: var(--gray-800);
    font-size: 16px;
}

.row-text em,
.row-meta {
    color: var(--gray-500);
    font-size: 13px;
    font-style: normal;
}

.pill-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.pill-tile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 22px;
    border-radius: 999px;
    color: var(--gray-700);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.pill-tile:hover {
    color: var(--amber-700);
    background: var(--amber-50);
    transform: translateY(-2px);
}

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

.category-tile,
.category-panel {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 140px;
    padding: 22px;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover,
.category-panel:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.category-tile strong,
.category-panel strong {
    color: var(--gray-800);
    font-size: 20px;
}

.category-tile span,
.category-panel em {
    color: var(--gray-600);
    font-style: normal;
    line-height: 1.6;
}

.category-panel span {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: var(--white);
    border-radius: 14px;
    background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
    font-weight: 850;
}

.page-hero-card {
    margin-bottom: 32px;
    padding: 42px;
    color: var(--white);
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.94), rgba(217, 119, 6, 0.82)), radial-gradient(circle at top right, rgba(251, 191, 36, 0.35), transparent 34%);
}

.page-hero-card h1 {
    margin: 0 0 14px;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.15;
}

.page-hero-card p {
    max-width: 820px;
    margin: 0;
    color: #f3f4f6;
    line-height: 1.8;
}

.compact-hero {
    margin-bottom: 26px;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.filter-bar input {
    width: min(100%, 360px);
}

.empty-state {
    padding: 24px;
    text-align: center;
    color: var(--gray-600);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    color: var(--gray-600);
    font-size: 14px;
}

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

.detail-shell {
    padding-top: 36px;
}

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

.detail-main {
    display: grid;
    gap: 24px;
}

.player-card {
    padding: 0;
    overflow: hidden;
    background: var(--black);
}

.player-wrap {
    position: relative;
    aspect-ratio: 16 / 9;
    background: var(--black);
}

.player-wrap video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: var(--black);
}

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 20px;
    color: var(--white);
    border: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.28));
    cursor: pointer;
}

.player-cover.is-hidden {
    display: none;
}

.play-symbol {
    display: grid;
    place-items: center;
    width: 78px;
    height: 78px;
    padding-left: 5px;
    color: var(--white);
    border-radius: 50%;
    background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
    box-shadow: var(--shadow-lg);
    font-size: 30px;
}

.player-cover strong {
    max-width: 90%;
    font-size: clamp(20px, 3vw, 30px);
    line-height: 1.35;
    text-align: center;
}

.detail-card {
    padding: 30px;
}

.detail-card h1 {
    margin: 0 0 18px;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.2;
}

.detail-card h2,
.side-card h2 {
    margin: 0 0 12px;
    color: var(--gray-800);
    font-size: 22px;
}

.detail-card section {
    margin-top: 26px;
}

.detail-card p,
.side-card p {
    color: var(--gray-700);
    font-size: 16px;
    line-height: 1.9;
}

.detail-meta span {
    padding: 8px 13px;
    border-radius: 999px;
    color: var(--gray-700);
    background: var(--amber-50);
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.tag-cloud span {
    padding: 7px 12px;
    color: var(--amber-700);
    border-radius: 999px;
    background: var(--amber-100);
    font-size: 13px;
}

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

.side-card {
    padding: 22px;
}

.cover-card img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 18px;
    background: var(--amber-100);
}

.cover-card h2 {
    margin-top: 18px;
}

.full-button {
    width: 100%;
    margin-top: 14px;
}

.side-list .movie-row {
    grid-template-columns: 72px 1fr;
    gap: 12px;
    padding: 10px;
}

.side-list .row-cover {
    width: 72px;
    height: 52px;
}

.side-list .list-rank,
.side-list .row-meta {
    display: none;
}

.site-footer {
    border-top: 1px solid var(--amber-200);
    background: linear-gradient(135deg, var(--amber-50), var(--orange-50));
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.3fr;
    gap: 36px;
    width: min(100%, var(--max-width));
    margin: 0 auto;
    padding: 46px 20px 28px;
}

.footer-grid h3 {
    margin: 0 0 14px;
    color: var(--gray-800);
}

.footer-grid p,
.footer-grid a,
.footer-bottom {
    color: var(--gray-600);
    line-height: 1.7;
}

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

.footer-grid li + li {
    margin-top: 8px;
}

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

.footer-bottom {
    width: min(100%, var(--max-width));
    margin: 0 auto;
    padding: 0 20px 32px;
    text-align: center;
    font-size: 13px;
}

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

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

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

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

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

    .hero {
        height: 68vh;
        min-height: 460px;
    }

    .hero-content {
        padding-inline: 56px 20px;
    }

    .hero-arrow {
        width: 38px;
        height: 38px;
    }

    .hero-prev {
        left: 10px;
    }

    .hero-next {
        right: 10px;
    }

    .four-col,
    .three-col,
    .category-grid,
    .category-panel-grid,
    .footer-grid,
    .detail-side {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .movie-row {
        grid-template-columns: 88px 1fr;
    }

    .movie-row .list-rank,
    .movie-row .row-meta {
        display: none;
    }

    .row-cover {
        width: 88px;
        height: 62px;
    }
}

@media (max-width: 620px) {
    .nav-wrap {
        padding-inline: 14px;
    }

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

    .page-shell {
        padding: 36px 14px;
    }

    .section-card,
    .page-hero-card,
    .detail-card,
    .side-card {
        padding: 22px;
    }

    .hero {
        min-height: 430px;
    }

    .hero-content {
        padding-inline: 44px 18px;
    }

    .hero p {
        display: -webkit-box;
        overflow: hidden;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
    }

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

    .four-col,
    .three-col,
    .category-grid,
    .category-panel-grid,
    .footer-grid,
    .detail-side {
        grid-template-columns: 1fr;
    }

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

    .player-cover strong {
        font-size: 20px;
    }
}
