:root {
    --bg: #0f172a;
    --bg-soft: #111827;
    --panel: #ffffff;
    --text: #1f2937;
    --muted: #6b7280;
    --line: #e5e7eb;
    --orange: #f97316;
    --amber: #f59e0b;
    --slate: #1e293b;
    --shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background: linear-gradient(180deg, #fff7ed 0%, #f8fafc 34%, #ffffff 100%);
    color: var(--text);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: rgba(15, 23, 42, 0.92);
    color: #ffffff;
    backdrop-filter: blur(14px);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.25);
}

.nav-wrap {
    width: min(1180px, calc(100% - 32px));
    height: 74px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
}

.site-logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.logo-mark {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--orange), var(--amber));
    box-shadow: 0 12px 24px rgba(249, 115, 22, 0.34);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 18px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 15px;
    white-space: nowrap;
}

.nav-links a:hover,
.mobile-panel a:hover,
.footer-links a:hover {
    color: #fdba74;
}

.nav-search {
    margin-left: auto;
    display: flex;
    align-items: center;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.nav-search input {
    width: 230px;
    border: 0;
    outline: 0;
    padding: 11px 14px;
    color: #ffffff;
    background: transparent;
}

.nav-search input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.nav-search button,
.large-search button {
    border: 0;
    padding: 11px 18px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange), var(--amber));
    font-weight: 700;
}

.mobile-menu-button {
    display: none;
    border: 0;
    color: #ffffff;
    font-size: 24px;
    background: transparent;
}

.mobile-panel {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 16px;
    flex-wrap: wrap;
    gap: 12px;
}

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

.mobile-panel a {
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.hero-carousel {
    position: relative;
    min-height: 70vh;
    overflow: hidden;
    background: var(--bg);
}

.hero-slides {
    position: relative;
    min-height: 70vh;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 44px;
    align-items: center;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 700ms ease;
}

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

.hero-bg,
.detail-bg {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.34;
    filter: saturate(1.1);
}

.hero-shade,
.detail-bg-shade {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 75% 35%, rgba(249, 115, 22, 0.32), transparent 28%), linear-gradient(90deg, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.76), rgba(15, 23, 42, 0.9));
}

.hero-content,
.hero-poster,
.detail-layout {
    position: relative;
    z-index: 2;
}

.hero-kicker,
.eyebrow {
    color: #f97316;
    font-weight: 800;
    letter-spacing: 0.05em;
    font-size: 13px;
    text-transform: uppercase;
}

.hero-content h1,
.page-hero h1,
.detail-info h1 {
    margin-top: 12px;
    font-size: clamp(34px, 5vw, 68px);
    line-height: 1.05;
    font-weight: 900;
    color: #ffffff;
}

.hero-summary,
.detail-one-line {
    max-width: 760px;
    margin-top: 18px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
    line-height: 1.8;
}

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

.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    color: #9a3412;
    background: #ffedd5;
    font-size: 12px;
    font-weight: 700;
}

.hero-content .tag-row span,
.detail-info .tag-row span {
    color: #fed7aa;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

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

.primary-button,
.secondary-button,
.section-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 800;
}

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

.secondary-button {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-poster {
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
    transform: rotate(2deg);
}

.hero-poster img,
.movie-card img,
.hot-thumb img,
.detail-poster img,
.rank-hero-card img {
    height: 100%;
    object-fit: cover;
}

.hero-controls {
    position: absolute;
    z-index: 4;
    left: 50%;
    bottom: 32px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 14px;
    color: #ffffff;
}

.hero-prev,
.hero-next,
.hero-dot {
    border: 0;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
}

.hero-prev,
.hero-next {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 28px;
}

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

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    opacity: 0.55;
}

.hero-dot.active {
    width: 28px;
    opacity: 1;
    background: linear-gradient(135deg, var(--orange), var(--amber));
}

.quick-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 22px;
    margin-top: -44px;
    position: relative;
    z-index: 8;
}

.quick-search-card,
.quick-links,
.filter-panel,
.story-card,
.category-overview-card,
.rank-hero-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(229, 231, 235, 0.88);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.quick-search-card {
    padding: 28px;
}

.quick-search-card h2,
.section-header h2,
.story-card h2 {
    font-size: 28px;
    line-height: 1.2;
    font-weight: 900;
    color: #111827;
}

