:root {
    --color-bg: #f8fafc;
    --color-text: #111827;
    --color-muted: #6b7280;
    --color-line: #e5e7eb;
    --color-card: #ffffff;
    --color-slate: #0f172a;
    --color-slate-soft: #1e293b;
    --color-red: #ef4444;
    --color-orange: #f97316;
    --color-cyan: #06b6d4;
    --color-blue: #2563eb;
    --color-green: #10b981;
    --shadow-sm: 0 10px 25px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 18px 45px rgba(15, 23, 42, 0.14);
    --shadow-lg: 0 30px 80px rgba(15, 23, 42, 0.25);
    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 28px;
    --max-width: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

body.menu-open {
    overflow: hidden;
}

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

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

button,
input,
select {
    font: inherit;
}

.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;
    color: #ffffff;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.97), rgba(15, 23, 42, 0.98));
    box-shadow: 0 12px 30px rgba(2, 6, 23, 0.32);
    backdrop-filter: blur(14px);
}

.nav-container {
    max-width: var(--max-width);
    height: 68px;
    margin: 0 auto;
    padding: 0 22px;
    display: flex;
    align-items: center;
    gap: 24px;
}

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

.brand-icon {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #ffffff;
    font-size: 14px;
    background: linear-gradient(135deg, var(--color-red), var(--color-orange));
    box-shadow: 0 12px 24px rgba(239, 68, 68, 0.35);
}

.brand-name {
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(90deg, #fb7185, #fb923c);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
}

.desktop-nav a {
    color: rgba(255, 255, 255, 0.88);
    transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover {
    color: #f87171;
    transform: translateY(-1px);
}

.nav-search {
    margin-left: auto;
    display: flex;
    align-items: center;
    position: relative;
}

.nav-search input {
    width: 230px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 999px;
    color: #ffffff;
    background: rgba(51, 65, 85, 0.9);
    padding: 10px 42px 10px 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, width 0.2s ease;
}

.nav-search input:focus {
    width: 270px;
    border-color: rgba(248, 113, 113, 0.8);
    box-shadow: 0 0 0 4px rgba(248, 113, 113, 0.14);
}

.nav-search button {
    position: absolute;
    right: 8px;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    cursor: pointer;
    background: linear-gradient(135deg, var(--color-red), var(--color-orange));
}

.mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    padding: 10px;
    border: 0;
    border-radius: 12px;
    background: rgba(51, 65, 85, 0.85);
    cursor: pointer;
}

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

.mobile-menu {
    display: none;
    padding: 14px 22px 22px;
    background: rgba(15, 23, 42, 0.98);
    border-top: 1px solid rgba(148, 163, 184, 0.2);
}

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

.mobile-menu form {
    display: flex;
    gap: 8px;
}

.mobile-menu input {
    min-width: 0;
    flex: 1;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 12px;
    color: #ffffff;
    background: rgba(51, 65, 85, 0.9);
    padding: 10px 12px;
}

.mobile-menu button,
.mobile-menu a {
    border: 0;
    border-radius: 12px;
    color: #ffffff;
    background: rgba(51, 65, 85, 0.8);
    padding: 10px 12px;
}

.content-container,
.hero-container,
.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 22px;
}

.hero-section {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: radial-gradient(circle at 20% 20%, rgba(8, 145, 178, 0.34), transparent 30%), linear-gradient(135deg, #0f172a, #172554 52%, #164e63);
    padding: 92px 0;
}

.hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.2;
    background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.28) 1px, transparent 0);
    background-size: 34px 34px;
}

.hero-container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(460px, 1.08fr);
    gap: 44px;
    align-items: center;
}

.hero-copy h1,
.page-hero h1,
.detail-info h1 {
    margin: 0;
    font-size: clamp(38px, 6vw, 66px);
    line-height: 1.05;
    letter-spacing: -0.055em;
}

.hero-copy h1 {
    max-width: 780px;
    background: linear-gradient(90deg, #67e8f9, #bfdbfe, #ffffff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-copy p,
.page-hero p,
.detail-info p {
    max-width: 720px;
    margin: 22px 0 0;
    color: rgba(224, 242, 254, 0.88);
    font-size: 20px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: #67e8f9;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.13em;
    font-size: 12px;
}

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

.primary-button,
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border-radius: 14px;
    padding: 0 20px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
    color: #ffffff;
    background: linear-gradient(135deg, #ef4444, #f97316);
    box-shadow: 0 18px 35px rgba(239, 68, 68, 0.28);
}

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

.primary-button:hover,
.ghost-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 42px rgba(15, 23, 42, 0.22);
}

.hero-search {
    width: min(100%, 620px);
    display: flex;
    gap: 10px;
    padding: 8px;
    margin-top: 30px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.48);
    backdrop-filter: blur(16px);
}

