:root {
  color-scheme: dark;
  --bg: #020617;
  --bg-soft: #0f172a;
  --bg-card: rgba(15, 23, 42, 0.72);
  --bg-card-strong: rgba(15, 23, 42, 0.92);
  --line: rgba(148, 163, 184, 0.22);
  --line-bright: rgba(34, 211, 238, 0.48);
  --text: #f8fafc;
  --muted: #94a3b8;
  --soft: #cbd5e1;
  --cyan: #22d3ee;
  --blue: #3b82f6;
  --green: #22c55e;
  --orange: #f97316;
  --shadow-cyan: 0 24px 80px rgba(34, 211, 238, 0.18);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 15% 10%, rgba(34, 211, 238, 0.12), transparent 32rem),
    radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.12), transparent 36rem),
    linear-gradient(135deg, #020617 0%, #0f172a 50%, #020617 100%);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

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

.nav-shell {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.brand-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: white;
  box-shadow: 0 14px 36px rgba(34, 211, 238, 0.28);
  transition: transform 0.3s ease;
}

.brand:hover .brand-icon {
  transform: scale(1.08) rotate(-3deg);
}

.brand-text {
  display: grid;
  line-height: 1.15;
}

.brand-text strong {
  font-size: 1.18rem;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, #60a5fa, #22d3ee);
  -webkit-background-clip: text;
  color: transparent;
}

.brand-text small {
  color: var(--muted);
  font-size: 0.74rem;
  margin-top: 3px;
}

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

.nav-link,
.mobile-link {
  color: var(--soft);
  border-radius: 12px;
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.nav-link {
  padding: 10px 16px;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: #fff;
  background: rgba(51, 65, 85, 0.72);
}

.nav-link:hover {
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.72);
  color: white;
}

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

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

.mobile-link {
  display: block;
  padding: 12px 16px;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(15, 23, 42, 0.88) 40%, rgba(15, 23, 42, 0.24) 100%),
    linear-gradient(0deg, rgba(2, 6, 23, 1) 0%, transparent 42%);
}

.hero-content {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: center;
  gap: 48px;
  z-index: 2;
  padding-top: 42px;
}

.hero-copy {
  max-width: 720px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  margin-bottom: 24px;
  border-radius: 999px;
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.13);
  border: 1px solid rgba(34, 211, 238, 0.42);
  backdrop-filter: blur(10px);
  font-size: 0.92rem;
  font-weight: 700;
}

.hero-copy h1 {
  margin: 0 0 22px;
  font-size: clamp(3rem, 7vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.hero-copy p {
  max-width: 660px;
  margin: 0 0 28px;
  color: var(--soft);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.9;
}

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

.hero-tags span,
.tag-list a {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid var(--line);
  color: var(--soft);
  font-size: 0.88rem;
}

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

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.primary-button {
  color: #fff;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  box-shadow: var(--shadow-cyan);
}

.ghost-button {
  color: var(--soft);
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.54);
}

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

.ghost-button:hover {
  border-color: var(--line-bright);
  color: #fff;
}

.hero-poster {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 28px 80px rgba(2, 6, 23, 0.55), 0 0 56px rgba(34, 211, 238, 0.12);
  transform: rotate(2deg);
  transition: transform 0.4s ease;
}

.hero-poster:hover {
  transform: rotate(0deg) scale(1.03);
}

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

.hero-poster span {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 12px 14px;
  text-align: center;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(2, 6, 23, 0.56);
  color: white;
  font-size: 2rem;
  line-height: 1;
  backdrop-filter: blur(12px);
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

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

.hero-dot {
  width: 11px;
  height: 11px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(203, 213, 225, 0.45);
  transition: width 0.25s ease, background 0.25s ease;
}

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

.hero-search {
  position: absolute;
  left: 50%;
  bottom: 64px;
  z-index: 4;
  display: flex;
  width: min(620px, calc(100% - 36px));
  padding: 8px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.64);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.hero-search input,
.search-box input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  color: white;
  background: transparent;
}

.hero-search input {
  padding: 0 16px;
}

.hero-search button {
  border: 0;
  border-radius: 999px;
  padding: 12px 22px;
  color: #fff;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  font-weight: 800;
}

.category-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding: 36px 0 6px;
}

.category-pill,
.channel-card,
.cta-grid a,
.filter-panel,
.detail-card,
.side-card,
.player-card {
  border: 1px solid var(--line);
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 54px rgba(2, 6, 23, 0.22);
}

.category-pill {
  min-height: 112px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  border-radius: var(--radius-md);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.category-pill strong {
  font-size: 1.1rem;
}

.category-pill span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.category-pill:hover,
.channel-card:hover,
.cta-grid a:hover,
.movie-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-bright);
}

.content-section {
  padding: 64px 0;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.section-heading h2,
.rank-copy h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  line-height: 1.1;
}

