:root {
    color-scheme: light;
    --amber-50: #fffbeb;
    --amber-100: #fef3c7;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --orange-500: #f97316;
    --orange-600: #ea580c;
    --rose-50: #fff1f2;
    --blue-50: #eff6ff;
    --text: #1f2937;
    --muted: #6b7280;
    --line: #e5e7eb;
    --card: #ffffff;
    --shadow: 0 18px 45px rgba(31, 41, 55, 0.12);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background: linear-gradient(180deg, var(--amber-50), #ffffff 42%);
}

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

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

button,
input {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.nav-bar {
    min-height: 74px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    font-size: 22px;
    white-space: nowrap;
}

.brand-mark {
    width: 36px;
    height: 36px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
    box-shadow: 0 12px 24px rgba(249, 115, 22, 0.3);
    font-size: 14px;
}

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

.main-nav a {
    padding: 10px 14px;
    border-radius: 999px;
    font-weight: 700;
    color: #4b5563;
    transition: all 0.25s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--amber-600);
    background: var(--amber-100);
}

.nav-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #ffffff;
}

.nav-search input {
    width: 210px;
    border: 0;
    outline: 0;
    padding: 8px 10px;
    background: transparent;
}

.nav-search button,
.hero-search button,
.primary-btn {
    border: 0;
    color: #ffffff;
    font-weight: 800;
    cursor: pointer;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
    box-shadow: 0 12px 24px rgba(249, 115, 22, 0.28);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.nav-search button {
    padding: 9px 16px;
}

.primary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
}

.nav-search button:hover,
.hero-search button:hover,
.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(249, 115, 22, 0.34);
}

.menu-toggle {
    display: none;
    margin-left: auto;
    border: 0;
    border-radius: 12px;
    padding: 9px 12px;
    background: var(--amber-100);
    color: var(--amber-600);
    font-weight: 900;
}

.hero {
    position: relative;
    min-height: 640px;
    overflow: hidden;
    background: #111827;
}

.hero-stage {
    position: absolute;
    inset: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 900ms ease;
}

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

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

.hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.42) 50%, rgba(0, 0, 0, 0.08));
}

.hero-content {
    padding-top: 56px;
    color: #ffffff;
}

.hero-content h1 {
    max-width: 720px;
    margin: 18px 0;
    font-size: clamp(42px, 7vw, 76px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.hero-content p {
    max-width: 660px;
    margin: 0 0 28px;
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.86);
}

.hero-badge,
.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    font-weight: 900;
}

.hero-badge {
    padding: 8px 16px;
    color: #ffffff;
    background: var(--amber-500);
}

.eyebrow {
    padding: 7px 13px;
    color: var(--amber-600);
    background: var(--amber-100);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.ghost-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 26px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 999px;
    color: #ffffff;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(14px);
    transition: background 0.25s ease;
}

.ghost-btn:hover {
    background: rgba(255, 255, 255, 0.22);
}

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

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

.hero-dot.is-active {
    width: 42px;
    background: #ffffff;
}

.hero-rail {
    position: relative;
    z-index: 4;
    padding-top: 462px;
}

.hero-rail-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #ffffff;
    margin-bottom: 14px;
    font-weight: 900;
}

.hero-rail-title a {
    color: #fde68a;
}

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

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

.gradient-warm {
    background: linear-gradient(90deg, #fff7ed, #fffbeb);
}

.gradient-cool {
    background: linear-gradient(180deg, #eff6ff, #ffffff);
}

.section-head {
    text-align: center;
    margin-bottom: 32px;
}

.section-head h2,
.page-hero h1,
.detail-intro h1 {
    margin: 14px 0 10px;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.section-head p,
.page-hero p {
    margin: 0 auto;
    max-width: 720px;
    color: var(--muted);
    line-height: 1.8;
    font-size: 17px;
}

.split-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    text-align: left;
}

.split-head p {
    margin: 0;
}

.left-head {
    text-align: left;
}

.left-head p {
    margin: 0;
}

.text-link {
    color: var(--amber-600);
    font-weight: 900;
}

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

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

.card-link {
    display: block;
    height: 100%;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: 0 10px 28px rgba(31, 41, 55, 0.1);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

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

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

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

.poster-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.48));
    opacity: 0;
    transition: opacity 0.25s ease;
}

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

.duration,
.rank-no {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    color: #ffffff;
    font-weight: 900;
}

.duration {
    left: 12px;
    top: 12px;
    padding: 5px 9px;
    background: rgba(0, 0, 0, 0.72);
    font-size: 12px;
}

