:root {
    --bg: #f9fafb;
    --text: #1f2937;
    --muted: #6b7280;
    --line: #e5e7eb;
    --card: #ffffff;
    --amber: #d97706;
    --amber-dark: #b45309;
    --amber-soft: #fff7ed;
    --shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
    --radius: 1.5rem;
}

html {
    scroll-behavior: smooth;
}

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

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

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

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

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0.9rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 1.12rem;
    font-weight: 800;
    color: #111827;
    letter-spacing: 0.02em;
}

.logo-mark {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #d97706 55%, #92400e);
    box-shadow: 0 10px 22px rgba(217, 119, 6, 0.32);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.desktop-nav a,
.mobile-nav a {
    padding: 0.65rem 0.88rem;
    border-radius: 999px;
    color: #4b5563;
    font-size: 0.95rem;
    font-weight: 650;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-active,
.mobile-nav a:hover,
.mobile-nav a.is-active {
    color: #92400e;
    background: #fff7ed;
}

.menu-toggle {
    display: none;
    width: 2.5rem;
    height: 2.5rem;
    border: 0;
    border-radius: 0.9rem;
    background: #fff7ed;
    cursor: pointer;
    padding: 0.55rem;
}

.menu-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: #92400e;
    border-radius: 999px;
}

.mobile-nav {
    display: none;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.25rem 1rem;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.hero-carousel {
    position: relative;
    min-height: 500px;
    height: 70vh;
    overflow: hidden;
    background: #111827;
}

.hero-stage,
.hero-slide {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 1s ease;
}

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

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.54) 48%, rgba(0, 0, 0, 0.08) 100%);
}

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

.hero-copy {
    max-width: 760px;
    margin: 0 auto;
    width: min(100%, 1280px);
    padding: 0 1.25rem;
    color: #ffffff;
}

.hero-kicker,
.section-heading span,
.page-hero span,
.category-card-wide span {
    color: #fbbf24;
    text-transform: uppercase;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.hero-copy h1 {
    margin: 0.6rem 0 1rem;
    font-size: clamp(2.4rem, 7vw, 4.6rem);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.hero-copy p {
    max-width: 660px;
    margin: 0 0 1.5rem;
    color: rgba(255, 255, 255, 0.84);
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    line-height: 1.75;
}

.hero-meta,
.detail-meta,
.movie-meta-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
}

.hero-meta span,
.detail-meta span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    padding: 0.42rem 0.8rem;
    backdrop-filter: blur(14px);
}

.hero-tags,
.detail-tags,
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.hero-tags {
    margin: 1rem 0 1.6rem;
}

.hero-tags span,
.detail-tags span,
.tag-list span {
    border-radius: 999px;
    padding: 0.28rem 0.65rem;
    background: #fff7ed;
    color: #b45309;
    font-size: 0.78rem;
    font-weight: 700;
}

.hero-actions,
.detail-nav,
.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.primary-btn,
.ghost-btn,
.quick-search button,
.small-watch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 0.75rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn,
.quick-search button,
.small-watch {
    color: #ffffff;
    background: var(--amber);
    box-shadow: 0 14px 28px rgba(217, 119, 6, 0.28);
}

.primary-btn {
    padding: 0.9rem 1.35rem;
}

.ghost-btn {
    color: #ffffff;
    padding: 0.86rem 1.25rem;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(14px);
}

.primary-btn:hover,
.ghost-btn:hover,
.quick-search button:hover,
.small-watch:hover {
    transform: translateY(-2px) scale(1.02);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    width: 3rem;
    height: 3rem;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.46);
    transform: translateY(-50%);
    font-size: 2rem;
    cursor: pointer;
    backdrop-filter: blur(12px);
}

.hero-prev {
    left: 1rem;
}

.hero-next {
    right: 1rem;
}

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 1.5rem;
    transform: translateX(-50%);
    display: flex;
    gap: 0.45rem;
}

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

.hero-dots button.is-active {
    width: 2rem;
    background: #f59e0b;
}

.section-inner,
.section-block {
    max-width: 1280px;
    margin: 0 auto;
    padding: 3rem 1.25rem;
}

.search-band {
    background: #ffffff;
    border-bottom: 1px solid var(--line);
}

.search-band-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
    gap: 2rem;
    align-items: center;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.search-band h2,
.section-heading h2,
.page-hero h1,
.text-card h2,
.player-card h2,
.side-card h2 {
    margin: 0;
    color: #1f2937;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.search-band h2,
.section-heading h2 {
    font-size: clamp(1.7rem, 3vw, 2.35rem);
}

.search-band p,
.page-hero p,
.category-card-wide p {
    margin: 0.5rem 0 0;
    color: var(--muted);
    line-height: 1.7;
}

.quick-search {
    display: flex;
    gap: 0.75rem;
    padding: 0.45rem;
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: #f9fafb;
}

.quick-search input,
.filter-panel input,
.filter-panel select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 0.8rem;
    background: #ffffff;
    color: #111827;
    outline: none;
}

