:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --text: #172033;
  --muted: #667085;
  --soft: #e6f7fb;
  --line: #e5edf5;
  --cyan: #06b6d4;
  --blue: #2563eb;
  --sky: #0ea5e9;
  --pink: #ec4899;
  --amber: #f59e0b;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 12px 28px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
  font: inherit;
}

.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));
  backdrop-filter: blur(14px);
  box-shadow: 0 14px 30px rgba(14, 165, 233, 0.22);
}

.nav-wrap {
  max-width: 1280px;
  margin: 0 auto;
  height: 72px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-weight: 900;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.logo-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.15);
}

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

.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  color: rgba(255, 255, 255, 0.96);
  font-weight: 700;
}

.main-nav > a,
.nav-dropdown > a {
  padding: 24px 0;
}

.main-nav a:hover {
  color: #fef08a;
}

.nav-dropdown {
  position: relative;
}

.dropdown-panel {
  position: absolute;
  left: 0;
  top: 64px;
  width: 190px;
  padding: 10px;
  border-radius: 18px;
  background: #ffffff;
  color: #334155;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: 0.2s ease;
}

.nav-dropdown:hover .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-panel a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
}

.dropdown-panel a:hover {
  color: var(--blue);
  background: #e0f2fe;
}

.top-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  width: min(340px, 32vw);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 4px;
}

.top-search input,
.mobile-search input,
.wide-search input,
.search-page-form input,
.filter-grid input,
.filter-grid select {
  width: 100%;
  border: 0;
  outline: none;
}

.top-search input {
  color: #ffffff;
  background: transparent;
  padding: 10px 14px;
}

.top-search input::placeholder {
  color: rgba(255, 255, 255, 0.74);
}

.top-search button,
.mobile-search button,
.wide-search button,
.search-page-form button {
  border: 0;
  cursor: pointer;
  color: #0f5ea8;
  background: #ffffff;
  border-radius: 999px;
  padding: 9px 16px;
  font-weight: 800;
  white-space: nowrap;
}

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

.mobile-menu {
  display: none;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 18px 18px;
  color: #ffffff;
}

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

.mobile-menu a,
.mobile-cat-list a {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
}

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

.mobile-search input {
  border-radius: 999px;
  padding: 11px 14px;
}

.mobile-cat-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.hero-carousel {
  position: relative;
  min-height: 590px;
  overflow: hidden;
  background: linear-gradient(120deg, #06b6d4, #2563eb 50%, #7c3aed);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.55fr);
  gap: 48px;
  align-items: center;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 72px 24px 96px;
  color: #ffffff;
  opacity: 0;
  pointer-events: none;
  transform: translateX(30px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(2, 6, 23, 0.82), rgba(2, 6, 23, 0.42), rgba(2, 6, 23, 0.58)), var(--hero-image);
  background-size: cover;
  background-position: center;
  filter: saturate(1.08);
  transform: scale(1.04);
}

.hero-slide::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 120px;
  background: linear-gradient(0deg, #ecfeff, rgba(236, 254, 255, 0));
}

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

.hero-content,
.hero-poster {
  position: relative;
  z-index: 2;
}

.eyebrow,
.section-title span,
.page-hero span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: #075985;
  background: rgba(224, 242, 254, 0.9);
  border: 1px solid rgba(125, 211, 252, 0.55);
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-content .eyebrow {
  color: #cffafe;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.25);
}

.hero-content h1,
.hero-content h2 {
  max-width: 780px;
  margin: 22px 0 18px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1.02;
  font-weight: 950;
  letter-spacing: -0.05em;
}

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

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

.hero-tags span,
.detail-meta span,
.meta-row span {
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  font-weight: 700;
}

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

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

.primary-btn {
  color: #075985;
  background: #ffffff;
  box-shadow: 0 18px 30px rgba(255, 255, 255, 0.18);
}

.primary-btn:hover,
.ghost-btn:hover,
.movie-card:hover,
.category-tile:hover,
.editor-row:hover,
.ranking-row:hover {
  transform: translateY(-4px);
}

.ghost-btn {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.12);
}

.primary-btn.full {
  width: 100%;
}

