:root {
    --orange-50: #fff7ed;
    --orange-100: #ffedd5;
    --orange-500: #f97316;
    --orange-600: #ea580c;
    --amber-400: #fbbf24;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-200: #e2e8f0;
    --slate-100: #f1f5f9;
    --white: #ffffff;
    --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.12);
    --shadow-card: 0 16px 35px rgba(15, 23, 42, 0.10);
    --radius-lg: 24px;
    --radius-md: 18px;
    --max-width: 1180px;
}

* {
    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(--slate-800);
    background: linear-gradient(180deg, #fffaf4 0%, #ffffff 38%, #fff7ed 100%);
    line-height: 1.65;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(255, 255, 255, 0.88);
    border-bottom: 1px solid rgba(251, 146, 60, 0.14);
    backdrop-filter: blur(18px);
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    color: var(--white);
    font-size: 18px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--orange-600), var(--amber-500));
    box-shadow: 0 10px 28px rgba(234, 88, 12, 0.32);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-text strong,
.footer-logo {
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.03em;
    background: linear-gradient(90deg, var(--orange-600), var(--amber-600));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-text small {
    margin-top: 4px;
    color: #64748b;
    font-size: 12px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link,
.mobile-nav-link {
    font-weight: 700;
    color: var(--slate-700);
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: var(--orange-600);
}

.nav-link:hover {
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: var(--orange-50);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: var(--orange-600);
}

.mobile-nav {
    display: none;
    padding: 0 20px 16px;
    border-top: 1px solid rgba(251, 146, 60, 0.12);
}

.mobile-nav.is-open {
    display: grid;
    gap: 12px;
}

.hero-carousel {
    position: relative;
    overflow: hidden;
    min-height: 610px;
    background: var(--slate-950);
}

.hero-track {
    position: relative;
    min-height: 610px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.6s ease, transform 0.6s ease;
    background-size: cover;
    background-position: center;
    padding: 82px max(24px, calc((100vw - var(--max-width)) / 2)) 72px;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) 360px;
    align-items: center;
    gap: 54px;
}

.hero-slide.active {
    position: relative;
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

.hero-copy {
    max-width: 760px;
    color: var(--white);
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--amber-400);
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 13px;
}

.hero-copy h1 {
    margin: 14px 0 18px;
    font-size: clamp(42px, 7vw, 74px);
    line-height: 1.02;
    letter-spacing: -0.06em;
    text-shadow: 0 18px 42px rgba(0, 0, 0, 0.26);
}

.hero-copy p {
    max-width: 680px;
    margin: 0 0 28px;
    font-size: clamp(17px, 2vw, 23px);
    color: rgba(255, 255, 255, 0.9);
}

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

.hero-tags span,
.detail-tags a,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.95);
    font-size: 13px;
    font-weight: 700;
    backdrop-filter: blur(10px);
}

.tag-row span {
    background: var(--orange-50);
    color: var(--orange-600);
    backdrop-filter: none;
}

.hero-actions,
.detail-actions {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.primary-btn,
.secondary-btn,
.ghost-btn,
.section-more,
.site-search-form button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    border: 0;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn,
.site-search-form button {
    color: var(--white);
    background: linear-gradient(135deg, var(--orange-600), var(--amber-500));
    box-shadow: 0 16px 30px rgba(234, 88, 12, 0.28);
}

.secondary-btn,
.section-more {
    color: var(--orange-700, #c2410c);
    background: var(--white);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.12);
}

.ghost-btn {
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.13);
}

.primary-btn:hover,
.secondary-btn:hover,
.ghost-btn:hover,
.section-more:hover,
.site-search-form button:hover {
    transform: translateY(-2px);
}

.hero-poster {
    justify-self: center;
    width: min(360px, 100%);
    border-radius: 32px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.14);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
    transform: rotate(2deg);
    transition: transform 0.24s ease;
}

.hero-poster:hover {
    transform: rotate(0deg) translateY(-4px);
}

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

.hero-poster span {
    display: block;
    padding: 16px;
    color: var(--white);
    font-weight: 900;
    text-align: center;
    background: linear-gradient(135deg, rgba(234, 88, 12, 0.92), rgba(245, 158, 11, 0.92));
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 8;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    color: var(--white);
    font-size: 38px;
    line-height: 1;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    transform: translateY(-50%);
}

.hero-prev {
    left: 22px;
}

.hero-next {
    right: 22px;
}

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

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

