:root {
    --cyan: #06b6d4;
    --sky: #0ea5e9;
    --blue: #2563eb;
    --ink: #1f2937;
    --muted: #6b7280;
    --soft: #f0f9ff;
    --line: #e5e7eb;
    --card: #ffffff;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--ink);
    background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 42%, #f8fafc 100%);
    min-height: 100vh;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, rgba(6, 182, 212, 0.96), rgba(37, 99, 235, 0.96), rgba(14, 165, 233, 0.96));
    box-shadow: 0 12px 35px rgba(14, 116, 144, 0.22);
    backdrop-filter: blur(14px);
}

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

.logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.logo {
    color: #ffffff;
    white-space: nowrap;
}

.logo-mark {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    font-size: 24px;
    box-shadow: 0 8px 24px rgba(8, 47, 73, 0.15);
}

.logo-text {
    font-size: 21px;
}

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

.desktop-nav > a,
.nav-dropdown > a {
    color: #ffffff;
    font-weight: 650;
    padding: 20px 0;
    transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav .is-active {
    color: #fef3c7;
}

.nav-dropdown {
    position: relative;
}

.dropdown-panel {
    position: absolute;
    top: 54px;
    left: -16px;
    width: 210px;
    display: grid;
    gap: 2px;
    padding: 10px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-dropdown:hover .dropdown-panel {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.dropdown-panel a {
    color: #334155;
    padding: 10px 12px;
    border-radius: 10px;
    font-weight: 600;
}

.dropdown-panel a:hover {
    background: #e0f2fe;
    color: #0369a1;
}

.header-search {
    position: relative;
    width: 250px;
}

.header-search input {
    width: 100%;
    border: 0;
    outline: 0;
    padding: 11px 42px 11px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    color: #0f172a;
}

.header-search button {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 50%;
    background: #e0f2fe;
    color: #0369a1;
}

.menu-toggle {
    display: none;
    margin-left: auto;
    border: 0;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    padding: 9px 12px;
}

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

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

.mobile-menu a,
.mobile-menu button {
    display: block;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.95);
    padding: 11px 14px;
    color: #0f172a;
    font-weight: 650;
}

.mobile-menu form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
}

.mobile-menu input {
    border: 0;
    border-radius: 12px;
    padding: 11px 14px;
}

.hero {
    position: relative;
    min-height: 500px;
    height: min(72vh, 620px);
    overflow: hidden;
    background: #0f172a;
}

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

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

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    filter: saturate(1.05);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(3, 7, 18, 0.86) 0%, rgba(8, 47, 73, 0.68) 42%, rgba(14, 165, 233, 0.30) 100%), linear-gradient(0deg, rgba(240, 249, 255, 1) 0%, rgba(240, 249, 255, 0) 32%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    height: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: center;
    gap: 44px;
}

.hero-copy {
    color: #ffffff;
    max-width: 760px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #e0f2fe;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
    margin: 18px 0 14px;
    font-size: clamp(38px, 6vw, 68px);
    line-height: 1.04;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.hero p,
.page-hero p {
    margin: 0;
    max-width: 720px;
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.88);
}

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

.hero-tags {
    margin: 24px 0 28px;
}

.hero-tags span,
.tag-cloud span,
.card-tags span {
    border-radius: 999px;
    padding: 7px 11px;
    background: rgba(255, 255, 255, 0.17);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
}

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

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

.primary-button {
    color: #0369a1;
    background: #ffffff;
    box-shadow: 0 16px 35px rgba(255, 255, 255, 0.18);
}

.secondary-button {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.26);
}

.primary-button:hover,
.secondary-button:hover {
    transform: translateY(-2px) scale(1.02);
}

.hero-poster {
    position: relative;
    display: block;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 30px 90px rgba(2, 6, 23, 0.48);
    transform: rotate(2deg);
}

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

.hero-poster span {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 72px;
    height: 72px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--blue);
    font-size: 30px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.22);
}

.hero-controls {
    position: absolute;
    z-index: 4;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(12px);
}

.hero-controls button {
    border: 0;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    width: 34px;
    height: 34px;
    font-size: 22px;
    line-height: 1;
}

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

.hero-dots button {
    width: 9px;
    height: 9px;
    padding: 0;
    background: rgba(255, 255, 255, 0.5);
}

