
:root {
  --bg: #020617;
  --bg-soft: #0f172a;
  --bg-card: rgba(15, 23, 42, 0.72);
  --bg-card-strong: rgba(15, 23, 42, 0.92);
  --line: rgba(34, 211, 238, 0.25);
  --line-strong: rgba(34, 211, 238, 0.45);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-strong: #cbd5e1;
  --cyan: #22d3ee;
  --blue: #3b82f6;
  --yellow: #facc15;
  --danger: #fb7185;
  --shadow: 0 24px 80px rgba(8, 145, 178, 0.18);
  --radius: 18px;
  --radius-lg: 28px;
  --container: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 8%, rgba(34, 211, 238, 0.16), transparent 34rem),
    radial-gradient(circle at 90% 12%, rgba(59, 130, 246, 0.16), transparent 30rem),
    linear-gradient(135deg, #020617 0%, #071428 46%, #020617 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background-image:
    linear-gradient(rgba(34, 211, 238, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 80%);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(2, 6, 23, 0.2), rgba(2, 6, 23, 0.82));
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(23, 37, 84, 0.96), rgba(15, 23, 42, 0.96));
  box-shadow: 0 16px 40px rgba(2, 6, 23, 0.38);
  backdrop-filter: blur(18px);
}

.header-grid {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(34, 211, 238, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.16) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 68px;
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #ffffff;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 0 26px rgba(34, 211, 238, 0.55);
}

.brand-text {
  font-size: 1.35rem;
  background: linear-gradient(90deg, var(--cyan), #93c5fd, var(--cyan));
  -webkit-background-clip: text;
  color: transparent;
}

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

.nav-link {
  position: relative;
  padding: 9px 14px;
  color: var(--muted-strong);
  border-radius: 12px;
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--cyan);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}

.header-search {
  display: flex;
  align-items: center;
  overflow: hidden;
  width: 290px;
  border: 1px solid rgba(34, 211, 238, 0.3);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
}

.header-search input,
.mobile-search input,
.big-search input,
.filter-toolbar input,
.filter-toolbar select {
  width: 100%;
  color: var(--text);
  border: 0;
  outline: 0;
  background: transparent;
}

.header-search input {
  padding: 10px 12px;
}

.header-search button,
.mobile-search button,
.big-search button,
.filter-toolbar button {
  cursor: pointer;
  color: #ffffff;
  border: 0;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
}

.header-search button {
  align-self: stretch;
  padding: 0 14px;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  cursor: pointer;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
}

.mobile-nav {
  display: none;
  padding: 0 16px 16px;
}

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

.mobile-search {
  display: grid;
  grid-template-columns: 1fr auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
}

.mobile-search input {
  padding: 12px;
}

.mobile-search button {
  padding-inline: 16px;
}

.hero {
  position: relative;
  min-height: 700px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(34, 211, 238, 0.22), transparent 22rem),
    radial-gradient(circle at 80% 45%, rgba(59, 130, 246, 0.26), transparent 26rem),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.12), rgba(2, 6, 23, 0.92));
}

.hero-bg::after {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.38;
  background-image:
    radial-gradient(circle, rgba(34, 211, 238, 0.28) 2px, transparent 3px),
    linear-gradient(135deg, transparent 0%, rgba(34, 211, 238, 0.1) 50%, transparent 100%);
  background-size: 80px 80px, 100% 100%;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  align-items: center;
  min-height: 700px;
  padding-block: 72px 96px;
}

.hero-slides {
  position: relative;
  min-height: 500px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 520px);
  align-items: center;
  gap: 46px;
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.pill,
.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: var(--cyan);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.09);
  backdrop-filter: blur(12px);
}

.pill {
  padding: 6px 14px;
  font-size: 0.9rem;
  font-weight: 700;
}