.hero-search input {
    min-width: 0;
    flex: 1;
    border: 0;
    color: #ffffff;
    background: transparent;
    padding: 0 14px;
    outline: none;
}

.hero-search button,
.search-panel button {
    border: 0;
    border-radius: 14px;
    color: #ffffff;
    font-weight: 800;
    padding: 12px 18px;
    cursor: pointer;
    background: linear-gradient(135deg, var(--color-cyan), var(--color-blue));
}

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

.hero-card,
.category-tile,
.overview-card,
.podium-card {
    position: relative;
    overflow: hidden;
    min-height: 220px;
    border-radius: 22px;
    background: linear-gradient(135deg, #334155, #0f172a);
    box-shadow: var(--shadow-lg);
    isolation: isolate;
    transform: translateZ(0);
}

.hero-card:nth-child(1) {
    grid-row: span 2;
    min-height: 460px;
}

.hero-card img,
.category-tile img,
.overview-card img,
.podium-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, opacity 0.2s ease;
}

.hero-card:hover img,
.category-tile:hover img,
.overview-card:hover img,
.podium-card:hover img,
.movie-card:hover img {
    transform: scale(1.08);
}

.poster-frame.is-missing-image img,
.hero-card.is-missing-image img,
.category-tile.is-missing-image img,
.overview-card.is-missing-image img,
.podium-card.is-missing-image img {
    opacity: 0;
}

.poster-frame.is-missing-image::before,
.hero-card.is-missing-image::before,
.category-tile.is-missing-image::before,
.overview-card.is-missing-image::before,
.podium-card.is-missing-image::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(34, 211, 238, 0.5), transparent 32%), linear-gradient(135deg, #1e293b, #0f172a);
    z-index: -1;
}

.hero-card-shade,
.category-tile-shade,
.overview-card-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.18) 55%, rgba(0, 0, 0, 0.04));
}

.hero-card-play,
.play-hover {
    position: absolute;
    top: 50%;
    left: 50%;
    display: inline-flex;
    width: 58px;
    height: 58px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(16px);
    transform: translate(-50%, -50%) scale(0.85);
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.hero-card-content,
.category-tile strong,
.category-tile small,
.category-tile-label {
    position: absolute;
    left: 18px;
    right: 18px;
    z-index: 1;
}

.hero-card-content {
    bottom: 18px;
}

.hero-card-content strong,
.category-tile strong {
    display: block;
    color: #ffffff;
    font-size: 18px;
    line-height: 1.35;
}

.hero-card-content em,
.category-tile small {
    display: block;
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.72);
    font-style: normal;
    font-size: 13px;
}

.content-section {
    padding: 72px 0;
}

.white-section {
    background: #ffffff;
}

.soft-section {
    background: linear-gradient(135deg, #f8fafc, #eff6ff);
}

.warm-section {
    background: linear-gradient(135deg, #fff7ed, #fff1f2);
}

.dark-section {
    color: #ffffff;
    background: linear-gradient(135deg, #581c87, #701a75, #0f172a);
}

.section-title-row,
.filter-panel {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 30px;
}

.section-title-row h2,
.filter-panel h2,
.split-layout h2,
.article-card h2,
.player-side h2 {
    margin: 0;
    color: #111827;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.15;
    letter-spacing: -0.035em;
}

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

.section-title-row p,
.filter-panel p {
    margin: 8px 0 0;
    color: var(--color-muted);
}

.section-more {
    color: #059669;
    font-weight: 800;
}

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

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

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

.movie-card {
    min-width: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--color-card);
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.movie-card-link {
    display: grid;
    height: 100%;
}

.poster-frame {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    isolation: isolate;
}

.movie-card .poster-frame img,
.detail-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.42s ease, opacity 0.2s ease;
}

.category-badge,
.duration-badge,
.rank-badge {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    padding: 8px 10px;
}

.category-badge {
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, var(--color-red), var(--color-orange));
}

.duration-badge {
    right: 12px;
    bottom: 12px;
    background: rgba(15, 23, 42, 0.78);
    backdrop-filter: blur(12px);
}

.rank-badge {
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    box-shadow: 0 12px 24px rgba(239, 68, 68, 0.3);
}

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

.movie-card-body h3 {
    margin: 0 0 8px;
    color: #111827;
    font-size: 17px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.movie-card:hover h3 {
    color: #ea580c;
}

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

.movie-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: #64748b;
    font-size: 12px;
}

.mini-tags,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.tag,
.tag-small,
.stat-chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, #cffafe, #dbeafe);
    color: #0e7490;
    font-weight: 700;
}

