:root {
    --bg: #fff7ed;
    --paper: #ffffff;
    --ink: #1f2937;
    --muted: #667085;
    --line: #f1e4d5;
    --brand: #f59e0b;
    --brand-dark: #b45309;
    --blue: #2563eb;
    --night: #111827;
    --shadow: 0 18px 45px rgba(29, 38, 61, 0.12);
    --soft-shadow: 0 12px 26px rgba(29, 38, 61, 0.08);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--ink);
    background: linear-gradient(180deg, #fff7ed 0%, #ffffff 46%, #f8fafc 100%);
    line-height: 1.6;
}

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

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

button,
input {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(245, 158, 11, 0.16);
    backdrop-filter: blur(18px);
    box-shadow: 0 8px 24px rgba(17, 24, 39, 0.06);
}

.header-inner {
    min-height: 78px;
    display: flex;
    align-items: center;
    gap: 22px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: max-content;
}

.brand-mark,
.footer-brand span {
    width: 46px;
    height: 46px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: #ffffff;
    font-weight: 900;
    font-size: 22px;
    background: linear-gradient(135deg, #3b82f6, #f59e0b 58%, #ef4444);
    box-shadow: 0 12px 24px rgba(245, 158, 11, 0.32);
}

.brand-copy {
    display: grid;
    gap: 2px;
}

.brand-copy strong {
    font-size: 23px;
    line-height: 1.1;
}

.brand-copy em {
    font-style: normal;
    font-size: 12px;
    color: var(--muted);
}

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

.desktop-nav a {
    font-weight: 700;
    color: #374151;
    transition: color 0.2s ease;
}

.desktop-nav a:hover {
    color: var(--brand-dark);
}

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff7ed;
    padding: 8px;
    border-radius: 999px;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.header-search input {
    width: 220px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ink);
    padding-inline: 8px;
}

.header-search button,
.primary-button,
.ghost-button {
    border: 0;
    cursor: pointer;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search button,
.primary-button {
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand), #ef4444);
    box-shadow: 0 14px 26px rgba(245, 158, 11, 0.32);
}

.header-search button {
    padding: 8px 14px;
}

.primary-button,
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 24px;
}

.primary-button:hover,
.ghost-button:hover,
.movie-card:hover,
.category-tile:hover {
    transform: translateY(-3px);
}

.ghost-button {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(16px);
}

.ghost-button.dark {
    color: var(--brand-dark);
    border-color: rgba(245, 158, 11, 0.35);
    background: #fff7ed;
}

.mobile-toggle {
    display: none;
    margin-left: auto;
    border: 0;
    border-radius: 999px;
    padding: 10px 16px;
    color: #ffffff;
    background: var(--night);
}

.mobile-nav {
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 0 16px 16px;
}

.mobile-nav a {
    border-radius: 14px;
    background: #fff7ed;
    padding: 12px 14px;
    font-weight: 700;
}

.hero-section {
    position: relative;
    height: clamp(620px, 72vh, 760px);
    min-height: 560px;
    overflow: hidden;
    background: linear-gradient(135deg, #b45309, #f59e0b 52%, #f97316);
}

.hero-section::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(circle at 25% 20%, rgba(255, 255, 255, 0.22) 0, transparent 26%), radial-gradient(circle at 78% 72%, rgba(37, 99, 235, 0.25) 0, transparent 25%);
}

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

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

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

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(17, 24, 39, 0.88) 0%, rgba(17, 24, 39, 0.62) 42%, rgba(17, 24, 39, 0.18) 100%), linear-gradient(0deg, rgba(180, 83, 9, 0.42), transparent 50%);
}

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

.hero-copy {
    width: min(760px, 100%);
    color: #ffffff;
    animation: fadeUp 0.7s ease both;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--brand-dark);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 900;
}

.hero-copy .eyebrow,
.compact-hero .eyebrow {
    color: #fde68a;
}

.hero-copy h1,
.hero-copy h2 {
    margin: 0 0 18px;
    font-size: clamp(38px, 7vw, 78px);
    line-height: 0.98;
    letter-spacing: -0.05em;
    text-shadow: 0 16px 38px rgba(0, 0, 0, 0.35);
}

.hero-copy h2 {
    font-size: clamp(30px, 5vw, 56px);
}

.hero-copy p {
    max-width: 680px;
    margin: 0 0 24px;
    color: #fffbeb;
    font-size: clamp(16px, 2vw, 21px);
}

.tag-row,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-row span,
.detail-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    color: var(--brand-dark);
    background: #fffbeb;
    font-size: 12px;
    font-weight: 800;
}

.hero-tags span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

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

.hero-controls {
    position: absolute;
    z-index: 4;
    left: 50%;
    bottom: 32px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 18px;
    color: #ffffff;
}

.hero-controls > button {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    font-size: 28px;
    cursor: pointer;
    backdrop-filter: blur(16px);
}