.section-heading p,
.rank-copy p {
  margin: 8px 0 0;
  color: var(--muted);
}

.section-line {
  width: 5px;
  min-height: 42px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--cyan), var(--blue));
}

.accent-orange .section-line {
  background: linear-gradient(180deg, var(--orange), #ef4444);
}

.accent-green .section-line {
  background: linear-gradient(180deg, var(--green), #10b981);
}

.accent-blue .section-line {
  background: linear-gradient(180deg, #60a5fa, #22d3ee);
}

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

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

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

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

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

.movie-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  overflow: hidden;
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
  box-shadow: 0 24px 70px rgba(34, 211, 238, 0.14);
}

.movie-card-link {
  display: grid;
  height: 100%;
}

.poster-frame {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #0f172a;
}

.movie-card-wide .movie-card-link {
  grid-template-columns: 220px 1fr;
}

.movie-card-wide .poster-frame {
  aspect-ratio: 16 / 10;
  height: 100%;
}

.poster-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.72), transparent 58%);
}

.card-badge,
.rank-number,
.play-float {
  position: absolute;
  z-index: 2;
}

.card-badge {
  top: 12px;
  left: 12px;
  max-width: calc(100% - 24px);
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.85);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.rank-number {
  top: 12px;
  right: 12px;
  min-width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), #ef4444);
  color: #fff;
  font-weight: 900;
}

.play-float {
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(34, 211, 238, 0.86);
  color: white;
  transform: translate(-50%, -50%) scale(0.72);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  box-shadow: 0 16px 40px rgba(34, 211, 238, 0.3);
}

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

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

.movie-card-body h3 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 1.05rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
  transition: color 0.25s ease;
}

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

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

.card-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  color: #64748b;
  font-size: 0.78rem;
}

.feature-band,
.rank-band {
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.42), rgba(30, 41, 59, 0.48), rgba(15, 23, 42, 0.42));
}

.horizontal-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 310px);
  gap: 22px;
  overflow-x: auto;
  padding: 8px 4px 20px;
  scroll-snap-type: x proximity;
}

.horizontal-row .movie-card {
  scroll-snap-align: start;
}

.horizontal-row::-webkit-scrollbar {
  height: 8px;
}

.horizontal-row::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.28);
}

.rank-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 40px;
  align-items: center;
  padding: 66px 0;
}

.rank-copy {
  display: grid;
  gap: 18px;
  align-content: start;
}

.rank-copy .primary-button {
  width: fit-content;
}

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

.mini-movie {
  display: grid;
  grid-template-columns: auto 64px 1fr;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.72);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.mini-movie:hover {
  transform: translateX(4px);
  border-color: var(--line-bright);
}

.mini-rank {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(34, 211, 238, 0.14);
  color: var(--cyan);
  font-weight: 900;
}

.mini-movie img {
  width: 64px;
  height: 82px;
  object-fit: cover;
  border-radius: 10px;
}

.mini-movie span {
  min-width: 0;
}

.mini-movie strong,
.mini-movie em {
  display: block;
}

.mini-movie strong {
  overflow: hidden;
  color: #fff;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-movie em {
  margin-top: 4px;
  color: var(--muted);
  font-style: normal;
  font-size: 0.82rem;
}

.sub-hero,
.ranking-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 20%, rgba(34, 211, 238, 0.16), transparent 28rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.96));
}

.sub-hero {
  padding: 84px 0 76px;
  border-bottom: 1px solid var(--line);
}

.sub-hero p,
.ranking-hero-content p {
  margin: 0 0 12px;
  color: var(--cyan);
  font-weight: 800;
}

.sub-hero h1,
.ranking-hero-content h1 {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.sub-hero span,
.ranking-hero-content span {
  display: block;
  max-width: 760px;
  margin-top: 18px;
  color: var(--soft);
  line-height: 1.8;
}

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

.channel-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
  padding: 18px;
  border-radius: var(--radius-lg);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

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

.channel-covers img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 12px;
}

.channel-info h2 {
  margin: 4px 0 10px;
  font-size: 1.45rem;
}

.channel-info p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.7;
}

.channel-info span {
  color: var(--cyan);
  font-weight: 800;
}

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

.cta-grid a {
  display: grid;
  place-items: center;
  min-height: 118px;
  border-radius: var(--radius-md);
  color: white;
  font-size: 1.2rem;
  font-weight: 900;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.filter-panel {
  display: grid;
  gap: 16px;
  margin-bottom: 28px;
  padding: 18px;
  border-radius: var(--radius-md);
}

.strong-panel {
  padding: 22px;
}

.search-box {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 14px;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.46);
}

.search-box span {
  color: var(--cyan);
  font-weight: 800;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 14px;
  color: var(--soft);
  background: rgba(15, 23, 42, 0.65);
  transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.filter-button:hover,
.filter-button.active {
  color: white;
  border-color: var(--line-bright);
  background: rgba(34, 211, 238, 0.16);
}

.empty-state {
  margin-top: 20px;
  padding: 32px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-md);
  color: var(--muted);
  text-align: center;
}

