:root {
    --red: #dc2626;
    --orange: #ea580c;
    --blue: #2563eb;
    --cyan: #0891b2;
    --green: #059669;
    --amber: #d97706;
    --dark: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --bg: #f9fafb;
    --card: #ffffff;
    --shadow: 0 10px 24px rgba(15, 23, 42, 0.09);
    --shadow-lg: 0 24px 55px rgba(15, 23, 42, 0.16);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    color: #111827;
    background: var(--bg);
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(229, 231, 235, 0.9);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(16px);
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
}

.brand-icon {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, var(--red), var(--orange));
    box-shadow: 0 10px 25px rgba(220, 38, 38, 0.35);
    font-size: 13px;
}

.brand-name {
    font-size: 24px;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--red), var(--orange));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    font-weight: 700;
    color: #374151;
}

.main-nav a:hover,
.mobile-panel a:hover {
    color: var(--red);
}

.nav-dropdown {
    position: relative;
    padding: 20px 0;
}

.dropdown-panel {
    position: absolute;
    top: 58px;
    left: 0;
    min-width: 168px;
    padding: 8px;
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: 0.2s ease;
}

.dropdown-panel a {
    display: block;
    padding: 9px 12px;
    border-radius: 10px;
    font-size: 14px;
    white-space: nowrap;
}

.dropdown-panel a:hover {
    background: #fef2f2;
}

.nav-dropdown:hover .dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

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

.header-search input,
.mobile-search input,
.search-box input,
.grid-tools input,
.grid-tools select {
    border: 1px solid #d1d5db;
    border-radius: 999px;
    background: #fff;
    outline: none;
    transition: 0.2s ease;
}

.header-search input {
    width: 210px;
    padding: 9px 14px;
}

.header-search input:focus,
.mobile-search input:focus,
.search-box input:focus,
.grid-tools input:focus,
.grid-tools select:focus {
    border-color: transparent;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.22);
}

.header-search button,
.mobile-search button,
.search-box button {
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--red), var(--orange));
    cursor: pointer;
    font-weight: 800;
    padding: 9px 16px;
}

.menu-toggle {
    display: none;
    margin-left: auto;
    border: 0;
    background: #f3f4f6;
    border-radius: 12px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 20px;
}

.mobile-panel {
    display: none;
    border-top: 1px solid var(--line);
    background: #fff;
    padding: 14px 16px 18px;
}

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

.mobile-panel a {
    padding: 8px 0;
    font-weight: 700;
}

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

.mobile-search input {
    width: 100%;
    padding: 9px 14px;
}

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

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

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

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

.hero-mask {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.08));
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1280px, calc(100% - 32px));
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.hero-copy {
    max-width: 720px;
    color: #fff;
}

.hero-badge,
.poster-badge,
.meta-pill,
.rank-number,
.tag-row a {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-weight: 800;
}

.hero-badge {
    padding: 8px 16px;
    margin-bottom: 18px;
    background: linear-gradient(135deg, var(--red), var(--orange));
    box-shadow: 0 15px 34px rgba(220, 38, 38, 0.35);
}

.hero-copy h1 {
    margin: 0 0 18px;
    font-size: clamp(36px, 7vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.06em;
}

.hero-copy p {
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(17px, 2.4vw, 22px);
    max-width: 680px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.86);
    font-weight: 700;
}

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

.btn,
.btn-light,
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 11px 22px;
    border-radius: 999px;
    font-weight: 900;
    transition: 0.2s ease;
}

.btn {
    color: #fff;
    background: var(--blue);
    box-shadow: 0 12px 25px rgba(37, 99, 235, 0.32);
}

.btn:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.btn-light {
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
}

.btn-light:hover {
    background: rgba(255, 255, 255, 0.25);
}

.btn-outline {
    color: var(--red);
    border: 1px solid #fecaca;
    background: #fff;
}

.btn-outline:hover {
    color: #fff;
    background: var(--red);
}

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 30px;
    line-height: 1;
}

.hero-control:hover {
    background: rgba(0, 0, 0, 0.72);
}

.hero-prev {
    left: 20px;
}

.hero-next {
    right: 20px;
}

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

.hero-dots button {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    transition: 0.25s ease;
}

.hero-dots button.is-active {
    width: 34px;
    background: #fff;
}

.page-main,
.page-section,
.detail-main {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
}

.page-section {
    padding: 56px 0;
}

.page-band {
    padding: 56px 0;
    background: linear-gradient(135deg, #eff6ff, #ecfeff);
}

.page-band.dark {
    color: #fff;
    background: linear-gradient(135deg, #111827, #1f2937);
}

.section-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 26px;
}

.heading-bar {
    width: 5px;
    height: 34px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--red), var(--orange));
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(25px, 3.8vw, 36px);
    letter-spacing: -0.04em;
}

