:root {
    --amber-50: #fffbeb;
    --amber-100: #fef3c7;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --amber-700: #b45309;
    --rose-50: #fff1f2;
    --rose-400: #fb7185;
    --rose-500: #f43f5e;
    --text: #1f2937;
    --muted: #667085;
    --panel: rgba(255, 255, 255, 0.9);
    --shadow: 0 18px 48px rgba(146, 64, 14, 0.14);
    --radius: 24px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    background: linear-gradient(135deg, var(--amber-50), #ffffff 48%, var(--rose-50));
    line-height: 1.6;
    min-height: 100vh;
}

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

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

button,
input,
select {
    font: inherit;
}

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

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

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #fff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--amber-500), var(--rose-500));
    box-shadow: 0 12px 28px rgba(244, 63, 94, 0.28);
}

.brand-text {
    font-size: 20px;
    font-weight: 900;
    letter-spacing: -0.03em;
    background: linear-gradient(90deg, var(--amber-700), var(--rose-500), var(--amber-500));
    -webkit-background-clip: text;
    color: transparent;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    min-width: 0;
    flex: 1;
    overflow: hidden;
}

.nav-link {
    position: relative;
    white-space: nowrap;
    font-weight: 700;
    color: #4b5563;
    transition: color 0.2s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 0;
    height: 2px;
    border-radius: 99px;
    background: var(--amber-600);
    transition: width 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--amber-700);
}

.nav-link:hover::after,
.nav-link.is-active::after {
    width: 100%;
}

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(217, 119, 6, 0.18);
    box-shadow: 0 10px 25px rgba(146, 64, 14, 0.08);
}

.header-search input {
    width: 180px;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 8px 10px;
    color: var(--text);
}

.header-search button,
.hero-actions a,
.filter-panel button,
.player-play {
    border: 0;
    border-radius: 999px;
    padding: 10px 18px;
    color: #fff;
    cursor: pointer;
    font-weight: 800;
    background: linear-gradient(90deg, var(--amber-500), var(--rose-500));
    box-shadow: 0 14px 28px rgba(244, 63, 94, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-search button:hover,
.hero-actions a:hover,
.player-play:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(217, 119, 6, 0.28);
}

.menu-toggle {
    display: none;
    border: 0;
    background: rgba(255, 255, 255, 0.9);
    color: var(--amber-700);
    border-radius: 12px;
    width: 44px;
    height: 44px;
    font-size: 22px;
    cursor: pointer;
}

.mobile-nav {
    display: none;
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto 14px;
    padding: 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.mobile-nav a {
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--amber-50);
    color: var(--amber-700);
    font-weight: 700;
}

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

.hero-carousel {
    position: relative;
    min-height: 650px;
    overflow: hidden;
    isolation: isolate;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.22), rgba(251, 113, 133, 0.18), rgba(255, 255, 255, 0.72));
}

.hero-carousel::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 18% 22%, rgba(251, 191, 36, 0.45), transparent 30%),
                radial-gradient(circle at 82% 36%, rgba(251, 113, 133, 0.35), transparent 28%);
    z-index: -3;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.02);
    pointer-events: none;
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.hero-slide-bg {
    position: absolute;
    inset: 0;
    background-image: var(--hero-bg);
    background-size: cover;
    background-position: center;
    filter: blur(20px);
    transform: scale(1.12);
    opacity: 0.28;
    z-index: -2;
}

.hero-slide-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255, 251, 235, 0.98), rgba(255, 255, 255, 0.76), rgba(255, 241, 242, 0.92));
}

.hero-inner {
    min-height: 650px;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.72fr);
    align-items: center;
    gap: 54px;
    padding: 70px 0 90px;
}

.hero-copy {
    position: relative;
    z-index: 2;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    color: var(--amber-700);
    font-weight: 900;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(217, 119, 6, 0.18);
    box-shadow: 0 12px 32px rgba(146, 64, 14, 0.08);
}

.hero-copy h1 {
    margin: 22px 0 16px;
    font-size: clamp(42px, 7vw, 82px);
    line-height: 0.96;
    letter-spacing: -0.07em;
    background: linear-gradient(90deg, var(--amber-700), var(--rose-500), var(--amber-500));
    -webkit-background-clip: text;
    color: transparent;
}

.hero-copy p {
    margin: 0 0 24px;
    font-size: clamp(18px, 2vw, 24px);
    color: #4b5563;
    max-width: 760px;
}