.hero-poster {
  display: block;
  max-width: 360px;
  justify-self: end;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 34px 80px rgba(2, 6, 23, 0.45);
  transform: rotate(2deg);
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

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

.hero-poster span {
  position: absolute;
  left: 18px;
  bottom: 18px;
  right: 18px;
  text-align: center;
  border-radius: 999px;
  padding: 12px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(10px);
  font-weight: 900;
}

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

.hero-dot {
  width: 36px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
}

.hero-dot.active {
  width: 58px;
  background: #ffffff;
}

.search-band,
.section-wrap,
.split-section,
.category-overview,
.ranking-section,
.search-results-wrap,
.detail-wrap,
.filter-bar {
  max-width: 1280px;
  margin: 0 auto;
  padding: 56px 24px;
}

.search-band {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1fr);
  align-items: center;
  gap: 26px;
  margin-top: -34px;
  position: relative;
  z-index: 4;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.search-band h2,
.section-title h2,
.page-hero h1,
.related-panel h2,
.article-card h2 {
  margin: 0;
  color: #172033;
  font-weight: 950;
  letter-spacing: -0.035em;
}

.search-band h2,
.section-title h2 {
  font-size: clamp(28px, 4vw, 42px);
}

.search-band p {
  margin: 9px 0 0;
  color: var(--muted);
}

.wide-search,
.search-page-form {
  display: flex;
  gap: 10px;
  padding: 8px;
  border-radius: 999px;
  background: #eff6ff;
  border: 1px solid #dbeafe;
}

.wide-search input,
.search-page-form input {
  background: transparent;
  padding: 12px 16px;
}

.wide-search button,
.search-page-form button {
  color: #ffffff;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
}

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

.section-title a {
  color: var(--blue);
  font-weight: 900;
}

.compact-title {
  align-items: center;
  margin-bottom: 22px;
}

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

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
  box-shadow: var(--shadow);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #cffafe, #dbeafe);
}

.poster-link img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.movie-card:hover .poster-link img,
.mini-card:hover img,
.editor-row:hover img,
.rank-item:hover img {
  transform: scale(1.08);
}

.play-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  color: var(--blue);
  background: rgba(255, 255, 255, 0.9);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.86);
  transition: 0.22s ease;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.18);
}

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

.score-badge {
  position: absolute;
  right: 12px;
  top: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  font-weight: 900;
  box-shadow: 0 10px 20px rgba(239, 68, 68, 0.26);
}

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

.movie-title {
  display: -webkit-box;
  min-height: 48px;
  margin-bottom: 8px;
  overflow: hidden;
  color: #172033;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.32;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-title:hover {
  color: var(--blue);
}

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

.meta-row span {
  color: #64748b;
  background: #f1f5f9;
}

.chip {
  display: inline-flex;
  margin-top: 14px;
  padding: 7px 12px;
  border-radius: 999px;
  color: #075985;
  background: linear-gradient(90deg, #e0f2fe, #cffafe);
  font-size: 13px;
  font-weight: 900;
}

.split-section {
  display: grid;
  grid-template-columns: 0.72fr 1fr;
  gap: 28px;
}

.panel,
.article-card,
.detail-info-card,
.related-panel,
.poster-panel,
.filter-bar {
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
}

.panel {
  padding: 28px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 38px 82px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
  transition: 0.2s ease;
}

.rank-no,
.rank-number,
.podium-rank {
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  font-weight: 950;
}

.rank-no {
  width: 34px;
  height: 34px;
}

.rank-item img {
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  object-fit: cover;
  overflow: hidden;
  transition: 0.25s ease;
}

.rank-item strong,
.editor-row strong,
.mini-card strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.rank-item small,
.editor-row small,
.mini-card small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
}

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

.category-tile {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 22px;
  border-radius: 28px;
  color: #ffffff;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-soft);
  transition: 0.2s ease;
}

