:root {
    --bg: #fff7ed;
    --bg-soft: #fffbeb;
    --card: #ffffff;
    --text: #1f2937;
    --muted: #6b7280;
    --line: #fed7aa;
    --brand: #f97316;
    --brand-dark: #ea580c;
    --brand-soft: #ffedd5;
    --amber: #f59e0b;
    --dark: #111827;
    --shadow: 0 18px 45px rgba(124, 45, 18, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background: linear-gradient(180deg, var(--bg), var(--bg-soft));
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(90deg, rgba(255, 251, 235, 0.96), rgba(255, 237, 213, 0.96));
    backdrop-filter: blur(14px);
    box-shadow: 0 6px 18px rgba(154, 52, 18, 0.08);
}

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

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

.brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    color: #ffffff;
    background: linear-gradient(135deg, #fb923c, #f59e0b);
    box-shadow: 0 12px 25px rgba(249, 115, 22, 0.28);
}

.brand:hover .brand-icon {
    transform: scale(1.06) rotate(-3deg);
}

.brand-icon,
.movie-card,
.poster-link img,
.btn,
.category-card,
.rank-item,
.play-overlay {
    transition: 0.25s ease;
}

.brand-text {
    font-size: 21px;
    color: #1f2937;
    white-space: nowrap;
}

.nav-search {
    display: flex;
    flex: 1 1 360px;
    max-width: 440px;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    background: #ffffff;
}

.nav-search input,
.mobile-search input,
.filter-input,
.filter-select {
    width: 100%;
    border: 0;
    outline: 0;
    color: var(--text);
    background: #ffffff;
}

.nav-search input {
    padding: 11px 14px;
}

.nav-search button,
.mobile-search button {
    border: 0;
    padding: 0 18px;
    color: #ffffff;
    background: var(--brand);
    cursor: pointer;
}

.nav-search button:hover,
.mobile-search button:hover,
.btn:hover {
    background: var(--brand-dark);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    font-weight: 650;
    color: #374151;
}

.desktop-nav a,
.mobile-panel nav a {
    position: relative;
    padding: 8px 0;
}

.desktop-nav a:hover,
.desktop-nav a.is-active,
.mobile-panel nav a:hover,
.mobile-panel nav a.is-active {
    color: var(--brand-dark);
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: var(--brand-soft);
    color: var(--brand-dark);
}

.mobile-panel {
    display: none;
    padding: 0 16px 16px;
    border-top: 1px solid var(--line);
    background: rgba(255, 247, 237, 0.98);
}

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

.mobile-search {
    display: flex;
    margin: 14px auto;
    max-width: 680px;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    background: #ffffff;
}

.mobile-search input {
    padding: 11px 14px;
}

.mobile-panel nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 18px;
    max-width: 680px;
    margin: 0 auto;
    font-weight: 650;
}

.hero-carousel {
    position: relative;
    min-height: 530px;
    overflow: hidden;
    background: var(--dark);
}

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

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

.hero-slide img {
    width: 100%;
    height: 100%;
    min-height: 530px;
    object-fit: cover;
    filter: saturate(1.05) contrast(1.02);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.64) 42%, rgba(0, 0, 0, 0.18));
}

.hero-inner {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
}

.hero-copy {
    width: min(620px, 90vw);
    color: #ffffff;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    padding: 6px 12px;
    border-radius: 999px;
    color: #ffedd5;
    background: rgba(249, 115, 22, 0.22);
    border: 1px solid rgba(253, 186, 116, 0.35);
    backdrop-filter: blur(10px);
    font-size: 14px;
    font-weight: 700;
}

.hero-copy h1,
.hero-copy h2 {
    margin: 0 0 18px;
    font-size: clamp(34px, 5vw, 62px);
    line-height: 1.05;
    letter-spacing: -0.04em;
    text-shadow: 0 8px 28px rgba(0, 0, 0, 0.48);
}

.hero-copy p {
    max-width: 580px;
    margin: 0 0 22px;
    color: #e5e7eb;
    font-size: 18px;
    line-height: 1.8;
}

.hero-tags,
.movie-card-tags,
.detail-tags,
.rank-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-pill,
.rank-tags span,
.detail-meta span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 5px 10px;
    color: #9a3412;
    background: #ffedd5;
    font-size: 13px;
    font-weight: 700;
}

.hero-tags .tag-pill {
    color: #ffffff;
    background: rgba(249, 115, 22, 0.78);
    backdrop-filter: blur(10px);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 22px;
    border-radius: 13px;
    color: #ffffff;
    background: var(--brand);
    font-weight: 800;
    box-shadow: 0 14px 30px rgba(249, 115, 22, 0.28);
}

.btn.btn-ghost {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.26);
    backdrop-filter: blur(8px);
}

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

.hero-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.48);
    cursor: pointer;
}

.hero-control:hover {
    background: rgba(0, 0, 0, 0.7);
}

.hero-control.prev {
    left: 18px;
}

.hero-control.next {
    right: 18px;
}

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

.hero-dots button {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
}

.hero-dots button.is-active {
    width: 28px;
    background: #ffffff;
}

.main {
    padding: 44px 0 0;
}

.section {
    margin: 0 0 52px;
}

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

.section-heading h2,
.page-hero h1,
.detail-title h1 {
    margin: 0;
    color: #1f2937;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.section-heading p,
.page-hero p,
.detail-title p {
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.8;
}

.more-link {
    flex: 0 0 auto;
    color: var(--brand-dark);
    font-weight: 800;
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(253, 186, 116, 0.72);
    border-radius: 22px;
    background: var(--card);
    box-shadow: var(--shadow);
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 55px rgba(124, 45, 18, 0.18);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, #fdba74, #f59e0b);
}

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

.movie-card:hover .poster-link img {
    transform: scale(1.06);
}

.poster-year {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 9px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.62);
    font-size: 12px;
    font-weight: 800;
}

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