.hero-tags,
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hero-tags span,
.tag-list span {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    color: var(--amber-700);
    font-size: 13px;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(217, 119, 6, 0.16);
}

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

.hero-actions .secondary {
    color: var(--amber-700);
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(217, 119, 6, 0.18);
    box-shadow: 0 12px 30px rgba(146, 64, 14, 0.08);
}

.hero-poster {
    position: relative;
    z-index: 2;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 32px 70px rgba(146, 64, 14, 0.28);
    transform: rotate(1deg);
}

.hero-poster img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    background: linear-gradient(135deg, var(--amber-100), var(--rose-50));
}

.hero-poster::after,
.poster-glow {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.28), rgba(251, 113, 133, 0.28), rgba(251, 191, 36, 0.28));
    background-size: 400% 400%;
    animation: silkGradient 8s ease infinite;
    mix-blend-mode: screen;
    opacity: 0.45;
    pointer-events: none;
}

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 30px;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateX(-50%);
}

.hero-dot,
.hero-arrow {
    border: 0;
    color: var(--amber-700);
    cursor: pointer;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 10px 30px rgba(146, 64, 14, 0.12);
}

.hero-dot {
    width: 12px;
    height: 12px;
    padding: 0;
    border-radius: 999px;
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
    width: 36px;
    background: linear-gradient(90deg, var(--amber-500), var(--rose-500));
}

.hero-arrow {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    font-size: 22px;
    font-weight: 900;
}

.section {
    padding: 52px 0;
}

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

.section-heading h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 40px);
    letter-spacing: -0.04em;
}

.section-heading p {
    margin: 6px 0 0;
    color: var(--muted);
}

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

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

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

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

.movie-card-link {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 22px;
    background: var(--panel);
    border: 1px solid rgba(217, 119, 6, 0.12);
    box-shadow: 0 14px 38px rgba(146, 64, 14, 0.1);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card-link:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 56px rgba(146, 64, 14, 0.2);
}

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

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

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

.card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 11px;
    border-radius: 999px;
    color: var(--amber-700);
    font-size: 12px;
    font-weight: 900;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(10px);
}

.movie-card-body {
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding: 18px;
}

.movie-card-body strong {
    font-size: 18px;
    line-height: 1.28;
    letter-spacing: -0.02em;
}

.movie-card-desc {
    color: var(--muted);
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 44px;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #6b7280;
    font-size: 12px;
}

.movie-meta span {
    padding: 4px 8px;
    border-radius: 999px;
    background: var(--amber-50);
}

.movie-card-wide .movie-card-link {
    display: grid;
    grid-template-columns: 42% 1fr;
    align-items: stretch;
}

.movie-card-wide .poster-frame {
    aspect-ratio: auto;
    min-height: 220px;
}

.movie-card-compact .movie-card-body {
    padding: 14px;
}

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

.category-tile {
    position: relative;
    overflow: hidden;
    min-height: 170px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.22), rgba(251, 113, 133, 0.18), rgba(255, 255, 255, 0.82));
    border: 1px solid rgba(217, 119, 6, 0.12);
    box-shadow: var(--shadow);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 60px rgba(146, 64, 14, 0.2);
}

.category-tile strong {
    font-size: 22px;
    margin-bottom: 8px;
}

.category-tile span {
    color: var(--muted);
}

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

.rank-row a {
    display: grid;
    grid-template-columns: 62px 120px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(217, 119, 6, 0.12);
    box-shadow: 0 12px 30px rgba(146, 64, 14, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-row a:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 44px rgba(146, 64, 14, 0.16);
}

.rank-index {
    font-size: 26px;
    font-weight: 900;
    text-align: center;
    color: var(--amber-700);
}

.rank-row img {
    width: 120px;
    height: 74px;
    object-fit: cover;
    border-radius: 14px;
    background: var(--amber-100);
}

.rank-content {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.rank-content strong {
    font-size: 18px;
}

.rank-content span {
    color: var(--muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rank-content em {
    color: #9a6b35;
    font-style: normal;
    font-size: 13px;
}

.rank-views {
    color: var(--rose-500);
    font-weight: 900;
    white-space: nowrap;
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 72px 0 64px;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.22), rgba(251, 113, 133, 0.16), rgba(255, 255, 255, 0.74));
}

.page-hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 30%, rgba(251, 191, 36, 0.4), transparent 32%),
                radial-gradient(circle at 80% 20%, rgba(251, 113, 133, 0.36), transparent 30%);
    opacity: 0.75;
}

.page-hero-inner {
    position: relative;
    z-index: 2;
}

