:root {
    --bg: #fff7ed;
    --panel: #ffffff;
    --panel-soft: rgba(255, 255, 255, 0.72);
    --text: #111827;
    --muted: #6b7280;
    --line: #fed7aa;
    --orange: #f97316;
    --rose: #f43f5e;
    --amber: #f59e0b;
    --shadow: 0 18px 45px rgba(124, 45, 18, 0.12);
    --shadow-strong: 0 26px 60px rgba(124, 45, 18, 0.22);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: linear-gradient(135deg, #fff7ed 0%, #fffbeb 52%, #fef3c7 100%);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

img {
    display: block;
    width: 100%;
    height: auto;
}

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(253, 186, 116, 0.55);
    backdrop-filter: blur(18px);
    box-shadow: 0 8px 24px rgba(124, 45, 18, 0.06);
}

.site-header-inner {
    max-width: 1280px;
    min-height: 76px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 22px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.brand-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange), var(--rose));
    box-shadow: 0 12px 28px rgba(249, 115, 22, 0.35);
    transition: transform 0.25s ease;
}

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

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

.brand-name {
    font-size: 23px;
    font-weight: 800;
    letter-spacing: -0.04em;
    background: linear-gradient(90deg, #ea580c, #e11d48);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1 1 auto;
    overflow: hidden;
}

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

.nav-link {
    padding: 10px 12px;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover {
    color: #ea580c;
    background: #ffedd5;
}

.header-search,
.mobile-search,
.hero-search {
    display: flex;
    align-items: center;
    border: 1px solid #fed7aa;
    background: #ffffff;
    border-radius: 999px;
    overflow: hidden;
}

.header-search input,
.mobile-search input,
.hero-search input {
    width: 210px;
    border: 0;
    outline: 0;
    padding: 10px 16px;
    background: transparent;
}

.header-search button,
.mobile-search button,
.hero-search button {
    border: 0;
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange), var(--rose));
    padding: 10px 18px;
    cursor: pointer;
}

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: #ffedd5;
    color: #ea580c;
}

.mobile-panel {
    display: none;
    border-top: 1px solid #fed7aa;
    padding: 16px 24px 20px;
    background: #ffffff;
}

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

.mobile-nav {
    display: grid;
    gap: 8px;
    margin-top: 14px;
}

.mobile-link {
    padding: 12px 14px;
}

main {
    min-height: 70vh;
}

.hero-wrap {
    max-width: 1280px;
    margin: 0 auto 56px;
    padding: 32px 24px 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 24px;
}

.hero-carousel {
    position: relative;
    min-height: 470px;
    overflow: hidden;
    border-radius: 28px;
    box-shadow: var(--shadow-strong);
    background: #111827;
}

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

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

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
    transition: transform 6s ease;
}

.hero-slide.is-active .hero-bg {
    transform: scale(1.12);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.46), rgba(0, 0, 0, 0.16)), linear-gradient(0deg, rgba(0, 0, 0, 0.76), transparent 52%);
}

.hero-content {
    position: absolute;
    left: 46px;
    right: 42px;
    bottom: 46px;
    max-width: 720px;
    color: #ffffff;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 7px 12px;
    margin-bottom: 14px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange), var(--rose));
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.hero-content h1 {
    margin: 0 0 16px;
    font-size: clamp(34px, 5vw, 60px);
    line-height: 1.04;
    font-weight: 900;
    letter-spacing: -0.06em;
}

.hero-content p {
    max-width: 660px;
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 18px;
    line-height: 1.75;
}

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

.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 10px;
    border-radius: 999px;
    color: #c2410c;
    background: #ffedd5;
    font-size: 12px;
    font-weight: 700;
}

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

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

.primary-button,
.ghost-button,
.category-enter,
.cta-band a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button,
.category-enter,
.cta-band a {
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange), var(--rose));
    box-shadow: 0 14px 30px rgba(249, 115, 22, 0.35);
}

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

.primary-button:hover,
.ghost-button:hover,
.category-enter:hover,
.cta-band a:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 18px 34px rgba(249, 115, 22, 0.42);
}

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    transform: translateY(-50%);
    font-size: 32px;
    line-height: 1;
}

.hero-prev {
    left: 18px;
}

.hero-next {
    right: 18px;
}

.hero-dots {
    position: absolute;
    left: 46px;
    bottom: 20px;
    z-index: 6;
    display: flex;
    gap: 8px;
}

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

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

.hero-side-card {
    min-height: 470px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px;
    border-radius: 28px;
    background: linear-gradient(160deg, rgba(249, 115, 22, 0.94), rgba(244, 63, 94, 0.94));
    color: #ffffff;
    box-shadow: var(--shadow);
}

