:root {
    --bg: #f9fafb;
    --panel: #ffffff;
    --soft: #fff7ed;
    --text: #1f2937;
    --muted: #6b7280;
    --line: #e5e7eb;
    --orange: #f97316;
    --amber: #f59e0b;
    --red: #ef4444;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
    --shadow-soft: 0 10px 28px rgba(15, 23, 42, 0.08);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: linear-gradient(90deg, rgba(255, 251, 235, 0.94), rgba(255, 247, 237, 0.94));
    border-bottom: 1px solid rgba(249, 115, 22, 0.14);
    backdrop-filter: blur(18px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.nav-wrap {
    width: min(1200px, calc(100% - 32px));
    height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.brand-mark {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--orange), var(--amber));
    box-shadow: 0 14px 28px rgba(249, 115, 22, 0.25);
    transition: transform 0.25s ease;
}

.brand:hover .brand-mark {
    transform: scale(1.08) rotate(3deg);
}

.brand-text {
    font-size: 21px;
    color: var(--text);
    white-space: nowrap;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 10px 15px;
    border-radius: 14px;
    color: #374151;
    font-weight: 650;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange), var(--amber));
    transform: translateY(-1px);
}

.nav-cta {
    color: var(--orange);
    background: #ffffff;
    border: 1px solid rgba(249, 115, 22, 0.2);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: var(--shadow-soft);
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: var(--text);
    border-radius: 999px;
}

.hero {
    position: relative;
    min-height: 560px;
    overflow: hidden;
    background: linear-gradient(135deg, #ffedd5 0%, #fffbeb 42%, #fff7ed 100%);
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(18px);
    opacity: 0.45;
}

.hero::before {
    width: 240px;
    height: 240px;
    left: 6%;
    top: 9%;
    background: rgba(249, 115, 22, 0.28);
}

.hero::after {
    width: 300px;
    height: 300px;
    right: 8%;
    bottom: 6%;
    background: rgba(245, 158, 11, 0.32);
}

.hero-track {
    position: relative;
    z-index: 1;
    width: min(1200px, calc(100% - 32px));
    min-height: 560px;
    margin: 0 auto;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.8fr);
    align-items: center;
    gap: 48px;
    opacity: 0;
    transform: translateY(16px);
    pointer-events: none;
    transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-copy {
    padding: 64px 0;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 18px;
    padding: 8px 14px;
    color: #9a3412;
    font-weight: 750;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(249, 115, 22, 0.2);
    border-radius: 999px;
}

.hero h1 {
    margin: 0;
    max-width: 760px;
    font-size: clamp(42px, 6vw, 70px);
    line-height: 1.05;
    letter-spacing: -0.055em;
    color: #111827;
}

.hero h1 span,
.gradient-text {
    color: transparent;
    background: linear-gradient(100deg, var(--orange), var(--amber));
    background-clip: text;
    -webkit-background-clip: text;
}

.hero-title {
    margin: 20px 0 10px;
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.16;
}

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

.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 12px 22px;
    border-radius: 999px;
    border: 0;
    cursor: pointer;
    font-weight: 800;
    transition: box-shadow 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange), var(--amber));
    box-shadow: 0 14px 26px rgba(249, 115, 22, 0.28);
}

.btn-ghost {
    color: #374151;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.hero-poster {
    position: relative;
    display: block;
    border-radius: 30px;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #fed7aa;
    box-shadow: 0 30px 70px rgba(124, 45, 18, 0.22);
}

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

.hero-poster:hover img {
    transform: scale(1.05);
}

.hero-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.52));
}

.hero-poster-caption {
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 22px;
    z-index: 2;
    color: #ffffff;
    font-weight: 800;
    font-size: 20px;
}

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

.hero-dot {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(249, 115, 22, 0.28);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
    width: 34px;
    background: var(--orange);
}

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

.main-section.is-white {
    background: #ffffff;
}

.main-section.is-soft {
    background: linear-gradient(135deg, #fff7ed, #fffbeb);
}

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

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

.section-head h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.18;
    letter-spacing: -0.035em;
}

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