.quick-search-card p,
.section-header p,
.category-overview-card p,
.story-card p,
.page-hero p {
    margin-top: 10px;
    color: var(--muted);
    line-height: 1.8;
}

.large-search {
    display: flex;
    margin-top: 20px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #ffffff;
}

.large-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 0 18px;
}

.quick-links {
    padding: 22px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.quick-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70px;
    border-radius: 18px;
    color: #ffffff;
    font-weight: 800;
    background: linear-gradient(135deg, #1e293b, #0f172a);
}

.section-block {
    padding: 58px 0 0;
}

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

.section-link {
    color: #ea580c;
    background: #ffedd5;
}

.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 #f1f5f9;
    box-shadow: 0 10px 32px rgba(15, 23, 42, 0.08);
    transition: transform 220ms ease, box-shadow 220ms ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 46px rgba(15, 23, 42, 0.14);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: #0f172a;
}

.poster-link img {
    transition: transform 420ms ease;
}

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

.poster-overlay {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    display: flex;
    justify-content: center;
    padding: 9px 10px;
    border-radius: 999px;
    color: #ffffff;
    font-weight: 800;
    opacity: 0;
    background: rgba(249, 115, 22, 0.92);
    transition: opacity 220ms ease;
}

.movie-card:hover .poster-overlay {
    opacity: 1;
}

.rank-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 32px;
    padding: 0 10px;
    border-radius: 999px;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--orange), var(--amber));
}

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

.movie-card h3 {
    margin-top: 6px;
    font-size: 18px;
    line-height: 1.28;
    font-weight: 900;
    color: #111827;
}

.movie-card h3 a:hover,
.hot-item h3 a:hover,
.category-overview-card a:hover {
    color: #ea580c;
}

.card-summary {
    margin-top: 8px;
    color: var(--muted);
    line-height: 1.65;
    font-size: 14px;
}

.movie-card.compact .movie-card-body {
    padding: 14px;
}

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

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

.hot-item {
    display: grid;
    grid-template-columns: auto 86px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 14px;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid #f1f5f9;
    box-shadow: 0 8px 26px rgba(15, 23, 42, 0.07);
}

.hot-number {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--orange), var(--amber));
}

.hot-thumb {
    width: 86px;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 16px;
    background: #0f172a;
}

.hot-item h3 {
    font-weight: 900;
    color: #111827;
}

.hot-item p {
    margin: 6px 0;
    color: var(--muted);
    line-height: 1.55;
    font-size: 14px;
}

.hot-item span:last-child {
    color: #f97316;
    font-size: 13px;
    font-weight: 800;
}

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

.category-tile {
    min-height: 230px;
    padding: 18px;
    border-radius: 24px;
    color: #ffffff;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    box-shadow: var(--shadow);
}

.category-covers {
    display: flex;
    gap: 8px;
    height: 96px;
    margin-bottom: 18px;
}

.category-covers img {
    flex: 1;
    min-width: 0;
    object-fit: cover;
    border-radius: 14px;
    border: 2px solid rgba(255, 255, 255, 0.15);
}

.category-tile h3 {
    font-size: 20px;
    font-weight: 900;
}

.category-tile p {
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.7;
    font-size: 14px;
}

.page-main {
    padding-top: 44px;
    padding-bottom: 70px;
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 46px;
    border-radius: 32px;
    color: #ffffff;
    background: radial-gradient(circle at 80% 10%, rgba(249, 115, 22, 0.4), transparent 32%), linear-gradient(135deg, #1e293b, #0f172a);
    box-shadow: var(--shadow);
}

.small-hero,
.category-hero {
    min-height: 230px;
}

.filter-panel {
    margin: 28px 0;
    padding: 18px;
}

.filter-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 12px;
}

.local-search,
.local-sort {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 0 14px;
    outline: 0;
    background: #ffffff;
}

