:root {
    --bg: #f6f8fb;
    --bg-soft: #ffffff;
    --bg-dark: #0f172a;
    --text: #111827;
    --text-muted: #64748b;
    --line: rgba(15, 23, 42, 0.1);
    --primary: #10b981;
    --primary-dark: #059669;
    --secondary: #0f766e;
    --accent: #14b8a6;
    --danger: #ef4444;
    --shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
    --radius: 24px;
    --max: 1280px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 44%, #ecfeff 100%);
    font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 50;
    transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

.site-header-transparent {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0));
}

.site-header-solid,
.site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(16px);
}

.site-header-inner {
    width: min(100% - 32px, var(--max));
    height: 76px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.brand-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-grid;
    place-items: center;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 12px 30px rgba(16, 185, 129, 0.35);
}

.brand-text {
    display: grid;
    line-height: 1.1;
}

.brand-text strong {
    font-size: 20px;
    font-weight: 900;
}

.brand-text em {
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 12px;
    font-style: normal;
}

.site-header-solid .brand-text em,
.site-header.is-scrolled .brand-text em {
    color: var(--text-muted);
}

.site-header-transparent .brand-text strong,
.site-header-transparent .desktop-nav a,
.site-header-transparent .mobile-menu-button {
    color: #ffffff;
}

