:root {
    color-scheme: light;
    --bg: #fff7ed;
    --bg-soft: #fffbeb;
    --card: #ffffff;
    --text: #1f2937;
    --muted: #6b7280;
    --line: #fed7aa;
    --orange: #f97316;
    --amber: #f59e0b;
    --amber-soft: #fef3c7;
    --shadow: 0 18px 45px rgba(154, 52, 18, 0.14);
    --shadow-strong: 0 28px 70px rgba(154, 52, 18, 0.24);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(251, 146, 60, 0.16), transparent 32rem),
        linear-gradient(135deg, #fff7ed 0%, #fffbeb 52%, #fef3c7 100%);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(90deg, rgba(255, 247, 237, 0.94), rgba(254, 243, 199, 0.94));
    border-bottom: 1px solid rgba(251, 146, 60, 0.2);
    box-shadow: 0 10px 30px rgba(154, 52, 18, 0.08);
    backdrop-filter: blur(18px);
}

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

.nav-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 68px;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    letter-spacing: 0.03em;
}

.brand-mark {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange), var(--amber));
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(249, 115, 22, 0.36);
}

.brand-text {
    font-size: 22px;
    color: transparent;
    background: linear-gradient(90deg, #ea580c, #d97706);
    -webkit-background-clip: text;
    background-clip: text;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-links a {
    padding: 10px 14px;
    color: #475569;
    border-radius: 14px;
    font-weight: 700;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #ea580c;
    background: rgba(255, 237, 213, 0.92);
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 0;
    border-radius: 14px;
    background: rgba(255, 237, 213, 0.9);
}

.menu-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: #c2410c;
    border-radius: 999px;
}

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

.hero-slider {
    position: relative;
    height: 620px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s ease;
}

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

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

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.76) 0%, rgba(0, 0, 0, 0.56) 44%, rgba(0, 0, 0, 0.16) 100%),
        radial-gradient(circle at 22% 28%, rgba(249, 115, 22, 0.42), transparent 28rem);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    color: #ffffff;
}

.hero-copy {
    max-width: 680px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    color: #facc15;
    font-weight: 800;
}

.hero h1,
.page-hero h1,
.detail-title h1 {
    margin: 0;
    font-size: clamp(36px, 6vw, 68px);
    line-height: 1.05;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.hero p {
    max-width: 620px;
    margin: 20px 0 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 20px;
    line-height: 1.75;
}

.hero-actions,
.section-actions,
.detail-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 28px;
}

.button-primary,
.button-ghost,
.button-soft {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 850;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button-primary {
    color: #ffffff;
    background: linear-gradient(90deg, var(--orange), var(--amber));
    box-shadow: 0 16px 36px rgba(249, 115, 22, 0.34);
}

.button-primary:hover,
.button-ghost:hover,
.button-soft:hover {
    transform: translateY(-2px) scale(1.01);
}

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

.button-soft {
    color: #c2410c;
    background: rgba(255, 237, 213, 0.95);
}

.hero-tags,
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags {
    margin-top: 20px;
}

.hero-tags span,
.tag-list span,
.meta-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 12px;
    color: #c2410c;
    background: #ffedd5;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

.hero-tags span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
}

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

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

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

.section {
    padding: 72px 0;
}

.section-soft {
    padding: 72px 0;
    background: linear-gradient(90deg, rgba(255, 237, 213, 0.72), rgba(254, 243, 199, 0.72));
}

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

.section-kicker {
    margin: 0 0 8px;
    color: #ea580c;
    font-weight: 900;
}

.section-head h2,
.panel h2,
.content-block h2 {
    margin: 0;
    color: #1f2937;
    font-size: clamp(26px, 4vw, 38px);
    line-height: 1.16;
    font-weight: 950;
}

.section-head p,
.page-hero p,
.content-block p {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.8;
}

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

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

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

.poster-link,
.poster-frame {
    display: block;
}

.poster-frame {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, #fed7aa, #fef3c7);
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.featured-grid .poster-frame {
    aspect-ratio: 16 / 10;
}

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

.image-missing img {
    opacity: 0;
}

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 20%, rgba(0, 0, 0, 0.76) 100%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.poster-year {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    padding: 5px 9px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.55);
    border-radius: 10px;
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(8px);
}