.local-search:focus,
.local-sort:focus {
    border-color: #fb923c;
    box-shadow: 0 0 0 4px rgba(251, 146, 60, 0.16);
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.filter-chip {
    min-height: 36px;
    padding: 0 14px;
    border: 0;
    border-radius: 999px;
    color: #334155;
    background: #f1f5f9;
    font-weight: 800;
}

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

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

.page-main .breadcrumb {
    color: #64748b;
}

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

.category-overview-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.category-overview-head h2 {
    font-size: 22px;
    font-weight: 900;
}

.category-overview-head span {
    color: #ea580c;
    font-weight: 900;
}

.category-overview-card ul {
    display: grid;
    gap: 8px;
    margin-top: 16px;
    color: #475569;
}

.rank-hero-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.rank-hero-card {
    padding: 12px;
    color: #111827;
}

.rank-hero-card img {
    aspect-ratio: 16 / 10;
    border-radius: 18px;
    object-fit: cover;
}

.rank-hero-card span {
    display: inline-flex;
    margin-top: 12px;
    color: #ea580c;
    font-weight: 900;
}

.rank-hero-card h2 {
    margin-top: 4px;
    font-size: 20px;
    font-weight: 900;
}

.rank-hero-card p {
    margin-top: 6px;
    color: var(--muted);
    line-height: 1.65;
}

.detail-main {
    background: #ffffff;
}

.detail-hero {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    background: #0f172a;
}

.detail-layout {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 44px;
    align-items: center;
    min-height: 620px;
    padding: 54px 0;
}

.detail-poster {
    overflow: hidden;
    aspect-ratio: 2 / 3;
    border-radius: 30px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
}

.detail-info {
    color: #ffffff;
}

.detail-info h1 {
    color: #ffffff;
}

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

.detail-meta span {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 13px 16px;
    border-radius: 16px;
    color: rgba(255, 255, 255, 0.86);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.detail-meta b {
    color: #fdba74;
    font-size: 12px;
}

.player-section {
    margin-top: -70px;
    position: relative;
    z-index: 6;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #000000;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
}

.movie-video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.video-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0.72));
}

.video-overlay.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 200ms ease, visibility 200ms ease;
}

.play-circle {
    width: 76px;
    height: 76px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    padding-left: 5px;
    color: #ffffff;
    font-size: 30px;
    background: linear-gradient(135deg, var(--orange), var(--amber));
    box-shadow: 0 18px 42px rgba(249, 115, 22, 0.4);
}

.video-overlay strong {
    font-size: 22px;
}

.detail-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 22px;
    padding-top: 34px;
}

.story-card {
    padding: 28px;
}

.accent-card {
    background: linear-gradient(135deg, #fff7ed, #ffffff);
}

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

.site-footer {
    margin-top: 70px;
    color: rgba(255, 255, 255, 0.76);
    background: #0f172a;
}

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

.footer-logo {
    color: #ffffff;
    font-size: 20px;
}

.site-footer p {
    max-width: 620px;
    margin-top: 8px;
    line-height: 1.7;
}

.footer-links {
    display: flex;
    gap: 16px;
    white-space: nowrap;
}

.movie-card.is-hidden,
.hot-item.is-hidden {
    display: none;
}

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

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

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

    .hero-slide {
        grid-template-columns: minmax(0, 1fr) 260px;
    }

    .quick-panel,
    .detail-layout,
    .detail-content {
        grid-template-columns: 1fr;
    }

    .detail-poster {
        width: min(320px, 100%);
    }
}

@media (max-width: 760px) {
    .nav-wrap {
        height: 64px;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-button {
        display: inline-flex;
        margin-left: auto;
    }

    .hero-carousel,
    .hero-slides {
        min-height: 740px;
    }

    .hero-slide {
        display: flex;
        flex-direction: column-reverse;
        justify-content: center;
        gap: 28px;
        padding: 34px 0 82px;
    }

    .hero-poster {
        width: min(240px, 72vw);
    }

    .hero-content h1,
    .page-hero h1,
    .detail-info h1 {
        font-size: 36px;
    }

    .quick-panel {
        margin-top: 22px;
    }

    .large-search,
    .section-header,
    .footer-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .large-search {
        border-radius: 20px;
    }

    .large-search input {
        min-height: 48px;
    }

    .movie-grid,
    .related-grid,
    .hot-list,
    .category-grid,
    .category-overview-grid,
    .rank-hero-grid {
        grid-template-columns: 1fr;
    }

    .hot-item {
        grid-template-columns: auto 76px minmax(0, 1fr);
    }

    .filter-search,
    .detail-meta {
        grid-template-columns: 1fr;
    }

    .page-hero {
        padding: 30px;
    }

    .detail-hero,
    .detail-layout {
        min-height: auto;
    }

    .detail-layout {
        padding: 34px 0 110px;
    }

    .player-section {
        margin-top: -74px;
    }

    .footer-links {
        flex-wrap: wrap;
    }
}
