:root {
    --orange: #f97316;
    --orange-dark: #c2410c;
    --amber: #f59e0b;
    --ink: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --paper: #ffffff;
    --soft: #fff7ed;
    --bg: #f9fafb;
    --shadow: 0 18px 45px rgba(17, 24, 39, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--ink);
    background: linear-gradient(180deg, #fff7ed 0%, #f9fafb 28%, #f9fafb 100%);
}

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

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

button,
input {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.8);
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
    color: #374151;
    font-weight: 600;
}

.nav-links a {
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--orange-dark);
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #ffffff;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.mobile-toggle span {
    width: 20px;
    height: 2px;
    background: var(--ink);
    border-radius: 999px;
}

.hero-carousel {
    position: relative;
    overflow: hidden;
    min-height: 620px;
    padding: 56px 0 46px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 12% 20%, rgba(249, 115, 22, 0.26), transparent 30%),
        radial-gradient(circle at 85% 10%, rgba(245, 158, 11, 0.22), transparent 28%),
        linear-gradient(135deg, #fff7ed 0%, #ffffff 44%, #f3f4f6 100%);
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: auto -10% -30% -10%;
    height: 260px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), #f9fafb);
}

.hero-shell {
    position: relative;
}

.hero-slide {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
    min-height: 480px;
}

.hero-slide.active {
    display: flex;
    animation: fadeUp 0.55s ease both;
}

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

.eyebrow {
    margin: 0 0 12px;
    color: var(--orange-dark);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-copy h1,
.page-title-card h1,
.detail-copy h1 {
    margin: 0;
    font-size: clamp(38px, 7vw, 72px);
    line-height: 1.02;
    letter-spacing: -0.06em;
}

.hero-summary,
.lead-text,
.page-title-card p {
    color: #4b5563;
    font-size: 18px;
    line-height: 1.9;
}

.hero-summary {
    margin: 24px 0 0;
}

.hero-tags,
.card-tags,
.detail-meta-list,
.chip-row,
.hero-actions,
.center-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

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

.hero-tags span,
.card-tags span,
.detail-meta-list span,
.chip {
    border: 1px solid #fed7aa;
    color: #9a3412;
    background: #fff7ed;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 13px;
    font-weight: 700;
}

.hero-actions {
    margin-top: 30px;
}

.primary-btn,
.ghost-btn,
.text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border-radius: 14px;
    padding: 0 18px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

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

.ghost-btn {
    color: var(--orange-dark);
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid #fed7aa;
}

.primary-btn:hover,
.ghost-btn:hover,
.text-link:hover {
    transform: translateY(-2px);
}

.hero-poster {
    position: relative;
    width: min(380px, 35vw);
    aspect-ratio: 3 / 4;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 32px 70px rgba(17, 24, 39, 0.22);
    transform: rotate(2deg);
    background: linear-gradient(135deg, #fff7ed, #ffedd5);
}

.hero-poster::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(17, 24, 39, 0.18));
}

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

.hero-controls {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 10px;
}

.hero-arrow,
.hero-dot {
    border: 0;
    cursor: pointer;
}

.hero-arrow {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: var(--shadow);
    color: var(--orange-dark);
    font-size: 28px;
}

.hero-dots {
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: #fdba74;
    opacity: 0.45;
}

.hero-dot.active {
    width: 32px;
    opacity: 1;
    background: var(--orange);
}

.main-layout,
.page-main,
.detail-page {
    padding: 34px 0 70px;
}

.filter-panel {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 12px;
    box-shadow: var(--shadow);
}

.filter-input {
    width: 100%;
    min-height: 48px;
    border: 0;
    outline: 0;
    padding: 0 16px;
    border-radius: 16px;
    background: #f9fafb;
    color: var(--ink);
}

.filter-status {
    min-width: 88px;
    color: var(--muted);
    font-size: 14px;
    text-align: right;
}

.content-section {
    margin-top: 44px;
}

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

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

.text-link {
    color: var(--orange-dark);
    background: #fff7ed;
    border: 1px solid #fed7aa;
}

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

.movie-card {
    overflow: hidden;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid rgba(229, 231, 235, 0.9);
    box-shadow: 0 14px 30px rgba(17, 24, 39, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 45px rgba(17, 24, 39, 0.12);
}

.poster {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, #fff7ed, #ffedd5);
    overflow: hidden;
}

.poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0), rgba(17, 24, 39, 0.35));
}

.year-tag,
.rank-tag {
    position: absolute;
    z-index: 2;
    top: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(12px);
}

.year-tag {
    left: 12px;
    background: rgba(17, 24, 39, 0.72);
}

.rank-tag {
    right: 12px;
    background: linear-gradient(135deg, var(--orange), var(--amber));
}

.card-body {
    padding: 16px;
}

.card-title {
    display: block;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.35;
    margin-bottom: 8px;
}

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

.card-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 10px;
}

.card-body p {
    min-height: 52px;
    margin: 0 0 12px;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.65;
}

.card-tags {
    gap: 6px;
}

.card-tags span {
    font-size: 12px;
    padding: 5px 8px;
}

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