.hero-dots button.is-active {
    width: 28px;
    background: #ffffff;
}

.quick-search-panel {
    width: min(1080px, calc(100% - 32px));
    margin: -34px auto 52px;
    position: relative;
    z-index: 8;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
    padding: 18px;
}

.quick-search-panel form,
.page-search {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
}

.quick-search-panel input,
.page-search input,
.filter-panel input,
.filter-panel select {
    width: 100%;
    border: 1px solid #dbeafe;
    outline: 0;
    border-radius: 999px;
    padding: 13px 18px;
    color: #0f172a;
    background: #f8fafc;
}

.quick-search-panel button,
.page-search button,
.filter-panel button {
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(90deg, var(--cyan), var(--blue));
    font-weight: 800;
    padding: 0 22px;
}

.quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.quick-links a,
.text-link {
    color: #0369a1;
    background: #e0f2fe;
    padding: 8px 12px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 14px;
}

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

.tinted-section {
    border-radius: 32px;
    padding: 28px;
}

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

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

.rose-section {
    background: linear-gradient(135deg, #fdf2f8, #fff1f2, #eef2ff);
}

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

.section-heading span:first-child {
    font-size: 26px;
}

.section-heading h2 {
    margin: 0 auto 0 0;
    font-size: clamp(25px, 3vw, 34px);
    font-weight: 900;
    color: #1f2937;
}

.section-heading a {
    color: #0369a1;
    font-weight: 800;
}

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

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

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

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

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

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

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

.card-cover {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #e0f2fe;
}

.poster-grid .card-cover,
.editor-grid .card-cover {
    aspect-ratio: 3 / 4;
}

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

.movie-card a:hover .card-cover img,
.mini-card:hover img,
.spotlight-card:hover img {
    transform: scale(1.07);
}

.cover-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.70), transparent 55%);
}

.play-pill {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.93);
    color: var(--blue);
    font-weight: 900;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.cover-meta {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 10px;
    display: flex;
    justify-content: space-between;
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
}

.card-body {
    padding: 16px;
}

.card-category {
    display: inline-block;
    margin-bottom: 10px;
    padding: 5px 10px;
    border-radius: 999px;
    color: #0369a1;
    background: linear-gradient(90deg, #e0f2fe, #cffafe);
    font-size: 12px;
    font-weight: 800;
}

.card-body h3 {
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 48px;
    font-size: 17px;
    line-height: 1.4;
    color: #1f2937;
}

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

.card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
}

.card-tags span {
    color: #475569;
    background: #f1f5f9;
    margin-top: 10px;
}

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

.movie-card-wide a {
    display: grid;
    grid-template-columns: 210px 1fr;
}

.movie-card-wide .wide-cover {
    height: 100%;
    min-height: 180px;
    aspect-ratio: auto;
}

.category-grid,
.category-overview-grid,
.spotlight-grid {
    display: grid;
    gap: 22px;
}

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

.category-card,
.category-overview-card {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    padding: 22px;
    color: #ffffff;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.13);
}

.category-card::before,
.category-overview-card::before,
.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 15%, rgba(255, 255, 255, 0.34), transparent 28%), radial-gradient(circle at 90% 20%, rgba(255, 255, 255, 0.20), transparent 24%);
    pointer-events: none;
}

.category-main-link,
.category-overview-head {
    position: relative;
    z-index: 1;
    display: block;
}

.category-kicker,
.category-overview-head span {
    display: inline-block;
    margin-bottom: 12px;
    font-size: 15px;
    font-weight: 900;
}

.category-card h3,
.category-overview-card h2 {
    margin: 0 0 18px;
    font-size: 20px;
    line-height: 1.55;
}

.category-mini-list,
.overview-mini-grid {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 10px;
}

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

.mini-card {
    display: grid;
    grid-template-columns: 60px 1fr;
    align-items: center;
    gap: 10px;
    border-radius: 14px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    overflow: hidden;
}