.section-heading span {
    color: var(--muted);
    font-weight: 700;
}

.dark .section-heading span {
    color: rgba(255, 255, 255, 0.66);
}

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

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

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

.movie-card {
    overflow: hidden;
    border-radius: 18px;
    background: var(--card);
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.poster-link {
    position: relative;
    display: block;
    height: 270px;
    overflow: hidden;
    background: #111827;
}

.movie-card.horizontal {
    display: grid;
    grid-template-columns: 210px 1fr;
}

.movie-card.horizontal .poster-link {
    height: 100%;
    min-height: 150px;
}

.movie-card.large .poster-link {
    height: 430px;
}

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

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

.poster-link::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.72));
    pointer-events: none;
}

.poster-badge {
    position: absolute;
    left: 12px;
    bottom: 12px;
    z-index: 2;
    padding: 5px 11px;
    color: #fff;
    background: var(--red);
    font-size: 12px;
}

.poster-score {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 2;
    padding: 5px 9px;
    border-radius: 999px;
    color: #fde68a;
    background: rgba(0, 0, 0, 0.72);
    font-size: 12px;
    font-weight: 900;
}

.card-body {
    padding: 18px;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 9px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.card-meta span + span::before {
    content: "·";
    margin-right: 8px;
    color: #cbd5e1;
}

.card-body h3 {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.card-body p {
    margin: 0 0 14px;
    min-height: 46px;
    color: #4b5563;
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tag-row {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 12px;
}

.tag-row a {
    flex: 0 0 auto;
    padding: 4px 10px;
    color: var(--red);
    background: #fef2f2;
}

.tag-row span {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

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

.category-tile {
    position: relative;
    overflow: hidden;
    min-height: 188px;
    border-radius: 18px;
    color: #fff;
    background: #111827;
    box-shadow: var(--shadow);
}

.category-tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.62;
    transition: transform 0.35s ease;
}

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

.category-tile span {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.82));
}

.category-tile strong,
.category-tile em {
    position: relative;
    z-index: 1;
    display: block;
    padding: 0 18px;
}

.category-tile strong {
    margin-top: 110px;
    font-size: 22px;
}

.category-tile em {
    color: rgba(255, 255, 255, 0.8);
    font-style: normal;
    font-size: 14px;
}

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

.editor-list {
    display: grid;
    gap: 16px;
}

.compact-card {
    display: grid;
    grid-template-columns: 126px 1fr;
    gap: 14px;
    align-items: center;
    overflow: hidden;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.05);
    transition: 0.2s ease;
}

.compact-card:hover {
    box-shadow: var(--shadow);
    transform: translateX(3px);
}

.compact-card img {
    width: 126px;
    height: 84px;
    object-fit: cover;
}

.compact-card span {
    min-width: 0;
    padding-right: 14px;
}

.compact-card strong {
    display: block;
    margin-bottom: 5px;
    line-height: 1.35;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.compact-card em {
    color: var(--muted);
    font-size: 13px;
    font-style: normal;
}

.explore-box {
    padding: 40px;
    border-radius: 28px;
    background: linear-gradient(135deg, #7c3aed, #db2777);
}

.explore-box h2 {
    margin: 0 0 24px;
    color: #fff;
    font-size: clamp(26px, 4vw, 42px);
}

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

.explore-card {
    display: block;
    padding: 18px;
    border-radius: 16px;
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    transition: 0.2s ease;
}

.explore-card:hover {
    background: rgba(255, 255, 255, 0.22);
}

.explore-card strong,
.explore-card span {
    display: block;
}

.explore-card strong {
    margin-bottom: 8px;
    line-height: 1.35;
}

.explore-card span {
    color: rgba(255, 255, 255, 0.76);
    font-size: 13px;
}

.page-hero {
    padding: 64px 0;
    background: radial-gradient(circle at top left, rgba(220, 38, 38, 0.16), transparent 32%), linear-gradient(135deg, #111827, #1f2937);
    color: #fff;
}

.page-hero-inner {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
}

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

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

.page-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(34px, 5vw, 56px);
    letter-spacing: -0.05em;
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
}

.grid-tools,
.search-box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
}

.grid-tools input,
.grid-tools select {
    min-width: 220px;
    padding: 11px 16px;
}

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

.filter-chips button {
    border: 0;
    border-radius: 999px;
    padding: 8px 14px;
    color: #374151;
    background: #fff;
    cursor: pointer;
    font-weight: 800;
}

.filter-chips button.is-active,
.filter-chips button:hover {
    color: #fff;
    background: linear-gradient(135deg, var(--red), var(--orange));
}

.rank-list {
    display: grid;
    gap: 16px;
}

.rank-item {
    display: grid;
    grid-template-columns: 72px 160px 1fr auto;
    align-items: center;
    gap: 18px;
    padding: 14px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.05);
    transition: 0.2s ease;
}