.category-tile {
    position: relative;
    min-height: 220px;
    overflow: hidden;
    border-radius: 24px;
    background: #111827;
    color: #ffffff;
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: end;
    box-shadow: var(--shadow);
}

.category-tile img {
    position: absolute;
    inset: 0;
    opacity: 0.45;
}

.category-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.06), rgba(17, 24, 39, 0.82));
}

.category-tile span,
.category-tile p {
    position: relative;
    z-index: 1;
}

.category-tile span {
    font-size: 22px;
    font-weight: 900;
}

.category-tile p {
    margin: 8px 0 0;
    color: #f3f4f6;
    line-height: 1.6;
}

.center-actions {
    justify-content: center;
    margin-top: 26px;
}

.page-title-card,
.detail-hero-card,
.detail-content,
.player-section {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: 30px;
    box-shadow: var(--shadow);
}

.page-title-card {
    padding: clamp(24px, 5vw, 48px);
    margin-bottom: 28px;
    background:
        radial-gradient(circle at right top, rgba(249, 115, 22, 0.16), transparent 36%),
        rgba(255, 255, 255, 0.94);
}

.hot-title {
    background:
        radial-gradient(circle at 20% 10%, rgba(249, 115, 22, 0.25), transparent 30%),
        linear-gradient(135deg, #ffffff, #fff7ed);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 14px;
}

.breadcrumb a:hover {
    color: var(--orange-dark);
}

.chip-row {
    margin: 18px 0 26px;
}

.chip {
    cursor: pointer;
}

.chip.active,
.chip:hover {
    color: #ffffff;
    background: var(--orange);
    border-color: var(--orange);
}

.detail-hero-card {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 34px;
    padding: clamp(20px, 4vw, 34px);
    align-items: center;
}

.detail-poster {
    aspect-ratio: 3 / 4;
    border-radius: 26px;
    overflow: hidden;
    background: linear-gradient(135deg, #fff7ed, #ffedd5);
    box-shadow: 0 22px 40px rgba(17, 24, 39, 0.16);
}

.detail-copy h1 {
    font-size: clamp(34px, 5vw, 58px);
}

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

.detail-tags {
    margin-top: 12px;
}

.player-section {
    margin-top: 30px;
    padding: 16px;
}

.movie-player {
    position: relative;
    border-radius: 26px;
    overflow: hidden;
    background: #000000;
    aspect-ratio: 16 / 9;
    cursor: pointer;
}

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

.play-layer {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle, rgba(17, 24, 39, 0.2), rgba(17, 24, 39, 0.56));
    cursor: pointer;
}

.movie-player.is-playing .play-layer {
    display: none;
}

.play-icon {
    width: 86px;
    height: 86px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    padding-left: 6px;
    background: linear-gradient(135deg, var(--orange), var(--amber));
    box-shadow: 0 20px 40px rgba(249, 115, 22, 0.35);
    font-size: 34px;
}

.detail-content {
    margin-top: 30px;
    padding: clamp(22px, 4vw, 38px);
}

.detail-content h2 {
    margin: 0 0 14px;
    font-size: 26px;
}

.detail-content p {
    margin: 0 0 26px;
    color: #374151;
    font-size: 17px;
    line-height: 2;
}

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

.site-footer {
    border-top: 1px solid var(--line);
    background: #ffffff;
    padding: 34px 0;
}

.footer-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

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

.footer-links {
    display: flex;
    gap: 18px;
    color: #4b5563;
    font-weight: 700;
}

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

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

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

    .hero-slide {
        gap: 28px;
    }

    .hero-poster {
        width: min(330px, 38vw);
    }
}

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

    .nav-links {
        position: fixed;
        left: 16px;
        right: 16px;
        top: 76px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px;
        border-radius: 18px;
        background: #ffffff;
        box-shadow: var(--shadow);
        border: 1px solid var(--line);
    }

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

    .nav-links a {
        padding: 13px 12px;
        border-radius: 12px;
    }

    .nav-links a:hover {
        background: #fff7ed;
    }

    .hero-carousel {
        padding-top: 34px;
    }

    .hero-slide,
    .detail-hero-card,
    .footer-grid {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }

    .hero-slide.active {
        display: flex;
        flex-direction: column;
    }

    .hero-poster {
        width: 100%;
        max-height: 520px;
        transform: none;
    }

    .detail-hero-card {
        display: grid;
    }

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

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

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

    .section-head,
    .filter-panel {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-status {
        text-align: left;
    }
}

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

    .brand,
    .footer-brand {
        font-size: 18px;
    }

    .brand-mark {
        width: 34px;
        height: 34px;
        border-radius: 10px;
    }

    .hero-copy h1,
    .page-title-card h1,
    .detail-copy h1 {
        font-size: 34px;
    }

    .hero-summary,
    .lead-text,
    .page-title-card p {
        font-size: 16px;
    }

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

    .category-tile {
        min-height: 180px;
    }

    .play-icon {
        width: 68px;
        height: 68px;
        font-size: 26px;
    }
}
