:root {
    color-scheme: dark;
    --bg: #050505;
    --bg-soft: #0d0d0f;
    --card: rgba(31, 41, 55, 0.32);
    --card-strong: rgba(17, 24, 39, 0.74);
    --line: rgba(249, 115, 22, 0.24);
    --line-soft: rgba(75, 85, 99, 0.55);
    --text: #f8fafc;
    --muted: #9ca3af;
    --muted-strong: #d1d5db;
    --orange: #f97316;
    --orange-strong: #ea580c;
    --orange-soft: rgba(249, 115, 22, 0.14);
    --shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
    --radius: 18px;
    --radius-lg: 28px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background:
        radial-gradient(circle at 18% -10%, rgba(249, 115, 22, 0.18), transparent 35%),
        radial-gradient(circle at 82% 8%, rgba(154, 52, 18, 0.18), transparent 32%),
        linear-gradient(135deg, #111827 0%, #050505 48%, #000000 100%);
    -webkit-font-smoothing: antialiased;
}

body.no-scroll {
    overflow: hidden;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    border: 0;
    cursor: pointer;
}

input,
select {
    color: var(--text);
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(0, 0, 0, 0.9);
    border-bottom: 1px solid rgba(154, 52, 18, 0.36);
    box-shadow: 0 10px 40px rgba(154, 52, 18, 0.12);
    backdrop-filter: blur(18px);
}

.header-inner {
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.logo-mark {
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: linear-gradient(135deg, var(--orange), #fb923c);
    color: white;
    box-shadow: 0 12px 32px rgba(249, 115, 22, 0.35);
}

.logo-mark svg {
    width: 22px;
    height: 22px;
}

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

.logo-title {
    color: var(--orange);
    font-size: 21px;
    font-weight: 800;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.logo-subtitle {
    color: var(--muted);
    font-size: 12px;
    margin-top: 4px;
    white-space: nowrap;
}

.nav {
    display: flex;
    align-items: center;
    gap: 24px;
    color: var(--muted-strong);
    font-weight: 650;
}

.nav a {
    transition: color 0.22s ease, transform 0.22s ease;
}

.nav a:hover,
.nav a.is-active {
    color: var(--orange);
}

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

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-form {
    position: relative;
    width: 220px;
}

.search-form input,
.inline-search input {
    width: 100%;
    border: 1px solid var(--line-soft);
    outline: none;
    border-radius: 999px;
    padding: 11px 16px 11px 42px;
    background: rgba(31, 41, 55, 0.5);
    color: var(--muted-strong);
    transition: border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.search-form input:focus,
.inline-search input:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
    background: rgba(17, 24, 39, 0.82);
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
    color: #6b7280;
    pointer-events: none;
}

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(31, 41, 55, 0.35);
    color: var(--muted-strong);
}

.mobile-panel {
    display: none;
    border-top: 1px solid rgba(31, 41, 55, 0.9);
    padding: 16px 0 22px;
}

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

.mobile-panel nav {
    display: flex;
    flex-direction: column;
    gap: 14px;
    color: var(--muted-strong);
    font-weight: 650;
}

.mobile-panel .search-form {
    width: 100%;
    margin-top: 6px;
}

.hero {
    position: relative;
    height: min(76vh, 640px);
    min-height: 560px;
    overflow: hidden;
    background: #000;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.75s ease, transform 1.2s ease;
    pointer-events: none;
}

.hero-slide.is-active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

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

.hero-layer {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.48) 48%, rgba(0, 0, 0, 0.2)),
        linear-gradient(0deg, #050505 0%, rgba(0, 0, 0, 0.35) 34%, transparent 70%);
}

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

.hero-copy {
    width: min(100%, 720px);
    padding-top: 40px;
}

.eyebrow {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 7px 12px;
    background: rgba(31, 41, 55, 0.82);
    color: var(--muted-strong);
    font-size: 13px;
    border: 1px solid rgba(75, 85, 99, 0.62);
}

.badge.hot {
    background: rgba(249, 115, 22, 0.92);
    border-color: rgba(249, 115, 22, 0.92);
    color: #fff;
}

.hero h1 {
    margin: 0;
    max-width: 780px;
    font-size: clamp(42px, 7vw, 76px);
    line-height: 1.02;
    font-weight: 900;
    letter-spacing: -0.04em;
    text-shadow: 0 12px 42px rgba(0, 0, 0, 0.56);
}

.hero p {
    margin: 22px 0 0;
    max-width: 720px;
    color: #e5e7eb;
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.7;
    text-shadow: 0 8px 26px rgba(0, 0, 0, 0.55);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    border-radius: 999px;
    padding: 12px 22px;
    color: #fff;
    font-weight: 800;
    transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--orange);
    box-shadow: 0 18px 42px rgba(249, 115, 22, 0.32);
}

.btn-primary:hover {
    background: var(--orange-strong);
}

.btn-ghost {
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(10px);
}

.btn-ghost:hover {
    border-color: rgba(249, 115, 22, 0.75);
    background: rgba(249, 115, 22, 0.14);
}

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 46px;
    height: 46px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: rgba(0, 0, 0, 0.52);
    color: #fff;
    transform: translateY(-50%);
    transition: background 0.22s ease, transform 0.22s ease;
}

