:root {
    --bg: #020617;
    --bg-soft: #0f172a;
    --panel: rgba(15, 23, 42, 0.76);
    --panel-strong: rgba(15, 23, 42, 0.94);
    --border: rgba(168, 85, 247, 0.22);
    --border-hot: rgba(251, 191, 36, 0.42);
    --text: #f8fafc;
    --muted: #c4b5fd;
    --muted-soft: rgba(221, 214, 254, 0.72);
    --gold: #fbbf24;
    --pink: #ec4899;
    --purple: #a855f7;
    --blue: #38bdf8;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100%;
    color: var(--text);
    font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(168, 85, 247, 0.28), transparent 36rem),
        radial-gradient(circle at 80% 10%, rgba(236, 72, 153, 0.18), transparent 34rem),
        linear-gradient(180deg, #020617 0%, #0f172a 44%, #020617 100%);
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, black, transparent 82%);
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(88, 28, 135, 0.92), rgba(15, 23, 42, 0.96));
    backdrop-filter: blur(18px);
    box-shadow: 0 12px 45px rgba(0, 0, 0, 0.28);
}

.header-inner {
    width: min(1240px, calc(100% - 32px));
    height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
}

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

.brand-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: #111827;
    font-weight: 900;
    background: linear-gradient(135deg, var(--gold), var(--pink));
    box-shadow: 0 0 32px rgba(251, 191, 36, 0.35);
}

.brand.compact .brand-icon {
    width: 36px;
    height: 36px;
    border-radius: 14px;
}

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

.brand-text strong {
    font-size: 1.55rem;
    letter-spacing: 0.05em;
    background: linear-gradient(90deg, var(--gold), var(--pink), #c084fc);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-text small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.75rem;
}

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

.nav-link,
.mobile-nav-link {
    color: #ddd6fe;
    border-radius: 999px;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link {
    padding: 10px 14px;
    font-weight: 700;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-nav-link:hover,
.mobile-nav-link.is-active {
    color: var(--gold);
    background: rgba(251, 191, 36, 0.10);
}

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px;
    border: 1px solid rgba(168, 85, 247, 0.32);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.56);
}

.header-search input,
.mobile-search input,
.large-search input,
.filter-panel input,
.filter-panel select {
    color: var(--text);
    border: 1px solid rgba(168, 85, 247, 0.26);
    outline: none;
    background: rgba(15, 23, 42, 0.72);
}

.header-search input {
    width: 210px;
    padding: 9px 14px;
    border: 0;
    background: transparent;
}

.header-search button,
.mobile-search button,
.large-search button,
.filter-panel button {
    cursor: pointer;
    border: 0;
    color: #111827;
    font-weight: 900;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--gold), var(--pink));
}

.header-search button {
    padding: 9px 15px;
}

.mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    margin-left: auto;
    padding: 10px;
    border: 1px solid rgba(168, 85, 247, 0.25);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.56);
    cursor: pointer;
}

.mobile-menu-button span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: #ddd6fe;
}

.mobile-nav {
    display: none;
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 12px 0 18px;
}

.mobile-search {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    margin-bottom: 12px;
}

.mobile-search input {
    min-width: 0;
    padding: 12px 14px;
    border-radius: 999px;
}

.mobile-search button {
    padding: 0 16px;
}

.mobile-nav-link {
    display: block;
    padding: 12px 14px;
}

.hero {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s ease;
}

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

.hero-slide > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
    filter: saturate(1.08) contrast(1.02);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.94) 0%, rgba(15, 23, 42, 0.76) 42%, rgba(15, 23, 42, 0.22) 100%),
        linear-gradient(0deg, #020617 0%, transparent 34%),
        radial-gradient(circle at 25% 30%, rgba(236, 72, 153, 0.20), transparent 26rem);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1240px, calc(100% - 32px));
    min-height: 680px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 90px 0 110px;
}

.hero-kicker,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    color: var(--gold);
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero-kicker::before,
.section-kicker::before {
    content: "";
    width: 34px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--gold), var(--pink));
}

.hero-content h1 {
    max-width: 820px;
    margin: 0;
    font-size: clamp(3rem, 7vw, 6.4rem);
    line-height: 0.95;
    letter-spacing: -0.06em;
    text-shadow: 0 18px 70px rgba(0, 0, 0, 0.55);
}

.hero-content p {
    max-width: 720px;
    margin: 24px 0 0;
    color: #ddd6fe;
    font-size: clamp(1rem, 2vw, 1.28rem);
    line-height: 1.8;
}

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

.hero-tags {
    margin-top: 28px;
}

.hero-tags span,
.tag-row span,
.detail-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 11px;
    color: #fde68a;
    border: 1px solid rgba(251, 191, 36, 0.25);
    border-radius: 999px;
    background: rgba(251, 191, 36, 0.10);
    font-size: 0.78rem;
    font-weight: 700;
}

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