.site-header-solid .brand-text strong,
.site-header.is-scrolled .brand-text strong,
.site-header-solid .desktop-nav a,
.site-header.is-scrolled .desktop-nav a,
.site-header-solid .mobile-menu-button,
.site-header.is-scrolled .mobile-menu-button {
    color: var(--text);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link {
    padding: 10px 16px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 700;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff !important;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    transform: translateY(-1px);
}

.mobile-menu-button {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-button span {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    border-radius: 999px;
}

.mobile-nav {
    display: none;
    width: min(100% - 32px, var(--max));
    margin: 0 auto 16px;
    padding: 16px;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.mobile-nav a {
    display: block;
    padding: 12px 14px;
    border-radius: 12px;
    color: var(--text);
    font-weight: 700;
}

.mobile-nav a:hover {
    background: #ecfdf5;
    color: var(--primary-dark);
}

.mobile-nav.open {
    display: block;
}

.hero-slider {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background: radial-gradient(circle at 20% 20%, #14532d, #020617 52%, #000000 100%);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
}

.hero-image,
.hero-overlay {
    position: absolute;
    inset: 0;
}

.hero-image {
    background: linear-gradient(135deg, #064e3b, #0f172a);
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.05) contrast(1.05);
}

.hero-overlay {
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.62) 45%, rgba(0, 0, 0, 0.12)),
        linear-gradient(0deg, rgba(0, 0, 0, 0.92), transparent 44%, rgba(0, 0, 0, 0.28));
}

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

.hero-kicker {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.hero-kicker span,
.detail-kicker,
.section-heading span,
.page-hero span {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 7px 14px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.hero-kicker em {
    color: rgba(255, 255, 255, 0.78);
    font-style: normal;
    font-weight: 700;
}

.hero-content h1 {
    width: min(860px, 100%);
    margin: 0;
    color: #ffffff;
    font-size: clamp(42px, 7vw, 92px);
    line-height: 0.98;
    font-weight: 950;
    letter-spacing: -0.06em;
}

.hero-content p {
    width: min(760px, 100%);
    margin: 26px 0 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.8;
}

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

.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 7px 12px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.88);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    font-size: 13px;
    font-weight: 700;
}

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

.btn-primary,
.btn-ghost,
.text-link,
.category-overview-head a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 18px 42px rgba(16, 185, 129, 0.35);
}

.btn-ghost {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(16px);
}

.btn-primary:hover,
.btn-ghost:hover,
.text-link:hover,
.category-overview-head a:hover {
    transform: translateY(-2px);
}

.hero-controls {
    position: absolute;
    right: max(24px, calc((100vw - var(--max)) / 2));
    bottom: 48px;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 14px;
}

.hero-controls button {
    border: 0;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(14px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.hero-controls > button {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    font-size: 28px;
}

.hero-dots {
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 11px;
    height: 11px;
    padding: 0;
    border-radius: 50%;
    opacity: 0.5;
}

.hero-dot.active {
    width: 34px;
    border-radius: 999px;
    opacity: 1;
    background: var(--primary);
}

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

.section {
    padding: 82px 0;
}

.section-heading {
    max-width: 760px;
    margin: 0 auto 36px;
    text-align: center;
}

.section-heading.align-left {
    margin-left: 0;
    text-align: left;
}

.section-heading h2,
.page-hero h1,
.detail-info h1,
.content-page h2,
.detail-content h2,
.related-sidebar h2,
.channel-sidebar h2 {
    margin: 14px 0 0;
    color: var(--text);
    font-weight: 950;
    letter-spacing: -0.035em;
}

.section-heading h2 {
    font-size: clamp(30px, 4vw, 48px);
}

.section-heading p,
.page-hero p,
.category-overview-head p,
.content-page p,
.detail-content p,
.detail-info p {
    color: var(--text-muted);
    line-height: 1.9;
}

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

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

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

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

.movie-card {
    min-width: 0;
}

.movie-card-link {
    display: block;
    height: 100%;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border 0.22s ease;
}

.movie-card-link:hover {
    transform: translateY(-6px);
    border-color: rgba(16, 185, 129, 0.45);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
}

.poster-frame {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, #0f766e, #0f172a);
}

.movie-card-compact .poster-frame {
    aspect-ratio: 4 / 3;
}

.poster-frame img {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.poster-frame::after {
    content: "";
    position: absolute;
    z-index: 3;
    inset: auto 0 0;
    height: 55%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent);
}

.poster-fallback {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: grid;
    place-items: center;
    padding: 24px;
    color: rgba(255, 255, 255, 0.88);
    text-align: center;
    font-size: 22px;
    font-weight: 950;
}

.type-badge,
.rank-badge {
    position: absolute;
    z-index: 4;
    top: 14px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
}

.type-badge {
    right: 14px;
    padding: 6px 10px;
    background: rgba(16, 185, 129, 0.9);
}

.rank-badge {
    left: 14px;
    padding: 6px 10px;
    background: rgba(239, 68, 68, 0.92);
}

.play-mark {
    position: absolute;
    z-index: 4;
    right: 14px;
    bottom: 14px;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: var(--primary-dark);
    background: rgba(255, 255, 255, 0.92);
    opacity: 0;
    transform: scale(0.82);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.movie-card-link:hover .play-mark {
    opacity: 1;
    transform: scale(1);
}

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

.movie-card-meta,
.movie-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 800;
}

.movie-card h3 {
    display: -webkit-box;
    margin: 10px 0 8px;
    overflow: hidden;
    color: var(--text);
    font-size: 19px;
    line-height: 1.35;
    font-weight: 950;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-card p {
    display: -webkit-box;
    min-height: 48px;
    margin: 0 0 14px;
    overflow: hidden;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.7;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-card-footer span:first-child {
    color: var(--primary-dark);
}

.split-section {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 28px;
    padding: 82px 0;
}

.split-panel,
.category-overview-block,
.content-page,
.channel-sidebar,
.related-sidebar,
.detail-content,
.player-box {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
}

.split-panel {
    padding: 28px;
}

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

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

.mini-movie {
    display: grid;
    grid-template-columns: 82px 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 10px;
    border-radius: 18px;
    background: #f8fafc;
    transition: background 0.2s ease, transform 0.2s ease;
}

.mini-movie:hover {
    background: #ecfdf5;
    transform: translateX(4px);
}

.mini-cover {
    position: relative;
    height: 56px;
    overflow: hidden;
    border-radius: 14px;
    background: linear-gradient(135deg, #0f766e, #0f172a);
}

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

.mini-info {
    min-width: 0;
    display: grid;
    gap: 6px;
}

.mini-info strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 15px;
}

.mini-info em {
    overflow: hidden;
    color: var(--text-muted);
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
    font-style: normal;
}

.mini-rank {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    font-size: 12px;
    font-weight: 900;
}

.text-link,
.category-overview-head a {
    margin-top: 20px;
    color: var(--primary-dark);
    background: #ecfdf5;
}

.category-section {
    width: 100%;
    max-width: none;
    padding: 82px max(16px, calc((100vw - var(--max)) / 2));
    background: linear-gradient(135deg, #0f172a, #064e3b);
}

.category-section .section-heading h2,
.category-section .section-heading p {
    color: #ffffff;
}

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

.category-card {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    transition: transform 0.22s ease, background 0.22s ease;
}

.category-card:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.16);
}

.category-card-images {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    padding: 12px;
}

.category-card-images img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 12px;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.16);
}

.category-card-body {
    display: grid;
    gap: 8px;
    padding: 8px 18px 20px;
    color: #ffffff;
}

.category-card-body strong {
    font-size: 21px;
    font-weight: 950;
}

.category-card-body em,
.category-card-body span {
    color: rgba(255, 255, 255, 0.75);
    font-style: normal;
    line-height: 1.7;
}

.library-section {
    padding-bottom: 96px;
}

.filter-toolbar {
    position: sticky;
    top: 86px;
    z-index: 20;
    display: grid;
    grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(130px, 180px)) auto auto;
    gap: 12px;
    align-items: end;
    margin-bottom: 28px;
    padding: 16px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.1);
    backdrop-filter: blur(18px);
}