.hero-control:hover {
    background: rgba(0, 0, 0, 0.74);
    transform: translateY(-50%) scale(1.05);
}

.hero-control.prev {
    left: 22px;
}

.hero-control.next {
    right: 22px;
}

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

.hero-dot {
    width: 11px;
    height: 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.36);
    transition: width 0.22s ease, background 0.22s ease;
}

.hero-dot.is-active {
    width: 34px;
    background: var(--orange);
}

.section {
    padding: 72px 0;
}

.section.compact {
    padding: 46px 0;
}

.section.gradient {
    background: linear-gradient(90deg, rgba(154, 52, 18, 0.18), rgba(17, 24, 39, 0.12));
}

.section.dark {
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.9), rgba(0, 0, 0, 0.68));
}

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

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title h2,
.page-title h1 {
    margin: 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.12;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.section-title .title-icon {
    width: 34px;
    height: 34px;
    color: var(--orange);
}

.section-desc,
.page-title p {
    color: var(--muted);
    line-height: 1.75;
    margin: 12px 0 0;
}

.view-more {
    color: var(--orange);
    font-weight: 800;
    white-space: nowrap;
}

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

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

.movie-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(75, 85, 99, 0.42);
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(10px);
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(249, 115, 22, 0.5);
    background: rgba(31, 41, 55, 0.52);
    box-shadow: 0 24px 54px rgba(249, 115, 22, 0.16);
}

.poster-wrap {
    position: relative;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: #0b0b0d;
}

.poster-wrap.landscape {
    aspect-ratio: 16 / 9;
}

.poster-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.42s ease;
}

.movie-card:hover img,
.feature-card:hover img,
.related-row:hover img {
    transform: scale(1.06);
}

.poster-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.08) 60%, transparent);
}

.poster-label,
.poster-year {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    padding: 6px 9px;
    font-size: 12px;
    line-height: 1;
}

.poster-label {
    top: 12px;
    right: 12px;
    background: rgba(249, 115, 22, 0.92);
    color: #fff;
    font-weight: 800;
}

.poster-year {
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.78);
    color: #fff;
}

.card-body {
    padding: 16px;
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 10px;
}

.card-kicker {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.card-kicker span {
    border-radius: 8px;
    padding: 5px 8px;
    background: rgba(55, 65, 81, 0.84);
    color: #d1d5db;
    font-size: 12px;
}

.card-title {
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.35;
    transition: color 0.22s ease;
}

.movie-card:hover .card-title,
.feature-card:hover .card-title,
.related-row:hover .card-title {
    color: var(--orange);
}

.card-desc {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.62;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    color: #6b7280;
    font-size: 13px;
}

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

.feature-card {
    position: relative;
    min-height: 360px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(75, 85, 99, 0.42);
    box-shadow: var(--shadow);
    background: #000;
}

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

.feature-card .feature-content {
    position: absolute;
    inset: auto 0 0 0;
    padding: 26px;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0));
}

.feature-card .card-title {
    font-size: 24px;
}

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

.category-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(75, 85, 99, 0.44);
    border-radius: var(--radius);
    padding: 24px;
    background:
        radial-gradient(circle at 80% 10%, rgba(249, 115, 22, 0.22), transparent 34%),
        rgba(31, 41, 55, 0.34);
    min-height: 156px;
    transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: rgba(249, 115, 22, 0.58);
    background:
        radial-gradient(circle at 80% 10%, rgba(249, 115, 22, 0.35), transparent 34%),
        rgba(31, 41, 55, 0.56);
}

.category-card h3 {
    margin: 0 0 10px;
    font-size: 22px;
}

.category-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.62;
}

.category-card .arrow {
    position: absolute;
    right: 22px;
    bottom: 18px;
    color: var(--orange);
    font-weight: 900;
}

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

.rank-row,
.related-row {
    display: flex;
    gap: 16px;
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(75, 85, 99, 0.42);
    border-radius: var(--radius);
    background: rgba(31, 41, 55, 0.32);
    transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.rank-row:hover,
.related-row:hover {
    transform: translateY(-3px);
    border-color: rgba(249, 115, 22, 0.45);
    background: rgba(31, 41, 55, 0.52);
}

.rank-number {
    flex: 0 0 56px;
    display: grid;
    place-items: center;
    color: var(--orange);
    font-size: 26px;
    font-weight: 950;
    background: rgba(249, 115, 22, 0.1);
}

.rank-cover,
.related-cover {
    flex: 0 0 122px;
    position: relative;
    overflow: hidden;
    background: #070707;
}

.rank-cover img,
.related-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.rank-body,
.related-body {
    min-width: 0;
    padding: 16px 16px 16px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

.rank-body .card-title,
.related-body .card-title {
    font-size: 17px;
}

.page-hero {
    border-bottom: 1px solid rgba(154, 52, 18, 0.28);
    background:
        radial-gradient(circle at 20% 0%, rgba(249, 115, 22, 0.22), transparent 38%),
        linear-gradient(90deg, rgba(154, 52, 18, 0.22), rgba(17, 24, 39, 0.34));
}

.page-title {
    padding: 56px 0 46px;
}

.breadcrumb {
    padding: 18px 0;
    color: var(--muted);
    font-size: 14px;
}

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

.toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
}

.inline-search {
    position: relative;
    flex: 1 1 280px;
    max-width: 420px;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-chip {
    border-radius: 999px;
    padding: 9px 14px;
    background: rgba(31, 41, 55, 0.56);
    color: var(--muted-strong);
    border: 1px solid rgba(75, 85, 99, 0.44);
    transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}

.filter-chip:hover,
.filter-chip.is-active {
    color: #fff;
    border-color: var(--orange);
    background: rgba(249, 115, 22, 0.82);
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 34px;
}

.player-card {
    overflow: hidden;
    border: 1px solid rgba(249, 115, 22, 0.24);
    border-radius: var(--radius-lg);
    background: rgba(0, 0, 0, 0.88);
    box-shadow: var(--shadow);
}

.player-shell {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: #000;
    transition: opacity 0.24s ease, visibility 0.24s ease;
}

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

.player-overlay img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
}

.player-overlay::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.22));
}