.section-link {
    flex: 0 0 auto;
    color: var(--orange);
    font-weight: 800;
}

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

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

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

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 180px;
    padding: 26px;
    color: #ffffff;
    border-radius: var(--radius);
    background: linear-gradient(135deg, #fb923c, #f59e0b);
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:nth-child(2n) {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.category-card:nth-child(3n) {
    background: linear-gradient(135deg, #ef4444, #f97316);
}

.category-card:nth-child(4n) {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
}

.category-card::after {
    content: "";
    position: absolute;
    width: 130px;
    height: 130px;
    right: -34px;
    bottom: -38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
}

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

.category-icon {
    position: relative;
    z-index: 1;
    font-size: 42px;
}

.category-card h3 {
    position: relative;
    z-index: 1;
    margin: 12px 0 6px;
    font-size: 22px;
}

.category-card p {
    position: relative;
    z-index: 1;
    margin: 0;
    opacity: 0.92;
}

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

.movie-card {
    overflow: hidden;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.movie-card.is-wide {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
}

.movie-cover {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #fed7aa;
}

.movie-card.is-wide .movie-cover {
    aspect-ratio: auto;
    min-height: 160px;
}

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

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

.movie-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.42));
    opacity: 0.7;
}

.movie-badge {
    position: absolute;
    z-index: 2;
    top: 12px;
    right: 12px;
    padding: 6px 10px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    border-radius: 999px;
    background: rgba(249, 115, 22, 0.92);
    backdrop-filter: blur(10px);
}

.play-chip {
    position: absolute;
    z-index: 2;
    left: 50%;
    top: 50%;
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 3px;
    color: #ffffff;
    border-radius: 50%;
    background: rgba(17, 24, 39, 0.68);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.movie-card:hover .play-chip,
.hero-poster:hover .play-chip {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.rank-num {
    position: absolute;
    z-index: 3;
    left: 12px;
    top: 12px;
    min-width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 900;
    border-radius: 12px;
    background: linear-gradient(135deg, #ef4444, #f97316);
    box-shadow: 0 12px 22px rgba(239, 68, 68, 0.24);
}

.movie-body {
    padding: 18px;
}

.movie-title {
    display: block;
    min-height: 52px;
    color: var(--text);
    font-size: 18px;
    font-weight: 800;
    line-height: 1.45;
    transition: color 0.2s ease;
}

.movie-title:hover {
    color: var(--orange);
}

.movie-line {
    min-height: 48px;
    margin: 8px 0 14px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-meta,
.tag-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.movie-meta span,
.tag-row span,
.detail-pill,
.breadcrumb a,
.breadcrumb span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #4b5563;
    font-size: 12px;
    font-weight: 700;
}

.tag-row {
    margin-top: 12px;
}

.tag-row span {
    color: #9a3412;
    background: #ffedd5;
}

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

.rank-panel {
    position: sticky;
    top: 96px;
    padding: 22px;
    border-radius: var(--radius);
    background: #111827;
    color: #ffffff;
    box-shadow: var(--shadow);
}

.rank-panel h3 {
    margin: 0 0 16px;
    font-size: 24px;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 10px 12px;
    align-items: center;
    padding: 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    transition: background 0.2s ease, transform 0.2s ease;
}

.rank-item:hover {
    background: rgba(249, 115, 22, 0.26);
    transform: translateX(3px);
}

.rank-item span {
    grid-row: span 2;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 900;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--orange), var(--amber));
}

.rank-item strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-item em {
    overflow: hidden;
    color: rgba(255, 255, 255, 0.68);
    font-style: normal;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.page-hero {
    padding: 70px 0 54px;
    background: linear-gradient(135deg, #fff7ed, #fffbeb);
    border-bottom: 1px solid rgba(249, 115, 22, 0.12);
}

.page-hero h1 {
    margin: 0;
    font-size: clamp(36px, 6vw, 58px);
    letter-spacing: -0.045em;
    line-height: 1.08;
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.breadcrumb a {
    color: #9a3412;
    background: #ffedd5;
}

.filter-panel {
    display: grid;
    gap: 16px;
    padding: 22px;
    margin-bottom: 28px;
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.search-box {
    position: relative;
}

.search-box input {
    width: 100%;
    min-height: 54px;
    padding: 0 18px 0 50px;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    outline: 0;
    color: var(--text);
    background: #f9fafb;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

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

.search-box::before {
    content: "⌕";
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 22px;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-chips button {
    min-height: 38px;
    padding: 7px 14px;
    border: 0;
    color: #4b5563;
    font-weight: 750;
    border-radius: 999px;
    background: #f3f4f6;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

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

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) 360px;
    gap: 32px;
    align-items: start;
}

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

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

.player-wrap video {
    width: 100%;
    height: 100%;
    display: block;
    background: #111827;
    object-fit: contain;
}

.player-cover {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(249, 115, 22, 0.22), rgba(17, 24, 39, 0.78));
}

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

.play-button {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 60px;
    padding: 0 26px;
    color: #ffffff;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--orange), var(--amber));
    box-shadow: 0 18px 34px rgba(249, 115, 22, 0.35);
    font-size: 18px;
    font-weight: 900;
    cursor: pointer;
}

.detail-card {
    padding: 28px;
    margin-top: 24px;
}

.detail-card h1 {
    margin: 0 0 14px;
    font-size: clamp(30px, 5vw, 48px);
    line-height: 1.15;
    letter-spacing: -0.035em;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.detail-card h2,
.side-card h2 {
    margin: 26px 0 12px;
    font-size: 24px;
}

.detail-card p {
    margin: 0 0 14px;
    color: #374151;
}

.side-card {
    padding: 22px;
}

.side-card h2 {
    margin-top: 0;
}

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

.side-link {
    display: grid;
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 10px;
    border-radius: 18px;
    background: #f9fafb;
    transition: background 0.2s ease, transform 0.2s ease;
}

.side-link:hover {
    background: #fff7ed;
    transform: translateX(3px);
}

.side-link img {
    width: 108px;
    height: 72px;
    border-radius: 14px;
    object-fit: cover;
    background: #fed7aa;
}

.side-link strong {
    display: block;
    line-height: 1.45;
}

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

.pagination-link {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 22px;
}

.pagination-link a {
    padding: 14px 16px;
    border-radius: 18px;
    background: #fff7ed;
    color: #9a3412;
    font-weight: 800;
}

.hidden-card {
    display: none !important;
}

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

.footer-inner {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.footer-brand {
    color: #ffffff;
    font-size: 20px;
    font-weight: 900;
}

.footer-inner p {
    margin: 0;
    text-align: right;
}

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

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

    .rank-panel {
        position: static;
    }
}

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

    .site-nav {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 78px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        border-radius: 22px;
        background: #ffffff;
        box-shadow: var(--shadow);
    }

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

    .hero,
    .hero-track {
        min-height: 760px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        align-content: center;
        gap: 18px;
    }

    .hero-copy {
        padding: 44px 0 0;
    }

    .hero-poster {
        max-height: 280px;
    }

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

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

    .footer-inner p {
        text-align: left;
    }
}

@media (max-width: 560px) {
    .nav-wrap,
    .container,
    .hero-track,
    .footer-inner {
        width: min(100% - 24px, 1200px);
    }

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

    .hero,
    .hero-track {
        min-height: 790px;
    }

    .hero h1 {
        font-size: 42px;
    }

    .hero-title {
        font-size: 26px;
    }

    .hero-desc {
        font-size: 16px;
    }

    .hero-actions,
    .pagination-link {
        display: grid;
        grid-template-columns: 1fr;
    }

    .btn {
        width: 100%;
    }

    .grid-2,
    .grid-3,
    .grid-4,
    .movie-grid {
        grid-template-columns: 1fr;
    }

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

    .side-link {
        grid-template-columns: 92px minmax(0, 1fr);
    }

    .side-link img {
        width: 92px;
        height: 64px;
    }
}