.hero-dots {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-dots button {
    width: 34px;
    height: 5px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.36);
    cursor: pointer;
}

.hero-dots button.is-active {
    background: #ffffff;
}

.intro-strip {
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: -48px;
}

.intro-strip div {
    border: 1px solid rgba(245, 158, 11, 0.18);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--soft-shadow);
    padding: 22px;
}

.intro-strip strong {
    display: block;
    color: var(--brand-dark);
    font-size: 30px;
    line-height: 1;
}

.intro-strip span {
    color: var(--muted);
    font-weight: 700;
}

.section-block {
    padding: 72px 0 0;
}

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

.section-heading h2,
.ranking-card h2,
.feature-panel h2,
.content-card h2 {
    margin: 0;
    color: #111827;
    font-size: clamp(26px, 3vw, 40px);
    letter-spacing: -0.03em;
}

.section-heading a {
    color: var(--brand-dark);
    font-weight: 900;
}

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

.category-tile {
    position: relative;
    min-height: 230px;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--night);
    box-shadow: var(--soft-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover {
    box-shadow: var(--shadow);
}

.category-tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.62;
    transition: transform 0.4s ease;
}

.category-tile:hover img {
    transform: scale(1.08);
}

.category-tile span {
    position: absolute;
    inset: auto 18px 18px;
    color: #ffffff;
}

.category-tile strong,
.category-tile em,
.category-tile small {
    display: block;
}

.category-tile strong {
    font-size: 24px;
    line-height: 1.1;
}

.category-tile em {
    margin: 6px 0;
    font-style: normal;
    color: #fde68a;
    font-weight: 900;
}

.category-tile small {
    color: #fffbeb;
}

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

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

.movie-card {
    min-width: 0;
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: var(--soft-shadow);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
    box-shadow: var(--shadow);
}

.movie-card-link {
    display: block;
    height: 100%;
}

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

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

.movie-card:hover .poster-wrap img {
    transform: scale(1.08);
}

.poster-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    border-radius: 999px;
    padding: 5px 10px;
    color: #ffffff;
    background: rgba(17, 24, 39, 0.72);
    font-size: 12px;
    font-weight: 900;
    backdrop-filter: blur(12px);
}

.movie-card-body {
    display: grid;
    gap: 8px;
    padding: 16px;
}