.rank-no {
    left: 12px;
    bottom: 12px;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
    box-shadow: 0 12px 24px rgba(249, 115, 22, 0.32);
}

.play-dot {
    position: absolute;
    inset: 0;
    z-index: 3;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    margin: auto;
    border-radius: 999px;
    color: var(--amber-600);
    background: rgba(255, 255, 255, 0.92);
    opacity: 0;
    transform: scale(0.84);
    transition: all 0.25s ease;
}

.card-link:hover .play-dot {
    opacity: 1;
    transform: scale(1);
}

.card-body {
    padding: 18px;
}

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

.tag-row span,
.detail-tags span,
.detail-meta span {
    padding: 5px 9px;
    border-radius: 999px;
    background: var(--amber-100);
    color: #92400e;
    font-size: 12px;
    font-weight: 800;
}

.card-body h3 {
    margin: 12px 0 8px;
    font-size: 19px;
    line-height: 1.35;
}

.card-body p {
    display: -webkit-box;
    min-height: 48px;
    margin: 0;
    overflow: hidden;
    color: var(--muted);
    line-height: 1.6;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 16px;
    color: #6b7280;
    font-size: 13px;
    font-weight: 800;
}

.compact-card .card-link {
    display: flex;
    align-items: center;
    min-height: 124px;
    background: rgba(255, 255, 255, 0.95);
}

.compact-card .poster-wrap {
    width: 154px;
    flex: 0 0 154px;
    align-self: stretch;
    aspect-ratio: auto;
}

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

.compact-card .card-body p,
.compact-card .tag-row,
.compact-card .duration,
.compact-card .meta-row {
    display: none;
}

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

.category-tile {
    position: relative;
    min-height: 210px;
    overflow: hidden;
    border-radius: var(--radius);
    color: #ffffff;
    box-shadow: var(--shadow);
}

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

.category-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.76));
}

.category-tile span,
.category-tile em {
    position: relative;
    z-index: 2;
    display: block;
    padding: 0 20px;
}

.category-tile span {
    margin-top: 116px;
    font-size: 24px;
    font-weight: 900;
}

.category-tile em {
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.84);
    font-style: normal;
    line-height: 1.6;
}

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

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

.page-hero {
    color: #ffffff;
    background: radial-gradient(circle at 12% 20%, rgba(245, 158, 11, 0.62), transparent 30%), linear-gradient(135deg, #111827, #7c2d12);
}

.small-hero {
    padding: 74px 0;
}

.crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.78);
    font-weight: 700;
}

.crumbs a:hover {
    color: #fde68a;
}

.category-panel-grid {
    display: grid;
    gap: 26px;
}

.category-panel {
    display: grid;
    grid-template-columns: 360px 1fr;
    overflow: hidden;
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: var(--shadow);
}

.category-cover {
    position: relative;
    min-height: 260px;
    overflow: hidden;
}

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

.category-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.75));
}

.category-cover span {
    position: absolute;
    left: 24px;
    bottom: 22px;
    z-index: 2;
    color: #ffffff;
    font-size: 28px;
    font-weight: 900;
}

.category-panel-body {
    padding: 28px;
}

.category-panel-body h2 {
    margin: 0 0 10px;
    font-size: 28px;
}

.category-panel-body p {
    margin: 0 0 20px;
    color: var(--muted);
    line-height: 1.75;
}

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

.related-item {
    display: grid;
    grid-template-columns: 112px 1fr;
    gap: 14px;
    align-items: center;
    padding: 10px;
    border-radius: 16px;
    background: #fff7ed;
    transition: background 0.25s ease, transform 0.25s ease;
}

.related-item:hover {
    background: #ffedd5;
    transform: translateX(4px);
}

.related-item img {
    width: 112px;
    height: 70px;
    object-fit: cover;
    border-radius: 12px;
}

.related-item strong,
.related-item em {
    display: block;
}

.related-item strong {
    margin-bottom: 8px;
    line-height: 1.35;
}

.related-item em {
    color: var(--muted);
    font-style: normal;
    font-size: 13px;
}

.filter-panel {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 18px;
    padding: 22px;
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(31, 41, 55, 0.08);
}

.filter-panel label {
    display: grid;
    gap: 8px;
    flex: 1;
    font-weight: 900;
}

.filter-panel input,
.hero-search input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 16px;
    outline: 0;
    padding: 14px 16px;
    background: #ffffff;
}

