* {
  box-sizing: border-box;
}

:root {
  color-scheme: dark;
  --bg: #030712;
  --panel: #111827;
  --panel-soft: rgba(31, 41, 55, 0.78);
  --panel-deep: rgba(17, 24, 39, 0.92);
  --line: rgba(255, 255, 255, 0.09);
  --text: #f9fafb;
  --muted: #9ca3af;
  --soft: #d1d5db;
  --red: #dc2626;
  --red-dark: #991b1b;
  --orange: #f97316;
  --blue: #60a5fa;
  --yellow: #facc15;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.35);
  --radius: 18px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 12% 10%, rgba(220, 38, 38, 0.16), transparent 30rem),
    radial-gradient(circle at 90% 0%, rgba(249, 115, 22, 0.13), transparent 28rem),
    linear-gradient(180deg, #111827 0%, #030712 38%, #111827 100%);
  color: var(--text);
}

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.98), rgba(31, 41, 55, 0.98), rgba(17, 24, 39, 0.98));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  max-width: 1280px;
  height: 68px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

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

.brand span:last-child,
.footer-brand span:last-child {
  font-size: 24px;
  background: linear-gradient(90deg, #ef4444, #f97316);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  color: #ef4444;
}

.brand-mark svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linejoin: round;
}

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

.nav-link {
  color: #d1d5db;
  font-weight: 650;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #ffffff;
  transform: translateY(-1px);
}

.top-search,
.mobile-search,
.hero-search,
.local-filter,
.search-page-form {
  display: flex;
  align-items: center;
  gap: 10px;
}

.top-search input,
.mobile-search input,
.hero-search input,
.local-filter input,
.search-page-form input {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(55, 65, 81, 0.86);
  color: var(--text);
  outline: none;
  padding: 11px 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.top-search input {
  width: 240px;
}

.top-search input:focus,
.mobile-search input:focus,
.hero-search input:focus,
.local-filter input:focus,
.search-page-form input:focus {
  border-color: rgba(239, 68, 68, 0.92);
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.17);
  background: rgba(55, 65, 81, 1);
}

.top-search button,
.mobile-search button,
.hero-search button,
.search-page-form button {
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--red), var(--orange));
  color: #ffffff;
  padding: 11px 18px;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(220, 38, 38, 0.24);
}

.menu-toggle {
  width: 42px;
  height: 42px;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  background: #ffffff;
  border-radius: 999px;
}

.mobile-panel {
  display: none;
  padding: 14px 22px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(17, 24, 39, 0.98);
}

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

.mobile-nav {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.mobile-link {
  text-align: center;
  padding: 10px;
  border-radius: 12px;
  color: #d1d5db;
  background: rgba(55, 65, 81, 0.56);
}

.mobile-link.is-active,
.mobile-link:hover {
  color: #ffffff;
  background: rgba(220, 38, 38, 0.42);
}

.hero {
  position: relative;
  height: 70vh;
  min-height: 560px;
  overflow: hidden;
  background: #000000;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-slide.is-active {
  opacity: 1;
  z-index: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.18)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.98), transparent 46%);
}

.hero-content {
  position: absolute;
  left: clamp(22px, 8vw, 110px);
  bottom: clamp(54px, 11vh, 110px);
  z-index: 2;
  max-width: 760px;
}

.hero-pill,
.compact-hero span,
.rank-hero span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #dc2626;
  color: #ffffff;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 14px 30px rgba(220, 38, 38, 0.24);
}

.hero h1 {
  margin: 18px 0 14px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: -0.05em;
  text-shadow: 0 24px 60px rgba(0, 0, 0, 0.8);
}

.hero p {
  max-width: 650px;
  margin: 0 0 22px;
  color: #d1d5db;
  font-size: clamp(17px, 2.4vw, 22px);
  line-height: 1.7;
}

.hero-meta,
.meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 11px;
  color: var(--muted);
}