.hero-dot.active {
    width: 30px;
    background: var(--white);
}

.search-hero-panel {
    max-width: 980px;
    margin: -42px auto 0;
    position: relative;
    z-index: 12;
    padding: 22px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(16px);
}

.site-search-form {
    display: flex;
    gap: 12px;
}

.site-search-form input {
    width: 100%;
    min-height: 54px;
    padding: 0 20px;
    border: 1px solid rgba(251, 146, 60, 0.22);
    border-radius: 999px;
    color: var(--slate-800);
    background: #fffaf4;
    outline: none;
}

.site-search-form input:focus {
    border-color: var(--orange-500);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.quick-links a,
.keyword-cloud a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    color: var(--orange-700, #c2410c);
    background: var(--orange-50);
    font-weight: 800;
}

.section-block {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 72px 20px 0;
}

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

.section-heading h2,
.keyword-cloud h2,
.detail-body h2 {
    margin: 5px 0 6px;
    color: var(--slate-900);
    font-size: clamp(28px, 4vw, 38px);
    line-height: 1.15;
    letter-spacing: -0.04em;
}

.section-heading p,
.keyword-cloud p {
    margin: 0;
    color: var(--slate-600);
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-card);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: #fed7aa;
}

.poster-link img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    transform: scale(1.01);
    transition: transform 0.28s ease;
}

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

.poster-glow {
    position: absolute;
    inset: auto 0 0;
    height: 45%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.55));
}

.play-chip,
.rank-badge {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.play-chip {
    right: 12px;
    bottom: 12px;
    min-height: 30px;
    padding: 0 12px;
    color: var(--white);
    background: linear-gradient(135deg, var(--orange-600), var(--amber-500));
}

.rank-badge {
    left: 12px;
    top: 12px;
    min-height: 30px;
    padding: 0 12px;
    color: #7c2d12;
    background: rgba(255, 255, 255, 0.92);
}

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

.meta-line {
    color: var(--orange-600);
    font-size: 12px;
    font-weight: 900;
}

.movie-card h3 {
    margin: 7px 0 7px;
    color: var(--slate-900);
    font-size: 18px;
    line-height: 1.25;
}

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

.movie-card p {
    display: -webkit-box;
    min-height: 48px;
    margin: 0 0 12px;
    overflow: hidden;
    color: var(--slate-600);
    font-size: 14px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

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

.category-tile {
    overflow: hidden;
    border-radius: 26px;
    background: var(--white);
    box-shadow: var(--shadow-card);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 46px rgba(15, 23, 42, 0.16);
}

.category-mosaic {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3px;
    padding: 3px;
    background: linear-gradient(135deg, var(--orange-500), var(--amber-400));
}

.category-mosaic img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 10px;
}

.category-tile-body {
    padding: 18px;
}

.category-tile h3 {
    margin: 0 0 8px;
    color: var(--slate-900);
    font-size: 21px;
}

.category-tile p {
    min-height: 78px;
    margin: 0 0 14px;
    color: var(--slate-600);
    font-size: 14px;
}

.category-tile span {
    color: var(--orange-600);
    font-weight: 900;
}

.keyword-cloud {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 72px 20px;
}

.keyword-cloud div {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.page-hero {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 76px 20px 26px;
}

.page-hero h1 {
    margin: 12px 0;
    color: var(--slate-900);
    font-size: clamp(38px, 6vw, 62px);
    line-height: 1.05;
    letter-spacing: -0.06em;
}

.page-hero p {
    max-width: 820px;
    margin: 0;
    color: var(--slate-600);
    font-size: 18px;
}

.soft-hero,
.category-hero,
.ranking-hero {
    position: relative;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 22px;
    color: var(--slate-600);
    font-weight: 700;
}

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

.breadcrumb.light {
    color: rgba(255, 255, 255, 0.75);
}

.breadcrumb.light a {
    color: var(--white);
}

.filter-panel {
    max-width: var(--max-width);
    margin: 26px auto 0;
    padding: 20px;
    border-radius: 24px;
    background: var(--white);
    box-shadow: var(--shadow-card);
}

.inline-search {
    margin-bottom: 16px;
}

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

.filter-controls select,
.filter-controls input {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid rgba(251, 146, 60, 0.22);
    border-radius: 16px;
    background: #fffaf4;
    outline: none;
}

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

.detail-hero {
    position: relative;
    overflow: hidden;
    min-height: 560px;
    color: var(--white);
    background: var(--slate-950);
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: saturate(1.12);
}

.detail-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 78% 25%, rgba(251, 191, 36, 0.35), transparent 34%), linear-gradient(180deg, rgba(2, 6, 23, 0.05), rgba(2, 6, 23, 0.65));
}

