:root {
    --color-emerald: #059669;
    --color-emerald-dark: #047857;
    --color-teal: #0d9488;
    --color-slate-50: #f8fafc;
    --color-slate-100: #f1f5f9;
    --color-slate-200: #e2e8f0;
    --color-slate-300: #cbd5e1;
    --color-slate-500: #64748b;
    --color-slate-600: #475569;
    --color-slate-700: #334155;
    --color-slate-800: #1e293b;
    --color-slate-900: #0f172a;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 10px 25px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 18px 45px rgba(15, 23, 42, 0.14);
    --radius-lg: 16px;
    --radius-xl: 22px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--color-slate-50);
    color: var(--color-slate-800);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.narrow-container {
    width: min(860px, calc(100% - 32px));
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-slate-200);
    box-shadow: var(--shadow-sm);
}

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

.brand,
.footer-logo-row {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.brand-icon {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, var(--color-emerald), var(--color-teal));
    transition: transform 0.25s ease;
}

.brand:hover .brand-icon {
    transform: scale(1.06);
}

.brand-icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.brand-text {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--color-emerald), var(--color-teal));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
}

.desktop-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    font-size: 15px;
    color: var(--color-slate-700);
    font-weight: 600;
}

.nav-link {
    position: relative;
    padding: 6px 0;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-emerald);
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--color-emerald), var(--color-teal));
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

.nav-divider {
    width: 1px;
    height: 18px;
    background: var(--color-slate-200);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: var(--color-slate-700);
}

.mobile-panel {
    display: none;
    border-top: 1px solid var(--color-slate-200);
    background: #fff;
}

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

.mobile-nav {
    width: min(var(--container), calc(100% - 32px));
    margin: 0 auto;
    padding: 14px 0 18px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.mobile-link,
.mobile-nav .nav-link {
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--color-slate-50);
    color: var(--color-slate-700);
    font-weight: 600;
}

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

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

.hero-slide {
    opacity: 0;
    transition: opacity 1s ease;
    pointer-events: none;
}

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

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: linear-gradient(135deg, #111827, #065f46);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 72% 20%, rgba(16, 185, 129, 0.28), transparent 28%),
        linear-gradient(to top, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.48) 52%, rgba(0, 0, 0, 0.16));
}

.hero-content {
    position: absolute;
    inset: auto 0 0 0;
    width: min(var(--container), calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 56px;
}

.hero-copy {
    width: min(780px, 100%);
    color: #fff;
}

.hero-kicker,
.detail-kicker,
.sub-hero-content span,
.cta-panel span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: #a7f3d0;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 13px;
}

.hero-copy h1 {
    margin: 0 0 14px;
    font-size: clamp(34px, 5vw, 60px);
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -0.04em;
    text-shadow: 0 16px 36px rgba(0, 0, 0, 0.42);
}

.hero-copy p {
    margin: 0 0 18px;
    max-width: 700px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
}

.hero-meta,
.detail-meta,
.movie-meta-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.hero-meta {
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 700;
}

.hero-meta span,
.detail-meta span {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(8px);
}

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

.hero-tags {
    margin-bottom: 24px;
}

.hero-tags span,
.tag-row span,
.pill-row span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.13);
    color: var(--color-emerald-dark);
    font-size: 13px;
    font-weight: 700;
}

.hero-tags span {
    color: #d1fae5;
    background: rgba(16, 185, 129, 0.22);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--color-emerald), var(--color-teal));
    box-shadow: 0 14px 34px rgba(5, 150, 105, 0.28);
}

.btn-primary:hover {
    box-shadow: 0 18px 42px rgba(5, 150, 105, 0.34);
}

.btn-ghost {
    color: var(--color-slate-700);
    background: #fff;
    border-color: var(--color-slate-200);
}

.btn-glass {
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(10px);
}

