*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg: #020617;
  --bg-soft: #0f172a;
  --panel: #1e293b;
  --panel-light: #334155;
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-2: #64748b;
  --line: rgba(148, 163, 184, 0.2);
  --cyan: #06b6d4;
  --cyan-strong: #0891b2;
  --blue: #2563eb;
  --orange: #f97316;
  --red: #ef4444;
  --radius: 24px;
  --shadow: 0 24px 60px rgba(2, 6, 23, 0.45);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: linear-gradient(180deg, #020617 0%, #0f172a 42%, #020617 100%);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.96));
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: 0 16px 40px rgba(2, 6, 23, 0.35);
  backdrop-filter: blur(18px);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: white;
  font-weight: 900;
  font-size: 20px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 10px 24px rgba(6, 182, 212, 0.32);
}

.brand-copy,
.footer-brand span:last-child {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand strong,
.footer-brand strong {
  color: white;
  font-size: 24px;
  letter-spacing: 0.08em;
}

.brand small,
.footer-brand small {
  color: #67e8f9;
  font-size: 12px;
  margin-top: 4px;
}

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

.nav-link {
  position: relative;
  color: #e2e8f0;
  font-weight: 700;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  opacity: 0;
  transform: translateY(6px);
  transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #67e8f9;
}

.nav-link:hover::after,
.nav-link.is-active::after {
  opacity: 1;
  transform: translateY(0);
}

.header-search,
.mobile-search,
.big-search {
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.75);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.header-search {
  width: 260px;
  border-radius: 999px;
}

.header-search input,
.mobile-search input,
.big-search input,
.filter-bar input,
.filter-bar select {
  min-width: 0;
  color: white;
  border: 0;
  outline: 0;
  background: transparent;
}

.header-search input {
  flex: 1;
  padding: 12px 4px 12px 18px;
}

.header-search button {
  width: 44px;
  height: 44px;
  color: #cbd5e1;
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: color 0.2s ease;
}

.header-search button:hover {
  color: #67e8f9;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: rgba(51, 65, 85, 0.8);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: white;
}

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

.mobile-panel.is-open {
  display: block;
}

.mobile-search {
  border-radius: 18px;
  margin-bottom: 14px;
}

.mobile-search input {
  flex: 1;
  padding: 13px 16px;
}

.mobile-search button,
.big-search button {
  border: 0;
  color: white;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  cursor: pointer;
  font-weight: 800;
}

.mobile-search button {
  padding: 13px 18px;
}

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

.mobile-link {
  padding: 12px 14px;
  border-radius: 14px;
  color: #e2e8f0;
  background: rgba(51, 65, 85, 0.45);
}

.mobile-link.is-active,
.mobile-link:hover {
  color: white;
  background: rgba(6, 182, 212, 0.24);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 680px;
  background: #020617;
}

.hero-stage {
  position: relative;
  height: 680px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  transform: scale(1.03);
  background-image: linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.72) 46%, rgba(2, 6, 23, 0.18) 100%), var(--hero-bg);
  background-size: cover;
  background-position: center;
  transition: opacity 0.65s ease, transform 0.85s ease;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 22% 32%, rgba(6, 182, 212, 0.25), transparent 36%), linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.78));
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  max-width: 760px;
  padding-right: 420px;
}

.hero-kicker,
.page-hero span,
.section-head span,
.pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  font-weight: 800;
  letter-spacing: 0.06em;
}

.hero-kicker,
.page-hero span,
.pill {
  padding: 7px 14px;
  font-size: 13px;
}

.hero h1,
.hero h2 {
  margin: 18px 0;
  max-width: 760px;
  color: white;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero p {
  max-width: 660px;
  margin: 0 0 22px;
  color: #e2e8f0;
  font-size: clamp(17px, 2vw, 22px);
}

.hero-meta,
.detail-meta,
.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: #cbd5e1;
}

.hero-meta span,
.detail-meta span,
.movie-meta span {
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(15, 23, 42, 0.68);
  border: 1px solid rgba(148, 163, 184, 0.16);
}

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

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

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

.btn-primary {
  color: white;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 16px 32px rgba(6, 182, 212, 0.22);
}

