:root {
  --brand-cyan: #0891b2;
  --brand-blue: #2563eb;
  --brand-teal: #0d9488;
  --brand-dark: #0f172a;
  --text: #1f2937;
  --muted: #64748b;
  --line: #e2e8f0;
  --card: #ffffff;
  --soft: #f8fafc;
  --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: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: #f1f5f9;
  line-height: 1.6;
}

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

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

button,
input,
select {
  font: inherit;
}

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

.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, var(--brand-cyan), var(--brand-blue), var(--brand-teal));
  box-shadow: 0 16px 35px rgba(8, 145, 178, 0.28);
}

.header-main {
  display: flex;
  align-items: center;
  min-height: 78px;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 210px;
}

.brand-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.brand-text strong {
  display: block;
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: 0.03em;
}

.brand-text small {
  display: block;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
}

.header-search {
  display: flex;
  align-items: center;
  flex: 1;
  max-width: 480px;
  margin-left: auto;
  overflow: hidden;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.16);
}

.header-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  padding: 12px 16px;
  color: #0f172a;
}

.header-search button,
.mobile-search button,
.page-search button,
.hero-search button {
  border: 0;
  padding: 12px 18px;
  color: #ffffff;
  cursor: pointer;
  background: linear-gradient(90deg, var(--brand-cyan), var(--brand-blue));
  transition: transform 0.2s ease, filter 0.2s ease;
}

.header-search button:hover,
.mobile-search button:hover,
.page-search button:hover,
.hero-search button:hover {
  filter: brightness(1.05);
}

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

.desktop-nav a,
.mobile-panel nav a {
  padding: 9px 14px;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.88);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-panel nav a:hover,
.mobile-panel nav a.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
}

.menu-toggle {
  display: none;
  border: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
  cursor: pointer;
}

.mobile-panel {
  padding: 0 16px 18px;
}

.mobile-search {
  display: flex;
  margin: 4px auto 14px;
  overflow: hidden;
  border-radius: 14px;
  background: #ffffff;
}

.mobile-search input,
.page-search input,
.hero-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 13px 16px;
  color: #0f172a;
}

.mobile-panel nav {
  display: grid;
  gap: 6px;
}

.category-strip {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.category-strip-inner {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 10px 0;
  scrollbar-width: none;
}

.category-strip-inner::-webkit-scrollbar {
  display: none;
}

.category-strip a {
  flex: 0 0 auto;
  padding: 6px 13px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.12);
  font-size: 14px;
}

.category-strip a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.22);
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 640px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand-cyan), var(--brand-blue) 50%, var(--brand-teal));
}

.hero-layer {
  position: absolute;
  border-radius: 999px;
  filter: blur(20px);
  opacity: 0.38;
  z-index: -1;
}

.hero-layer-one {
  width: 460px;
  height: 460px;
  left: -150px;
  top: 80px;
  background: #67e8f9;
}

.hero-layer-two {
  width: 560px;
  height: 560px;
  right: -180px;
  bottom: -160px;
  background: #22d3ee;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 130px;
  background: linear-gradient(0deg, #f1f5f9, transparent);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 440px;
  align-items: center;
  gap: 44px;
  min-height: 640px;
  padding: 54px 0 90px;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: #cffafe;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.eyebrow {
  color: var(--brand-cyan);
}

.hero-copy h1 {
  max-width: 760px;
  margin: 0 0 18px;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.hero-copy p {
  max-width: 680px;
  margin: 0 0 26px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(18px, 2vw, 24px);
}

.hero-search,
.page-search {
  display: flex;
  max-width: 650px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 55px rgba(15, 23, 42, 0.2);
}

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

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

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

.button-light {
  color: var(--brand-cyan);
  background: #ffffff;
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.16);
}

.button-ghost {
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.12);
}

.hero-showcase {
  position: relative;
  min-height: 520px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 32px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.28);
  backdrop-filter: blur(18px);
}

