:root {
    --bg: #fff7ed;
    --bg-soft: #fffbeb;
    --text: #1f2937;
    --muted: #6b7280;
    --line: #fed7aa;
    --primary: #f97316;
    --primary-dark: #ea580c;
    --accent: #f59e0b;
    --white: #ffffff;
    --shadow: 0 20px 50px rgba(234, 88, 12, 0.16);
    --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;
    color: var(--text);
    background: linear-gradient(180deg, #fff7ed 0%, #ffffff 42%, #fff7ed 100%);
}

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

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

button,
input {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, rgba(255, 251, 235, 0.95), rgba(255, 237, 213, 0.95), rgba(255, 251, 235, 0.95));
    border-bottom: 1px solid rgba(251, 146, 60, 0.22);
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 28px rgba(234, 88, 12, 0.08);
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand-icon {
    width: 42px;
    height: 42px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--primary));
    box-shadow: 0 12px 24px rgba(249, 115, 22, 0.3);
}

.brand-text {
    display: grid;
    line-height: 1.15;
}

.brand-text strong,
.footer-brand strong {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: linear-gradient(90deg, #b45309, var(--primary-dark));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-text small {
    color: var(--muted);
    font-size: 12px;
    margin-top: 3px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 26px;
}

.nav-link {
    position: relative;
    color: #374151;
    font-weight: 650;
    font-size: 15px;
    padding: 8px 0;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
}

.nav-link:hover {
    color: var(--primary-dark);
}

.nav-link:hover::after {
    transform: scaleX(1);
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.72);
    color: var(--primary-dark);
    cursor: pointer;
}

.mobile-panel {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 14px;
    padding: 12px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
}

.mobile-panel a {
    display: block;
    padding: 12px 14px;
    border-radius: 12px;
    color: #374151;
    font-weight: 650;
}

.mobile-panel a:hover {
    color: var(--primary-dark);
    background: #ffedd5;
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: 620px;
    padding: 68px 0 80px;
    background:
        radial-gradient(circle at 12% 18%, rgba(251, 146, 60, 0.26), transparent 30%),
        radial-gradient(circle at 80% 10%, rgba(245, 158, 11, 0.24), transparent 28%),
        linear-gradient(135deg, #fff7ed 0%, #ffffff 52%, #ffedd5 100%);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(90deg, rgba(249, 115, 22, 0.08) 1px, transparent 1px), linear-gradient(180deg, rgba(249, 115, 22, 0.08) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: linear-gradient(180deg, #000 0%, transparent 80%);
}

.hero-shell {
    position: relative;
}

.hero-slide {
    display: none;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.75fr);
    gap: 58px;
    align-items: center;
}

.hero-slide.active {
    display: grid;
    animation: fadeUp 0.48s ease both;
}

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

.hero-kicker,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    color: var(--primary-dark);
    background: linear-gradient(90deg, #ffedd5, #fef3c7);
    border: 1px solid rgba(251, 146, 60, 0.32);
    border-radius: 999px;
    padding: 8px 15px;
    font-size: 13px;
    font-weight: 750;
    letter-spacing: 0.02em;
}

.hero h1 {
    margin: 22px 0 18px;
    font-size: clamp(42px, 6vw, 74px);
    line-height: 1.06;
    letter-spacing: -0.055em;
}

.hero h1 em {
    font-style: normal;
    background: linear-gradient(90deg, #b45309, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-copy p,
.page-hero p {
    color: #4b5563;
    font-size: 18px;
    line-height: 1.9;
}

.hero-meta,
.movie-meta,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
}

.hero-meta span,
.movie-meta span,
.detail-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 237, 213, 0.72);
    color: #9a3412;
}

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

.tag {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 10px;
    border-radius: 999px;
    color: #92400e;
    background: #fef3c7;
    border: 1px solid rgba(245, 158, 11, 0.22);
    font-size: 12px;
    font-weight: 650;
}

.hero-tags {
    margin: 18px 0 26px;
}

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

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

.primary-button,
.rank-action {
    color: #fff;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    box-shadow: 0 16px 32px rgba(249, 115, 22, 0.24);
}