.hero-side-card h2 {
    margin: 0 0 12px;
    font-size: 31px;
    font-weight: 900;
    letter-spacing: -0.05em;
}

.hero-side-card p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.72;
}

.hero-search {
    margin-top: 28px;
    background: rgba(255, 255, 255, 0.96);
}

.hero-search input {
    width: 100%;
}

.content-section {
    max-width: 1280px;
    margin: 0 auto 64px;
    padding: 0 24px;
}

.soft-panel {
    max-width: none;
    padding: 52px max(24px, calc((100vw - 1280px) / 2 + 24px));
    background: rgba(255, 255, 255, 0.55);
}

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

.section-heading h2 {
    margin: 0;
    font-size: clamp(25px, 3vw, 36px);
    font-weight: 900;
    letter-spacing: -0.05em;
}

.section-heading p {
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.7;
}

.section-link {
    color: #ea580c;
    font-weight: 800;
    white-space: nowrap;
}

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

.movie-card {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(124, 45, 18, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.card-image {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    background: #1f2937;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s ease;
}

.movie-card:hover .card-image img {
    transform: scale(1.1);
}

.card-image::after,
.horizontal-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.66), transparent 50%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.movie-card:hover .card-image::after,
.movie-card:hover .horizontal-image::after {
    opacity: 1;
}

.card-label,
.rank-badge {
    position: absolute;
    z-index: 2;
    top: 12px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
}

.card-label {
    right: 12px;
    padding: 5px 9px;
    background: linear-gradient(135deg, var(--orange), var(--rose));
}

.rank-badge {
    left: 12px;
    min-width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.62);
    backdrop-filter: blur(8px);
}

.play-mark {
    position: absolute;
    z-index: 3;
    left: 50%;
    top: 50%;
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(249, 115, 22, 0.88);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.82);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.card-content {
    padding: 16px;
}

.movie-title {
    display: -webkit-box;
    min-height: 45px;
    overflow: hidden;
    color: #111827;
    font-size: 16px;
    font-weight: 850;
    line-height: 1.42;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color 0.2s ease;
}

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

.card-content p,
.horizontal-content p {
    display: -webkit-box;
    min-height: 42px;
    margin: 10px 0 12px;
    overflow: hidden;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: #6b7280;
    font-size: 12px;
    font-weight: 700;
}

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

.horizontal-list {
    grid-template-columns: 1fr;
    gap: 16px;
}

.movie-card-horizontal {
    display: grid;
    grid-template-columns: 136px 1fr;
    min-height: 170px;
}

.horizontal-image {
    height: 100%;
    aspect-ratio: auto;
}

.horizontal-content {
    padding: 16px 16px 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 34px;
}

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

.category-tile,
.category-overview-card {
    overflow: hidden;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(124, 45, 18, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover,
.category-overview-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.category-tile img {
    height: 150px;
    object-fit: cover;
}

.category-tile span {
    display: block;
    padding: 16px 16px 4px;
    font-size: 19px;
    font-weight: 900;
}

.category-tile p {
    margin: 0;
    padding: 0 16px 18px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
}

.cta-band {
    max-width: 1280px;
    margin: 0 auto 72px;
    padding: 56px 24px;
    border-radius: 30px;
    color: #ffffff;
    text-align: center;
    background: linear-gradient(135deg, var(--orange), var(--rose));
    box-shadow: var(--shadow-strong);
}

.cta-band h2 {
    margin: 0 0 12px;
    font-size: clamp(30px, 4vw, 46px);
    font-weight: 900;
    letter-spacing: -0.05em;
}

.cta-band p {
    margin: 0 auto 26px;
    max-width: 760px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.75;
}

.cta-band a {
    color: #ea580c;
    background: #ffffff;
}

.page-hero,
.detail-hero {
    max-width: 1280px;
    margin: 32px auto 42px;
    padding: 0 24px;
}

.small-hero {
    padding-top: 54px;
    padding-bottom: 54px;
    border-radius: 0 0 34px 34px;
    background: radial-gradient(circle at 20% 0%, rgba(249, 115, 22, 0.22), transparent 34%), radial-gradient(circle at 90% 15%, rgba(244, 63, 94, 0.18), transparent 30%);
}

.small-hero h1 {
    max-width: 900px;
    margin: 0 0 14px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -0.06em;
}

.small-hero p {
    max-width: 820px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.8;
}

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

.breadcrumb a {
    color: #ea580c;
    font-weight: 750;
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) 180px 180px;
    gap: 12px;
    margin-bottom: 24px;
    padding: 16px;
    border: 1px solid #fed7aa;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 12px 26px rgba(124, 45, 18, 0.06);
}

.filter-bar input,
.filter-bar select {
    min-height: 46px;
    border: 1px solid #fed7aa;
    border-radius: 14px;
    outline: 0;
    padding: 0 14px;
    background: #ffffff;
}

.empty-state {
    display: none;
    padding: 48px 24px;
    border-radius: 22px;
    background: #ffffff;
    color: var(--muted);
    text-align: center;
    font-weight: 800;
}

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

.category-overview-card {
    padding: 20px;
}

.category-card-head h2 {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 900;
}

.category-card-head p {
    min-height: 68px;
    margin: 0 0 18px;
    color: var(--muted);
    line-height: 1.7;
}

.mini-poster-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 18px;
}