.eyebrow {
  padding: 4px 10px;
  margin-bottom: 8px;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-copy h1 {
  margin: 20px 0 22px;
  font-size: clamp(3rem, 8vw, 6.2rem);
  line-height: 0.98;
  letter-spacing: -0.07em;
}

.hero-copy h1 span,
.sub-hero h1,
.section-heading h2,
.panel-title h2,
.detail-intro h1 {
  background: linear-gradient(90deg, var(--cyan), #93c5fd, var(--cyan));
  -webkit-background-clip: text;
  color: transparent;
}

.hero-copy p {
  max-width: 690px;
  margin: 0 0 26px;
  color: var(--muted-strong);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.hero-tags,
.detail-meta,
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags span,
.detail-meta span,
.tag-cloud span {
  padding: 6px 10px;
  color: #dbeafe;
  border: 1px solid rgba(147, 197, 253, 0.25);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  font-weight: 800;
  border-radius: 14px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

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

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 18px 36px rgba(34, 211, 238, 0.26);
}

.btn-primary:hover {
  box-shadow: 0 24px 50px rgba(34, 211, 238, 0.4);
}

.btn-ghost {
  color: var(--cyan);
  border: 1px solid var(--line-strong);
  background: rgba(34, 211, 238, 0.08);
}

.hero-visual {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border: 1px solid var(--line-strong);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow);
}

.hero-visual::before {
  position: absolute;
  inset: 18px;
  z-index: 2;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  pointer-events: none;
}

.hero-visual img,
.movie-poster img,
.category-card img,
.detail-poster img,
.player-cover img,
.movie-hero-bg img,
.ranking-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-visual img {
  transition: transform 0.7s ease;
}

.hero-visual:hover img {
  transform: scale(1.05);
}

.hero-visual::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(to top, rgba(2, 6, 23, 0.88), transparent 55%);
}

.hero-play,
.movie-play {
  position: absolute;
  z-index: 3;
  display: grid;
  place-items: center;
  color: #ffffff;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.88);
  box-shadow: 0 0 38px rgba(34, 211, 238, 0.45);
}

.hero-play {
  right: 28px;
  bottom: 28px;
  width: 66px;
  height: 66px;
  font-size: 1.35rem;
}

.hero-dots {
  position: absolute;
  z-index: 4;
  bottom: 62px;
  left: 0;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 34px;
  height: 8px;
  cursor: pointer;
  border: 0;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.35);
  transition: width 0.25s ease, background 0.25s ease;
}

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

.hero-stats {
  position: absolute;
  z-index: 4;
  bottom: 18px;
  left: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(110px, 1fr));
  max-width: 500px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(18px);
}

.hero-stats div {
  padding: 16px 20px;
  text-align: center;
}

.hero-stats div + div {
  border-left: 1px solid rgba(34, 211, 238, 0.18);
}

.hero-stats strong {
  display: block;
  color: var(--cyan);
  font-size: 1.6rem;
  line-height: 1;
}

.hero-stats span {
  color: var(--muted);
  font-size: 0.86rem;
}

.hero-wave {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  z-index: 3;
  height: 90px;
  color: var(--bg);
}

.hero-wave svg {
  width: 100%;
  height: 100%;
}

.hero-wave path {
  fill: #020617;
}

.quick-search,
.section {
  padding-block: 72px;
}

.quick-search-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(360px, 1fr);
  gap: 30px;
  align-items: center;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.1), rgba(59, 130, 246, 0.08));
  box-shadow: var(--shadow);
}

.quick-search h2,
.sub-hero h1,
.section-heading h2,
.panel-title h2,
.article-content h2,
.detail-side-card h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.1;
}

.quick-search p,
.section-heading p,
.sub-hero p,
.category-card p,
.category-overview-card p,
.article-content p,
.detail-intro .lead {
  color: var(--muted-strong);
}

.big-search {
  display: grid;
  grid-template-columns: 1fr auto;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.48);
}

.big-search input {
  padding: 18px 20px;
}

.big-search button {
  padding: 0 28px;
  font-weight: 800;
}

.section-muted {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.3), rgba(2, 6, 23, 0.3));
}

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

.section-heading a,
.panel-title a,
.text-link {
  color: var(--cyan);
  font-weight: 800;
}

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

.category-card {
  position: relative;
  min-height: 240px;
  overflow: hidden;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
  box-shadow: 0 18px 42px rgba(2, 6, 23, 0.25);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-card:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
}

.category-card img {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.32;
  filter: saturate(1.1);
}

.category-card::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: linear-gradient(to top, rgba(2, 6, 23, 0.94), rgba(2, 6, 23, 0.2));
}

.category-card span {
  display: block;
  color: var(--cyan);
  font-weight: 900;
  font-size: 1.35rem;
}

.category-card strong {
  display: block;
  margin: 8px 0 38px;
  font-size: 2rem;
}

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(34, 211, 238, 0.18);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.035));
  box-shadow: 0 18px 42px rgba(2, 6, 23, 0.22);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  border-color: var(--line-strong);
  box-shadow: 0 24px 70px rgba(8, 145, 178, 0.22);
}