.tag {
    padding: 8px 12px;
}

.tag-small {
    padding: 6px 8px;
    font-size: 12px;
}

.movie-card-wide .movie-card-link {
    grid-template-columns: 210px minmax(0, 1fr);
}

.movie-card-wide .poster-frame {
    aspect-ratio: auto;
    min-height: 100%;
}

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

.category-tile {
    min-height: 300px;
}

.category-tile-label {
    top: 18px;
    right: auto;
    width: fit-content;
    border-radius: 999px;
    color: #111827;
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 800;
}

.category-tile strong {
    bottom: 44px;
}

.category-tile small {
    bottom: 22px;
}

.split-layout {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 46px;
    align-items: center;
}

.ranking-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ranking-list a {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    transition: transform 0.2s ease, background 0.2s ease;
}

.ranking-list a:hover {
    transform: translateX(4px);
    background: rgba(255, 255, 255, 0.16);
}

.ranking-number {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.ranking-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 800;
}

.ranking-score {
    color: #fde68a;
    font-weight: 800;
}

.page-hero {
    color: #ffffff;
    background: radial-gradient(circle at 12% 22%, rgba(239, 68, 68, 0.28), transparent 30%), linear-gradient(135deg, #dc2626, #ea580c);
    padding: 76px 0;
}

.compact-page-hero {
    background: linear-gradient(135deg, #0f172a, #1e40af, #0e7490);
}

.ranking-hero {
    background: radial-gradient(circle at 20% 20%, rgba(251, 191, 36, 0.25), transparent 32%), linear-gradient(135deg, #0f172a, #7f1d1d, #ea580c);
}

.page-hero h1 {
    max-width: 840px;
}

.overview-card {
    min-height: 320px;
}

.overview-card div {
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 22px;
    z-index: 1;
    color: #ffffff;
}

.overview-card strong {
    display: block;
    font-size: 24px;
    margin-bottom: 8px;
}

.overview-card p {
    margin: 0 0 10px;
    color: rgba(255, 255, 255, 0.78);
}

.overview-card span {
    display: inline-flex;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.17);
    padding: 7px 10px;
    font-size: 13px;
    font-weight: 800;
}

.chip-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.stat-chip {
    gap: 10px;
    padding: 10px 14px;
    background: #ffffff;
    color: #111827;
    box-shadow: var(--shadow-sm);
}

.stat-chip span {
    min-width: 28px;
    border-radius: 999px;
    color: #ffffff;
    text-align: center;
    background: linear-gradient(135deg, var(--color-cyan), var(--color-blue));
    padding: 2px 8px;
}

.filter-panel {
    align-items: center;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-lg);
    background: #ffffff;
    box-shadow: var(--shadow-sm);
    padding: 24px;
}

.filter-panel label,
.search-panel label {
    display: grid;
    gap: 8px;
    color: #475569;
    font-weight: 800;
}

.filter-panel input,
.search-panel input,
.search-panel select {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    background: #ffffff;
    color: #111827;
    padding: 12px 14px;
    outline: none;
}

.filter-panel input:focus,
.search-panel input:focus,
.search-panel select:focus {
    border-color: var(--color-cyan);
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.14);
}

.empty-state,
.search-summary {
    margin: 24px 0;
    border-radius: 18px;
    color: #475569;
    background: #f8fafc;
    padding: 18px 20px;
    text-align: center;
}

.search-panel {
    display: grid;
    grid-template-columns: minmax(240px, 1.6fr) repeat(3, minmax(150px, 1fr)) auto;
    gap: 16px;
    align-items: end;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-lg);
    background: #ffffff;
    box-shadow: var(--shadow-sm);
    padding: 22px;
}

.search-panel button {
    min-height: 50px;
}

.podium-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 32px;
}

.podium-card {
    min-height: 330px;
    display: flex;
    align-items: flex-end;
    padding: 22px;
}

.podium-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.06));
}

.podium-card img {
    position: absolute;
    inset: 0;
}

.podium-card strong,
.podium-card em,
.podium-rank {
    position: relative;
    z-index: 1;
}

.podium-card strong {
    display: block;
    color: #ffffff;
    font-size: 24px;
    line-height: 1.25;
}

.podium-card em {
    display: block;
    margin-top: 6px;
    color: #fde68a;
    font-style: normal;
    font-weight: 800;
}

.podium-rank {
    position: absolute;
    top: 18px;
    left: 18px;
    border-radius: 999px;
    color: #111827;
    background: #fef3c7;
    padding: 8px 12px;
    font-weight: 900;
}