.primary-button,
.ghost-button,
.section-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.primary-button {
    color: #111827;
    background: linear-gradient(135deg, var(--gold), var(--pink));
    box-shadow: 0 18px 42px rgba(251, 191, 36, 0.26);
}

.ghost-button,
.section-link {
    color: #f5d0fe;
    border: 1px solid rgba(216, 180, 254, 0.34);
    background: rgba(15, 23, 42, 0.62);
}

.primary-button:hover,
.ghost-button:hover,
.section-link:hover {
    transform: translateY(-2px);
    border-color: var(--gold);
}

.hero-card {
    position: absolute;
    right: max(24px, calc((100vw - 1240px) / 2));
    bottom: 118px;
    z-index: 3;
    width: 220px;
    padding: 20px;
    border: 1px solid rgba(251, 191, 36, 0.28);
    border-radius: 26px;
    background: rgba(15, 23, 42, 0.62);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
}

.hero-card strong {
    display: block;
    margin-bottom: 12px;
    color: var(--gold);
    font-size: 2rem;
}

.hero-card span {
    display: block;
    padding: 8px 0;
    color: #ddd6fe;
    border-top: 1px solid rgba(168, 85, 247, 0.18);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 52px;
    height: 52px;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.62);
    backdrop-filter: blur(12px);
    cursor: pointer;
    font-size: 2.5rem;
    line-height: 1;
    transform: translateY(-50%);
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

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

.hero-dot {
    width: 32px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.28);
    cursor: pointer;
}

.hero-dot.is-active {
    background: linear-gradient(90deg, var(--gold), var(--pink));
}

.quick-search-panel,
.content-section,
.page-main,
.ranking-layout,
.detail-main {
    width: min(1240px, calc(100% - 32px));
    margin-left: auto;
    margin-right: auto;
}

.quick-search-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    margin-top: -42px;
    position: relative;
    z-index: 8;
    padding: 18px;
    border: 1px solid var(--border-hot);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
}

.quick-search-panel form {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
}

.quick-search-panel label {
    color: var(--gold);
    font-weight: 900;
}

.quick-search-panel input {
    width: 100%;
    min-height: 48px;
    padding: 0 18px;
    color: var(--text);
    border: 1px solid rgba(168, 85, 247, 0.28);
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.6);
    outline: none;
}

.quick-search-panel button {
    min-height: 48px;
    padding: 0 20px;
    color: #111827;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--gold), var(--pink));
    font-weight: 900;
    cursor: pointer;
}

.quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.quick-links a {
    padding: 10px 13px;
    color: #f5d0fe;
    border: 1px solid rgba(216, 180, 254, 0.22);
    border-radius: 999px;
    background: rgba(88, 28, 135, 0.22);
    font-size: 0.9rem;
    font-weight: 800;
}

.content-section {
    margin-top: 76px;
}

.section-heading,
.category-overview-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 26px;
}

.section-heading h2,
.category-overview-head h2,
.ranking-panel h2,
.ranking-column h2,
.side-card h2,
.story-block h2,
.text-panel h2 {
    margin: 0;
    font-size: clamp(1.8rem, 3vw, 3rem);
    line-height: 1.05;
}

.section-heading p,
.category-overview-head p {
    max-width: 720px;
    margin: 10px 0 0;
    color: var(--muted-soft);
    line-height: 1.75;
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: var(--panel);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.18);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-hot);
    box-shadow: 0 26px 70px rgba(251, 191, 36, 0.16);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(168, 85, 247, 0.28), rgba(236, 72, 153, 0.12)),
        #0f172a;
}

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

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

.poster-link::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 36%, rgba(2, 6, 23, 0.84) 100%);
}

.play-hover {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    color: #111827;
    border-radius: 50%;
    background: rgba(251, 191, 36, 0.92);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.85);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.quality-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    padding: 5px 9px;
    color: #111827;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--gold), #fde68a);
    font-size: 0.75rem;
    font-weight: 900;
}

.card-body {
    padding: 16px;
}

.card-meta,
.card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: #c4b5fd;
    font-size: 0.78rem;
}

.card-meta {
    justify-content: flex-start;
    flex-wrap: wrap;
}

.card-meta span {
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(168, 85, 247, 0.12);
}

.movie-card h3 {
    margin: 12px 0 8px;
    font-size: 1.08rem;
    line-height: 1.35;
}

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