.movie-poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #0f172a;
}

.movie-poster img {
  transition: transform 0.45s ease;
}

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

.movie-poster::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(to top, rgba(2, 6, 23, 0.88), transparent 55%);
}

.movie-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  top: 12px;
  padding: 5px 9px;
  font-size: 0.76rem;
  font-weight: 800;
  border-radius: 999px;
  backdrop-filter: blur(10px);
}

.movie-badge {
  left: 12px;
  color: var(--cyan);
  border: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.58);
}

.rank-badge {
  right: 12px;
  color: #111827;
  background: var(--yellow);
}

.movie-play {
  top: 50%;
  left: 50%;
  width: 52px;
  height: 52px;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.86);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.movie-info {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.movie-info h3 {
  display: -webkit-box;
  min-height: 3.15em;
  margin: 0;
  overflow: hidden;
  font-size: 1rem;
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-info h3 a:hover {
  color: var(--cyan);
}

.movie-meta,
.movie-desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.movie-desc {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
  font-size: 0.88rem;
}

.score {
  color: var(--yellow);
  font-weight: 900;
}

.movie-actions a {
  color: var(--cyan);
  font-weight: 800;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 32px;
  align-items: start;
}

.ranking-panel,
.detail-side-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  box-shadow: var(--shadow);
}

.ranking-panel {
  position: sticky;
  top: 92px;
  padding: 22px;
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 58px 86px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(34, 211, 238, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
  transition: border-color 0.25s ease, background 0.25s ease;
}

.ranking-row:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.08);
}

.ranking-rank {
  color: var(--cyan);
  font-size: 1.25rem;
  font-weight: 900;
}

.ranking-thumb {
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  background: #0f172a;
}

.ranking-main h3,
.ranking-main p {
  margin: 0;
}

.ranking-main h3 {
  font-size: 1rem;
}

.ranking-main h3 a:hover {
  color: var(--cyan);
}

.ranking-main p {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted-strong);
  font-size: 0.88rem;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.ranking-main div {
  color: var(--muted);
  font-size: 0.8rem;
}

.ranking-score {
  color: var(--yellow);
  font-weight: 900;
}

.sub-hero {
  position: relative;
  overflow: hidden;
  padding-block: 90px 72px;
  border-bottom: 1px solid rgba(34, 211, 238, 0.14);
  background:
    radial-gradient(circle at 20% 10%, rgba(34, 211, 238, 0.2), transparent 28rem),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.74), rgba(2, 6, 23, 0.96));
}

.sub-hero h1 {
  margin: 18px 0 14px;
  font-size: clamp(3rem, 7vw, 5.3rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.sub-hero p {
  max-width: 760px;
  margin: 0;
  font-size: 1.16rem;
}

.filter-toolbar {
  position: sticky;
  top: 82px;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px 170px auto auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 28px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.86);
  backdrop-filter: blur(18px);
}

.filter-toolbar label {
  display: grid;
  gap: 6px;
  color: var(--muted-strong);
  font-size: 0.82rem;
  font-weight: 800;
}

.filter-toolbar input,
.filter-toolbar select {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
}

.filter-toolbar select option {
  color: #111827;
}

.filter-toolbar button {
  min-height: 42px;
  padding: 0 16px;
  font-weight: 900;
  border-radius: 12px;
}

.filter-toolbar strong {
  color: var(--cyan);
  white-space: nowrap;
}

.empty-state {
  display: none;
  margin: 48px 0;
  color: var(--muted-strong);
  text-align: center;
  font-size: 1.1rem;
}

.empty-state.is-visible {
  display: block;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 22px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  box-shadow: var(--shadow);
}

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

.category-cover-stack img {
  aspect-ratio: 2 / 3;
  width: 100%;
  object-fit: cover;
  border-radius: 13px;
}

.category-overview-card h2 {
  margin: 8px 0 10px;
  font-size: 2rem;
}

.movie-hero-detail {
  position: relative;
  overflow: hidden;
  padding-block: 80px 56px;
}

.movie-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 0.2;
  filter: blur(2px);
}

.movie-hero-bg::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.7)), linear-gradient(to bottom, transparent, #020617);
}

.movie-detail-grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 38px;
  align-items: end;
}

.detail-poster {
  display: grid;
  gap: 16px;
}