.hero-meta span,
.meta-row span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

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

.btn-primary,
.btn-ghost,
.rank-watch,
.channel-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border-radius: 999px;
  font-weight: 850;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn-primary,
.rank-watch,
.channel-pill {
  border: 0;
  background: linear-gradient(135deg, #dc2626, #f97316);
  color: #ffffff;
  padding: 12px 24px;
  box-shadow: 0 16px 30px rgba(220, 38, 38, 0.27);
}

.btn-primary:hover,
.rank-watch:hover,
.channel-pill:hover,
.btn-ghost:hover {
  transform: translateY(-2px) scale(1.02);
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  padding: 11px 22px;
  backdrop-filter: blur(12px);
}

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

.hero-dots {
  position: absolute;
  right: clamp(22px, 6vw, 86px);
  bottom: 52px;
  z-index: 5;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  transition: width 0.24s ease, background 0.24s ease;
}

.hero-dot.is-active {
  width: 34px;
  background: #dc2626;
}

.main-wrap,
.page-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 58px 22px 0;
}

.page-shell {
  padding-top: 34px;
  padding-bottom: 70px;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 24px;
  align-items: center;
}

.intro-copy,
.glow-panel,
.hot-panel,
.detail-card,
.side-card,
.channel-card,
.rank-hero,
.compact-hero {
  border: 1px solid var(--line);
  background: rgba(17, 24, 39, 0.74);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.intro-copy,
.glow-panel,
.hot-panel,
.detail-card,
.side-card,
.compact-hero {
  padding: clamp(22px, 3vw, 34px);
}

.intro-copy h2,
.section-head h2,
.compact-hero h1,
.rank-hero h1,
.detail-card h2 {
  margin: 0;
  color: #ffffff;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.intro-copy h2,
.section-head h2,
.compact-hero h1,
.rank-hero h1 {
  font-size: clamp(28px, 4vw, 44px);
}

.intro-copy p,
.compact-hero p,
.rank-hero p,
.detail-card p,
.channel-card p,
.card-body p,
.wide-body p,
.rank-item p,
.ranking-info p {
  color: var(--muted);
  line-height: 1.75;
}

.hero-search {
  padding: 16px;
  border-radius: 999px;
  background: rgba(31, 41, 55, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

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

.section-head h2 {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-head h2 span {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.95), rgba(249, 115, 22, 0.95));
  font-size: 20px;
}

.section-more {
  color: #60a5fa;
  font-weight: 750;
}

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

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

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

.listing-grid {
  padding-top: 28px;
}

.movie-card {
  overflow: hidden;
  border-radius: 16px;
  background: rgba(31, 41, 55, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease, background 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(239, 68, 68, 0.7);
  background: rgba(31, 41, 55, 1);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.34);
}

.poster,
.wide-poster {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000000;
}

.poster::after,
.wide-poster::after,
.mini-card::after,
.channel-cover::after,
.ranking-img::after,
.rank-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent 58%);
  opacity: 0.82;
  pointer-events: none;
}

.poster img,
.wide-poster img,
.mini-card img,
.channel-cover img,
.ranking-img img,
.rank-poster img,
.side-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.36s ease;
}

.movie-card:hover .poster img,
.movie-card:hover .wide-poster img,
.mini-card:hover img,
.channel-card:hover img,
.ranking-row:hover img,
.rank-item:hover img,
.side-item:hover img {
  transform: scale(1.08);
}

.badge,
.duration {
  position: absolute;
  z-index: 2;
  border-radius: 8px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 8px;
}

.badge-red {
  left: 10px;
  top: 10px;
  background: #dc2626;
}

.duration {
  right: 10px;
  bottom: 10px;
  background: rgba(0, 0, 0, 0.78);
}

.card-body,
.wide-body {
  padding: 16px;
}