.btn-lg {
    min-height: 48px;
    padding: 12px 24px;
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: rgba(15, 23, 42, 0.38);
    backdrop-filter: blur(10px);
    font-size: 36px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
    background: rgba(5, 150, 105, 0.78);
    transform: translateY(-50%) scale(1.04);
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

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

.hero-dot {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
    transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
    width: 30px;
    background: #fff;
}

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

.section-soft {
    background: linear-gradient(180deg, #fff, #f0fdfa);
}

.section-heading {
    margin-bottom: 24px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
}

.section-heading h2 {
    margin: 0;
    color: var(--color-slate-900);
    font-size: 28px;
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: -0.03em;
}

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

.section-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--color-emerald);
    font-weight: 800;
    white-space: nowrap;
}

.section-more span {
    transition: transform 0.2s ease;
}

.section-more:hover span {
    transform: translateX(4px);
}

.filter-panel {
    margin-bottom: 30px;
    padding: 18px;
    border: 1px solid var(--color-slate-200);
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-sm);
}

.filter-search-row {
    display: flex;
    gap: 12px;
}

.site-search,
.filter-controls select {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--color-slate-200);
    border-radius: 14px;
    background: #fff;
    color: var(--color-slate-800);
    outline: 0;
    padding: 0 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-search:focus,
.filter-controls select:focus {
    border-color: var(--color-emerald);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12);
}

.filter-controls {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.filter-count {
    margin: 12px 0 0;
    color: var(--color-slate-500);
    font-size: 14px;
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-md);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

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

.poster-wrap {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-slate-900), var(--color-emerald-dark));
}

.movie-card-compact .poster-wrap {
    aspect-ratio: 16 / 10;
}

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

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

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.62), transparent 48%);
    opacity: 0.85;
}

.poster-play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: rgba(5, 150, 105, 0.92);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.28);
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.rank-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    z-index: 3;
    min-width: 34px;
    height: 34px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    font-weight: 900;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

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

.movie-meta-line {
    margin-bottom: 8px;
    gap: 8px;
    color: var(--color-slate-500);
    font-size: 12px;
    font-weight: 800;
}

.movie-meta-line span + span::before {
    content: "•";
    margin-right: 8px;
    color: var(--color-slate-300);
}

.movie-card h3 {
    margin: 0 0 8px;
    color: var(--color-slate-900);
    font-size: 18px;
    line-height: 1.28;
    font-weight: 900;
}

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

.movie-card p {
    margin: 0 0 12px;
    color: var(--color-slate-600);
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tag-row span {
    background: var(--color-slate-100);
    color: var(--color-slate-600);
    font-size: 12px;
}

.two-column-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
    align-items: start;
}

.ranking-card,
.content-card,
.player-card,
.sticky-panel,
.static-page-card {
    border-radius: var(--radius-xl);
    background: #fff;
    box-shadow: var(--shadow-md);
}

.ranking-card {
    padding: 22px;
    position: sticky;
    top: 88px;
}

.ranking-head h2 {
    margin: 0;
    color: var(--color-slate-900);
    font-size: 24px;
    font-weight: 900;
}

.ranking-head p {
    margin: 6px 0 18px;
    color: var(--color-slate-500);
    font-size: 14px;
}

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

.ranking-item {
    display: grid;
    grid-template-columns: 34px 58px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 8px;
    border-radius: 14px;
    transition: background 0.2s ease;
}

.ranking-item:hover {
    background: var(--color-slate-50);
}

.ranking-number {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-emerald);
    background: #d1fae5;
    font-weight: 900;
}

.ranking-item img {
    width: 58px;
    height: 74px;
    border-radius: 10px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--color-slate-900), var(--color-emerald-dark));
}

.ranking-text {
    min-width: 0;
}

.ranking-text strong,
.ranking-text em {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ranking-text strong {
    color: var(--color-slate-900);
    font-size: 15px;
}

.ranking-text em {
    color: var(--color-slate-500);
    font-style: normal;
    font-size: 12px;
}

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

.category-tile {
    position: relative;
    min-height: 170px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    background: linear-gradient(135deg, var(--color-slate-900), var(--color-emerald-dark));
}

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

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

.category-tile-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.15));
}

.category-tile strong,
.category-tile em {
    position: absolute;
    left: 16px;
    right: 16px;
    color: #fff;
}

.category-tile strong {
    bottom: 42px;
    font-size: 20px;
    font-weight: 900;
}

.category-tile em {
    bottom: 18px;
    color: rgba(255, 255, 255, 0.76);
    font-style: normal;
    font-weight: 700;
}