.filter-toolbar label {
    display: grid;
    gap: 7px;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 900;
}

.filter-toolbar input,
.filter-toolbar select {
    width: 100%;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 14px;
    color: var(--text);
    background: #ffffff;
    outline: none;
}

.filter-toolbar input:focus,
.filter-toolbar select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12);
}

.filter-toolbar button {
    min-height: 44px;
    padding: 0 16px;
    border: 0;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    font-weight: 900;
}

.filter-toolbar strong {
    color: var(--primary-dark);
    font-size: 13px;
    white-space: nowrap;
}

.page-main {
    padding-top: 112px;
}

.page-hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 34px;
    padding: 72px;
    border-radius: 32px;
    color: #ffffff;
    background:
        linear-gradient(135deg, rgba(0, 0, 0, 0.72), rgba(6, 78, 59, 0.7)),
        radial-gradient(circle at 85% 20%, rgba(20, 184, 166, 0.7), transparent 36%),
        linear-gradient(135deg, #020617, #064e3b);
    box-shadow: var(--shadow);
}

.page-hero h1 {
    color: #ffffff;
    font-size: clamp(38px, 6vw, 68px);
}

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

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

.category-overview-block {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 18px;
    padding: 24px;
}

.category-overview-head h2 {
    margin: 10px 0;
    font-size: 30px;
}

.channel-layout,
.detail-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 28px;
    align-items: start;
    padding-bottom: 90px;
}

.channel-sidebar,
.related-sidebar {
    position: sticky;
    top: 104px;
    padding: 22px;
}

.channel-sidebar h2,
.related-sidebar h2 {
    margin: 0 0 18px;
    font-size: 24px;
}

.ranking-page-section {
    padding-bottom: 90px;
}

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

.ranking-row a {
    display: grid;
    grid-template-columns: 76px 104px 1fr 96px;
    gap: 18px;
    align-items: center;
    padding: 14px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.07);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.ranking-row a:hover {
    transform: translateY(-3px);
    border-color: rgba(16, 185, 129, 0.45);
}

.ranking-number {
    color: var(--primary-dark);
    font-size: 24px;
    font-weight: 950;
    text-align: center;
}

.ranking-cover {
    height: 68px;
    overflow: hidden;
    border-radius: 16px;
    background: linear-gradient(135deg, #0f766e, #0f172a);
}

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

.ranking-info {
    min-width: 0;
    display: grid;
    gap: 6px;
}

.ranking-info strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 20px;
    font-weight: 950;
}

.ranking-info em,
.ranking-info small {
    overflow: hidden;
    color: var(--text-muted);
    text-overflow: ellipsis;
    white-space: nowrap;
    font-style: normal;
}

.ranking-score {
    display: grid;
    justify-items: end;
    gap: 4px;
}

.ranking-score strong {
    color: var(--primary-dark);
    font-size: 26px;
    font-weight: 950;
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    padding: 104px 0 22px;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 700;
}

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