.movie-title,
.rank-title,
.ranking-info h2 a,
.channel-card h2 a {
  display: inline-block;
  color: #ffffff;
  font-weight: 850;
  transition: color 0.2s ease;
}

.movie-title:hover,
.rank-title:hover,
.ranking-info h2 a:hover,
.channel-card h2 a:hover {
  color: #ef4444;
}

.card-body .movie-title {
  min-height: 48px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-body p,
.wide-body p {
  margin: 10px 0 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.meta-row {
  font-size: 13px;
}

.rail-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(210px, 255px);
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 12px;
  scrollbar-width: thin;
}

.mini-card {
  position: relative;
  min-height: 156px;
  overflow: hidden;
  border-radius: 14px;
  background: #111827;
  isolation: isolate;
}

.mini-card img {
  position: absolute;
  inset: 0;
}

.mini-title,
.mini-meta {
  position: absolute;
  z-index: 2;
  left: 14px;
  right: 14px;
}

.mini-title {
  bottom: 36px;
  color: #ffffff;
  font-weight: 800;
  line-height: 1.35;
}

.mini-meta {
  bottom: 14px;
  color: #d1d5db;
  font-size: 13px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 50px 130px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 16px;
  background: rgba(31, 41, 55, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: background 0.2s ease, transform 0.2s ease;
}

.rank-item:hover {
  background: rgba(31, 41, 55, 1);
  transform: translateY(-2px);
}

.rank-number,
.ranking-num {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #dc2626, #f97316);
  color: #ffffff;
  font-size: 22px;
  font-weight: 900;
}

.rank-poster {
  position: relative;
  height: 82px;
  overflow: hidden;
  border-radius: 12px;
  background: #000000;
}

.rank-title {
  margin-bottom: 5px;
}

.rank-item p {
  margin: 0 0 4px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rank-item span:last-child {
  color: #6b7280;
  font-size: 13px;
}

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

.category-tile {
  position: relative;
  min-height: 200px;
  overflow: hidden;
  border-radius: 18px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  isolation: isolate;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.category-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.26));
}

.category-tile img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.36s ease;
}

.category-tile:hover img {
  transform: scale(1.08);
}

.category-tile span {
  color: #ffffff;
  font-size: 22px;
  font-weight: 900;
}

.category-tile p {
  margin: 8px 0 0;
  color: #d1d5db;
  line-height: 1.55;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  color: #9ca3af;
  font-size: 14px;
}

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

.compact-hero {
  background:
    linear-gradient(135deg, rgba(127, 29, 29, 0.34), rgba(30, 64, 175, 0.22)),
    rgba(17, 24, 39, 0.88);
}

.compact-hero h1 {
  margin: 16px 0 12px;
}

.local-filter {
  max-width: 680px;
  margin-top: 22px;
}

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

.channel-card {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 20px;
  padding: 18px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.channel-card:hover {
  transform: translateY(-4px);
  border-color: rgba(239, 68, 68, 0.58);
}

.channel-cover {
  position: relative;
  min-height: 142px;
  overflow: hidden;
  border-radius: 14px;
  background: #000000;
}

.channel-card h2 {
  margin: 0 0 10px;
  font-size: 24px;
}

.channel-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 14px;
}

.channel-samples a {
  max-width: 100%;
  border-radius: 999px;
  padding: 7px 11px;
  color: #d1d5db;
  background: rgba(255, 255, 255, 0.08);
  font-size: 13px;
}

.rank-hero {
  display: grid;
  grid-template-columns: minmax(260px, 420px) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(127, 29, 29, 0.42), rgba(124, 45, 18, 0.32)),
    rgba(17, 24, 39, 0.88);
}

.rank-hero img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.38);
}

.rank-hero h1 {
  margin: 16px 0 12px;
}

.listing-tools {
  margin: 24px 0;
}

