:root {
    --bg: #070707;
    --panel: rgba(17, 24, 39, 0.82);
    --panel-soft: rgba(31, 41, 55, 0.48);
    --line: rgba(249, 115, 22, 0.22);
    --text: #f8fafc;
    --muted: #a1a1aa;
    --muted-2: #71717a;
    --orange: #f97316;
    --orange-2: #fb923c;
    --shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(249, 115, 22, 0.13), transparent 34rem),
        linear-gradient(135deg, #111827 0%, #1f2937 38%, #020617 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 {
    display: block;
    max-width: 100%;
}

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 10px 30px rgba(124, 45, 18, 0.14);
}

.header-inner {
    width: min(1240px, calc(100% - 32px));
    height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--orange);
}

.brand-icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: var(--orange);
    box-shadow: 0 0 24px rgba(249, 115, 22, 0.55);
}

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

.brand-text strong {
    font-size: 20px;
}

.brand-text em {
    margin-top: 4px;
    color: #9ca3af;
    font-size: 12px;
    font-style: normal;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    white-space: nowrap;
}

.nav-link,
.mobile-link {
    color: #d1d5db;
    font-weight: 600;
    transition: color 0.2s ease;
}

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

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-search input,
.mobile-search input,
.home-search input,
.search-panel input,
.filter-bar input {
    min-width: 0;
    color: #e5e7eb;
    background: rgba(31, 41, 55, 0.75);
    border: 1px solid rgba(75, 85, 99, 0.8);
    border-radius: 999px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input {
    width: 190px;
    padding: 10px 14px;
}

.header-search input:focus,
.mobile-search input:focus,
.home-search input:focus,
.search-panel input:focus,
.filter-bar input:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.18);
}

.header-search button,
.mobile-search button,
.home-search button,
.search-panel button {
    border: 0;
    border-radius: 999px;
    padding: 10px 16px;
    color: #fff;
    background: var(--orange);
    cursor: pointer;
}

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    color: #e5e7eb;
    background: rgba(31, 41, 55, 0.7);
}

.mobile-panel {
    display: none;
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 16px 0 22px;
    border-top: 1px solid rgba(31, 41, 55, 0.9);
}

.mobile-panel.is-open {
    display: grid;
    gap: 14px;
}

.mobile-search {
    display: flex;
    gap: 8px;
}

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

.hero-carousel {
    position: relative;
    height: 620px;
    overflow: hidden;
    background: #050505;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.9s ease;
}

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

.hero-bg,
.detail-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-layer {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, rgba(0, 0, 0, 0.96), rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.16)),
        radial-gradient(circle at 50% 45%, rgba(249, 115, 22, 0.24), transparent 36rem);
}

.hero-copy {
    position: absolute;
    inset: 0;
    width: min(920px, calc(100% - 32px));
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 54px;
}

.hero-tags,
.detail-tags,
.keyword-tags,
.card-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags a,
.hero-tags span,
.detail-tags a,
.detail-tags span,
.keyword-tags span,
.card-meta em {
    border-radius: 999px;
    padding: 7px 12px;
    color: #fff;
    background: rgba(31, 41, 55, 0.84);
    font-size: 13px;
    font-style: normal;
}

.hero-tags a,
.detail-tags a,
.keyword-tags span:first-child,
.card-meta em:first-child {
    background: rgba(249, 115, 22, 0.92);
}

.hero-copy h1 {
    margin: 20px 0 18px;
    font-size: clamp(42px, 8vw, 76px);
    line-height: 1.02;
    font-weight: 900;
    text-shadow: 0 8px 28px rgba(0, 0, 0, 0.65);
}

.hero-copy p {
    max-width: 760px;
    margin: 0 0 30px;
    color: #e5e7eb;
    font-size: clamp(18px, 2vw, 22px);
}

.hero-actions,
.section-heading,
.filter-bar {
    display: flex;
    align-items: center;
    gap: 14px;
}

.primary-button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border-radius: 999px;
    padding: 0 24px;
    font-weight: 800;
    transition: transform 0.2s ease, background 0.2s ease;
}

.primary-button {
    color: #fff;
    background: var(--orange);
    box-shadow: 0 15px 30px rgba(249, 115, 22, 0.35);
}