.ghost-button {
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid var(--line);
    color: #7c2d12;
}

.primary-button:hover,
.ghost-button:hover,
.rank-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 42px rgba(249, 115, 22, 0.28);
}

.hero-poster {
    position: relative;
    display: block;
    border-radius: 32px;
    isolation: isolate;
}

.glow-layer {
    position: absolute;
    inset: -22px;
    border-radius: 42px;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.26), rgba(245, 158, 11, 0.24));
    filter: blur(18px);
    z-index: -1;
}

.hero-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 32px;
    box-shadow: var(--shadow);
}

.hero-play {
    position: absolute;
    left: 24px;
    bottom: 24px;
    width: 64px;
    height: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    background: rgba(249, 115, 22, 0.88);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.2);
}

.hero-dots {
    display: flex;
    gap: 10px;
    margin-top: 34px;
}

.hero-dot {
    width: 36px;
    height: 7px;
    border: 0;
    border-radius: 999px;
    background: #fed7aa;
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.active {
    width: 68px;
    background: var(--primary);
}

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

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

.section-heading h2,
.page-hero h1,
.text-page h2,
.detail-info h1,
.detail-text h2 {
    margin: 12px 0 0;
    color: #1f2937;
    font-weight: 850;
    letter-spacing: -0.035em;
}

.section-heading h2,
.page-hero h1 {
    font-size: clamp(30px, 4vw, 48px);
}

.section-more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--primary-dark);
    font-weight: 750;
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(251, 146, 60, 0.18);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 12px 34px rgba(234, 88, 12, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(249, 115, 22, 0.42);
    box-shadow: var(--shadow);
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: #fff7ed;
}

.poster-link img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    transition: transform 0.28s ease;
}

.movie-card:hover .poster-link img,
.category-card:hover img,
.rank-row:hover img {
    transform: scale(1.045);
}

.play-chip,
.rank-badge {
    position: absolute;
    z-index: 2;
    color: #fff;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.16);
}

.play-chip {
    right: 12px;
    bottom: 12px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 750;
}

.rank-badge {
    top: 12px;
    left: 12px;
    min-width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-weight: 850;
}

.movie-card-body {
    padding: 16px;
}

.movie-card h2 {
    margin: 10px 0 8px;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 820;
}

.movie-card h2 a:hover,
.rank-info h2 a:hover {
    color: var(--primary-dark);
}

.movie-card p,
.rank-info p,
.text-page p,
.detail-text p {
    color: var(--muted);
    line-height: 1.82;
}

.movie-card p {
    min-height: 72px;
    margin: 0 0 12px;
    font-size: 14px;
}

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

.category-card {
    position: relative;
    min-height: 210px;
    overflow: hidden;
    border-radius: 28px;
    padding: 24px;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: end;
    box-shadow: var(--shadow);
    isolation: isolate;
}

.category-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    transition: transform 0.3s ease;
}

.category-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(124, 45, 18, 0.82));
    z-index: -1;
}

.category-card span {
    font-size: 26px;
    font-weight: 850;
}

.category-card p {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.7;
}