.listing-tools input {
  width: min(100%, 520px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(55, 65, 81, 0.88);
  color: #ffffff;
  padding: 13px 18px;
  outline: none;
}

.ranking-list,
.wide-list {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.ranking-row {
  display: grid;
  grid-template-columns: 58px 156px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  background: rgba(31, 41, 55, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.2s ease, transform 0.2s ease;
}

.ranking-row:hover {
  background: rgba(31, 41, 55, 0.98);
  transform: translateY(-2px);
}

.ranking-img {
  position: relative;
  height: 92px;
  overflow: hidden;
  border-radius: 13px;
  background: #000000;
}

.ranking-info h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.ranking-info p {
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card-wide {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
}

.movie-card-wide .wide-poster {
  height: 100%;
  min-height: 160px;
}

.movie-card-wide .movie-title {
  font-size: 20px;
}

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

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

.video-panel {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: #000000;
  aspect-ratio: 16 / 9;
  box-shadow: var(--shadow);
}

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

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 16px;
  border: 0;
  color: #ffffff;
  background:
    linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.1)),
    rgba(0, 0, 0, 0.18);
  text-align: center;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-circle {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #dc2626, #f97316);
  box-shadow: 0 18px 42px rgba(220, 38, 38, 0.34);
  font-size: 34px;
  padding-left: 5px;
}

.player-cover strong {
  max-width: 80%;
  font-size: clamp(22px, 4vw, 34px);
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

.detail-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.detail-title-row h1 {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.detail-meta {
  font-size: 14px;
}

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

.tag-cloud a {
  padding: 8px 12px;
  border-radius: 999px;
  color: #d1d5db;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.tag-cloud a:hover {
  color: #ffffff;
  background: rgba(220, 38, 38, 0.55);
}

.related-rail {
  grid-auto-columns: minmax(190px, 230px);
}

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

.poster-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 16px;
}

.side-card h2 {
  margin: 0 0 16px;
  font-size: 22px;
}

.side-list {
  display: grid;
  gap: 13px;
}

.side-item {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  color: #d1d5db;
}

.side-item img {
  height: 54px;
  border-radius: 10px;
}

.side-item span {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-weight: 700;
}

.side-item:hover span {
  color: #ef4444;
}

.site-footer {
  margin-top: 70px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.8), #000000);
  color: #9ca3af;
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 52px 22px 34px;
  display: grid;
  grid-template-columns: 1.35fr 0.8fr 0.8fr 1fr;
  gap: 34px;
}

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

.footer-grid p {
  margin: 10px 0 0;
  line-height: 1.75;
}

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

.footer-grid a:hover {
  color: #ef4444;
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #6b7280;
  font-size: 14px;
}

[data-card].is-hidden {
  display: none;
}

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

  .menu-toggle {
    display: flex;
  }

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

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

  .detail-layout,
  .rank-hero,
  .intro-grid {
    grid-template-columns: 1fr;
  }

  .detail-side {
    position: static;
  }
}

@media (max-width: 760px) {
  .hero {
    height: 74vh;
    min-height: 560px;
  }

  .hero-content {
    left: 22px;
    right: 22px;
    bottom: 84px;
  }

  .hero-dots {
    left: 22px;
    right: auto;
    bottom: 34px;
  }

  .main-wrap,
  .page-shell {
    padding-left: 16px;
    padding-right: 16px;
  }

  .grid-3,
  .grid-4,
  .rank-grid,
  .category-grid,
  .channel-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .channel-card,
  .movie-card-wide,
  .ranking-row,
  .rank-item {
    grid-template-columns: 1fr;
  }

  .rank-number,
  .ranking-num {
    width: 42px;
    height: 42px;
    font-size: 18px;
  }

  .ranking-img,
  .rank-poster {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .detail-title-row,
  .section-head,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-search,
  .search-page-form {
    border-radius: 22px;
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 460px) {
  .mobile-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .brand span:last-child {
    font-size: 20px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .btn-primary,
  .btn-ghost {
    width: 100%;
  }
}