.player-play {
    position: relative;
    z-index: 2;
    width: 82px;
    height: 82px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: #fff;
    background: rgba(249, 115, 22, 0.94);
    box-shadow: 0 22px 58px rgba(249, 115, 22, 0.36);
    transition: transform 0.22s ease, background 0.22s ease;
}

.player-play:hover {
    transform: scale(1.06);
    background: var(--orange-strong);
}

.player-meta {
    padding: 20px;
    border-top: 1px solid rgba(75, 85, 99, 0.42);
}

.player-meta h1 {
    margin: 0 0 14px;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.meta-row,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.meta-row span,
.tag-row span {
    border-radius: 999px;
    padding: 7px 11px;
    background: rgba(55, 65, 81, 0.86);
    color: var(--muted-strong);
    font-size: 13px;
}

.meta-row span:first-child,
.tag-row span:first-child {
    background: rgba(249, 115, 22, 0.88);
    color: #fff;
}

.info-block {
    margin-top: 22px;
    border: 1px solid rgba(75, 85, 99, 0.42);
    border-radius: var(--radius);
    padding: 24px;
    background: rgba(31, 41, 55, 0.28);
}

.info-block.accent {
    border-color: rgba(249, 115, 22, 0.32);
    background: linear-gradient(135deg, rgba(154, 52, 18, 0.16), rgba(31, 41, 55, 0.24));
}

.info-block h2 {
    margin: 0 0 12px;
    font-size: 22px;
}

.info-block p {
    margin: 0;
    color: #d1d5db;
    line-height: 1.82;
    white-space: pre-line;
}

.sidebar {
    position: sticky;
    top: 92px;
    align-self: start;
}

.sidebar h2 {
    margin: 0 0 16px;
    font-size: 22px;
}

.related-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.related-row {
    gap: 12px;
}

.related-cover {
    flex-basis: 104px;
    aspect-ratio: 2 / 3;
}

.related-body {
    padding: 12px 12px 12px 0;
}

.not-found {
    display: none;
    padding: 34px;
    border: 1px solid rgba(75, 85, 99, 0.42);
    border-radius: var(--radius);
    color: var(--muted);
    background: rgba(31, 41, 55, 0.3);
    text-align: center;
}

.site-footer {
    margin-top: 72px;
    border-top: 1px solid rgba(154, 52, 18, 0.32);
    background: rgba(0, 0, 0, 0.72);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 32px;
    padding: 46px 0;
}

.footer-title {
    margin: 0 0 14px;
    color: var(--orange);
    font-size: 19px;
    font-weight: 850;
}

.footer-text,
.footer-links a {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.75;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 22px 0;
    border-top: 1px solid rgba(31, 41, 55, 0.75);
    color: #6b7280;
    font-size: 13px;
}

@media (max-width: 1100px) {
    .nav,
    .header-actions .search-form {
        display: none;
    }

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

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

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

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

    .sidebar {
        position: static;
    }
}

@media (max-width: 760px) {
    .container {
        width: min(100% - 24px, var(--container));
    }

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

    .hero-copy {
        padding: 96px 0 86px;
    }

    .hero-control {
        display: none;
    }

    .hero p {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .section {
        padding: 52px 0;
    }

    .section-head,
    .toolbar,
    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .movie-grid,
    .movie-grid.dense,
    .feature-grid,
    .category-grid,
    .ranking-list,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .rank-cover {
        flex-basis: 100px;
    }

    .feature-card {
        min-height: 320px;
    }

    .player-meta,
    .info-block {
        padding: 18px;
    }
}

@media (max-width: 480px) {
    .logo-title {
        font-size: 18px;
    }

    .logo-subtitle {
        display: none;
    }

    .movie-grid,
    .movie-grid.dense {
        gap: 16px;
    }

    .card-body {
        padding: 14px;
    }

    .rank-row {
        gap: 12px;
    }

    .rank-number {
        flex-basis: 42px;
        font-size: 20px;
    }
}