.category-tile::before,
.category-card::before {
  content: "";
  position: absolute;
  inset: -40% auto auto -20%;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.category-tile span {
  position: relative;
  font-size: 15px;
  opacity: 0.9;
}

.category-tile strong {
  position: relative;
  margin: 7px 0;
  font-size: 24px;
  font-weight: 950;
}

.category-tile em {
  position: relative;
  font-style: normal;
  line-height: 1.55;
  opacity: 0.86;
}

.from-cyan { background: linear-gradient(135deg, #06b6d4, #2563eb); }
.from-orange { background: linear-gradient(135deg, #f97316, #f59e0b); }
.from-red { background: linear-gradient(135deg, #ef4444, #7f1d1d); }
.from-green { background: linear-gradient(135deg, #10b981, #059669); }
.from-pink { background: linear-gradient(135deg, #ec4899, #f43f5e); }
.from-purple { background: linear-gradient(135deg, #7c3aed, #4c1d95); }
.from-indigo { background: linear-gradient(135deg, #4f46e5, #0f172a); }
.from-lime { background: linear-gradient(135deg, #84cc16, #16a34a); }
.from-amber { background: linear-gradient(135deg, #f59e0b, #92400e); }
.from-blue { background: linear-gradient(135deg, #0ea5e9, #1d4ed8); }

.editor-section {
  padding-bottom: 76px;
}

.editor-list {
  display: grid;
  gap: 18px;
}

.editor-row {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 22px;
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  transition: 0.2s ease;
}

.editor-row img {
  height: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: 0.25s ease;
}

.editor-row span {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 22px 22px 22px 0;
}

.editor-row em {
  width: fit-content;
  margin-bottom: 10px;
  border-radius: 999px;
  padding: 6px 10px;
  color: #7c3aed;
  background: #ede9fe;
  font-style: normal;
  font-weight: 900;
}

.editor-row strong {
  font-size: 24px;
  color: #172033;
}

.page-hero {
  margin: 0 auto;
  padding: 78px 24px;
  color: #ffffff;
  text-align: center;
  background: linear-gradient(120deg, #06b6d4, #2563eb 56%, #7c3aed);
}

.page-hero span {
  margin: 0 auto 16px;
  color: #cffafe;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.22);
}

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

.page-hero p {
  max-width: 760px;
  margin: 16px auto 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.75;
}

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

.category-card {
  position: relative;
  min-height: 260px;
  border-radius: 30px;
  overflow: hidden;
  color: #ffffff;
  box-shadow: var(--shadow-soft);
}

.category-card-main {
  position: relative;
  z-index: 2;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 30px;
}

.category-card h2 {
  margin: 8px 0;
  font-size: 34px;
}

.category-card p {
  max-width: 540px;
  margin: 0;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.86);
}

.category-preview {
  position: absolute;
  right: 22px;
  top: 22px;
  display: flex;
  gap: 10px;
  opacity: 0.42;
}

.category-preview img {
  width: 86px;
  height: 124px;
  object-fit: cover;
  border-radius: 16px;
  transform: rotate(4deg);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.25);
}

.filter-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 190px 190px;
  gap: 12px;
  margin-bottom: 16px;
}

.filter-grid input,
.filter-grid select {
  height: 50px;
  padding: 0 16px;
  border-radius: 16px;
  color: #172033;
  background: #f8fafc;
  border: 1px solid var(--line);
}

.filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.filter-tags a {
  padding: 9px 13px;
  border-radius: 999px;
  color: #075985;
  background: #e0f2fe;
  font-weight: 800;
}

.rank-hero {
  background: linear-gradient(120deg, #0f172a, #2563eb 48%, #f97316);
}

.podium-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 28px;
}

.podium-card {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 360px;
  border-radius: 30px;
  color: #ffffff;
  background: #0f172a;
  box-shadow: var(--shadow);
}

.podium-card img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
}

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

.podium-rank {
  position: absolute;
  z-index: 2;
  left: 22px;
  top: 22px;
  width: 48px;
  height: 48px;
  font-size: 22px;
}

.podium-card strong,
.podium-card small {
  position: absolute;
  z-index: 2;
  left: 24px;
  right: 24px;
}

.podium-card strong {
  bottom: 62px;
  font-size: 25px;
  font-weight: 950;
}

.podium-card small {
  bottom: 30px;
  color: rgba(255, 255, 255, 0.76);
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 52px 110px minmax(0, 1fr) 180px 70px;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  transition: 0.2s ease;
}

.rank-number {
  width: 42px;
  height: 42px;
}

.ranking-row img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 14px;
}

.ranking-main strong {
  display: block;
  font-size: 18px;
  margin-bottom: 4px;
}

.ranking-main small,
.ranking-meta {
  color: var(--muted);
}

.ranking-score {
  color: #f97316;
  font-size: 22px;
  font-weight: 950;
  text-align: right;
}

.search-hero {
  background: linear-gradient(120deg, #0369a1, #06b6d4 50%, #22c55e);
}

.search-page-form {
  max-width: 700px;
  margin: 28px auto 0;
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.32);
}

.search-page-form input {
  color: #ffffff;
}

.search-page-form input::placeholder {
  color: rgba(255, 255, 255, 0.78);
}

.detail-wrap {
  padding-top: 32px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin: 4px 0 24px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--blue);
  font-weight: 800;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
}

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #020617;
  box-shadow: var(--shadow);
}

.movie-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
}

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

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

.player-cover img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  opacity: 0.66;
}

.player-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05), rgba(2, 6, 23, 0.78));
}

.big-play {
  position: relative;
  z-index: 2;
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--blue);
  background: rgba(255, 255, 255, 0.94);
  font-size: 34px;
  box-shadow: 0 22px 60px rgba(2, 6, 23, 0.42);
}

.detail-info-card,
.article-card,
.related-panel,
.poster-panel {
  padding: 26px;
  margin-top: 22px;
}

.detail-info-card h1 {
  margin: 18px 0 12px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.lead-text {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.detail-meta span {
  color: #475569;
  background: #f1f5f9;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.tag-cloud span {
  border-radius: 999px;
  padding: 9px 13px;
  color: #075985;
  background: #e0f2fe;
  font-weight: 800;
}

.article-card h2,
.related-panel h2 {
  margin-bottom: 14px;
  font-size: 24px;
}

.article-card p {
  margin: 0;
  color: #334155;
  line-height: 1.9;
  font-size: 17px;
}

.detail-side {
  align-self: start;
  position: sticky;
  top: 96px;
}

.poster-panel img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 24px;
  margin-bottom: 16px;
}

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

.mini-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: #f8fafc;
}

.mini-thumb {
  overflow: hidden;
  border-radius: 12px;
}

.mini-thumb img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: 0.25s ease;
}

.site-footer {
  margin-top: 42px;
  color: #cbd5e1;
  background: linear-gradient(180deg, #1e293b, #020617);
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.75fr 0.8fr;
  gap: 34px;
  padding: 46px 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  color: #ffffff;
  font-size: 22px;
}

.site-footer p {
  max-width: 460px;
  margin: 0;
  line-height: 1.75;
}

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

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

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

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

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 24px;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  color: #94a3b8;
}

.is-filter-hidden {
  display: none;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 48px 20px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed #bae6fd;
  border-radius: 24px;
  background: #f0f9ff;
}

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

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

  .split-section,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .detail-side {
    position: static;
  }
}

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

  .menu-toggle {
    display: block;
  }

  .nav-wrap {
    padding: 0 18px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 22px;
    padding-top: 50px;
  }

  .hero-poster {
    display: none;
  }

  .search-band {
    grid-template-columns: 1fr;
    margin-left: 16px;
    margin-right: 16px;
    padding: 28px;
  }

  .wide-search,
  .search-page-form {
    border-radius: 22px;
    flex-direction: column;
  }

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

  .editor-row {
    grid-template-columns: 1fr;
  }

  .editor-row span {
    padding: 0 20px 22px;
  }

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

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

  .ranking-meta {
    display: none;
  }

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

@media (max-width: 560px) {
  .logo-text {
    font-size: 18px;
  }

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

  .hero-content h1,
  .hero-content h2 {
    font-size: 42px;
  }

  .movie-grid,
  .catalog-grid,
  .featured-grid,
  .small-grid,
  .category-grid,
  .category-overview,
  .podium-grid {
    grid-template-columns: 1fr;
  }

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

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

  .rank-item,
  .mini-card {
    grid-template-columns: 86px minmax(0, 1fr);
  }

  .rank-no {
    display: none;
  }

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

  .ranking-row img {
    display: none;
  }
}