.btn-ghost {
  color: white;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(14px);
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 128px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 16px;
  width: min(1180px, calc(100% - 32px));
  transform: translateX(-50%);
}

.hero-arrow,
.hero-dot {
  border: 0;
  cursor: pointer;
}

.hero-arrow {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  color: white;
  font-size: 28px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

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

.hero-dot {
  width: 34px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.36);
}

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

.hero-thumbs {
  position: absolute;
  left: 50%;
  right: auto;
  bottom: 22px;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  width: min(1180px, calc(100% - 32px));
  transform: translateX(-50%);
}

.hero-thumb {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 78px;
  padding: 8px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(18px);
  transition: border 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.hero-thumb:hover,
.hero-thumb.is-active {
  transform: translateY(-2px);
  border-color: rgba(6, 182, 212, 0.7);
  background: rgba(15, 23, 42, 0.9);
}

.hero-thumb img {
  width: 62px;
  height: 62px;
  object-fit: cover;
  border-radius: 14px;
}

.hero-thumb span {
  overflow: hidden;
  color: white;
  font-weight: 800;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.quick-search-panel {
  width: min(1180px, calc(100% - 32px));
  margin: -42px auto 0;
  position: relative;
  z-index: 8;
  display: grid;
  grid-template-columns: 1fr minmax(320px, 520px);
  gap: 22px;
  align-items: center;
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.96));
  box-shadow: var(--shadow);
}

.quick-search-panel span {
  color: #67e8f9;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.quick-search-panel h2 {
  margin: 6px 0 0;
  font-size: clamp(24px, 3vw, 36px);
}

.big-search {
  border-radius: 999px;
}

.big-search input {
  flex: 1;
  padding: 17px 20px;
}

.big-search button {
  align-self: stretch;
  padding: 0 28px;
}

.movie-section {
  padding: 74px max(16px, calc((100% - 1180px) / 2));
}

.bg-slate {
  background: #1e293b;
}

.bg-dark {
  background: #0f172a;
}

.section-head {
  max-width: 760px;
  margin: 0 auto 42px;
  text-align: center;
}

.section-head span {
  margin: 0 auto 12px;
  padding: 7px 16px;
  font-size: 12px;
}

.section-head h2 {
  margin: 0;
  color: white;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.12;
}

.section-head p {
  margin: 12px auto 0;
  color: var(--muted);
  max-width: 620px;
}

.section-head i {
  display: block;
  width: 82px;
  height: 4px;
  margin: 18px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
}

.movie-grid {
  display: grid;
  gap: 18px;
}

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

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

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

.movie-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: 22px;
  background: #334155;
  box-shadow: 0 16px 34px rgba(2, 6, 23, 0.26);
  transition: transform 0.26s ease, box-shadow 0.26s ease, background 0.26s ease;
}

.movie-link:hover {
  transform: translateY(-8px);
  background: #3f516b;
  box-shadow: 0 26px 54px rgba(2, 6, 23, 0.4);
}

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

.poster-wrap img,
.wide-poster img,
.category-collage img,
.category-images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.32s ease;
}

.movie-link:hover img,
.wide-card:hover img,
.related-card:hover img,
.category-card-large:hover img,
.category-tile:hover img {
  transform: scale(1.08);
}

.poster-shade {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: rgba(0, 0, 0, 0.44);
  transition: opacity 0.25s ease;
}

.movie-link:hover .poster-shade {
  opacity: 1;
}

.year-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  color: white;
  background: var(--cyan);
  font-size: 12px;
  font-weight: 900;
}

.play-float {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 999px;
  color: var(--cyan);
  background: rgba(255, 255, 255, 0.92);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.86);
  transition: all 0.25s ease;
}

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

.movie-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
}