.movie-meta-line {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: var(--brand-dark);
    font-size: 12px;
    font-weight: 800;
}

.movie-card h3 {
    margin: 0 0 8px;
    color: #111827;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 900;
}

.movie-card h3 a:hover,
.rank-content h3 a:hover,
.text-link:hover {
    color: var(--brand-dark);
}

.movie-card p {
    min-height: 48px;
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
}

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

.category-card {
    display: flex;
    flex-direction: column;
    min-height: 190px;
    padding: 22px;
    border: 1px solid rgba(253, 186, 116, 0.75);
    border-radius: 24px;
    background: linear-gradient(135deg, #ffffff, #fff7ed);
    box-shadow: var(--shadow);
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-card h3 {
    margin: 0 0 10px;
    font-size: 22px;
    font-weight: 900;
}

.category-card p {
    flex: 1;
    margin: 0 0 18px;
    color: var(--muted);
    line-height: 1.8;
}

.category-card span {
    color: var(--brand-dark);
    font-weight: 800;
}

.page-hero {
    margin: 34px 0 34px;
    padding: 34px;
    border: 1px solid rgba(253, 186, 116, 0.7);
    border-radius: 28px;
    background: radial-gradient(circle at top left, rgba(251, 146, 60, 0.22), transparent 34%), linear-gradient(135deg, #ffffff, #fff7ed);
    box-shadow: var(--shadow);
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(130px, 180px));
    gap: 12px;
    margin: 0 0 24px;
    padding: 16px;
    border: 1px solid rgba(253, 186, 116, 0.72);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 12px 30px rgba(124, 45, 18, 0.08);
}

.filter-input,
.filter-select {
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 13px;
    padding: 0 13px;
}

.empty-state {
    display: none;
    padding: 28px;
    border: 1px dashed var(--line);
    border-radius: 20px;
    color: var(--muted);
    text-align: center;
    background: rgba(255, 255, 255, 0.7);
}

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

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

.rank-item {
    display: grid;
    grid-template-columns: 62px 92px minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    padding: 14px;
    border: 1px solid rgba(253, 186, 116, 0.75);
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(124, 45, 18, 0.08);
}

.rank-item:hover {
    transform: translateX(4px);
}

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

.rank-thumb {
    display: block;
    width: 92px;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 14px;
    background: #fed7aa;
}

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

.rank-content h3 {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 900;
}

.rank-content p {
    margin: 0 0 10px;
    color: var(--muted);
    line-height: 1.7;
}

.detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 28px;
    align-items: stretch;
    margin: 34px 0;
}

.detail-title,
.detail-poster-card,
.content-card,
.related-card {
    border: 1px solid rgba(253, 186, 116, 0.72);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow);
}

.detail-title {
    padding: 30px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
    color: var(--muted);
    font-size: 14px;
}

.breadcrumb a {
    color: var(--brand-dark);
    font-weight: 800;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0;
}

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

.detail-poster-card {
    overflow: hidden;
}

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

.player-section {
    margin: 0 0 34px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #000000;
    box-shadow: 0 25px 65px rgba(0, 0, 0, 0.28);
    aspect-ratio: 16 / 9;
}

.movie-video {
    width: 100%;
    height: 100%;
    background: #000000;
    cursor: pointer;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.28), rgba(0, 0, 0, 0.72));
    cursor: pointer;
    z-index: 2;
}

.play-overlay.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.play-button-core {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 92px;
    height: 92px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(249, 115, 22, 0.92);
    box-shadow: 0 18px 45px rgba(249, 115, 22, 0.38);
    font-size: 36px;
    transform: translateZ(0);
}

.play-overlay:hover .play-button-core {
    transform: scale(1.08);
}

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

.content-card,
.related-card {
    padding: 26px;
}

.content-card h2,
.related-card h2 {
    margin: 0 0 14px;
    font-size: 24px;
    font-weight: 900;
}

.content-card p {
    margin: 0 0 18px;
    color: #374151;
    line-height: 1.92;
    font-size: 16px;
}

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

.related-mini {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.related-mini img {
    width: 72px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 12px;
    background: #fed7aa;
}

.related-mini h3 {
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 900;
    line-height: 1.35;
}

.related-mini p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.site-footer {
    margin-top: 64px;
    color: #d1d5db;
    background: linear-gradient(90deg, #1f2937, #111827);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.3fr;
    gap: 28px;
    padding: 42px 0;
}

.site-footer h3,
.site-footer h4 {
    margin: 0 0 14px;
    color: #ffffff;
}

.site-footer p,
.site-footer li {
    margin: 0 0 9px;
    color: #d1d5db;
    line-height: 1.8;
}

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

.footer-bottom {
    padding: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #9ca3af;
    text-align: center;
}

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

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

    .detail-poster-card {
        max-width: 360px;
    }

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

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

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

    .hero-carousel,
    .hero-slide img {
        min-height: 560px;
    }

    .hero-shade {
        background: linear-gradient(0deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.36));
    }

    .hero-inner {
        align-items: flex-end;
        padding-bottom: 82px;
    }

    .hero-control {
        display: none;
    }

    .filter-panel {
        grid-template-columns: 1fr;
    }
}

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

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

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

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

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

    .movie-card p {
        display: none;
    }

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

    .page-hero,
    .detail-title,
    .content-card,
    .related-card {
        padding: 22px;
        border-radius: 22px;
    }

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

    .rank-number {
        width: 38px;
        height: 38px;
        border-radius: 12px;
        font-size: 14px;
    }

    .rank-thumb {
        width: 70px;
    }

    .rank-content p {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}