.cta-panel {
    padding: 30px;
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    color: #fff;
    background:
        radial-gradient(circle at 86% 14%, rgba(45, 212, 191, 0.32), transparent 32%),
        linear-gradient(135deg, var(--color-slate-900), #064e3b);
    box-shadow: var(--shadow-lg);
}

.cta-panel h2 {
    margin: 0 0 8px;
    font-size: 30px;
    line-height: 1.2;
    font-weight: 900;
}

.cta-panel p {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
}

.sub-hero {
    position: relative;
    overflow: hidden;
    padding: 76px 0;
    color: #fff;
    background:
        radial-gradient(circle at 75% 22%, rgba(45, 212, 191, 0.24), transparent 28%),
        linear-gradient(135deg, #0f172a, #064e3b);
}

.sub-hero::after {
    content: "";
    position: absolute;
    inset: auto -10% -42% 42%;
    height: 240px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.18);
    filter: blur(44px);
}

.sub-hero-content {
    position: relative;
    z-index: 1;
    max-width: 760px;
}

.sub-hero-content h1 {
    margin: 0 0 12px;
    font-size: clamp(34px, 5vw, 54px);
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.sub-hero-content p {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--color-slate-500);
    font-weight: 700;
    font-size: 14px;
}

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

.breadcrumb-light {
    color: rgba(255, 255, 255, 0.78);
}

.breadcrumb-light a:hover {
    color: #a7f3d0;
}

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

.category-overview-card {
    overflow: hidden;
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    border-radius: var(--radius-xl);
    background: #fff;
    box-shadow: var(--shadow-md);
}

.category-cover-stack {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    min-height: 220px;
    background: linear-gradient(135deg, var(--color-slate-900), var(--color-emerald-dark));
}

.category-cover-stack img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-overview-body {
    padding: 24px;
}

.category-overview-body h2 {
    margin: 0 0 10px;
    color: var(--color-slate-900);
    font-size: 24px;
    font-weight: 900;
}

.category-overview-body p {
    margin: 0 0 14px;
    color: var(--color-slate-600);
}

.category-count {
    display: inline-flex;
    margin-bottom: 18px;
    padding: 5px 12px;
    border-radius: 999px;
    color: var(--color-emerald-dark);
    background: #d1fae5;
    font-weight: 800;
}

.detail-hero {
    position: relative;
    min-height: 520px;
    overflow: hidden;
    color: #fff;
    background: #000;
}

.detail-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(12px) scale(1.06);
    opacity: 0.72;
    background: linear-gradient(135deg, #111827, #065f46);
}

.detail-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 74% 26%, rgba(16, 185, 129, 0.25), transparent 30%),
        linear-gradient(to top, rgba(0, 0, 0, 0.94), rgba(0, 0, 0, 0.56));
}

.detail-hero-inner {
    position: relative;
    z-index: 1;
    padding: 46px 0 64px;
}

.detail-intro {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 34px;
    align-items: end;
}

.detail-poster {
    overflow: hidden;
    border-radius: var(--radius-xl);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.42);
    background: linear-gradient(135deg, #111827, #065f46);
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.detail-copy h1 {
    margin: 0 0 16px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.detail-copy p {
    max-width: 760px;
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
}

.detail-meta {
    margin-bottom: 24px;
    color: rgba(255, 255, 255, 0.86);
}

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

.detail-main {
    display: grid;
    gap: 24px;
}

.player-card {
    overflow: hidden;
}

.video-frame {
    position: relative;
    overflow: hidden;
    background: #000;
    aspect-ratio: 16 / 9;
}

.video-frame video {
    width: 100%;
    height: 100%;
    display: block;
    background: #000;
}

.big-play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 78px;
    height: 78px;
    border: 0;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, var(--color-emerald), var(--color-teal));
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.36);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.big-play span {
    margin-left: 4px;
    font-size: 28px;
}

.big-play:hover {
    transform: translate(-50%, -50%) scale(1.06);
}

.video-frame.is-playing .big-play {
    opacity: 0;
    pointer-events: none;
}