.secondary-button {
    color: #fff;
    background: rgba(31, 41, 55, 0.86);
}

.primary-button:hover,
.secondary-button:hover {
    transform: translateY(-2px);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: rgba(0, 0, 0, 0.55);
    font-size: 34px;
    line-height: 1;
}

.hero-prev {
    left: 20px;
}

.hero-next {
    right: 20px;
}

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

.hero-dot {
    width: 12px;
    height: 12px;
    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: 34px;
    background: var(--orange);
}

.section-wrap {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 68px 0;
}

.intro-section {
    padding-bottom: 22px;
}

.section-heading {
    justify-content: space-between;
    margin-bottom: 28px;
}

.section-heading.centered {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    gap: 10px;
}

.section-heading span,
.page-hero span {
    color: var(--orange-2);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.section-heading h2,
.page-hero h1,
.text-panel h2,
.side-panel h2 {
    margin: 0;
    font-weight: 900;
    line-height: 1.15;
}

.section-heading h2 {
    font-size: clamp(28px, 4vw, 38px);
}

.section-heading p,
.page-hero p {
    max-width: 760px;
    margin: 0;
    color: #d1d5db;
}

.section-heading a,
.filter-bar a {
    color: var(--orange-2);
    font-weight: 700;
}

.home-search,
.search-panel {
    width: min(720px, 100%);
    margin: 28px auto 0;
    display: flex;
    gap: 10px;
}

.home-search input,
.search-panel input {
    flex: 1;
    padding: 15px 18px;
}

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

.movie-card {
    min-width: 0;
    border: 1px solid rgba(75, 85, 99, 0.45);
    border-radius: 18px;
    overflow: hidden;
    background: var(--panel-soft);
    box-shadow: var(--shadow);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-4px);
    border-color: rgba(249, 115, 22, 0.52);
    box-shadow: 0 24px 50px rgba(249, 115, 22, 0.14);
}

.card-link,
.poster-wrap,
.card-body {
    display: block;
}

.poster-wrap {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.95);
}

.poster-wrap img,
.compact-card img,
.list-card img,
.category-cover img,
.detail-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.movie-card:hover img,
.compact-card:hover img,
.list-card:hover img,
.category-overview-card:hover img {
    transform: scale(1.06);
}

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.72), transparent 62%);
}

.year-badge {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 5px 10px;
    border-radius: 999px;
    color: #fff;
    background: rgba(0, 0, 0, 0.74);
    font-size: 12px;
    font-weight: 800;
}

.card-body {
    padding: 16px;
}

.card-meta {
    margin-bottom: 10px;
}

.card-meta em {
    padding: 5px 10px;
    font-size: 12px;
}