.movie-info strong,
.wide-body strong,
.rank-copy strong,
.related-card strong {
  color: white;
  font-size: 16px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-info em,
.wide-body em,
.rank-copy em,
.related-card em {
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-meta {
  gap: 6px;
  margin-top: auto;
}

.movie-meta span {
  padding: 4px 7px;
  color: #cbd5e1;
  font-size: 11px;
}

.movie-card-compact .movie-info em,
.movie-card-compact .movie-meta span:nth-child(3) {
  display: none;
}

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

.wide-card a {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 24px;
  overflow: hidden;
  border-radius: 22px;
  background: #1e293b;
  box-shadow: 0 14px 34px rgba(2, 6, 23, 0.25);
  transition: transform 0.24s ease, background 0.24s ease;
}

.wide-card a:hover {
  transform: translateY(-4px);
  background: #27364c;
}

.wide-poster {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  background: #020617;
}

.wide-poster span {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border-radius: 999px;
  color: var(--cyan);
  background: rgba(255, 255, 255, 0.92);
  transform: translate(-50%, -50%);
}

.wide-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 24px 24px 24px 0;
}

.wide-body strong {
  font-size: 24px;
}

.wide-body small,
.rank-copy small {
  color: var(--muted-2);
}

.rank-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

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

.rank-item a {
  display: grid;
  grid-template-columns: 64px 82px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 14px;
  border-radius: 20px;
  background: #0f172a;
  border: 1px solid rgba(148, 163, 184, 0.12);
  transition: transform 0.2s ease, border 0.2s ease, background 0.2s ease;
}

.rank-item a:hover {
  transform: translateX(4px);
  border-color: rgba(6, 182, 212, 0.45);
  background: #172238;
}

.rank-number {
  color: #67e8f9;
  font-size: 28px;
  font-weight: 1000;
  text-align: center;
}

.rank-item img {
  width: 82px;
  height: 110px;
  object-fit: cover;
  border-radius: 14px;
}

.rank-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 6px;
}

.compact-ranks .rank-item a {
  grid-template-columns: 52px 72px minmax(0, 1fr);
}

.section-more {
  display: flex;
  justify-content: center;
  margin-top: 34px;
}

.category-grid,
.category-large-grid {
  display: grid;
  gap: 18px;
}

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

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

.category-tile,
.category-card-large a {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
  padding: 18px;
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(135deg, #334155, #0f172a);
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: 0 18px 42px rgba(2, 6, 23, 0.26);
  transition: transform 0.24s ease, border 0.24s ease;
}

.category-tile:hover,
.category-card-large a:hover {
  transform: translateY(-6px);
  border-color: rgba(6, 182, 212, 0.48);
}

.category-images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  height: 110px;
}

.category-images img,
.category-collage img {
  border-radius: 16px;
}

.category-tile strong,
.category-card-body strong {
  color: white;
  font-size: 22px;
}

.category-tile em,
.category-card-body em {
  color: var(--muted);
  font-style: normal;
}

.category-collage {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  height: 170px;
}

.category-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.category-card-body span {
  color: #67e8f9;
  font-weight: 900;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 92px max(16px, calc((100% - 1180px) / 2));
  background: radial-gradient(circle at 18% 20%, rgba(6, 182, 212, 0.22), transparent 30%), linear-gradient(135deg, #020617, #1e293b 55%, #0f172a);
}

.page-hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -160px;
  width: 460px;
  height: 460px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.18);
  filter: blur(12px);
}

.page-hero > div {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

.page-hero h1 {
  margin: 18px 0 14px;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.08;
}

.page-hero p {
  margin: 0;
  max-width: 760px;
  color: #cbd5e1;
  font-size: 18px;
}

.filter-bar {
  width: min(1180px, calc(100% - 32px));
  margin: -30px auto 0;
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) repeat(3, minmax(160px, 220px));
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.95);
  box-shadow: var(--shadow);
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 14px;
  background: rgba(51, 65, 85, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.filter-bar select {
  color: white;
}

.filter-bar option {
  color: #0f172a;
}

.result-hint {
  min-height: 28px;
  margin: -20px 0 18px;
  color: #67e8f9;
  font-weight: 800;
}

.page-list-section {
  padding-top: 66px;
}

.watch-top {
  background: #020617;
  min-height: 80vh;
  padding: 26px 0 74px;
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: #94a3b8;
  margin-bottom: 18px;
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #67e8f9;
}

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

.watch-main {
  display: grid;
  gap: 22px;
}

.player-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  background: black;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.55);
}