.sort-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.sort-buttons button {
    border: 0;
    border-radius: 999px;
    padding: 11px 16px;
    color: #4b5563;
    background: #f3f4f6;
    cursor: pointer;
    font-weight: 800;
}

.sort-buttons button.is-active,
.sort-buttons button:hover {
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
}

.result-line {
    min-height: 26px;
    margin-bottom: 18px;
    color: var(--muted);
    font-weight: 800;
}

.hero-search {
    display: flex;
    gap: 12px;
    max-width: 640px;
    margin-top: 26px;
}

.hero-search button {
    padding: 0 24px;
}

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

.side-card,
.text-card,
.player-card {
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: var(--shadow);
}

.side-card {
    position: sticky;
    top: 96px;
    padding: 24px;
}

.side-card h2 {
    margin: 0 0 20px;
    font-size: 24px;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: #111827;
}

.detail-bg {
    position: absolute;
    inset: 0;
    opacity: 0.36;
    filter: blur(4px);
    transform: scale(1.04);
}

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

.detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(17, 24, 39, 0.96), rgba(17, 24, 39, 0.72), rgba(17, 24, 39, 0.48));
}

.detail-hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 270px 1fr;
    gap: 36px;
    align-items: center;
    padding: 72px 0;
}

.detail-poster {
    overflow: hidden;
    border: 5px solid rgba(255, 255, 255, 0.22);
    border-radius: 26px;
    box-shadow: 0 26px 80px rgba(0, 0, 0, 0.42);
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.detail-intro h1 {
    color: #ffffff;
}

.detail-intro p {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 19px;
    line-height: 1.8;
}

.detail-meta {
    margin: 24px 0;
}

.player-card {
    overflow: hidden;
}

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

.video-shell video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    background: #000000;
}

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    overflow: hidden;
    cursor: pointer;
    background: #000000;
}

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

.player-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.72;
}

.player-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.62));
}

.player-cover button {
    position: relative;
    z-index: 3;
    width: 88px;
    height: 88px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
    box-shadow: 0 18px 42px rgba(249, 115, 22, 0.38);
    cursor: pointer;
    font-size: 32px;
    transition: transform 0.25s ease;
}

.player-cover button:hover {
    transform: scale(1.08);
}

.player-title,
.text-card {
    padding: 26px;
}

.player-title h2,
.text-card h2 {
    margin: 0 0 12px;
    font-size: 26px;
}

.player-title p,
.text-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.9;
    white-space: pre-line;
}

.inner-section {
    padding-bottom: 0;
}

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

.site-footer {
    padding: 54px 0 24px;
    color: #d1d5db;
    background: #111827;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 32px;
}

.footer-brand {
    color: #ffffff;
}

.site-footer p {
    max-width: 420px;
    line-height: 1.8;
}

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

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

.site-footer a:hover {
    color: #fbbf24;
}

.copyright {
    width: min(1180px, calc(100% - 32px));
    margin: 34px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: #9ca3af;
}

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

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

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

    .two-column,
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .side-card {
        position: static;
    }
}

@media (max-width: 860px) {
    .nav-bar {
        flex-wrap: wrap;
        padding: 14px 0;
    }

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

    .main-nav,
    .nav-search {
        display: none;
        width: 100%;
    }

    .main-nav.is-open,
    .nav-search.is-open {
        display: flex;
    }

    .main-nav {
        flex-direction: column;
        align-items: stretch;
    }

    .nav-search input {
        width: 100%;
    }

    .hero {
        min-height: 760px;
    }

    .hero-overlay {
        align-items: start;
        padding-top: 70px;
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.74), rgba(0, 0, 0, 0.5));
    }

    .hero-rail {
        padding-top: 438px;
    }

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

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

    .detail-poster {
        max-width: 260px;
    }

    .filter-panel,
    .split-head {
        display: grid;
    }
}

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

    .hero {
        min-height: 820px;
    }

    .hero-content h1 {
        font-size: 38px;
    }

    .hero-dots {
        bottom: 224px;
    }

    .rail-cards,
    .movie-grid,
    .category-grid,
    .footer-grid,
    .related-grid {
        grid-template-columns: 1fr;
    }

    .compact-card .poster-wrap {
        width: 128px;
        flex-basis: 128px;
    }

    .small-hero {
        padding: 52px 0;
    }

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

    .hero-search {
        display: grid;
    }

    .hero-search button {
        padding: 14px 22px;
    }

    .related-item {
        grid-template-columns: 96px 1fr;
    }

    .related-item img {
        width: 96px;
        height: 60px;
    }
}