.poster-play {
    position: absolute;
    left: 16px;
    bottom: 16px;
    z-index: 2;
    color: #ffffff;
    font-weight: 900;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.movie-card:hover .poster-shade,
.movie-card:hover .poster-play {
    opacity: 1;
    transform: translateY(0);
}

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

.movie-card h3 {
    margin: 0;
    font-size: 17px;
    line-height: 1.35;
    font-weight: 900;
}

.movie-card h3 a:hover {
    color: #ea580c;
}

.movie-card p {
    display: -webkit-box;
    min-height: 44px;
    margin: 8px 0 10px;
    overflow: hidden;
    color: #64748b;
    font-size: 14px;
    line-height: 1.55;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
    color: #92400e;
    font-size: 13px;
    font-weight: 800;
}

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

.category-card {
    min-height: 132px;
    padding: 24px;
    background: var(--card);
    border: 1px solid rgba(251, 146, 60, 0.18);
    border-radius: 22px;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
    box-shadow: var(--shadow-strong);
    transform: translateY(-4px);
}

.category-card strong {
    display: block;
    margin-top: 16px;
    font-size: 19px;
}

.category-icon {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange), var(--amber));
    border-radius: 16px;
    font-size: 22px;
}

.page-hero {
    padding: 66px 0 42px;
    background: radial-gradient(circle at 12% 10%, rgba(249, 115, 22, 0.18), transparent 34rem);
}

.page-hero-card,
.panel,
.content-block {
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(251, 146, 60, 0.18);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.page-hero-card {
    padding: 36px;
}

.search-panel {
    display: flex;
    gap: 14px;
    margin-top: 24px;
}

.search-panel input {
    width: 100%;
    min-height: 52px;
    padding: 0 18px;
    color: #1f2937;
    background: #ffffff;
    border: 1px solid #fed7aa;
    border-radius: 16px;
    outline: none;
    box-shadow: 0 12px 30px rgba(154, 52, 18, 0.06);
}

.search-panel input:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.filter-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.filter-links a {
    padding: 9px 14px;
    color: #9a3412;
    background: #ffedd5;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 850;
}

.empty-state {
    display: none;
    margin: 34px 0 0;
    padding: 24px;
    color: #9a3412;
    background: #ffedd5;
    border-radius: 18px;
    text-align: center;
}

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

.detail-hero {
    padding: 54px 0 42px;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(220px, 320px) 1fr;
    gap: 34px;
    align-items: center;
}

.detail-poster {
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, #fed7aa, #fef3c7);
    border-radius: 26px;
    box-shadow: var(--shadow-strong);
}

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

.detail-title {
    min-width: 0;
}

.detail-title h1 {
    color: #111827;
}

.detail-title p {
    margin: 18px 0 0;
    color: #4b5563;
    font-size: 18px;
    line-height: 1.8;
}

.meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.player-panel {
    padding: 34px 0 72px;
}

.player-box {
    overflow: hidden;
    background: #0f172a;
    border-radius: 28px;
    box-shadow: var(--shadow-strong);
}

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

.video-wrap video {
    width: 100%;
    height: 100%;
    background: #020617;
}

.play-layer {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    padding: 24px;
    color: #ffffff;
    background: radial-gradient(circle at center, rgba(249, 115, 22, 0.22), rgba(2, 6, 23, 0.56));
    border: 0;
    text-align: center;
}

.play-layer.is-hidden {
    display: none;
}

.play-layer span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    min-height: 54px;
    padding: 0 24px;
    background: linear-gradient(90deg, var(--orange), var(--amber));
    border-radius: 999px;
    font-weight: 950;
    box-shadow: 0 18px 40px rgba(249, 115, 22, 0.38);
}

.player-caption {
    padding: 24px;
    color: #e5e7eb;
}

.player-caption h2 {
    margin: 0 0 8px;
    color: #ffffff;
    font-size: 24px;
}

.player-caption p {
    margin: 0;
    color: #cbd5e1;
    line-height: 1.75;
}