.page-hero h1 {
    margin: 20px 0 12px;
    font-size: clamp(36px, 6vw, 64px);
    line-height: 1;
    letter-spacing: -0.06em;
}

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

.filter-panel {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(140px, 180px));
    gap: 14px;
    padding: 18px;
    margin-bottom: 26px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(217, 119, 6, 0.12);
    box-shadow: var(--shadow);
}

.filter-panel label {
    display: grid;
    gap: 7px;
    color: var(--amber-700);
    font-weight: 900;
    font-size: 13px;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 44px;
    border: 1px solid rgba(217, 119, 6, 0.18);
    border-radius: 14px;
    padding: 0 13px;
    outline: none;
    background: #fff;
    color: var(--text);
}

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

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

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    background: #0f172a;
    box-shadow: 0 26px 64px rgba(15, 23, 42, 0.28);
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 26px;
    text-align: center;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.78), rgba(15, 23, 42, 0.36));
    z-index: 3;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-panel {
    display: grid;
    gap: 14px;
    justify-items: center;
}

.player-panel strong {
    font-size: clamp(24px, 4vw, 42px);
    letter-spacing: -0.04em;
}

.player-play {
    padding: 13px 24px;
    font-size: 16px;
}

.detail-card,
.side-card {
    margin-top: 22px;
    padding: 26px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(217, 119, 6, 0.12);
    box-shadow: var(--shadow);
}

.detail-card h1 {
    margin: 0 0 16px;
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.detail-meta span {
    padding: 7px 12px;
    border-radius: 999px;
    color: var(--amber-700);
    background: var(--amber-50);
    font-weight: 800;
}

.detail-section {
    margin-top: 24px;
}

.detail-section h2 {
    margin: 0 0 10px;
    font-size: 24px;
}

.detail-section p {
    margin: 0;
    color: #4b5563;
    font-size: 16px;
}

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

.breadcrumb span {
    color: #9a6b35;
}

.side-card {
    margin-top: 0;
    position: sticky;
    top: 94px;
}

.side-card h2 {
    margin: 0 0 16px;
}

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

.side-list a {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.side-list img {
    width: 96px;
    height: 60px;
    object-fit: cover;
    border-radius: 12px;
    background: var(--amber-100);
}

.side-list strong {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.35;
}

.side-list span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}

.empty-state {
    display: none;
    padding: 34px;
    border-radius: 22px;
    text-align: center;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.86);
}

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

.site-footer {
    margin-top: 60px;
    color: #fff7ed;
    background: linear-gradient(135deg, #92400e, #be123c);
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    padding: 44px 0;
    align-items: center;
}

.footer-brand .brand-text {
    color: #fff;
    background: none;
    -webkit-background-clip: initial;
}

.site-footer p {
    max-width: 620px;
    color: #ffedd5;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: flex-end;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 237, 213, 0.2);
    padding: 18px;
    text-align: center;
    color: #fed7aa;
}

[data-filterable-card].is-hidden {
    display: none;
}

@keyframes silkGradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

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

    .menu-toggle {
        display: block;
        margin-left: auto;
    }

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

    .hero-poster {
        max-width: 620px;
        margin: 0 auto;
    }

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

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

    .side-card {
        position: static;
    }
}

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

    .header-inner {
        height: 64px;
    }

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

    .hero-carousel,
    .hero-inner {
        min-height: 720px;
    }

    .hero-inner {
        padding: 46px 0 92px;
        gap: 28px;
    }

    .hero-copy h1 {
        font-size: 44px;
    }

    .hero-actions {
        display: grid;
    }

    .movie-grid,
    .movie-grid.dense,
    .category-grid {
        grid-template-columns: 1fr;
    }

    .movie-card-wide .movie-card-link {
        grid-template-columns: 1fr;
    }

    .rank-row a {
        grid-template-columns: 46px 82px minmax(0, 1fr);
    }

    .rank-row img {
        width: 82px;
        height: 58px;
    }

    .rank-views {
        grid-column: 3;
        justify-self: start;
    }

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

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

    .footer-links {
        justify-content: flex-start;
    }

    .side-list a {
        grid-template-columns: 84px 1fr;
    }

    .side-list img {
        width: 84px;
        height: 54px;
    }
}

.category-preview {
    display: grid;
    gap: 6px;
    margin-top: 14px;
    font-size: 14px;
    color: var(--amber-700);
}

.category-preview a {
    display: inline;
    font-weight: 800;
}

.category-tile > a {
    display: grid;
    gap: 8px;
}