.movie-card p {
    min-height: 4.6em;
    margin: 0;
    color: rgba(221, 214, 254, 0.76);
    line-height: 1.55;
    font-size: 0.92rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tag-row {
    margin-top: 14px;
    gap: 6px;
}

.tag-row span {
    min-height: 24px;
    padding: 3px 8px;
    font-size: 0.72rem;
}

.card-foot {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid rgba(168, 85, 247, 0.16);
}

.card-foot strong {
    color: var(--gold);
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 26px;
    align-items: start;
}

.ranking-panel,
.ranking-column,
.side-card,
.detail-card,
.category-overview-card,
.text-panel {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.18);
}

.ranking-panel {
    position: sticky;
    top: 92px;
    padding: 22px;
}

.ranking-panel h2 {
    margin-bottom: 18px;
    font-size: 1.65rem;
}

.rank-item {
    display: grid;
    grid-template-columns: 38px 76px 1fr;
    gap: 12px;
    align-items: center;
    padding: 12px 0;
    border-top: 1px solid rgba(168, 85, 247, 0.16);
}

.rank-item:first-of-type {
    border-top: 0;
}

.rank-number {
    color: var(--gold);
    font-size: 1.1rem;
    font-weight: 900;
}

.rank-item img {
    width: 76px;
    height: 50px;
    object-fit: cover;
    border-radius: 12px;
    background: #0f172a;
}

.rank-text strong,
.rank-text small {
    display: block;
}

.rank-text strong {
    line-height: 1.35;
}

.rank-text small {
    margin-top: 5px;
    color: var(--muted-soft);
}

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

.category-tile {
    position: relative;
    min-height: 220px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: #0f172a;
}

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

.category-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.88));
}

.category-tile span,
.category-tile strong,
.category-tile small {
    position: relative;
    z-index: 2;
}

.category-tile span {
    font-size: 1.4rem;
    font-weight: 900;
}

.category-tile strong {
    margin-top: 8px;
    color: var(--gold);
}

.category-tile small {
    margin-top: 8px;
    color: var(--muted-soft);
    line-height: 1.55;
}

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

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

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 58px;
    border: 1px solid var(--border);
    border-radius: 32px;
    background:
        radial-gradient(circle at top right, rgba(236, 72, 153, 0.18), transparent 28rem),
        linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(88, 28, 135, 0.48));
    box-shadow: var(--shadow);
}

.small-hero h1 {
    max-width: 880px;
    margin: 0;
    font-size: clamp(2.5rem, 6vw, 5rem);
    line-height: 1;
    letter-spacing: -0.05em;
}

.small-hero p {
    max-width: 840px;
    margin: 18px 0 0;
    color: var(--muted-soft);
    line-height: 1.8;
    font-size: 1.08rem;
}

.category-overview-card,
.text-panel {
    padding: 26px;
    margin-top: 28px;
}

.filter-panel {
    display: grid;
    grid-template-columns: auto minmax(220px, 1fr) 170px 170px;
    gap: 14px;
    align-items: end;
    margin-bottom: 22px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: var(--panel);
}

.filter-panel > div span,
.filter-panel > div small {
    display: block;
    color: var(--muted-soft);
}

.filter-panel > div strong {
    display: inline-block;
    margin-top: 4px;
    color: var(--gold);
    font-size: 1.7rem;
}

.filter-panel label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: #ddd6fe;
    font-size: 0.88rem;
    font-weight: 800;
}

.filter-panel input,
.filter-panel select {
    min-height: 44px;
    padding: 0 13px;
    border-radius: 14px;
}

.ranking-layout {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin-top: 34px;
}

.ranking-column {
    padding: 22px;
}

.ranking-column h2 {
    margin-bottom: 10px;
    font-size: 1.7rem;
}

.large-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    max-width: 760px;
    margin-top: 28px;
}

.large-search input {
    min-height: 56px;
    padding: 0 20px;
    border-radius: 999px;
}

.large-search button {
    min-height: 56px;
    padding: 0 24px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 22px;
    color: var(--muted-soft);
    font-size: 0.95rem;
}

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

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 26px;
    align-items: start;
}

.detail-primary {
    min-width: 0;
}

.player-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-hot);
    border-radius: 28px;
    background: #000;
    box-shadow: var(--shadow);
}

.player-card video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: white;
    border: 0;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.18), rgba(2, 6, 23, 0.62));
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-card.is-playing .player-overlay {
    opacity: 0;
    visibility: hidden;
}

.player-overlay span {
    width: 84px;
    height: 84px;
    display: grid;
    place-items: center;
    color: #111827;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--pink));
    box-shadow: 0 0 60px rgba(251, 191, 36, 0.42);
    font-size: 2rem;
}

.player-overlay strong {
    font-size: 1.35rem;
}

.player-overlay small,
.player-status {
    color: #ddd6fe;
}

.player-status {
    margin: 0;
    padding: 10px 16px 14px;
    background: rgba(2, 6, 23, 0.94);
    font-size: 0.9rem;
}