.quick-search input {
    border: 0;
    background: transparent;
    padding: 0.85rem 0.9rem;
}

.quick-search button {
    padding: 0 1.2rem;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    margin-bottom: 1.55rem;
}

.section-heading a {
    color: #b45309;
    font-weight: 800;
}

.movie-grid {
    display: grid;
    gap: 1.25rem;
}

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

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(229, 231, 235, 0.88);
    border-radius: 1.2rem;
    background: var(--card);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
    border-color: rgba(245, 158, 11, 0.42);
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

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

.movie-poster-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

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

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.72));
    opacity: 0;
    transition: opacity 0.25s ease;
}

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

.play-badge {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 3.1rem;
    height: 3.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(217, 119, 6, 0.94);
    transform: translate(-50%, -50%) scale(0.88);
    opacity: 0;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.3);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.movie-card-body {
    padding: 1rem;
}

.movie-card-body h3 {
    margin: 0 0 0.55rem;
    color: #1f2937;
    font-size: 1rem;
    font-weight: 850;
    line-height: 1.35;
}

.movie-card-body h3 a:hover {
    color: var(--amber);
}

.movie-meta-line {
    color: #6b7280;
    font-size: 0.78rem;
}

.movie-meta-line span + span::before {
    content: "•";
    margin-right: 0.55rem;
    color: #d1d5db;
}

.movie-card-body p {
    margin: 0.65rem 0 0.85rem;
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.65;
}

.movie-card-compact .movie-card-body p {
    display: none;
}

.soft-panel {
    border-radius: 2rem;
    background: #f3f4f6;
    padding: 2rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.color-panel {
    background: linear-gradient(135deg, #f5f3ff, #fdf2f8 45%, #fff7ed);
}

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

.category-tile {
    position: relative;
    min-height: 140px;
    overflow: hidden;
    border-radius: 1.35rem;
    color: #ffffff;
    background: #111827;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.14);
}

.category-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.62;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.category-tile:hover img {
    opacity: 0.78;
    transform: scale(1.08);
}

.category-tile span {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    font-size: 1.05rem;
    font-weight: 900;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}

.region-panels,
.category-wide-grid {
    display: grid;
    gap: 2rem;
}

.region-panel h3,
.horizontal-group h3 {
    margin: 0 0 1rem;
    padding-left: 0.8rem;
    color: #374151;
    border-left: 4px solid var(--amber);
    font-size: 1.3rem;
    font-weight: 850;
}

.red-line h3 {
    border-left-color: #dc2626;
}

.blue-line h3 {
    border-left-color: #2563eb;
}

.movie-strip {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 0.3rem 0 1rem;
    scroll-snap-type: x proximity;
}

.movie-strip .movie-card {
    width: 250px;
    min-width: 250px;
    scroll-snap-align: start;
}

.rank-list {
    display: grid;
    gap: 0.85rem;
}

.rank-row {
    display: grid;
    grid-template-columns: 3.2rem 5.5rem minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    padding: 0.75rem;
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
}

.rank-index {
    width: 2.5rem;
    height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: #d97706;
    font-weight: 900;
}

.rank-thumb {
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 0.8rem;
    background: #e5e7eb;
}

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

.rank-content h3 {
    margin: 0 0 0.35rem;
    font-size: 1.04rem;
    font-weight: 850;
}

.rank-content p {
    margin: 0 0 0.45rem;
    color: #6b7280;
    line-height: 1.6;
}

.small-watch {
    padding: 0.65rem 0.95rem;
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: #111827;
}

.slim-hero {
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background:
        radial-gradient(circle at 18% 25%, rgba(245, 158, 11, 0.26), transparent 28%),
        radial-gradient(circle at 80% 10%, rgba(59, 130, 246, 0.18), transparent 30%),
        linear-gradient(135deg, #111827, #1f2937 58%, #111827);
}

.page-hero > div {
    max-width: 920px;
    padding: 3.5rem 1.25rem;
}

.page-hero h1 {
    color: #ffffff;
    font-size: clamp(2.25rem, 5vw, 4rem);
}

.page-hero p {
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.1rem;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(140px, 0.5fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 1.25rem;
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
}

.filter-panel label {
    display: grid;
    gap: 0.45rem;
    color: #6b7280;
    font-size: 0.82rem;
    font-weight: 800;
}

.filter-panel input,
.filter-panel select {
    padding: 0.78rem 0.85rem;
}

.category-card-wide {
    overflow: hidden;
    border-radius: 1.5rem;
    border: 1px solid var(--line);
    background: #ffffff;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.07);
}

.category-card-link {
    display: grid;
    grid-template-columns: minmax(220px, 360px) 1fr;
    gap: 1.5rem;
    align-items: center;
    padding: 1rem;
}

.category-thumb-stack {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.45rem;
}

.category-thumb-stack img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 0.85rem;
}

.category-card-wide h2 {
    margin: 0.35rem 0;
    color: #1f2937;
    font-size: 1.8rem;
    font-weight: 900;
}

.detail-hero {
    min-height: 560px;
}

.detail-bg,
.detail-mask {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.detail-bg {
    object-fit: cover;
    filter: blur(2px) saturate(1.1);
    transform: scale(1.03);
}

.detail-mask {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.3));
}

.detail-inner {
    position: relative;
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem 1.25rem 3.5rem;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.92rem;
}

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

.detail-layout {
    display: grid;
    grid-template-columns: minmax(220px, 310px) minmax(0, 1fr);
    gap: 2rem;
    align-items: center;
}

.detail-poster {
    overflow: hidden;
    border-radius: 1.35rem;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
}

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

.detail-copy h1 {
    margin: 0 0 1rem;
    font-size: clamp(2.3rem, 6vw, 4.5rem);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.detail-one-line {
    max-width: 820px;
    margin: 0 0 1.3rem;
    color: rgba(255, 255, 255, 0.84);
    font-size: 1.18rem;
    line-height: 1.8;
}

.detail-tags {
    margin: 1.2rem 0 1.6rem;
}

.detail-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 1.5rem;
    align-items: start;
}

.content-column,
.side-column {
    display: grid;
    gap: 1.25rem;
}

.player-card,
.text-card,
.side-card {
    border: 1px solid var(--line);
    border-radius: 1.5rem;
    background: #ffffff;
    padding: 1.25rem;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.player-card h2,
.text-card h2,
.side-card h2 {
    margin-bottom: 1rem;
    font-size: 1.45rem;
}

.video-shell {
    position: relative;
    overflow: hidden;
    border-radius: 1.15rem;
    background: #000000;
    aspect-ratio: 16 / 9;
}

.movie-video {
    width: 100%;
    height: 100%;
    display: block;
    background: #000000;
}

.play-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.42));
    cursor: pointer;
}