.detail-content {
    position: relative;
    z-index: 2;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 58px 20px 72px;
}

.detail-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 42px;
    align-items: center;
    margin-top: 26px;
}

.detail-poster {
    overflow: hidden;
    border-radius: 30px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

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

.detail-info h1 {
    margin: 12px 0 18px;
    font-size: clamp(38px, 6vw, 68px);
    line-height: 1.04;
    letter-spacing: -0.06em;
}

.detail-one-line {
    max-width: 780px;
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 20px;
}

.player-section {
    max-width: var(--max-width);
    margin: -70px auto 0;
    padding: 0 20px;
    position: relative;
    z-index: 6;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #000000;
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.34);
    aspect-ratio: 16 / 9;
}

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

.video-cover {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    width: 100%;
    border: 0;
    color: var(--white);
    text-align: center;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    z-index: 3;
}

.video-cover.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.big-play {
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--orange-600);
    font-size: 36px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
}

.video-cover strong {
    max-width: min(720px, 90%);
    font-size: clamp(24px, 4vw, 44px);
    line-height: 1.15;
    text-shadow: 0 10px 24px rgba(0, 0, 0, 0.34);
}

.narrow-block {
    max-width: 980px;
}

.detail-body p {
    margin: 0 0 28px;
    color: var(--slate-700);
    font-size: 18px;
}

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

.detail-meta-box div {
    padding: 18px;
    border-radius: 18px;
    background: var(--orange-50);
}

.detail-meta-box span {
    display: block;
    color: var(--slate-600);
    font-size: 12px;
    font-weight: 900;
}

.detail-meta-box strong {
    display: block;
    margin-top: 4px;
    color: var(--slate-900);
}

.prev-next-links {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 28px;
}

.prev-next-links a {
    color: var(--orange-600);
    font-weight: 900;
}

.related-section {
    padding-top: 46px;
    padding-bottom: 70px;
}

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

.related-card {
    overflow: hidden;
    border-radius: 20px;
    background: var(--white);
    box-shadow: var(--shadow-card);
}

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

.related-card span {
    display: block;
    padding: 12px;
    color: var(--slate-900);
    font-weight: 900;
    line-height: 1.3;
}

.search-page-panel {
    padding-top: 30px;
    padding-bottom: 72px;
}

.page-search {
    max-width: 820px;
    margin-bottom: 20px;
}

.search-status {
    margin-bottom: 20px;
    color: var(--slate-600);
    font-weight: 800;
}

.site-footer {
    margin-top: 40px;
    color: rgba(255, 255, 255, 0.82);
    background: linear-gradient(135deg, #431407, #0f172a);
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 42px 20px;
    display: flex;
    justify-content: space-between;
    gap: 24px;
}

.footer-inner p {
    max-width: 560px;
    margin: 12px 0 0;
}

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

.footer-bottom {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 18px 20px 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.68);
}

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

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

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

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

    .menu-toggle {
        display: inline-flex;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        min-height: 740px;
        padding: 54px 20px 82px;
        text-align: left;
    }

    .hero-poster {
        display: none;
    }

    .search-hero-panel {
        margin: -30px 16px 0;
    }

    .site-search-form,
    .section-heading,
    .footer-inner,
    .prev-next-links {
        flex-direction: column;
        align-items: stretch;
    }

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

    .detail-layout {
        grid-template-columns: 1fr;
    }

    .detail-poster {
        width: min(260px, 70vw);
    }

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

@media (max-width: 640px) {
    .brand-text small {
        display: none;
    }

    .hero-carousel,
    .hero-track {
        min-height: 680px;
    }

    .hero-arrow {
        display: none;
    }

    .hero-actions,
    .detail-actions {
        display: grid;
    }

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

    .section-block,
    .keyword-cloud {
        padding-left: 14px;
        padding-right: 14px;
    }

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

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

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

    .page-hero,
    .detail-content {
        padding-left: 14px;
        padding-right: 14px;
    }

    .player-section {
        padding-left: 12px;
        padding-right: 12px;
    }

    .player-shell {
        border-radius: 18px;
    }
}
