
:root {
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-200: #e2e8f0;
    --slate-100: #f1f5f9;
    --slate-50: #f8fafc;
    --blue-600: #2563eb;
    --blue-500: #3b82f6;
    --cyan-500: #06b6d4;
    --cyan-400: #22d3ee;
    --purple-500: #8b5cf6;
    --pink-500: #ec4899;
    --gold-500: #f59e0b;
    --radius-xl: 24px;
    --radius-lg: 18px;
    --shadow-soft: 0 16px 40px rgba(15, 23, 42, 0.12);
    --shadow-card: 0 10px 30px rgba(15, 23, 42, 0.10);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--slate-900);
    background: linear-gradient(180deg, var(--slate-50), #ffffff 42%, var(--slate-50));
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    -webkit-font-smoothing: antialiased;
}

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

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

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    color: #ffffff;
    background: linear-gradient(90deg, var(--slate-950), var(--slate-800), var(--slate-950));
    box-shadow: 0 10px 30px rgba(2, 6, 23, 0.35);
}

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

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

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--blue-500), var(--cyan-500));
    box-shadow: 0 10px 25px rgba(6, 182, 212, 0.35);
}

.brand-text {
    display: grid;
    gap: 2px;
}

.brand-text strong,
.footer-brand strong {
    font-size: 1.22rem;
    line-height: 1;
    background: linear-gradient(90deg, #60a5fa, #22d3ee);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-text small {
    color: #94a3b8;
    font-size: 0.76rem;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 0.95rem;
    flex: 1;
}

.desktop-nav a {
    color: #e2e8f0;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.desktop-nav a:hover {
    color: var(--cyan-400);
}

.header-search,
.mobile-search,
.quick-search-panel form,
.category-hero-search,
.big-search {
    display: flex;
    align-items: center;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.header-search input,
.mobile-search input,
.quick-search-panel input,
.category-hero-search input,
.big-search input {
    width: 260px;
    min-width: 0;
    color: #ffffff;
    background: transparent;
    border: 0;
    outline: 0;
    padding: 12px 18px;
}

.header-search input::placeholder,
.mobile-search input::placeholder,
.category-hero-search input::placeholder,
.big-search input::placeholder {
    color: #cbd5e1;
}

.header-search button,
.mobile-search button,
.quick-search-panel button,
.category-hero-search button,
.big-search button {
    border: 0;
    color: #ffffff;
    background: linear-gradient(90deg, var(--blue-600), var(--cyan-500));
    padding: 12px 18px;
    font-weight: 700;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    border: 0;
    background: rgba(255, 255, 255, 0.08);
    padding: 11px;
    border-radius: 12px;
}

.mobile-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #ffffff;
    border-radius: 999px;
}

.mobile-menu {
    display: none;
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 16px 0 22px;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
}

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

.mobile-menu a {
    color: #e2e8f0;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
}

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

.hero-slides,
.hero-slide {
    position: absolute;
    inset: 0;
}

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

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

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 75% 30%, rgba(34, 211, 238, 0.22), transparent 30%),
        linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(15, 23, 42, 0.64) 46%, rgba(15, 23, 42, 0.10));
}

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

.hero-kicker,
.detail-kicker,
.page-hero span,
.category-hero-content span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fde68a;
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.hero-content h1 {
    width: min(760px, 100%);
    color: #ffffff;
    font-size: clamp(2.6rem, 6vw, 5.4rem);
    line-height: 1.05;
    margin: 0 0 18px;
    text-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

.hero-content p {
    width: min(690px, 100%);
    margin: 0 0 24px;
    color: #e2e8f0;
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    line-height: 1.8;
}

.hero-tags,
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags span,
.tag-list span {
    color: #e0f2fe;
    background: rgba(14, 165, 233, 0.16);
    border: 1px solid rgba(34, 211, 238, 0.25);
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
}

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

.primary-button,
.ghost-button,
.text-link,
.source-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
    color: #ffffff;
    background: linear-gradient(90deg, var(--blue-600), var(--cyan-500));
    padding: 14px 26px;
    box-shadow: 0 16px 35px rgba(37, 99, 235, 0.32);
}

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

.ghost-button {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(12px);
    padding: 14px 26px;
}

.ghost-button.dark {
    color: var(--slate-800);
    background: var(--slate-100);
    border-color: #e2e8f0;
}

.hero-control {
    position: absolute;
    z-index: 5;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    background: rgba(15, 23, 42, 0.35);
    font-size: 2rem;
    line-height: 1;
}