.rank-item:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.rank-number {
    justify-content: center;
    width: 52px;
    height: 52px;
    color: #fff;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    font-size: 20px;
}

.rank-item img {
    width: 160px;
    height: 96px;
    border-radius: 12px;
    object-fit: cover;
}

.rank-copy h2 {
    margin: 0 0 8px;
    font-size: 20px;
}

.rank-copy h2 a:hover {
    color: var(--red);
}

.rank-copy p {
    margin: 0;
    color: var(--muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rank-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    color: var(--muted);
    font-weight: 800;
}

.search-box {
    padding: 22px;
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--shadow);
}

.search-box input {
    flex: 1 1 360px;
    padding: 13px 18px;
}

.search-box button {
    padding: 13px 22px;
}

.search-result-title {
    margin: 0 0 18px;
    color: var(--muted);
    font-weight: 800;
}

.detail-main {
    padding: 36px 0 60px;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) 360px;
    gap: 28px;
}

.player-shell {
    overflow: hidden;
    border-radius: 22px;
    background: #000;
    box-shadow: var(--shadow-lg);
}

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

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

.player-cover {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.22);
    cursor: pointer;
    transition: opacity 0.25s ease;
}

.player-cover.is-hidden {
    opacity: 0;
    pointer-events: none;
}

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

.player-start {
    position: relative;
    z-index: 1;
    width: 78px;
    height: 78px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--red), var(--orange));
    box-shadow: 0 18px 45px rgba(220, 38, 38, 0.45);
    cursor: pointer;
    font-size: 30px;
}

.detail-panel,
.side-panel {
    margin-top: 24px;
    padding: 24px;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.05);
}

.detail-panel h1 {
    margin: 0 0 12px;
    font-size: clamp(28px, 4vw, 42px);
    letter-spacing: -0.05em;
}

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

.meta-pill {
    padding: 6px 12px;
    color: #374151;
    background: #f3f4f6;
    font-size: 13px;
}

.detail-panel h2,
.side-panel h2 {
    margin: 24px 0 12px;
    font-size: 22px;
}

.detail-panel p {
    margin: 0 0 14px;
    color: #374151;
    font-size: 16px;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.tag-cloud span,
.tag-cloud a {
    display: inline-flex;
    padding: 6px 11px;
    border-radius: 999px;
    color: var(--red);
    background: #fef2f2;
    font-size: 13px;
    font-weight: 800;
}

.side-panel {
    margin-top: 0;
    position: sticky;
    top: 92px;
}

.side-panel h2:first-child {
    margin-top: 0;
}

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

.about-card {
    padding: 30px;
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--shadow);
}

.about-card h2 {
    margin: 0 0 14px;
}

.about-card p {
    margin: 0 0 14px;
    color: #374151;
}

.site-footer {
    color: #d1d5db;
    background: linear-gradient(180deg, #111827, #020617);
}

.footer-grid {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
    gap: 34px;
    padding: 48px 0;
}

.footer-brand {
    margin-bottom: 14px;
    color: #fff;
    font-size: 20px;
}

.site-footer h3 {
    margin: 0 0 14px;
    color: #fff;
}

.site-footer p {
    margin: 0;
    color: #9ca3af;
}

.site-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.site-footer a:hover {
    color: #f87171;
}

.footer-bottom {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #9ca3af;
    font-size: 14px;
}

@media (max-width: 1080px) {
    .main-nav,
    .header-search {
        display: none;
    }

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

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

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

    .side-panel {
        position: static;
    }
}

@media (max-width: 720px) {
    .nav-wrap {
        width: min(100% - 24px, 1280px);
        height: 58px;
    }

    .brand-name {
        font-size: 19px;
    }

    .hero-carousel {
        height: 520px;
    }

    .hero-control {
        display: none;
    }

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

    .hero-meta {
        gap: 9px;
    }

    .movie-grid,
    .movie-grid.three,
    .movie-grid.two,
    .category-strip,
    .editor-layout,
    .explore-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .movie-card.horizontal {
        grid-template-columns: 1fr;
    }

    .movie-card.horizontal .poster-link {
        height: 240px;
    }

    .rank-item {
        grid-template-columns: 54px 96px 1fr;
        gap: 12px;
    }

    .rank-item img {
        width: 96px;
        height: 72px;
    }

    .rank-meta {
        display: none;
    }

    .footer-bottom {
        flex-direction: column;
    }
}