.card-body strong {
    display: -webkit-box;
    min-height: 48px;
    margin-bottom: 8px;
    overflow: hidden;
    color: #fff;
    font-size: 18px;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-body small {
    display: -webkit-box;
    overflow: hidden;
    color: #a1a1aa;
    font-size: 14px;
    line-height: 1.55;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.wide-band {
    background: linear-gradient(90deg, rgba(124, 45, 18, 0.18), rgba(17, 24, 39, 0.24));
}

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

.compact-card a {
    display: block;
    min-width: 0;
}

.compact-card img {
    aspect-ratio: 16 / 10;
    border-radius: 14px;
    background: #111827;
    box-shadow: var(--shadow);
}

.compact-card span {
    display: -webkit-box;
    margin-top: 9px;
    overflow: hidden;
    color: #fff;
    font-weight: 800;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.compact-card em {
    display: block;
    margin-top: 4px;
    color: #a1a1aa;
    font-size: 13px;
    font-style: normal;
}

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

.category-tile {
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid rgba(249, 115, 22, 0.22);
    border-radius: 18px;
    padding: 20px;
    background:
        radial-gradient(circle at top right, rgba(249, 115, 22, 0.25), transparent 12rem),
        rgba(17, 24, 39, 0.74);
    transition: transform 0.22s ease, border-color 0.22s ease;
}

.category-tile:hover {
    transform: translateY(-3px);
    border-color: rgba(249, 115, 22, 0.7);
}

.category-tile strong {
    color: #fff;
    font-size: 22px;
}

.category-tile span {
    color: #a1a1aa;
    font-size: 14px;
    line-height: 1.55;
}

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

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

.list-card a {
    min-width: 0;
    display: grid;
    grid-template-columns: auto 126px 1fr;
    align-items: center;
    gap: 16px;
    border: 1px solid rgba(75, 85, 99, 0.45);
    border-radius: 16px;
    padding: 12px;
    background: rgba(31, 41, 55, 0.45);
    transition: background 0.2s ease, border-color 0.2s ease;
}

.list-card a:hover {
    border-color: rgba(249, 115, 22, 0.5);
    background: rgba(31, 41, 55, 0.68);
}

.rank-no {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: var(--orange);
    font-weight: 900;
}

.list-card img {
    width: 126px;
    height: 78px;
    border-radius: 12px;
    background: #111827;
}

.list-card-content {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.list-card-content strong {
    color: #fff;
    font-size: 18px;
}

.list-card-content small {
    color: var(--orange-2);
    font-size: 13px;
}

.list-card-content em {
    display: -webkit-box;
    overflow: hidden;
    color: #a1a1aa;
    font-size: 14px;
    font-style: normal;
    line-height: 1.45;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.page-hero {
    position: relative;
    min-height: 300px;
    display: grid;
    place-items: center;
    overflow: hidden;
    text-align: center;
    background:
        linear-gradient(135deg, rgba(124, 45, 18, 0.42), rgba(17, 24, 39, 0.92)),
        radial-gradient(circle at top, rgba(249, 115, 22, 0.26), transparent 28rem);
    border-bottom: 1px solid var(--line);
}

.page-hero.slim {
    min-height: 260px;
    padding: 38px 16px;
}

.page-hero h1 {
    margin: 12px 0;
    font-size: clamp(38px, 6vw, 64px);
}

.filter-bar {
    justify-content: flex-end;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.filter-bar input {
    width: min(360px, 100%);
    padding: 12px 16px;
}

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

.category-overview-card {
    display: grid;
    grid-template-columns: 210px 1fr;
    gap: 18px;
    border: 1px solid rgba(75, 85, 99, 0.45);
    border-radius: 18px;
    padding: 16px;
    background: rgba(31, 41, 55, 0.48);
}

.category-cover {
    position: relative;
    min-height: 150px;
    overflow: hidden;
    border-radius: 14px;
    background: #111827;
}

.category-cover span {
    position: absolute;
    left: 12px;
    bottom: 12px;
    border-radius: 999px;
    padding: 8px 12px;
    color: #fff;
    background: rgba(249, 115, 22, 0.92);
    font-weight: 900;
}

.category-overview-card h2 {
    margin: 4px 0 10px;
    color: #fff;
    font-size: 24px;
}

.category-overview-card p {
    margin: 0 0 14px;
    color: #a1a1aa;
    line-height: 1.65;
}

.sample-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sample-links a {
    border-radius: 999px;
    padding: 7px 11px;
    color: #e5e7eb;
    background: rgba(17, 24, 39, 0.72);
    font-size: 13px;
}

.detail-hero {
    position: relative;
    min-height: 560px;
    overflow: hidden;
    background: #050505;
}

.detail-bg,
.detail-mask {
    position: absolute;
    inset: 0;
}

.detail-bg {
    filter: blur(2px);
    opacity: 0.55;
}

.detail-mask {
    background:
        linear-gradient(to top, #070707 0%, rgba(7, 7, 7, 0.74) 58%, rgba(7, 7, 7, 0.42) 100%),
        radial-gradient(circle at 70% 40%, rgba(249, 115, 22, 0.24), transparent 28rem);
}

.detail-inner {
    position: relative;
    z-index: 2;
    width: min(1240px, calc(100% - 32px));
    min-height: 560px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 330px 1fr;
    align-items: center;
    gap: 42px;
    padding: 70px 0;
}

.detail-poster {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border: 1px solid rgba(249, 115, 22, 0.35);
    border-radius: 24px;
    background: #111827;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    color: #a1a1aa;
    font-size: 14px;
}

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

.breadcrumb em {
    color: #d1d5db;
    font-style: normal;
}

.detail-copy h1 {
    margin: 16px 0 16px;
    font-size: clamp(38px, 6vw, 68px);
    line-height: 1.05;
    font-weight: 900;
}

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

.keyword-tags {
    margin-bottom: 28px;
}

.keyword-tags span {
    background: rgba(31, 41, 55, 0.82);
}

.detail-main {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(320px, 0.85fr);
    gap: 26px;
}

.content-column,
.side-column {
    display: grid;
    align-content: start;
    gap: 22px;
}

.player-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(249, 115, 22, 0.3);
    border-radius: 22px;
    background: #000;
    box-shadow: var(--shadow);
    aspect-ratio: 16 / 9;
}

.player-card video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    color: #fff;
    background: radial-gradient(circle at center, rgba(249, 115, 22, 0.28), rgba(0, 0, 0, 0.48));
    cursor: pointer;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-overlay span {
    width: 78px;
    height: 78px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--orange);
    box-shadow: 0 0 40px rgba(249, 115, 22, 0.5);
    font-size: 34px;
}

.play-overlay strong {
    font-size: 20px;
}

.player-card.is-playing .play-overlay {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

.player-message {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    display: none;
    border-radius: 12px;
    padding: 10px 12px;
    color: #fff;
    background: rgba(127, 29, 29, 0.88);
    font-size: 14px;
}

.player-message.is-visible {
    display: block;
}

.text-panel,
.side-panel {
    border: 1px solid rgba(75, 85, 99, 0.45);
    border-radius: 20px;
    padding: 24px;
    background: rgba(17, 24, 39, 0.68);
}

.text-panel h2,
.side-panel h2 {
    margin-bottom: 14px;
    color: #fff;
    font-size: 26px;
}

.text-panel p {
    margin: 0;
    color: #d1d5db;
    font-size: 16px;
    line-height: 1.95;
}

.side-panel dl {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 12px 14px;
    margin: 0;
}

.side-panel dt {
    color: var(--orange-2);
    font-weight: 800;
}

.side-panel dd {
    margin: 0;
    color: #d1d5db;
}

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

.all-items .is-hidden,
.ranking-list .is-hidden {
    display: none;
}

.site-footer {
    margin-top: 62px;
    border-top: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.82);
}

.footer-inner {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 28px;
    padding: 42px 0;
}

.footer-logo {
    margin-bottom: 12px;
    font-size: 22px;
    font-weight: 900;
}

.footer-brand p {
    max-width: 470px;
    margin: 0;
    color: #a1a1aa;
    line-height: 1.65;
}

.footer-links {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 12px 18px;
}

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

.footer-links a:hover {
    color: var(--orange);
}

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

    .menu-button {
        display: grid;
        place-items: center;
    }

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

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

    .detail-main,
    .footer-inner,
    .category-overview-grid {
        grid-template-columns: 1fr;
    }

    .detail-inner {
        grid-template-columns: 260px 1fr;
    }
}

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

    .header-inner {
        height: 64px;
    }

    .brand-text strong {
        font-size: 17px;
    }

    .brand-text em {
        display: none;
    }

    .hero-carousel {
        height: 560px;
    }

    .hero-copy {
        align-items: flex-start;
        text-align: left;
    }

    .hero-actions,
    .home-search,
    .search-panel,
    .filter-bar {
        align-items: stretch;
        flex-direction: column;
    }

    .hero-arrow {
        display: none;
    }

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

    .movie-grid,
    .category-grid,
    .compact-grid,
    .ranking-list.preview,
    .compact-grid.side {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .list-card a {
        grid-template-columns: auto 92px 1fr;
        gap: 10px;
    }

    .list-card img {
        width: 92px;
        height: 64px;
    }

    .rank-no {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }

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

    .detail-inner {
        grid-template-columns: 1fr;
        gap: 24px;
        padding-top: 42px;
    }

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

    .detail-main {
        padding-top: 38px;
    }

    .footer-links {
        justify-content: flex-start;
    }
}

@media (max-width: 520px) {
    .movie-grid,
    .category-grid,
    .compact-grid,
    .ranking-list.preview,
    .compact-grid.side {
        grid-template-columns: 1fr;
    }

    .hero-copy h1,
    .detail-copy h1 {
        font-size: 38px;
    }

    .list-card a {
        grid-template-columns: 1fr;
    }

    .list-card img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }
}