.player-loading {
    position: absolute;
    left: 18px;
    bottom: 18px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 999px;
    color: #fff;
    background: rgba(0, 0, 0, 0.48);
    backdrop-filter: blur(10px);
    font-size: 13px;
}

.player-loading span {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.35);
    border-top-color: var(--color-emerald);
    animation: spin 0.9s linear infinite;
}

.video-frame.is-ready .player-loading {
    display: none;
}

.player-error {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    color: #fff;
    text-align: center;
    background: rgba(0, 0, 0, 0.76);
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.player-info,
.content-card {
    padding: 24px;
}

.player-info h2,
.content-card h2,
.text-block h3,
.detail-tags-block h3 {
    margin: 0 0 12px;
    color: var(--color-slate-900);
    font-weight: 900;
}

.player-info p {
    margin: 0;
    color: var(--color-slate-500);
}

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

.info-grid div {
    padding: 14px;
    border-radius: 14px;
    background: var(--color-slate-50);
}

.info-grid dt {
    margin-bottom: 4px;
    color: var(--color-slate-500);
    font-size: 13px;
    font-weight: 800;
}

.info-grid dd {
    margin: 0;
    color: var(--color-slate-900);
    font-weight: 800;
}

.detail-tags-block,
.text-block {
    padding-top: 22px;
    margin-top: 22px;
    border-top: 1px solid var(--color-slate-200);
}

.pill-row span {
    background: #d1fae5;
}

.pill-muted span {
    background: var(--color-slate-100);
    color: var(--color-slate-700);
}

.text-block p {
    margin: 0;
    color: var(--color-slate-700);
    line-height: 1.9;
}

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

.sticky-panel {
    position: sticky;
    top: 88px;
    padding: 20px;
}

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

.side-card-list .movie-card {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    box-shadow: none;
    border: 1px solid var(--color-slate-200);
}

.side-card-list .poster-wrap {
    height: 100%;
    aspect-ratio: auto;
}

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

.side-card-list .movie-card h3 {
    font-size: 15px;
}

.side-card-list .movie-card p {
    font-size: 13px;
}

.static-page-card {
    padding: 30px;
}

.static-page-card p {
    margin: 0 0 16px;
    color: var(--color-slate-700);
    font-size: 17px;
}

.site-footer {
    background: var(--color-slate-900);
    color: var(--color-slate-300);
}

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

.footer-brand p {
    max-width: 520px;
    color: var(--color-slate-300);
}

.footer-logo-row strong {
    color: #fff;
    font-size: 20px;
}

.footer-column h2 {
    margin: 0 0 14px;
    color: #fff;
    font-size: 16px;
}

.footer-column a {
    display: block;
    margin-bottom: 9px;
    color: var(--color-slate-300);
    transition: color 0.2s ease;
}

.footer-column a:hover {
    color: #a7f3d0;
}

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

    .menu-toggle {
        display: flex;
    }

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

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

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

    .ranking-card,
    .sticky-panel {
        position: static;
    }

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

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

    .hero-content {
        padding-bottom: 58px;
    }

    .hero-copy p {
        font-size: 16px;
    }

    .hero-arrow {
        display: none;
    }

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

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

    .filter-search-row,
    .cta-panel {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-controls {
        grid-template-columns: 1fr;
    }

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

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

    .detail-intro {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .detail-poster {
        width: min(220px, 72vw);
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .side-card-list .movie-card {
        grid-template-columns: 104px minmax(0, 1fr);
    }
}

@media (max-width: 520px) {
    .container,
    .header-inner,
    .footer-inner,
    .mobile-nav {
        width: min(100% - 24px, var(--container));
    }

    .brand-text {
        font-size: 18px;
    }

    .mobile-nav {
        grid-template-columns: 1fr;
    }

    .hero-carousel {
        height: 590px;
    }

    .hero-meta,
    .detail-meta {
        gap: 8px;
        font-size: 13px;
    }

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

    .movie-card {
        border-radius: 18px;
    }

    .poster-wrap,
    .movie-card-compact .poster-wrap {
        aspect-ratio: 16 / 10;
    }

    .sub-hero {
        padding: 56px 0;
    }

    .detail-hero-inner {
        padding: 30px 0 48px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }
}