.hero-slides {
  position: relative;
  height: 460px;
  overflow: hidden;
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.2);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.65s ease, transform 0.65s ease;
  transform: scale(1.02);
}

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

.hero-poster {
  position: absolute;
  inset: 0;
  border-radius: 24px;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.88), rgba(15, 23, 42, 0.04) 55%);
}

.hero-slide-copy {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 2;
}

.hero-slide-copy em,
.hero-slide-copy small {
  display: block;
  color: rgba(255, 255, 255, 0.76);
  font-style: normal;
}

.hero-slide-copy strong {
  display: block;
  margin: 5px 0 4px;
  font-size: 28px;
  line-height: 1.2;
}

.hero-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.hero-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

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

.stats-band {
  margin-top: -52px;
  position: relative;
  z-index: 3;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.stats-grid div {
  padding: 24px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.stats-grid strong {
  display: block;
  color: var(--brand-cyan);
  font-size: 34px;
  line-height: 1;
}

.stats-grid span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}

.section-block {
  padding: 62px 0;
}

.section-soft {
  background: #e0f2fe;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 26px;
}

.section-heading h2 {
  margin: 0;
  color: var(--brand-dark);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.section-heading p {
  max-width: 680px;
  margin: 8px 0 0;
  color: var(--muted);
}

.section-link {
  flex: 0 0 auto;
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--brand-cyan);
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
  font-weight: 800;
}

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

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

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(8, 145, 178, 0.35);
  box-shadow: 0 24px 50px rgba(8, 145, 178, 0.16);
}

.poster {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #0e7490, #2563eb 52%, #0f766e);
}

.movie-card .poster {
  aspect-ratio: 2 / 3;
}

.poster img {
  transition: transform 0.35s ease, opacity 0.2s ease;
}

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

.poster-fallback {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  padding: 18px;
  color: #ffffff;
  text-align: center;
  font-weight: 900;
  line-height: 1.3;
  background: radial-gradient(circle at top left, rgba(255,255,255,0.18), transparent 40%);
}

.poster.poster-missing img {
  opacity: 0;
}

.poster.poster-missing .poster-fallback {
  display: grid;
}

.card-play {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: var(--brand-cyan);
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.22);
  transform: translateY(8px);
  opacity: 0;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.movie-card:hover .card-play {
  opacity: 1;
  transform: translateY(0);
}

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

.movie-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.movie-card-meta span,
.rank-badge {
  padding: 3px 7px;
  border-radius: 999px;
  background: #f1f5f9;
}

.rank-badge {
  color: #ffffff;
  background: linear-gradient(90deg, #f97316, #ef4444);
  font-weight: 800;
}

.movie-card h3 {
  margin: 10px 0 6px;
  color: var(--brand-dark);
  font-size: 18px;
  line-height: 1.28;
}

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

.movie-card p {
  min-height: 50px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.tag-row span,
.tag-row a {
  padding: 4px 8px;
  border-radius: 999px;
  color: #0e7490;
  background: #ecfeff;
  font-size: 12px;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 230px;
  padding: 22px;
  border-radius: 26px;
  color: #ffffff;
  background: linear-gradient(135deg, #0891b2, #2563eb 54%, #0d9488);
  box-shadow: var(--shadow);
}

.category-card strong,
.category-card small,
.category-card em {
  position: relative;
  z-index: 2;
  display: block;
}

.category-card strong {
  font-size: 24px;
}

.category-card small {
  margin-top: 4px;
  color: #cffafe;
}

.category-card em {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.82);
  font-style: normal;
}

.category-card-poster {
  position: absolute;
  right: -18px;
  bottom: -36px;
  width: 130px;
  aspect-ratio: 2 / 3;
  border-radius: 18px;
  transform: rotate(7deg);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.3);
}

.category-glow {
  position: absolute;
  inset: auto -40px -80px auto;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

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

.rank-panel,
.ranking-column,
.detail-side,
.overview-card {
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

.rank-panel {
  position: sticky;
  top: 128px;
  align-self: start;
  padding: 18px;
}

.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-weight: 900;
}

.panel-title a {
  color: var(--brand-cyan);
  font-size: 14px;
}

.media-list {
  display: grid;
  gap: 10px;
}

.media-item {
  display: grid;
  grid-template-columns: auto 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 16px;
  background: #f8fafc;
  transition: background 0.2s ease, transform 0.2s ease;
}

.media-item:hover {
  transform: translateX(3px);
  background: #ecfeff;
}

.media-rank {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #ef4444);
  font-size: 12px;
  font-weight: 900;
}

.media-thumb {
  width: 54px;
  aspect-ratio: 2 / 3;
  border-radius: 10px;
}

.media-copy {
  min-width: 0;
}

.media-copy strong,
.media-copy em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.media-copy strong {
  color: var(--brand-dark);
}

.media-copy em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.media-score {
  color: #f97316;
  font-weight: 900;
}

.sub-hero {
  padding: 80px 0 68px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand-cyan), var(--brand-blue), var(--brand-teal));
}