.movie-card-body strong {
    color: #111827;
    font-size: 18px;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-meta,
.movie-desc {
    color: var(--muted);
    font-size: 13px;
}

.movie-desc {
    min-height: 42px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.compact-card .movie-desc,
.compact-card .tag-row {
    display: none;
}

.split-section {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 28px;
    align-items: start;
}

.feature-panel,
.ranking-card,
.category-overview-card,
.content-card,
.filter-panel {
    border: 1px solid rgba(245, 158, 11, 0.16);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--soft-shadow);
}

.feature-panel {
    position: sticky;
    top: 104px;
    padding: 36px;
    background: linear-gradient(135deg, #fffbeb, #ffffff 62%, #eff6ff);
}

.feature-panel p {
    color: var(--muted);
    margin-bottom: 24px;
}

.ranking-card {
    padding: 26px;
}

.rank-list {
    list-style: none;
    margin: 18px 0 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.rank-row a {
    display: grid;
    grid-template-columns: 42px 82px 1fr auto;
    align-items: center;
    gap: 14px;
    border-radius: 20px;
    padding: 10px;
    background: #fff7ed;
    transition: transform 0.2s ease, background 0.2s ease;
}

.rank-row a:hover {
    transform: translateX(4px);
    background: #ffedd5;
}

.rank-number {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand), #ef4444);
    font-weight: 900;
}

.rank-row img {
    width: 82px;
    height: 58px;
    object-fit: cover;
    border-radius: 14px;
}

.rank-text {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.rank-text strong,
.rank-text em,
.rank-text small {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rank-text em,
.rank-text small {
    color: var(--muted);
    font-style: normal;
    font-size: 13px;
}

.rank-views {
    color: var(--brand-dark);
    font-weight: 900;
}

.page-hero {
    color: #ffffff;
    background: radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.18), transparent 24%), linear-gradient(135deg, #111827, #92400e 48%, #f59e0b);
}

.compact-hero {
    padding: 76px 0 64px;
}

.compact-hero h1 {
    max-width: 860px;
    margin: 0 0 14px;
    font-size: clamp(36px, 6vw, 64px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.compact-hero p {
    max-width: 820px;
    margin: 0;
    color: #fffbeb;
    font-size: 18px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    color: #fde68a;
    font-weight: 800;
}

.breadcrumb a:hover {
    color: #ffffff;
}

.overview-stack {
    display: grid;
    gap: 28px;
    padding: 58px 0 0;
}

.category-overview-card {
    padding: 26px;
}

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

.category-overview-head h2 {
    margin: 0 0 6px;
    font-size: 30px;
}

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

.filter-panel {
    display: grid;
    grid-template-columns: 1.2fr repeat(4, 1fr);
    gap: 14px;
    align-items: end;
    margin-bottom: 28px;
    padding: 18px;
}

.filter-panel strong {
    display: block;
    color: #111827;
    font-size: 22px;
}

.filter-panel label {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.filter-panel input {
    min-width: 0;
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 16px;
    outline: 0;
    padding: 12px 13px;
    background: #fffbeb;
}

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

.empty-message {
    display: none;
    border-radius: 20px;
    padding: 24px;
    text-align: center;
    color: var(--muted);
    background: #ffffff;
    box-shadow: var(--soft-shadow);
}

.empty-message.is-visible {
    display: block;
}

.hidden-by-filter {
    display: none !important;
}

.detail-top {
    padding: 42px 0 58px;
    color: #ffffff;
    background: radial-gradient(circle at 15% 15%, rgba(245, 158, 11, 0.32), transparent 28%), linear-gradient(135deg, #111827, #1f2937 55%, #7c2d12);
}

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

.player-shell,
.detail-info {
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(18px);
}

.player-shell {
    overflow: hidden;
}

.video-player {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.video-player video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 1;
}

.play-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    color: #ffffff;
    cursor: pointer;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.24));
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.video-player.is-playing .play-overlay {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.play-icon {
    width: 76px;
    height: 76px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--brand), #ef4444);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.34);
}

.play-icon::before {
    content: "";
    margin-left: 6px;
    width: 0;
    height: 0;
    border-top: 16px solid transparent;
    border-bottom: 16px solid transparent;
    border-left: 24px solid #ffffff;
}

.play-overlay strong {
    font-size: 20px;
}

.player-message {
    position: absolute;
    z-index: 4;
    left: 16px;
    bottom: 16px;
    display: none;
    border-radius: 999px;
    padding: 8px 12px;
    color: #ffffff;
    background: rgba(17, 24, 39, 0.78);
    font-size: 13px;
}

.player-message.is-visible {
    display: block;
}

.detail-info {
    padding: 28px;
}

.detail-info h1 {
    margin: 0 0 16px;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.detail-info p {
    margin: 0 0 20px;
    color: #fffbeb;
}

.detail-meta {
    display: grid;
    gap: 10px;
    margin: 22px 0 0;
}

.detail-meta div {
    display: grid;
    grid-template-columns: 78px 1fr;
    gap: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    padding-top: 10px;
}

.detail-meta dt {
    color: #fde68a;
    font-weight: 900;
}

.detail-meta dd {
    margin: 0;
    color: #ffffff;
}

.detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: -30px;
}

.content-card {
    padding: 28px;
}

.content-card p {
    color: var(--muted);
    font-size: 16px;
}

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

.footer-grid {
    display: grid;
    grid-template-columns: 1.1fr 1.4fr 0.8fr;
    gap: 28px;
    padding: 48px 0;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    font-size: 24px;
}

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

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

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

.footer-links a {
    border-radius: 999px;
    padding: 8px 12px;
    color: #d1d5db;
    background: rgba(255, 255, 255, 0.07);
}

.footer-links a:hover {
    color: #ffffff;
    background: rgba(245, 158, 11, 0.28);
}

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

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

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

    .mobile-toggle {
        display: inline-flex;
    }

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

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

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

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

    .feature-panel {
        position: static;
    }
}

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

    .brand-copy em {
        display: none;
    }

    .brand-copy strong {
        font-size: 19px;
    }

    .hero-section {
        height: 640px;
    }

    .hero-shade {
        background: linear-gradient(0deg, rgba(17, 24, 39, 0.9), rgba(17, 24, 39, 0.38));
    }

    .hero-copy h1,
    .hero-copy h2 {
        font-size: 38px;
    }

    .intro-strip,
    .category-grid,
    .movie-grid,
    .small-grid {
        grid-template-columns: 1fr 1fr;
    }

    .intro-strip {
        margin-top: -34px;
    }

    .intro-strip div {
        padding: 16px;
    }

    .section-block {
        padding-top: 48px;
    }

    .section-heading,
    .category-overview-head {
        align-items: start;
        flex-direction: column;
    }

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

    .rank-row a {
        grid-template-columns: 34px 66px 1fr;
    }

    .rank-views {
        display: none;
    }

    .rank-row img {
        width: 66px;
        height: 50px;
    }
}

@media (max-width: 520px) {
    .header-inner {
        min-height: 68px;
    }

    .brand-mark,
    .footer-brand span {
        width: 40px;
        height: 40px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .intro-strip,
    .category-grid,
    .movie-grid,
    .small-grid {
        grid-template-columns: 1fr;
    }

    .detail-info,
    .content-card,
    .ranking-card,
    .feature-panel,
    .category-overview-card {
        padding: 20px;
        border-radius: 22px;
    }

    .detail-meta div {
        grid-template-columns: 64px 1fr;
    }
}