.hero-prev {
    left: 22px;
}

.hero-next {
    right: 22px;
}

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

.hero-dot {
    width: 32px;
    height: 6px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
}

.hero-dot.active {
    width: 56px;
    background: linear-gradient(90deg, var(--blue-500), var(--cyan-400));
}

.quick-search-panel {
    width: min(1180px, calc(100% - 32px));
    margin: -38px auto 0;
    position: relative;
    z-index: 8;
    display: grid;
    grid-template-columns: 1fr minmax(360px, 620px);
    gap: 24px;
    align-items: center;
    padding: 22px;
    border-radius: var(--radius-xl);
    color: #ffffff;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.96));
    box-shadow: var(--shadow-soft);
}

.quick-search-panel strong {
    display: block;
    font-size: 1.3rem;
    margin-bottom: 4px;
}

.quick-search-panel span {
    color: #cbd5e1;
}

.quick-search-panel input {
    color: #ffffff;
    width: 100%;
}

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

.home-sections {
    display: grid;
    gap: 72px;
    padding-top: 70px;
}

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

.section-heading h2 {
    margin: 0;
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    color: var(--slate-900);
}

.section-heading p {
    margin: 4px 0 0;
    color: var(--slate-600);
}

.section-icon {
    width: 46px;
    height: 46px;
    border-radius: 15px;
    display: inline-grid;
    place-items: center;
    color: #ffffff;
    box-shadow: var(--shadow-card);
}

.section-icon.blue {
    background: linear-gradient(135deg, var(--blue-500), var(--cyan-500));
}

.section-icon.cyan {
    background: linear-gradient(135deg, #0891b2, var(--cyan-400));
}

.section-icon.purple {
    background: linear-gradient(135deg, var(--purple-500), var(--blue-500));
}

.section-icon.gold {
    background: linear-gradient(135deg, var(--gold-500), #ef4444);
}

.section-icon.pink {
    background: linear-gradient(135deg, var(--purple-500), var(--pink-500));
}

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

.category-tile,
.category-overview-card,
.movie-card,
.story-card,
.player-card,
.ranking-row {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

.category-tile {
    overflow: hidden;
    padding: 18px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover,
.movie-card:hover,
.category-overview-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 46px rgba(15, 23, 42, 0.16);
}

.category-covers {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    height: 128px;
    margin-bottom: 16px;
}

.category-covers img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
}

.category-tile h3 {
    margin: 0 0 8px;
    font-size: 1.18rem;
}

.category-tile p {
    min-height: 48px;
    color: var(--slate-600);
    font-size: 0.92rem;
    line-height: 1.65;
}

.category-tile span,
.text-link {
    color: var(--blue-600);
    font-weight: 800;
}

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

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

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

.movie-card {
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.poster {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4.2;
    overflow: hidden;
    background: linear-gradient(135deg, #cbd5e1, #e2e8f0);
}

.poster-wide {
    aspect-ratio: 16 / 10;
}

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

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

.poster-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(2, 6, 23, 0.78));
}

.year-badge,
.play-badge {
    position: absolute;
    z-index: 2;
    color: #ffffff;
    background: rgba(2, 6, 23, 0.78);
    backdrop-filter: blur(10px);
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 0.78rem;
    font-weight: 800;
}

.year-badge {
    top: 12px;
    right: 12px;
}

.play-badge {
    left: 12px;
    bottom: 12px;
    background: linear-gradient(90deg, var(--blue-600), var(--cyan-500));
}

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

.movie-title {
    display: -webkit-box;
    min-height: 48px;
    color: var(--slate-900);
    font-size: 1.05rem;
    font-weight: 850;
    line-height: 1.45;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.movie-title:hover,
.ranking-main h2 a:hover,
.category-overview-card h2 a:hover {
    color: var(--blue-600);
}

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

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    color: var(--slate-500);
    font-size: 0.82rem;
}

.movie-meta a {
    color: var(--blue-600);
    font-weight: 700;
}

.tag-list {
    margin-top: 12px;
}

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

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

.rank-and-rec {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 30px;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 48px 74px 1fr;
    gap: 14px;
    align-items: center;
    padding: 12px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-item:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-card);
}

.rank-number {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--gold-500), #ef4444);
    font-weight: 900;
}

.rank-item img {
    width: 74px;
    height: 54px;
    object-fit: cover;
    border-radius: 12px;
    background: var(--slate-200);
}