.sub-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.1;
  letter-spacing: -0.05em;
}

.sub-hero p {
  max-width: 820px;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
}

.sub-hero .eyebrow,
.detail-hero .eyebrow {
  color: #cffafe;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #ffffff;
}

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

.overview-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  padding: 24px;
}

.overview-main h2 {
  margin: 10px 0 8px;
  color: var(--brand-dark);
  font-size: 28px;
}

.overview-main p {
  margin: 0;
  color: var(--muted);
}

.overview-count {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--brand-cyan);
  background: #ecfeff;
  font-weight: 800;
}

.overview-posters {
  display: flex;
  align-items: center;
  margin-right: 14px;
}

.mini-poster {
  width: 62px;
  aspect-ratio: 2 / 3;
  margin-right: -14px;
  border: 3px solid #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
}

.horizontal-scroller {
  display: grid;
  grid-auto-columns: minmax(190px, 1fr);
  grid-auto-flow: column;
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 10px;
  scrollbar-width: thin;
}

.filter-toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 170px 170px auto auto;
  align-items: end;
  gap: 12px;
  margin-bottom: 24px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.filter-toolbar label span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.filter-toolbar input,
.filter-toolbar select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: 0;
  padding: 11px 12px;
  background: #f8fafc;
}

.filter-toolbar input:focus,
.filter-toolbar select:focus {
  border-color: var(--brand-cyan);
  box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.14);
}

.clear-filter {
  border: 0;
  border-radius: 12px;
  padding: 12px 16px;
  color: #ffffff;
  background: var(--brand-dark);
  cursor: pointer;
}

.filter-count {
  color: var(--brand-cyan);
  white-space: nowrap;
}

.ranking-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.ranking-column {
  padding: 18px;
}

.ranking-column h2 {
  margin: 0 0 14px;
  color: var(--brand-dark);
}

.page-search {
  margin-top: 24px;
}

.search-status {
  margin-bottom: 18px;
  padding: 16px 18px;
  border-radius: 16px;
  color: var(--brand-dark);
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

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

.detail-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.28;
  filter: blur(10px) saturate(1.2);
  transform: scale(1.08);
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.65), rgba(15, 23, 42, 0.88));
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  padding: 54px 0 62px;
}

.detail-hero-grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 34px;
  align-items: end;
}

.detail-cover {
  aspect-ratio: 2 / 3;
  border: 5px solid rgba(255, 255, 255, 0.22);
  border-radius: 28px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
}

.detail-copy h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.detail-one-line {
  max-width: 850px;
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 19px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 14px;
}

.detail-meta span {
  padding: 6px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.13);
}

.detail-tags a {
  color: #cffafe;
  background: rgba(255, 255, 255, 0.13);
}