.play-overlay span {
    width: 5rem;
    height: 5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(217, 119, 6, 0.96);
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.4);
    font-size: 2rem;
    transform: translateX(0.1rem);
}

.play-overlay.is-hidden {
    display: none;
}

.text-card p {
    margin: 0;
    color: #4b5563;
    font-size: 1.02rem;
    line-height: 1.95;
}

.detail-nav {
    justify-content: space-between;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: #ffffff;
}

.detail-nav a {
    color: #b45309;
    font-weight: 800;
}

.side-card-grid {
    display: grid;
    gap: 1rem;
}

.site-footer {
    margin-top: 2rem;
    background: #111827;
    color: #d1d5db;
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem 1.25rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
}

.footer-inner strong {
    color: #ffffff;
    font-size: 1.05rem;
}

.footer-inner p {
    margin: 0.4rem 0 0;
    color: #9ca3af;
}

.footer-links a {
    color: #fbbf24;
    font-weight: 750;
}

@media (max-width: 1180px) {
    .six-grid,
    .five-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

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

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

    .menu-toggle {
        display: block;
    }

    .mobile-nav.is-open {
        display: flex;
    }

    .search-band-inner,
    .detail-main,
    .detail-layout,
    .category-card-link {
        grid-template-columns: 1fr;
    }

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

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

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

    .rank-row {
        grid-template-columns: 2.8rem 4.8rem minmax(0, 1fr);
    }

    .small-watch {
        grid-column: 3;
        justify-self: start;
    }
}

@media (max-width: 640px) {
    .hero-carousel {
        min-height: 560px;
        height: 78vh;
    }

    .hero-arrow {
        display: none;
    }

    .hero-copy {
        padding: 0 1rem;
    }

    .quick-search {
        flex-direction: column;
    }

    .quick-search button {
        min-height: 2.8rem;
    }

    .section-block {
        padding: 2.2rem 1rem;
    }

    .soft-panel {
        border-radius: 1.4rem;
        padding: 1.2rem;
    }

    .four-grid,
    .five-grid,
    .six-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.85rem;
    }

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

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

    .movie-card-body {
        padding: 0.85rem;
    }

    .movie-card-body p,
    .tag-list {
        display: none;
    }

    .rank-row {
        grid-template-columns: 2.5rem 4.2rem minmax(0, 1fr);
        gap: 0.75rem;
    }

    .rank-content p {
        display: none;
    }

    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }
}