.rank-info {
    display: grid;
    gap: 4px;
}

.rank-info small {
    color: var(--slate-500);
}

.subpage-main {
    min-height: 70vh;
}

.page-hero,
.category-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(135deg, var(--slate-950), var(--slate-800));
}

.page-hero {
    padding: 88px 0;
}

.page-hero > div,
.category-hero-content {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.page-hero h1,
.category-hero-content h1 {
    margin: 0 0 16px;
    font-size: clamp(2.4rem, 5vw, 4.8rem);
}

.page-hero p,
.category-hero-content p {
    width: min(760px, 100%);
    margin: 0;
    color: #cbd5e1;
    font-size: 1.08rem;
    line-height: 1.8;
}

.small-hero,
.rank-hero,
.search-hero {
    background:
        radial-gradient(circle at 78% 30%, rgba(34, 211, 238, 0.20), transparent 28%),
        linear-gradient(135deg, var(--slate-950), var(--slate-800));
}

.category-hero {
    min-height: 420px;
    display: grid;
    align-items: center;
    background-image: var(--hero-image);
    background-size: cover;
    background-position: center;
}

.category-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 18%, rgba(34, 211, 238, 0.22), transparent 32%),
        linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(15, 23, 42, 0.62));
}

.category-hero-search {
    margin-top: 30px;
    width: min(620px, 100%);
}

.filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 46px 0 28px;
}

.filter-bar h2 {
    margin: 0 0 4px;
    font-size: 2rem;
}

.filter-bar p {
    margin: 0;
    color: var(--slate-600);
}

.filter-bar input {
    width: min(420px, 100%);
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    outline: 0;
    padding: 13px 18px;
    background: #ffffff;
}

.filter-bar input:focus {
    border-color: var(--cyan-500);
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.12);
}

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

.category-overview-card {
    display: grid;
    grid-template-columns: 210px 1fr;
    gap: 22px;
    padding: 18px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-poster-stack {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}

.category-poster-stack img {
    width: 100%;
    height: 116px;
    object-fit: cover;
    border-radius: 12px;
    background: var(--slate-200);
}

.category-overview-card h2 {
    margin: 0 0 10px;
}

.category-overview-card p {
    color: var(--slate-600);
    line-height: 1.7;
}

.mini-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0 18px;
}

.mini-links a {
    color: var(--slate-700);
    background: var(--slate-100);
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 0.82rem;
}

.slim {
    padding: 10px 18px;
}

.ranking-list {
    display: grid;
    gap: 16px;
    padding-bottom: 36px;
}

.ranking-row {
    display: grid;
    grid-template-columns: 64px 112px 1fr auto;
    gap: 20px;
    align-items: center;
    padding: 14px;
}

.ranking-pos {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 17px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--gold-500), #ef4444);
    font-size: 1.05rem;
    font-weight: 900;
}

.ranking-cover img {
    width: 112px;
    height: 78px;
    border-radius: 14px;
    object-fit: cover;
    background: var(--slate-200);
}

.ranking-main h2 {
    margin: 0 0 8px;
    font-size: 1.2rem;
}

.ranking-main p {
    margin: 0 0 10px;
    color: var(--slate-600);
    line-height: 1.65;
}

.big-search {
    width: min(720px, 100%);
    margin-top: 28px;
}

.search-status {
    margin: 40px 0 24px;
    color: var(--slate-700);
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 16px 18px;
}

.mt-section {
    margin-top: 58px;
}

.breadcrumb {
    width: min(1280px, calc(100% - 32px));
    margin: 24px auto;
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    color: var(--slate-600);
    font-size: 0.94rem;
}

.breadcrumb a {
    color: var(--blue-600);
    font-weight: 700;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: var(--slate-950);
}

.detail-backdrop {
    position: absolute;
    inset: 0;
}

.detail-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(10px) scale(1.06);
    opacity: 0.42;
}

.detail-backdrop span {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.95), rgba(15, 23, 42, 0.72));
}

.detail-layout {
    position: relative;
    z-index: 2;
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 64px 0;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 46px;
    align-items: center;
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 3 / 4.2;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.35);
    background: var(--slate-800);
}

.detail-info h1 {
    margin: 0 0 20px;
    font-size: clamp(2.2rem, 5vw, 4.8rem);
    line-height: 1.08;
}