.mini-card img {
    width: 60px;
    height: 42px;
    border-radius: 10px;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.mini-card span {
    font-size: 13px;
    font-weight: 800;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.accent-cyan,
.accent-bg.accent-cyan {
    background: linear-gradient(135deg, #06b6d4, #2563eb, #0ea5e9);
}

.accent-orange,
.accent-bg.accent-orange {
    background: linear-gradient(135deg, #f97316, #f59e0b, #eab308);
}

.accent-purple,
.accent-bg.accent-purple {
    background: linear-gradient(135deg, #7c3aed, #9333ea, #c026d3);
}

.accent-blue,
.accent-bg.accent-blue {
    background: linear-gradient(135deg, #2563eb, #0ea5e9, #06b6d4);
}

.accent-rose,
.accent-bg.accent-rose {
    background: linear-gradient(135deg, #f43f5e, #ec4899, #fb923c);
}

.accent-yellow,
.accent-bg.accent-yellow {
    background: linear-gradient(135deg, #f59e0b, #eab308, #f97316);
}

.accent-pink,
.accent-bg.accent-pink {
    background: linear-gradient(135deg, #ec4899, #f43f5e, #8b5cf6);
}

.accent-indigo,
.accent-bg.accent-indigo {
    background: linear-gradient(135deg, #4f46e5, #2563eb, #06b6d4);
}

.accent-green,
.accent-bg.accent-green {
    background: linear-gradient(135deg, #22c55e, #10b981, #14b8a6);
}

.accent-emerald,
.accent-bg.accent-emerald {
    background: linear-gradient(135deg, #10b981, #14b8a6, #06b6d4);
}

.accent-slate,
.accent-bg.accent-slate {
    background: linear-gradient(135deg, #334155, #475569, #0f172a);
}

.accent-sky,
.accent-bg.accent-sky {
    background: linear-gradient(135deg, #0ea5e9, #06b6d4, #2563eb);
}

.page-hero {
    position: relative;
    overflow: hidden;
    min-height: 320px;
    display: flex;
    align-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, #06b6d4, #2563eb, #0ea5e9);
    margin-bottom: 48px;
}

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

.category-hero {
    background: linear-gradient(135deg, #06b6d4, #2563eb, #0ea5e9);
}

.ranking-hero {
    background: linear-gradient(135deg, #f59e0b, #f97316, #ef4444);
}

.search-hero {
    background: linear-gradient(135deg, #06b6d4, #0ea5e9, #2563eb);
}

.small-actions {
    margin-top: 24px;
}

.filter-panel {
    display: grid;
    grid-template-columns: 1fr 180px 180px auto;
    gap: 14px;
    align-items: end;
    margin-bottom: 26px;
    padding: 18px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.filter-field label {
    display: block;
    margin: 0 0 8px;
    color: #475569;
    font-size: 13px;
    font-weight: 800;
}

.filter-panel button {
    min-height: 48px;
}

.empty-state {
    padding: 52px 18px;
    text-align: center;
    border-radius: 24px;
    color: #64748b;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    font-weight: 800;
}

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

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

.rank-row a {
    display: grid;
    grid-template-columns: 48px 78px 1fr auto auto;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

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

.rank-row img {
    width: 78px;
    height: 52px;
    object-fit: cover;
    border-radius: 12px;
}

.rank-title {
    font-weight: 900;
    color: #1f2937;
}

.rank-meta,
.rank-heat {
    color: #64748b;
    font-size: 14px;
    font-weight: 700;
}

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

.spotlight-card {
    position: relative;
    overflow: hidden;
    min-height: 380px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border-radius: 28px;
    padding: 24px;
    color: #ffffff;
    box-shadow: var(--shadow);
}

.spotlight-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.spotlight-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.85), rgba(2, 6, 23, 0.15));
}

.spotlight-card h2,
.spotlight-card p,
.spotlight-rank {
    position: relative;
    z-index: 1;
}

.spotlight-rank {
    width: fit-content;
    margin-bottom: 12px;
    border-radius: 999px;
    padding: 7px 11px;
    background: rgba(255, 255, 255, 0.22);
    font-weight: 900;
}

.spotlight-card h2 {
    margin: 0 0 10px;
    font-size: 25px;
}

.spotlight-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.6;
}

.detail-layout {
    width: min(1180px, calc(100% - 32px));
    margin: 34px auto 54px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    color: #64748b;
    font-weight: 700;
}

.breadcrumb a {
    color: #0369a1;
}

.player-card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #000000;
    box-shadow: 0 28px 70px rgba(2, 6, 23, 0.25);
}

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

.player-cover {
    position: absolute;
    inset: 0;
    padding: 0;
    border: 0;
    display: block;
    background: #000000;
    overflow: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.18));
}

.player-button {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 88px;
    height: 88px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--blue);
    background: rgba(255, 255, 255, 0.94);
    font-size: 34px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.24);
}

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

.detail-panel,
.side-card {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.detail-panel {
    margin-top: 22px;
    padding: 28px;
}

.detail-panel h1 {
    margin: 0 0 14px;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.2;
}

.lead-text {
    margin: 0 0 22px;
    color: #475569;
    font-size: 18px;
    line-height: 1.75;
}

.detail-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    padding: 0;
    margin: 0 0 22px;
    list-style: none;
}

.detail-stats li {
    border-radius: 16px;
    padding: 14px;
    background: #f8fafc;
}

.detail-stats span {
    display: block;
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
}

.detail-stats strong {
    display: block;
    margin-top: 4px;
    color: #0f172a;
    font-size: 16px;
}

.detail-panel .tag-cloud span {
    color: #0369a1;
    background: #e0f2fe;
}

.article-block {
    margin-top: 28px;
    padding-top: 26px;
    border-top: 1px solid var(--line);
}

.article-block h2 {
    margin: 0 0 12px;
    font-size: 22px;
}

.article-block p {
    margin: 0;
    color: #374151;
    line-height: 1.9;
    font-size: 16px;
}

.sticky-side {
    position: sticky;
    top: 92px;
    padding: 18px;
}

.side-poster {
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 18px;
    object-fit: cover;
    margin-bottom: 16px;
}

.side-card h2 {
    margin: 0 0 8px;
    font-size: 22px;
}

.side-card p {
    margin: 0 0 18px;
    color: #64748b;
    font-weight: 700;
}

.full-button {
    width: 100%;
    color: #ffffff;
    background: linear-gradient(90deg, var(--cyan), var(--blue));
}

.related-section {
    margin-bottom: 72px;
}

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

.category-overview-card .text-link {
    position: relative;
    z-index: 1;
    display: inline-block;
    margin-top: 18px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
}

.site-footer {
    color: #e5e7eb;
    background: linear-gradient(180deg, #1f2937, #111827);
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 40px;
    padding: 46px 0;
}

.footer-logo {
    color: #ffffff;
    font-size: 22px;
}

.footer-brand p {
    margin: 18px 0 0;
    max-width: 560px;
    color: #cbd5e1;
    line-height: 1.8;
}

.footer-links {
    display: grid;
    gap: 9px;
    align-content: start;
}

.footer-links h2 {
    margin: 0 0 8px;
    color: #ffffff;
    font-size: 18px;
}

.footer-links a {
    color: #cbd5e1;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 18px;
    text-align: center;
    color: #94a3b8;
    font-size: 14px;
}

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

    .menu-toggle {
        display: inline-flex;
    }

    .hero-content {
        grid-template-columns: 1fr;
    }

    .hero-poster {
        display: none;
    }

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

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

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

    .detail-side {
        display: none;
    }

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

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

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

    .hero {
        min-height: 560px;
        height: auto;
    }

    .hero-slide {
        position: relative;
        min-height: 560px;
        display: none;
    }

    .hero-slide.is-active {
        display: block;
    }

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

    .hero-tags span:nth-child(n + 5) {
        display: none;
    }

    .quick-search-panel form,
    .page-search,
    .filter-panel,
    .movie-card-wide a,
    .rank-row a {
        grid-template-columns: 1fr;
    }

    .quick-search-panel button,
    .page-search button,
    .filter-panel button {
        min-height: 46px;
    }

    .content-section,
    .quick-search-panel,
    .detail-layout {
        width: min(100% - 24px, 1180px);
    }

    .tinted-section {
        padding: 18px;
    }

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

    .movie-grid,
    .featured-grid,
    .poster-grid,
    .editor-grid,
    .category-movie-grid,
    .wide-grid,
    .category-grid,
    .category-overview-grid,
    .spotlight-grid,
    .compact-rank {
        grid-template-columns: 1fr;
    }

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

    .detail-panel {
        padding: 20px;
    }

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

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