.movie-video {
  width: 100%;
  height: 100%;
  display: block;
  background: black;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  align-content: center;
  color: white;
  border: 0;
  cursor: pointer;
  background-image: linear-gradient(180deg, rgba(2, 6, 23, 0.28), rgba(2, 6, 23, 0.85)), var(--poster-bg);
  background-size: cover;
  background-position: center;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

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

.player-play {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 999px;
  color: var(--cyan);
  font-size: 30px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 42px rgba(6, 182, 212, 0.28);
}

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

.detail-card,
.related-panel {
  border-radius: 24px;
  background: #1e293b;
  box-shadow: 0 18px 42px rgba(2, 6, 23, 0.25);
}

.detail-card {
  padding: 28px;
}

.detail-card h1 {
  margin: 18px 0 12px;
  color: white;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.1;
}

.detail-meta {
  margin-bottom: 18px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0;
}

.tag-list a {
  padding: 7px 12px;
  border-radius: 999px;
  color: #cbd5e1;
  background: rgba(51, 65, 85, 0.92);
  transition: color 0.2s ease, background 0.2s ease;
}

.tag-list a:hover {
  color: white;
  background: rgba(6, 182, 212, 0.55);
}

.text-block {
  margin-top: 24px;
}

.text-block h2,
.related-panel h2 {
  margin: 0 0 12px;
  color: white;
  font-size: 22px;
}

.text-block p {
  margin: 0 0 12px;
  color: #cbd5e1;
}

.related-panel {
  position: sticky;
  top: 104px;
  padding: 20px;
}

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

.related-card {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 8px;
  border-radius: 16px;
  background: rgba(51, 65, 85, 0.5);
  transition: background 0.2s ease, transform 0.2s ease;
}

.related-card:hover {
  transform: translateX(3px);
  background: rgba(51, 65, 85, 0.9);
}

.related-card img {
  width: 86px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 12px;
}

.related-card span {
  min-width: 0;
}

.site-footer {
  background: linear-gradient(180deg, #020617, #000);
  color: #94a3b8;
  padding: 56px max(16px, calc((100% - 1180px) / 2)) 24px;
}

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

.site-footer h2 {
  margin: 0 0 16px;
  color: white;
  font-size: 18px;
}

.site-footer p {
  max-width: 360px;
}

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

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

.footer-bottom {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  text-align: center;
}

.is-hidden {
  display: none !important;
}

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

  .menu-toggle {
    display: block;
  }

  .hero-content {
    padding-right: 0;
  }

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

  .hero-thumb:nth-child(n + 4) {
    display: none;
  }

  .quick-search-panel,
  .filter-bar,
  .watch-grid {
    grid-template-columns: 1fr;
  }

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

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

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

  .related-panel {
    position: static;
  }

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

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

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

  .hero,
  .hero-stage {
    min-height: 620px;
    height: 620px;
  }

  .hero-content {
    align-self: center;
  }

  .hero-controls {
    bottom: 116px;
  }

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

  .hero-thumb:nth-child(n + 2) {
    display: none;
  }

  .quick-search-panel {
    padding: 22px;
  }

  .movie-section {
    padding-top: 54px;
    padding-bottom: 54px;
  }

  .featured-grid,
  .full-grid,
  .masonry-grid,
  .category-grid,
  .category-large-grid,
  .rank-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .wide-card a,
  .rank-item a {
    grid-template-columns: 1fr;
  }

  .wide-poster {
    aspect-ratio: 16 / 9;
  }

  .wide-body {
    padding: 18px;
  }

  .rank-number {
    text-align: left;
  }

  .rank-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 3;
  }

  .page-hero {
    padding-top: 64px;
    padding-bottom: 78px;
  }

  .filter-bar {
    margin-top: -40px;
  }

  .watch-top {
    padding-top: 18px;
  }

  .detail-card {
    padding: 22px;
  }

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

@media (max-width: 480px) {
  .hero h1,
  .hero h2 {
    font-size: 38px;
  }

  .hero p,
  .page-hero p {
    font-size: 16px;
  }

  .big-search {
    flex-direction: column;
    align-items: stretch;
    border-radius: 20px;
  }

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

  .featured-grid,
  .full-grid,
  .masonry-grid,
  .category-grid,
  .category-large-grid,
  .rank-grid {
    grid-template-columns: 1fr;
  }

  .movie-link {
    border-radius: 18px;
  }
}