.detail-one-line {
    width: min(840px, 100%);
    margin: 0 0 26px;
    color: #e2e8f0;
    font-size: 1.15rem;
    line-height: 1.85;
}

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

.detail-meta-grid div {
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
}

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

.detail-meta-grid strong {
    color: #94a3b8;
    font-size: 0.76rem;
    margin-bottom: 6px;
}

.detail-meta-grid a {
    color: var(--cyan-400);
    font-weight: 800;
}

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

.detail-content {
    padding-top: 42px;
}

.player-card {
    overflow: hidden;
}

.player-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 20px;
    background: linear-gradient(90deg, var(--slate-950), var(--slate-800));
    color: #ffffff;
}

.player-heading span {
    color: var(--cyan-400);
    font-size: 0.82rem;
    font-weight: 800;
}

.player-heading h2 {
    margin: 4px 0 0;
}

.source-button {
    color: #ffffff;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.source-button.active {
    background: linear-gradient(90deg, var(--blue-600), var(--cyan-500));
}

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

.video-shell video {
    width: 100%;
    height: 100%;
    background: #000000;
}

.play-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    gap: 10px;
    color: #ffffff;
    border: 0;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.12), rgba(2, 6, 23, 0.72));
}

.play-overlay span {
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue-600), var(--cyan-500));
    box-shadow: 0 18px 42px rgba(6, 182, 212, 0.38);
    font-size: 2rem;
}

.play-overlay strong {
    font-size: 1.1rem;
}

.play-overlay.hidden {
    display: none;
}

.player-message {
    position: absolute;
    left: 18px;
    bottom: 18px;
    z-index: 4;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.72);
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 0.86rem;
    display: none;
}

.player-message.show {
    display: block;
}

.article-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 22px;
    margin-top: 28px;
}

.story-card {
    padding: 24px;
}

.story-card:nth-child(3) {
    grid-column: 1 / -1;
}

.story-card h2 {
    margin: 0 0 16px;
    font-size: 1.45rem;
}

.story-card p {
    color: var(--slate-700);
    line-height: 1.95;
    margin: 0;
    white-space: pre-line;
}

.rich-tags span,
.genre-tags span {
    color: var(--slate-800);
    background: var(--slate-100);
    border-color: #e2e8f0;
}

.site-footer {
    margin-top: 72px;
    color: #cbd5e1;
    background: linear-gradient(180deg, var(--slate-900), var(--slate-950));
}

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

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

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

.site-footer p {
    color: #94a3b8;
    line-height: 1.75;
}

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

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

.footer-bottom {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    color: #94a3b8;
    font-size: 0.9rem;
}

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

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

    .mobile-toggle {
        display: flex;
        margin-left: auto;
    }

    .header-search {
        display: none;
    }

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

    .rank-and-rec,
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .quick-search-panel {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    .hero-carousel {
        height: 620px;
    }

    .hero-content {
        justify-content: flex-end;
        padding-bottom: 88px;
    }

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

    .hero-control {
        display: none;
    }

    .quick-search-panel {
        margin-top: 0;
        width: 100%;
        border-radius: 0;
    }

    .quick-search-panel form,
    .big-search,
    .category-hero-search {
        flex-direction: column;
        align-items: stretch;
        border-radius: 18px;
    }

    .quick-search-panel input,
    .big-search input,
    .category-hero-search input {
        width: 100%;
    }

    .category-grid,
    .movie-grid,
    .large-grid,
    .compact-grid,
    .horizontal-list,
    .rank-and-rec,
    .category-overview-grid,
    .article-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .movie-card-horizontal,
    .category-overview-card,
    .detail-layout,
    .ranking-row {
        grid-template-columns: 1fr;
    }

    .detail-layout {
        gap: 26px;
    }

    .detail-poster {
        max-width: 270px;
    }

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

    .filter-bar,
    .player-heading,
    .footer-bottom {
        align-items: stretch;
        flex-direction: column;
    }

    .filter-bar input {
        width: 100%;
    }
}

@media (max-width: 560px) {
    .header-inner {
        height: 64px;
    }

    .brand-text small {
        display: none;
    }

    .brand-mark {
        width: 38px;
        height: 38px;
    }

    .hero-carousel {
        height: 560px;
    }

    .hero-tags,
    .detail-tags {
        display: none;
    }

    .category-covers {
        height: 96px;
    }

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

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

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

    .movie-title {
        font-size: 0.92rem;
        min-height: 40px;
    }

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

    .story-card {
        padding: 18px;
    }
}