.page-hero {
    padding: 72px 0;
    background:
        radial-gradient(circle at 18% 20%, rgba(251, 146, 60, 0.24), transparent 28%),
        linear-gradient(135deg, #fff7ed, #ffffff 55%, #ffedd5);
}

.compact-hero .container {
    max-width: 900px;
}

.search-box {
    margin-top: 26px;
    max-width: 720px;
}

.search-box input {
    width: 100%;
    height: 58px;
    border: 1px solid rgba(249, 115, 22, 0.34);
    border-radius: 18px;
    padding: 0 20px;
    outline: 0;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 42px rgba(234, 88, 12, 0.1);
}

.search-box input:focus {
    border-color: var(--primary);
    box-shadow: 0 18px 42px rgba(249, 115, 22, 0.18);
}

.empty-state {
    margin-top: 28px;
    padding: 28px;
    border-radius: 22px;
    text-align: center;
    color: var(--muted);
    background: #fff7ed;
    border: 1px solid var(--line);
}

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

.rank-row {
    display: grid;
    grid-template-columns: 62px 88px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 16px;
    border: 1px solid rgba(251, 146, 60, 0.2);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 10px 28px rgba(234, 88, 12, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-row:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.rank-number {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    font-weight: 900;
}

.rank-cover {
    overflow: hidden;
    border-radius: 16px;
}

.rank-cover img {
    width: 88px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    transition: transform 0.22s ease;
}

.rank-info h2 {
    margin: 0 0 8px;
    font-size: 20px;
}

.rank-info p {
    margin: 0 0 10px;
}

.detail-hero {
    padding: 28px 0 66px;
    background:
        radial-gradient(circle at 10% 20%, rgba(249, 115, 22, 0.28), transparent 30%),
        linear-gradient(135deg, #111827 0%, #431407 55%, #78350f 100%);
    color: #fff;
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
    margin-bottom: 22px;
}

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

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
    gap: 34px;
    align-items: center;
}

.player-panel {
    border-radius: 30px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.player-frame {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background: #020617;
    cursor: pointer;
}

.player-video {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    background: #020617;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: #fff;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.46));
    cursor: pointer;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-overlay span {
    width: 82px;
    height: 82px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 20px 42px rgba(0, 0, 0, 0.32);
    font-size: 28px;
}

.player-frame.playing .player-overlay {
    opacity: 0;
    visibility: hidden;
}

.player-status {
    padding: 12px 4px 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
}

.detail-info .eyebrow {
    color: #fff7ed;
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.22);
}

.detail-info h1 {
    margin: 18px 0 14px;
    color: #fff;
    font-size: clamp(34px, 5vw, 54px);
    line-height: 1.15;
}

.detail-one-line {
    color: rgba(255, 255, 255, 0.84);
    font-size: 18px;
    line-height: 1.85;
}

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

.detail-info .tag {
    color: #fff7ed;
    background: rgba(255, 255, 255, 0.13);
    border-color: rgba(255, 255, 255, 0.2);
}

.detail-info .primary-button {
    margin-top: 24px;
}

.detail-text {
    padding: 62px 0 20px;
}

.detail-text-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

.detail-text article,
.text-page article,
.text-page .narrow {
    border: 1px solid rgba(251, 146, 60, 0.18);
    border-radius: 26px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 12px 34px rgba(234, 88, 12, 0.08);
}

.detail-text h2,
.text-page h2 {
    font-size: 28px;
}

.text-page {
    padding: 64px 0;
}

.narrow {
    max-width: 880px;
}

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

.site-footer {
    margin-top: 32px;
    padding: 54px 0 0;
    background: linear-gradient(180deg, #fff7ed, #ffedd5);
    border-top: 1px solid rgba(251, 146, 60, 0.24);
}

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

.footer-grid h2 {
    margin: 4px 0 14px;
    font-size: 17px;
}

.footer-grid p {
    color: var(--muted);
    line-height: 1.8;
}

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

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

.footer-links a {
    color: #6b7280;
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--primary-dark);
}

.footer-bottom {
    margin-top: 42px;
    padding: 18px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: #7c2d12;
    background: rgba(255, 255, 255, 0.5);
    border-top: 1px solid rgba(251, 146, 60, 0.22);
    font-size: 14px;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

    .hero-poster {
        max-width: 420px;
    }

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

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

    .mobile-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-panel.open {
        display: block;
    }

    .hero {
        min-height: auto;
        padding: 46px 0 58px;
    }

    .hero-copy p,
    .page-hero p,
    .detail-one-line {
        font-size: 16px;
    }

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

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .rank-action {
        grid-column: 2 / -1;
        width: fit-content;
    }

    .rank-number {
        width: 40px;
        height: 40px;
    }

    .rank-cover img {
        width: 70px;
    }
}

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

    .brand-text strong {
        font-size: 20px;
    }

    .movie-grid,
    .dense-grid,
    .category-grid,
    .detail-text-grid,
    .support-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

    .page-hero {
        padding: 48px 0;
    }

    .content-section,
    .text-page {
        padding: 42px 0;
    }

    .detail-hero {
        padding-bottom: 44px;
    }

    .detail-info h1 {
        font-size: 32px;
    }

    .footer-bottom {
        flex-direction: column;
    }
}