.detail-card {
    margin-top: 24px;
    padding: 28px;
}

.detail-title-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 120px;
    gap: 20px;
    align-items: start;
}

.detail-title-row h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 4rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.detail-title-row p {
    margin: 16px 0 0;
    color: var(--muted-soft);
    line-height: 1.8;
}

.score-box {
    padding: 18px 14px;
    text-align: center;
    border: 1px solid rgba(251, 191, 36, 0.28);
    border-radius: 22px;
    background: rgba(251, 191, 36, 0.10);
}

.score-box strong {
    display: block;
    color: var(--gold);
    font-size: 2.1rem;
}

.score-box span {
    color: #fde68a;
    font-size: 0.82rem;
}

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

.detail-meta-grid div {
    padding: 14px;
    border: 1px solid rgba(168, 85, 247, 0.16);
    border-radius: 16px;
    background: rgba(2, 6, 23, 0.34);
}

.detail-meta-grid span,
.detail-meta-grid strong {
    display: block;
}

.detail-meta-grid span {
    color: var(--muted-soft);
    font-size: 0.82rem;
}

.detail-meta-grid strong {
    margin-top: 6px;
}

.detail-meta-grid a:hover {
    color: var(--gold);
}

.detail-tags {
    margin-top: 24px;
}

.story-block {
    margin-top: 30px;
    padding-top: 26px;
    border-top: 1px solid rgba(168, 85, 247, 0.18);
}

.story-block h2 {
    font-size: 1.45rem;
}

.story-block p,
.text-panel p {
    color: var(--muted-soft);
    line-height: 1.9;
    font-size: 1.02rem;
}

.detail-sidebar {
    position: sticky;
    top: 94px;
    display: grid;
    gap: 20px;
}

.side-card {
    padding: 20px;
}

.poster-side-card img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 18px;
    background: #0f172a;
}

.full-button {
    width: 100%;
    margin-top: 16px;
}

.side-recommend-list {
    display: grid;
    gap: 14px;
    margin-top: 16px;
}

.movie-card-compact {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    border-radius: 18px;
}

.movie-card-compact .poster-link {
    height: 100%;
    min-height: 110px;
    aspect-ratio: auto;
}

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

.movie-card-compact .card-meta,
.movie-card-compact .tag-row,
.movie-card-compact .quality-badge {
    display: none;
}

.movie-card-compact h3 {
    margin-top: 0;
    font-size: 0.96rem;
}

.movie-card-compact p {
    min-height: 3.1em;
    -webkit-line-clamp: 2;
    font-size: 0.82rem;
}

.site-footer {
    margin-top: 90px;
    border-top: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.7), rgba(2, 6, 23, 0.96));
}

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

.footer-brand p,
.site-footer li,
.footer-bottom {
    color: var(--muted-soft);
    line-height: 1.75;
}

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

.site-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer li + li {
    margin-top: 8px;
}

.site-footer a:hover {
    color: var(--gold);
}

.footer-bottom {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 20px 0 30px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    border-top: 1px solid rgba(168, 85, 247, 0.16);
}

.footer-bottom p {
    margin: 0;
}

.is-hidden-by-filter {
    display: none !important;
}

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

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

    .split-section,
    .detail-layout,
    .ranking-layout {
        grid-template-columns: 1fr;
    }

    .ranking-panel,
    .detail-sidebar {
        position: static;
    }

    .detail-sidebar {
        grid-template-columns: 320px minmax(0, 1fr);
    }
}

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

    .mobile-menu-button {
        display: block;
    }

    .site-header.is-open .mobile-nav {
        display: block;
    }

    .hero,
    .hero-content {
        min-height: 620px;
    }

    .hero-card {
        display: none;
    }

    .hero-arrow {
        display: none;
    }

    .quick-search-panel,
    .quick-search-panel form,
    .filter-panel,
    .large-search,
    .footer-grid,
    .footer-bottom,
    .detail-title-row,
    .detail-sidebar {
        grid-template-columns: 1fr;
    }

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

    .section-heading,
    .category-overview-head {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .page-hero {
        padding: 36px 24px;
    }

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

@media (max-width: 560px) {
    .header-inner {
        width: min(100% - 24px, 1240px);
    }

    .brand-text strong {
        font-size: 1.25rem;
    }

    .brand-text small {
        display: none;
    }

    .hero-content {
        width: min(100% - 28px, 1240px);
        padding-top: 70px;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .movie-grid,
    .compact-grid,
    .category-grid {
        grid-template-columns: 1fr;
    }

    .movie-card-compact {
        grid-template-columns: 102px minmax(0, 1fr);
    }

    .detail-card,
    .category-overview-card,
    .ranking-column,
    .ranking-panel,
    .side-card {
        padding: 18px;
    }

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