.ranking-hero {
  min-height: 460px;
  display: grid;
  align-items: center;
}

.ranking-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ranking-hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.62), rgba(2, 6, 23, 0.18)),
    linear-gradient(0deg, rgba(2, 6, 23, 0.96), transparent 52%);
}

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

.ranking-hero-content .primary-button {
  margin-top: 28px;
}

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

.detail-wrap {
  padding: 34px 0 70px;
}

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

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

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

.detail-main {
  min-width: 0;
}

.player-card,
.detail-card,
.side-card {
  border-radius: var(--radius-md);
}

.player-card {
  padding: 12px;
  margin-bottom: 22px;
}

.player {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 16px;
  background: #000;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

.player-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.player-status {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--soft);
  background: rgba(2, 6, 23, 0.52);
  pointer-events: none;
}

.player-status.hidden {
  display: none;
}

.player-big-button {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: 82px;
  height: 82px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(34, 211, 238, 0.88);
  transform: translate(-50%, -50%);
  box-shadow: 0 18px 46px rgba(34, 211, 238, 0.36);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.player-big-button:hover {
  transform: translate(-50%, -50%) scale(1.08);
}

.player.playing .player-big-button {
  opacity: 0;
  pointer-events: none;
}

.player-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 18px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0));
  transform: translateY(100%);
  transition: transform 0.25s ease;
}

.player:hover .player-controls,
.player:focus-within .player-controls {
  transform: translateY(0);
}

.player-controls button {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 10px 14px;
  color: white;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(10px);
}

.detail-card {
  padding: 28px;
}

.detail-card h1 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.detail-meta span {
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(51, 65, 85, 0.72);
  color: var(--soft);
  font-size: 0.86rem;
}

.detail-card h2 {
  margin: 28px 0 12px;
  font-size: 1.35rem;
}

.detail-card p {
  margin: 0;
  color: var(--soft);
  line-height: 1.95;
  font-size: 1rem;
}

.related-section {
  padding-bottom: 0;
}

.detail-side {
  display: grid;
  align-content: start;
  gap: 22px;
}

.side-card {
  padding: 18px;
}

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

.side-card h2 {
  margin: 0 0 14px;
  font-size: 1.25rem;
}

.side-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.small-rank .mini-movie {
  grid-template-columns: auto 54px 1fr;
  gap: 10px;
  padding: 10px;
}

.small-rank .mini-movie img {
  width: 54px;
  height: 68px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.72);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 34px;
  padding: 42px 0;
}

.footer-brand {
  font-size: 1.4rem;
  color: white;
}

.site-footer p {
  max-width: 520px;
  color: var(--muted);
  line-height: 1.8;
}

.site-footer h2 {
  margin: 0 0 14px;
  font-size: 1rem;
}

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

.footer-links a {
  color: var(--muted);
}

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

.footer-bottom {
  padding: 18px;
  border-top: 1px solid var(--line);
  color: #64748b;
  text-align: center;
  font-size: 0.92rem;
}

@media (max-width: 1180px) {
  .grid-five,
  .grid-four,
  .ranking-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

  .nav-toggle {
    display: block;
  }

  .mobile-nav.open {
    display: grid;
  }

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

  .hero-content {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 28px;
  }

  .hero-poster {
    width: min(260px, 70vw);
    justify-self: start;
  }

  .hero-arrow {
    display: none;
  }

  .grid-two,
  .grid-three,
  .grid-four,
  .grid-five,
  .ranking-grid,
  .channel-grid,
  .footer-grid,
  .rank-layout,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .movie-card-wide .movie-card-link {
    grid-template-columns: 1fr;
  }

  .movie-card-wide .poster-frame {
    aspect-ratio: 3 / 4;
  }

  .detail-side {
    order: -1;
  }
}

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

  .brand-text small {
    display: none;
  }

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

  .hero-content {
    padding-top: 20px;
  }

  .hero-copy h1 {
    font-size: 2.75rem;
  }

  .hero-search {
    bottom: 58px;
  }

  .hero-search button {
    padding: 10px 15px;
  }

  .category-strip,
  .cta-grid {
    grid-template-columns: 1fr;
  }

  .content-section {
    padding: 42px 0;
  }

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

  .channel-covers {
    grid-template-columns: repeat(4, 1fr);
  }

  .search-box {
    grid-template-columns: 1fr;
    align-items: start;
    padding: 14px 16px;
    border-radius: 18px;
  }

  .player-big-button {
    width: 66px;
    height: 66px;
  }

  .player-controls {
    transform: translateY(0);
    padding: 10px;
  }

  .player-controls button {
    padding: 8px 10px;
  }
}