.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

.content-block {
    padding: 28px;
}

.content-block + .content-block {
    margin-top: 22px;
}

.content-block p {
    color: #4b5563;
    font-size: 16px;
}

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

.side-list a {
    display: grid;
    grid-template-columns: 62px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px;
    background: #ffffff;
    border: 1px solid rgba(251, 146, 60, 0.14);
    border-radius: 16px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.side-list a:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.side-list img {
    width: 62px;
    height: 82px;
    object-fit: cover;
    background: #fed7aa;
    border-radius: 12px;
}

.side-list strong {
    display: block;
    margin-bottom: 4px;
}

.side-list em {
    display: -webkit-box;
    overflow: hidden;
    color: #64748b;
    font-size: 13px;
    line-height: 1.5;
    font-style: normal;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 52px 74px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 14px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(251, 146, 60, 0.16);
    border-radius: 20px;
    box-shadow: 0 10px 28px rgba(154, 52, 18, 0.07);
}

.rank-row:hover {
    border-color: rgba(249, 115, 22, 0.46);
    transform: translateY(-1px);
}

.rank-number {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange), var(--amber));
    border-radius: 14px;
    font-weight: 950;
}

.rank-thumb {
    display: block;
    overflow: hidden;
    width: 74px;
    height: 96px;
    background: #fed7aa;
    border-radius: 14px;
}

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

.rank-info {
    min-width: 0;
}

.rank-info strong {
    display: block;
    font-size: 18px;
}

.rank-info em {
    display: -webkit-box;
    overflow: hidden;
    margin-top: 5px;
    color: #64748b;
    line-height: 1.55;
    font-style: normal;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.rank-tags {
    color: #92400e;
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
}

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

.info-card {
    padding: 28px;
    background: #ffffff;
    border: 1px solid rgba(251, 146, 60, 0.16);
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.info-card h2,
.info-card h3 {
    margin: 0 0 12px;
}

.info-card p,
.info-card li {
    color: #4b5563;
    line-height: 1.75;
}

.info-card ul {
    margin: 0;
    padding-left: 18px;
}

.site-footer {
    color: #cbd5e1;
    background: linear-gradient(135deg, #111827, #1f2937);
}

.footer-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 42px 0;
}

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

.footer-brand p {
    max-width: 420px;
    margin: 12px 0 0;
    color: #94a3b8;
    line-height: 1.7;
}

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

.footer-links a:hover {
    color: #fb923c;
}

.back-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 90;
    display: none;
    width: 48px;
    height: 48px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange), var(--amber));
    border: 0;
    border-radius: 999px;
    box-shadow: 0 16px 36px rgba(249, 115, 22, 0.28);
    font-size: 22px;
    font-weight: 900;
}

.back-top.is-visible {
    display: grid;
    place-items: center;
}

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

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

@media (max-width: 820px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px 16px 18px;
        background: rgba(255, 247, 237, 0.98);
        border-bottom: 1px solid rgba(251, 146, 60, 0.18);
    }

    .nav-links.is-open {
        display: flex;
    }

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

    .movie-grid,
    .movie-grid.featured-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    .category-grid,
    .info-columns,
    .content-grid,
    .detail-layout {
        grid-template-columns: 1fr;
    }

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

    .rank-row {
        grid-template-columns: 42px 58px minmax(0, 1fr);
    }

    .rank-tags {
        grid-column: 3;
        white-space: normal;
    }
}

@media (max-width: 520px) {
    .nav-shell,
    .footer-shell,
    .shell,
    .hero-content {
        width: min(100% - 24px, 1180px);
    }

    .hero,
    .hero-slider {
        min-height: 520px;
        height: 520px;
    }

    .hero p,
    .detail-title p {
        font-size: 16px;
    }

    .page-hero-card,
    .content-block {
        padding: 22px;
    }

    .search-panel {
        flex-direction: column;
    }

    .movie-grid,
    .movie-grid.featured-grid {
        gap: 14px;
    }

    .movie-card h3 {
        font-size: 15px;
    }

    .movie-card p,
    .tag-list {
        display: none;
    }
}