.detail-hero {
    display: grid;
    grid-template-columns: 310px 1fr;
    gap: 34px;
    align-items: center;
    margin-bottom: 32px;
    padding: 34px;
    border-radius: 32px;
    color: #ffffff;
    background:
        linear-gradient(120deg, rgba(2, 6, 23, 0.96), rgba(6, 78, 59, 0.9)),
        radial-gradient(circle at 85% 20%, rgba(20, 184, 166, 0.55), transparent 36%);
    box-shadow: var(--shadow);
}

.detail-poster {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    border-radius: 26px;
    background: linear-gradient(135deg, #0f766e, #0f172a);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
}

.detail-poster img {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-poster span {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: grid;
    place-items: center;
    padding: 28px;
    color: #ffffff;
    text-align: center;
    font-size: 26px;
    font-weight: 950;
}

.detail-info h1 {
    max-width: 860px;
    color: #ffffff;
    font-size: clamp(38px, 5vw, 70px);
}

.detail-info p {
    max-width: 860px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
}

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

.detail-meta-grid span {
    display: grid;
    gap: 5px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.88);
}

.detail-meta-grid strong {
    color: rgba(255, 255, 255, 0.58);
    font-size: 12px;
}

.player-section {
    margin-bottom: 32px;
}

.player-box {
    position: relative;
    overflow: hidden;
    padding: 0;
    background: #000000;
    aspect-ratio: 16 / 9;
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 12px;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.62));
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-overlay span {
    display: grid;
    place-items: center;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    color: var(--primary-dark);
    background: rgba(255, 255, 255, 0.94);
    font-size: 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.player-overlay strong {
    font-size: 18px;
}

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

.player-status {
    position: absolute;
    right: 16px;
    bottom: 12px;
    left: 16px;
    z-index: 4;
    margin: 0;
    color: rgba(255, 255, 255, 0.75);
    font-size: 13px;
    text-align: center;
    pointer-events: none;
}

.detail-content {
    display: grid;
    gap: 28px;
    padding: 32px;
}

.detail-content h2,
.content-page h2 {
    margin-top: 0;
    font-size: 28px;
}

.detail-content p,
.content-page p {
    margin: 12px 0 0;
    font-size: 16px;
}

.detail-content .tag-row span {
    color: var(--primary-dark);
    border-color: rgba(16, 185, 129, 0.18);
    background: #ecfdf5;
}

.content-page {
    max-width: 940px;
    margin: 0 auto 90px;
    padding: 36px;
}

.site-footer {
    margin-top: 40px;
    color: rgba(255, 255, 255, 0.82);
    background: #020617;
}

.footer-grid {
    width: min(100% - 32px, var(--max));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 36px;
    padding: 56px 0;
}

.footer-brand {
    color: #ffffff;
    font-size: 22px;
    font-weight: 950;
}

.site-footer h2 {
    margin: 0 0 16px;
    color: #ffffff;
    font-size: 16px;
}

.site-footer p,
.site-footer li {
    color: rgba(255, 255, 255, 0.66);
    line-height: 1.8;
}

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

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

.footer-bottom {
    width: min(100% - 32px, var(--max));
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.55);
    font-size: 13px;
}

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

@media (max-width: 1100px) {
    .movie-grid,
    .all-movie-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

    .split-section,
    .channel-layout,
    .detail-layout,
    .category-overview-block,
    .detail-hero {
        grid-template-columns: 1fr;
    }

    .channel-sidebar,
    .related-sidebar {
        position: static;
    }

    .detail-poster {
        width: min(320px, 100%);
    }

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

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

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

    .site-header-inner {
        height: 66px;
    }

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

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

    .hero-content {
        padding-top: 110px;
        padding-bottom: 90px;
    }

    .hero-controls {
        right: 16px;
        bottom: 22px;
    }

    .section,
    .split-section {
        padding: 54px 0;
    }

    .movie-grid,
    .featured-grid,
    .latest-grid,
    .related-grid,
    .all-movie-grid,
    .category-grid,
    .category-overview-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .page-main {
        padding-top: 88px;
    }

    .page-hero,
    .detail-hero,
    .detail-content,
    .content-page {
        padding: 24px;
        border-radius: 24px;
    }

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

    .ranking-row a {
        grid-template-columns: 56px 1fr;
    }

    .ranking-cover,
    .ranking-score {
        display: none;
    }

    .filter-toolbar {
        position: static;
        grid-template-columns: 1fr;
    }

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