.detail-hero {
    position: relative;
    color: #ffffff;
    background: #0f172a;
    overflow: hidden;
}

.detail-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--detail-poster);
    background-size: cover;
    background-position: center;
    filter: blur(26px) saturate(1.15);
    transform: scale(1.08);
    opacity: 0.3;
}

.detail-hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0.92));
}

.detail-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    gap: 42px;
    align-items: center;
    padding-top: 72px;
    padding-bottom: 72px;
}

.detail-poster {
    aspect-ratio: 3 / 4;
    border-radius: 26px;
    box-shadow: var(--shadow-lg);
}

.detail-info h1 {
    max-width: 900px;
}

.detail-info p {
    font-size: 19px;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.detail-meta span {
    display: inline-flex;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.88);
    padding: 8px 12px;
    font-weight: 800;
    backdrop-filter: blur(10px);
}

.player-section {
    background: #0b1120;
}

.player-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 24px;
    align-items: start;
}

.player-box {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #000000;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 16 / 9;
}

.movie-player {
    width: 100%;
    height: 100%;
    display: block;
    background: #000000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    color: #ffffff;
    cursor: pointer;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(15, 23, 42, 0.2));
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-overlay span {
    width: 72px;
    height: 72px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--color-red), var(--color-orange));
    box-shadow: 0 18px 40px rgba(239, 68, 68, 0.42);
}

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

.player-overlay em {
    color: rgba(255, 255, 255, 0.72);
    font-style: normal;
}

.player-side {
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 24px;
    color: #e2e8f0;
    background: rgba(15, 23, 42, 0.86);
    padding: 22px;
}

.player-side h2 {
    color: #ffffff;
    font-size: 24px;
}

.player-side p {
    color: #94a3b8;
}

.source-list {
    display: grid;
    gap: 10px;
    margin: 18px 0;
}

.source-button {
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 14px;
    color: #e2e8f0;
    background: rgba(51, 65, 85, 0.72);
    cursor: pointer;
    padding: 12px;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.source-button.active,
.source-button:hover {
    border-color: rgba(34, 211, 238, 0.75);
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.9), rgba(37, 99, 235, 0.9));
}

.info-list {
    display: grid;
    gap: 12px;
    margin: 0;
}

.info-list div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
    padding-top: 12px;
}

.info-list dt {
    color: #94a3b8;
}

.info-list dd {
    margin: 0;
    text-align: right;
    font-weight: 800;
}

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

.article-card {
    border: 1px solid var(--color-line);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--shadow-sm);
    padding: 28px;
}

.article-card h2 {
    font-size: 28px;
    margin-bottom: 14px;
}

.article-card p {
    margin: 0;
    color: #475569;
    white-space: pre-line;
}

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

.footer-container {
    padding-top: 52px;
    padding-bottom: 26px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.35fr repeat(3, 1fr);
    gap: 34px;
}

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

.site-footer p,
.site-footer li {
    color: #9ca3af;
    font-size: 14px;
}

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

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

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 14px;
    margin-top: 34px;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
    padding-top: 18px;
    color: #94a3b8;
    font-size: 13px;
}

.footer-count {
    margin-top: 10px;
}

.back-to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-red), var(--color-orange));
    box-shadow: var(--shadow-md);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.back-to-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

@media (max-width: 1180px) {
    .desktop-nav {
        gap: 14px;
        font-size: 14px;
    }

    .nav-search input {
        width: 190px;
    }

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

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

    .mobile-menu-button {
        display: block;
        margin-left: auto;
    }

    .hero-container,
    .split-layout,
    .player-layout,
    .detail-hero-grid,
    .detail-content-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-grid,
    .movie-grid,
    .two-column-grid,
    .all-movie-grid,
    .category-tile-grid,
    .overview-grid,
    .podium-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-card:nth-child(1) {
        grid-row: auto;
        min-height: 260px;
    }

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

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

@media (max-width: 640px) {
    .nav-container,
    .content-container,
    .hero-container,
    .footer-container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .hero-section,
    .page-hero {
        padding: 58px 0;
    }

    .content-section {
        padding: 52px 0;
    }

    .hero-grid,
    .movie-grid,
    .two-column-grid,
    .all-movie-grid,
    .category-tile-grid,
    .overview-grid,
    .podium-grid,
    .search-panel {
        grid-template-columns: 1fr;
    }

    .hero-card,
    .category-tile,
    .overview-card,
    .podium-card {
        min-height: 245px;
    }

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

    .hero-search {
        display: grid;
    }

    .filter-panel {
        display: grid;
    }

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

    .footer-bottom {
        display: grid;
    }
}