.mini-poster-row img {
    height: 116px;
    border-radius: 12px;
    object-fit: cover;
}

.category-enter {
    width: 100%;
}

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

.detail-poster {
    overflow: hidden;
    border-radius: 26px;
    box-shadow: var(--shadow-strong);
    background: #111827;
}

.detail-poster img {
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.detail-intro h1 {
    margin: 0 0 18px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -0.06em;
}

.detail-intro p {
    color: #4b5563;
    font-size: 18px;
    line-height: 1.82;
}

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

.detail-meta span {
    padding: 8px 12px;
    border-radius: 999px;
    color: #9a3412;
    background: #ffedd5;
    font-weight: 750;
    font-size: 13px;
}

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

.player-section,
.detail-body {
    max-width: 1120px;
    margin: 0 auto 42px;
    padding: 0 24px;
}

.player-stage {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #020617;
    box-shadow: var(--shadow-strong);
    aspect-ratio: 16 / 9;
}

.movie-video {
    width: 100%;
    height: 100%;
    background: #020617;
    object-fit: contain;
}

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle at 50% 45%, rgba(249, 115, 22, 0.25), rgba(0, 0, 0, 0.68)), linear-gradient(0deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.18));
    cursor: pointer;
}

.player-cover.is-hidden {
    display: none;
}

.big-play {
    width: 86px;
    height: 86px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--orange), var(--rose));
    box-shadow: 0 18px 45px rgba(249, 115, 22, 0.46);
    font-size: 34px;
}

.play-title {
    max-width: 80%;
    font-size: 22px;
    font-weight: 900;
    text-align: center;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
}

.detail-body {
    display: grid;
    gap: 24px;
}

.detail-body section {
    padding: 26px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(124, 45, 18, 0.08);
}

.detail-body h2 {
    margin: 0 0 14px;
    font-size: 24px;
    font-weight: 900;
}

.detail-body p {
    margin: 0;
    color: #4b5563;
    font-size: 17px;
    line-height: 1.9;
}

.related-section {
    margin-top: 56px;
}

.site-footer {
    margin-top: 72px;
    padding: 46px 24px 30px;
    color: #d1d5db;
    background: #111827;
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 28px;
}

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

.footer-inner p {
    max-width: 650px;
    color: #9ca3af;
    line-height: 1.8;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 14px;
}

.footer-links a {
    color: #d1d5db;
}

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

.copyright {
    max-width: 1280px;
    margin: 28px auto 0;
    padding-top: 22px;
    border-top: 1px solid #374151;
    color: #9ca3af;
    text-align: center;
    font-size: 13px;
}

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

    .menu-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-left: auto;
    }

    .hero-wrap {
        grid-template-columns: 1fr;
    }

    .hero-side-card {
        min-height: auto;
    }

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

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

@media (max-width: 860px) {
    .site-header-inner {
        padding: 0 16px;
    }

    .brand-subtitle,
    .header-search {
        display: none;
    }

    .brand-name {
        font-size: 20px;
    }

    .hero-wrap,
    .content-section,
    .page-hero,
    .detail-hero,
    .player-section,
    .detail-body {
        padding-left: 16px;
        padding-right: 16px;
    }

    .hero-carousel {
        min-height: 560px;
        border-radius: 22px;
    }

    .hero-content {
        left: 24px;
        right: 24px;
        bottom: 54px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .hero-dots {
        left: 24px;
    }

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

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

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

    .category-grid,
    .category-overview-grid {
        grid-template-columns: 1fr;
    }

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

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

@media (max-width: 520px) {
    .hero-carousel {
        min-height: 520px;
    }

    .hero-control {
        display: none;
    }

    .movie-card-horizontal {
        grid-template-columns: 108px 1fr;
        min-height: 148px;
    }

    .horizontal-content .movie-title {
        min-height: auto;
        -webkit-line-clamp: 1;
    }

    .card-content {
        padding: 13px;
    }

    .movie-title {
        font-size: 15px;
    }

    .tag-row span:nth-child(n+3) {
        display: none;
    }
}