.player-shell {
  overflow: hidden;
  border-radius: 28px;
  color: #ffffff;
  background: #020617;
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.26);
}

.player-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 20px;
  background: linear-gradient(90deg, rgba(8,145,178,0.55), rgba(37,99,235,0.38));
}

.player-status {
  color: #cbd5e1;
  font-size: 14px;
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.video-frame video {
  display: block;
  width: 100%;
  height: 100%;
  background: #000000;
}

.player-start {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.7), rgba(2, 6, 23, 0.16));
  cursor: pointer;
}

.player-start span {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border-radius: 999px;
  color: var(--brand-cyan);
  background: #ffffff;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
  font-size: 28px;
}

.player-start strong {
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.player-shell.is-playing .player-start {
  opacity: 0;
  pointer-events: none;
}

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

.detail-article {
  padding: 30px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

.detail-article h2,
.detail-side h2 {
  margin: 0 0 14px;
  color: var(--brand-dark);
}

.detail-article p {
  margin: 0 0 24px;
  color: #334155;
  font-size: 17px;
}

.detail-side {
  align-self: start;
  padding: 24px;
}

.detail-side dl {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 10px 14px;
  margin: 0;
}

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

.detail-side dd {
  margin: 0;
  color: var(--brand-dark);
  font-weight: 700;
}

.site-footer {
  padding-top: 48px;
  color: #cbd5e1;
  background: linear-gradient(135deg, #0f172a, #1e293b 55%, #0f172a);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 28px;
}

.footer-brand {
  display: inline-block;
  margin-bottom: 10px;
  color: #ffffff;
  font-size: 26px;
  font-weight: 900;
}

.site-footer h3 {
  margin: 0 0 12px;
  color: #ffffff;
}

.site-footer p {
  max-width: 540px;
  margin: 0;
}

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

.footer-links a {
  padding: 6px 10px;
  border-radius: 999px;
  color: #cffafe;
  background: rgba(255, 255, 255, 0.08);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
  padding: 18px;
  color: #94a3b8;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
}

.back-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 45;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: var(--brand-cyan);
  box-shadow: 0 16px 34px rgba(8, 145, 178, 0.32);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

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

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

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

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

  .hero-showcase {
    max-width: 560px;
  }

  .split-layout,
  .detail-content-grid,
  .ranking-columns {
    grid-template-columns: 1fr;
  }

  .rank-panel {
    position: static;
  }
}

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

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

  .brand {
    min-width: auto;
  }

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

  .hero {
    min-height: auto;
  }

  .hero-inner {
    min-height: auto;
    padding-top: 42px;
  }

  .hero-search,
  .page-search {
    flex-direction: column;
  }

  .hero-showcase {
    min-height: 430px;
  }

  .hero-slides {
    height: 365px;
  }

  .stats-grid,
  .overview-grid,
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

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

  .detail-hero-grid {
    grid-template-columns: 170px minmax(0, 1fr);
  }

  .detail-copy h1 {
    font-size: 36px;
  }
}

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

  .header-main {
    min-height: 68px;
  }

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

  .brand-text small {
    display: none;
  }

  .category-strip-inner {
    padding-left: 0;
  }

  .hero-copy h1 {
    font-size: 38px;
  }

  .hero-showcase {
    min-height: 390px;
    padding: 12px;
  }

  .hero-slides {
    height: 332px;
  }

  .hero-slide-copy {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }

  .hero-slide-copy strong {
    font-size: 22px;
  }

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

  .section-heading {
    display: block;
  }

  .section-link {
    display: inline-flex;
    margin-top: 16px;
  }

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

  .overview-posters {
    margin-right: 0;
  }

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

  .detail-cover {
    width: 180px;
  }

  .player-header {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .media-item {
    grid-template-columns: auto 48px minmax(0, 1fr);
  }

  .media-score {
    display: none;
  }
}