.detail-poster img {
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border: 1px solid var(--line-strong);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 0.92rem;
}

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

.detail-intro h1 {
  margin: 16px 0;
  font-size: clamp(3rem, 7vw, 5.4rem);
  line-height: 1.03;
}

.detail-intro .lead {
  max-width: 890px;
  margin: 0 0 22px;
  font-size: 1.25rem;
}

.tag-cloud {
  margin-top: 18px;
}

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

.player-panel {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line-strong);
  border-radius: 28px;
  background: #020617;
  box-shadow: var(--shadow);
}

.movie-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #020617;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: #020617;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-cover::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(to top, rgba(2, 6, 23, 0.85), rgba(2, 6, 23, 0.2));
}

.player-cover img {
  position: absolute;
  inset: 0;
  opacity: 0.55;
}

.player-cover button {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  cursor: pointer;
  color: #ffffff;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 0 60px rgba(34, 211, 238, 0.56);
  font-size: 2rem;
}

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

.detail-side-card {
  padding: 22px;
}

.detail-side-card dl {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
}

.detail-side-card dl div {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(34, 211, 238, 0.12);
}

.detail-side-card dt {
  color: var(--muted);
}

.detail-side-card dd {
  margin: 0;
  color: var(--muted-strong);
}

.detail-side-card a {
  color: var(--cyan);
}

.article-content {
  max-width: 920px;
}

.article-content h2 {
  margin: 0 0 16px;
  font-size: 2rem;
}

.article-content h2:not(:first-child) {
  margin-top: 36px;
}

.article-content p {
  margin: 0;
  font-size: 1.08rem;
}

.site-footer {
  position: relative;
  overflow: hidden;
  padding: 52px 0 28px;
  border-top: 1px solid var(--line);
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.75), rgba(0, 0, 0, 0.88));
}

.footer-glow {
  position: absolute;
  right: 10%;
  bottom: -140px;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.12);
  filter: blur(50px);
}

.footer-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  gap: 32px;
}

.footer-brand p {
  max-width: 620px;
  color: var(--muted-strong);
}

.footer-links strong {
  display: block;
  margin-bottom: 14px;
}

.footer-links div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-links a {
  padding: 7px 10px;
  color: var(--muted-strong);
  border: 1px solid rgba(34, 211, 238, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.footer-links a:hover {
  color: var(--cyan);
  border-color: var(--line-strong);
}

.footer-bottom {
  position: relative;
  margin-top: 34px;
  color: var(--muted);
  text-align: center;
  font-size: 0.9rem;
}

@media (max-width: 1180px) {
  .category-grid,
  .movie-grid,
  .library-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .hero-slide {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  }
}

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

  .menu-toggle {
    display: grid;
    place-items: center;
    margin-left: auto;
  }

  .hero,
  .hero-inner {
    min-height: auto;
  }

  .hero-inner {
    padding-block: 48px 120px;
  }

  .hero-slides {
    min-height: 820px;
  }

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

  .hero-visual {
    width: min(100%, 420px);
    margin-inline: auto;
  }

  .quick-search-inner,
  .split-layout,
  .detail-layout,
  .footer-inner,
  .movie-detail-grid,
  .category-overview-grid,
  .category-overview-card {
    grid-template-columns: 1fr;
  }

  .ranking-panel {
    position: static;
  }

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

  .filter-search {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100% - 24px, var(--container));
  }

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

  .hero-copy h1,
  .detail-intro h1,
  .sub-hero h1 {
    letter-spacing: -0.04em;
  }

  .hero-stats {
    right: 0;
    grid-template-columns: repeat(3, 1fr);
  }

  .quick-search,
  .section {
    padding-block: 46px;
  }

  .quick-search-inner {
    padding: 20px;
  }

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

  .big-search button {
    min-height: 48px;
  }

  .ranking-row {
    grid-template-columns: 42px 70px minmax(0, 1fr);
  }

  .ranking-score {
    grid-column: 3;
  }

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

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

  .movie-info {
    padding: 12px;
  }

  .movie-info h3 {
    font-size: 0.94rem;
  }
}

@media (max-width: 460px) {
  .movie-grid,
  .movie-grid--small,
  .library-grid {
    grid-template-columns: 1fr;
  }

  .hero-slides {
    min-height: 760px;
  }

  .hero-tags span,
  .detail-meta span,
  .tag-cloud span {
    font-size: 0.82rem;
  }
}
