:root {
  --night-950: #07111f;
  --night-900: #0b1724;
  --night-850: #0f2133;
  --night-800: #102a43;
  --night-700: #1f3f5f;
  --night-600: #334e68;
  --night-500: #486581;
  --amber-500: #f59e0b;
  --amber-400: #fbbf24;
  --amber-300: #fcd34d;
  --text-100: #f3f4f6;
  --text-200: #e5e7eb;
  --text-300: #d1d5db;
  --text-400: #9ca3af;
  --border: rgba(148, 163, 184, 0.18);
  --glass: rgba(16, 42, 67, 0.74);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text-100);
  background:
    radial-gradient(circle at 18% 12%, rgba(245, 158, 11, 0.18), transparent 32rem),
    radial-gradient(circle at 90% 20%, rgba(72, 101, 129, 0.28), transparent 26rem),
    linear-gradient(180deg, var(--night-900), var(--night-800) 42%, var(--night-950));
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

img {
  object-fit: cover;
}

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-shell {
  min-height: 100vh;
  overflow-x: hidden;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  border-bottom: 1px solid var(--border);
  background: rgba(7, 17, 31, 0.88);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 72px;
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber-500), #ef4444);
  box-shadow: 0 0 26px rgba(245, 158, 11, 0.42);
  font-size: 15px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.nav-link {
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--text-300);
  transition: color 0.25s ease, background 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--amber-300);
  background: rgba(245, 158, 11, 0.1);
}

.nav-search {
  position: relative;
  width: 280px;
}

.nav-search input,
.mobile-search input,
.search-page-form input,
.filter-bar input,
.filter-bar select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text-100);
  background: rgba(15, 33, 51, 0.92);
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.nav-search input {
  padding: 10px 44px 10px 16px;
}

.nav-search input:focus,
.mobile-search input:focus,
.search-page-form input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: rgba(245, 158, 11, 0.75);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.14);
}

.nav-search button {
  position: absolute;
  top: 50%;
  right: 6px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  color: var(--amber-300);
  background: transparent;
  transform: translateY(-50%);
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  margin-left: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(31, 63, 95, 0.72);
}

.mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: var(--text-100);
}

.mobile-menu {
  display: none;
  border-top: 1px solid var(--border);
  background: rgba(7, 17, 31, 0.96);
}

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

.mobile-menu-inner {
  display: grid;
  gap: 8px;
  padding: 16px 0 22px;
}

.mobile-link {
  padding: 11px 12px;
  border-radius: 12px;
  color: var(--text-300);
  background: rgba(31, 63, 95, 0.36);
}

.mobile-link.sub {
  padding-left: 24px;
  color: var(--text-400);
}

.mobile-link.is-active {
  color: var(--amber-300);
}

.mobile-group-title {
  margin-top: 8px;
  color: var(--text-400);
  font-size: 13px;
}

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

.mobile-search input {
  padding: 10px 12px;
}

.btn-primary,
.btn-secondary,
.text-link,
.section-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.btn-primary,
.btn-secondary {
  min-height: 44px;
  padding: 10px 22px;
  border-radius: 13px;
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber-500), #ef4444);
  box-shadow: 0 14px 34px rgba(245, 158, 11, 0.26);
}

.btn-primary:hover,
.btn-secondary:hover,
.text-link:hover,
.section-action:hover {
  transform: translateY(-2px);
}

.btn-primary:hover {
  box-shadow: 0 18px 42px rgba(245, 158, 11, 0.38);
}

.btn-secondary {
  color: var(--text-100);
  background: rgba(72, 101, 129, 0.72);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  color: var(--amber-300);
  background: rgba(51, 78, 104, 0.92);
}

.btn-secondary.wide {
  width: 100%;
  margin-top: 18px;
}

.text-link,
.section-action {
  color: var(--amber-300);
}

.hero {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
  isolation: isolate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 26%;
  z-index: 3;
  background: linear-gradient(180deg, transparent, var(--night-900));
  pointer-events: none;
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  opacity: 0.56;
  filter: saturate(1.08) contrast(1.04);
}

.hero-gradient,
.detail-backdrop::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 72% 28%, rgba(245, 158, 11, 0.18), transparent 22rem),
    linear-gradient(90deg, rgba(7, 17, 31, 0.96), rgba(7, 17, 31, 0.76) 42%, rgba(7, 17, 31, 0.28) 72%, rgba(7, 17, 31, 0.92));
}

.hero-content {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  min-height: 70vh;
  padding: 84px 0 128px;
}

.hero-panel {
  width: min(680px, 100%);
}

.hero-eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--amber-300);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 18px 0 16px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.07em;
}

.hero-summary {
  max-width: 680px;
  margin: 0 0 20px;
  color: var(--text-200);
  font-size: 18px;
}

.hero-tags,
.tag-row,
.genre-pills,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.tag-row span,
.genre-pills span,
.detail-tags a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: 999px;
  color: var(--amber-300);
  background: rgba(245, 158, 11, 0.1);
  font-size: 13px;
}

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

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 98px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateX(-50%);
}

.hero-arrow,
.hero-dot {
  border: 1px solid var(--border);
  background: rgba(16, 42, 67, 0.72);
  backdrop-filter: blur(10px);
}

.hero-arrow {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--text-100);
  font-size: 28px;
  line-height: 1;
}

.hero-dot {
  width: 11px;
  height: 11px;
  padding: 0;
  border-radius: 999px;
}

.hero-dot.is-active {
  width: 28px;
  background: var(--amber-400);
}

.hero-thumb-row {
  position: absolute;
  left: 50%;
  bottom: 24px;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  transform: translateX(-50%);
}

.hero-thumb {
  position: relative;
  min-height: 82px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(16, 42, 67, 0.64);
  opacity: 0.74;
  transition: opacity 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.hero-thumb:hover,
.hero-thumb.is-active {
  opacity: 1;
  border-color: rgba(245, 158, 11, 0.68);
  transform: translateY(-3px);
}

.hero-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.46;
}

.hero-thumb span {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 8px;
  z-index: 2;
  font-size: 13px;
  font-weight: 700;
}

.section,
.page-main,
.player-section {
  padding: 76px 0 0;
}

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

.section-heading h2,
.page-hero h1,
.ranking-head h2,
.content-card h2 {
  margin: 6px 0 0;
  color: var(--text-100);
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.section-heading p,
.page-hero p,
.ranking-head p,
.footer-brand p,
.content-card p,
.category-overview-body p,
.category-body p {
  margin: 10px 0 0;
  color: var(--text-400);
}

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

.category-card,
.category-overview-card,
.content-card,
.ranking-panel,
.search-panel,
.filter-bar,
.ranking-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(15, 33, 51, 0.7);
  box-shadow: var(--shadow);
}

.category-card {
  position: relative;
  min-height: 230px;
  overflow: hidden;
}

.category-bg {
  position: absolute;
  inset: 0;
}

.category-bg::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(7, 17, 31, 0.18), rgba(7, 17, 31, 0.9));
}

.category-bg img {
  width: 100%;
  height: 100%;
  opacity: 0.66;
  transition: transform 0.5s ease;
}

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

.category-body {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  padding: 20px;
}

.category-body span,
.count-pill,
.poster-badge,
.poster-year {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.category-body span,
.count-pill {
  padding: 4px 9px;
  color: var(--amber-300);
  background: rgba(245, 158, 11, 0.12);
}

.category-body h3 {
  margin: 10px 0 0;
  font-size: 22px;
}

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

.home-grid {
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
}

.latest-grid {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 18px;
}

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

.poster-link {
  display: block;
}

.poster-frame {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 18%, rgba(245, 158, 11, 0.2), transparent 38%),
    linear-gradient(150deg, var(--night-700), var(--night-900));
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

.poster-frame::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 42%, rgba(7, 17, 31, 0.88));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.poster-frame img {
  width: 100%;
  height: 100%;
  transition: transform 0.55s ease, opacity 0.25s ease;
}

.movie-card:hover .poster-frame img,
.ranking-card:hover .ranking-cover img {
  transform: scale(1.08);
}

.movie-card:hover .poster-frame::after {
  opacity: 1;
}

.poster-badge,
.poster-year {
  position: absolute;
  z-index: 3;
  padding: 5px 8px;
}

.poster-badge {
  top: 10px;
  left: 10px;
  color: #ffffff;
  background: rgba(245, 158, 11, 0.92);
}

.poster-year {
  right: 10px;
  bottom: 10px;
  color: var(--text-100);
  background: rgba(7, 17, 31, 0.72);
  backdrop-filter: blur(8px);
}

.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(245, 158, 11, 0.92);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.82);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.movie-info {
  padding: 12px 2px 0;
}

.movie-info h3 {
  min-height: 2.7em;
  margin: 0;
  color: var(--text-100);
  font-size: 17px;
  line-height: 1.35;
}

.movie-info h3 a:hover,
.ranking-card h2 a:hover,
.category-overview-body h2 a:hover {
  color: var(--amber-300);
}

.movie-meta {
  margin: 5px 0;
  color: var(--text-400);
  font-size: 13px;
}

.movie-desc {
  display: -webkit-box;
  min-height: 3.1em;
  margin: 0 0 10px;
  overflow: hidden;
  color: var(--text-300);
  font-size: 14px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-card.compact .movie-desc {
  display: none;
}

.tag-row span {
  min-height: 24px;
  padding: 3px 8px;
  color: var(--text-300);
  border-color: var(--border);
  background: rgba(31, 63, 95, 0.44);
  font-size: 12px;
}

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

.ranking-panel {
  position: sticky;
  top: 96px;
  padding: 24px;
}

.ranking-head span {
  color: var(--amber-300);
  font-weight: 900;
}

.rank-list {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.rank-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 8px 12px;
  padding: 12px;
  border-radius: 15px;
  background: rgba(31, 63, 95, 0.42);
  transition: background 0.25s ease, transform 0.25s ease;
}

.rank-row:hover {
  background: rgba(72, 101, 129, 0.58);
  transform: translateX(4px);
}

.rank-num {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: var(--night-950);
  background: var(--amber-400);
  font-weight: 900;
}

.rank-title {
  overflow: hidden;
  font-weight: 800;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-meta {
  overflow: hidden;
  color: var(--text-400);
  font-size: 13px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.page-main {
  padding-bottom: 56px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 46px;
  border: 1px solid var(--border);
  border-radius: 30px;
  background:
    radial-gradient(circle at 88% 12%, rgba(245, 158, 11, 0.2), transparent 20rem),
    linear-gradient(135deg, rgba(15, 33, 51, 0.94), rgba(16, 42, 67, 0.56));
  box-shadow: var(--shadow);
}

.small-hero h1,
.category-hero h1 {
  font-size: clamp(36px, 5vw, 64px);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--text-400);
  font-size: 14px;
}

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

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

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

.category-cover-stack {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.category-cover-stack img {
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 12px;
  background: var(--night-700);
}

.category-overview-body h2 {
  margin: 12px 0 6px;
  font-size: 26px;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(240px, 1.5fr) minmax(120px, 0.7fr) minmax(150px, 1fr) auto;
  gap: 14px;
  align-items: end;
  margin: 28px 0;
  padding: 18px;
}

.filter-bar label {
  display: grid;
  gap: 8px;
  color: var(--text-400);
  font-size: 13px;
}

.filter-bar input,
.filter-bar select {
  min-height: 44px;
  padding: 9px 12px;
}

.filter-count {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--text-400);
  font-size: 14px;
}

.listing-grid {
  grid-template-columns: repeat(auto-fill, minmax(176px, 1fr));
}

.empty-state {
  margin-top: 30px;
  padding: 36px;
  border: 1px dashed var(--border);
  border-radius: 24px;
  color: var(--text-400);
  text-align: center;
}

.search-panel {
  margin: 28px 0;
  padding: 22px;
}

.search-page-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

.search-page-form input {
  min-height: 50px;
  padding: 12px 16px;
}

.search-status {
  margin: 14px 0 0;
  color: var(--text-400);
}

.ranking-grid {
  display: grid;
  gap: 16px;
}

.ranking-card {
  display: grid;
  grid-template-columns: 122px minmax(0, 1fr);
  gap: 18px;
  padding: 14px;
}

.ranking-cover {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 15px;
  background: var(--night-700);
}

.ranking-cover img {
  width: 100%;
  height: 100%;
  transition: transform 0.45s ease;
}

.ranking-cover span {
  position: absolute;
  left: 8px;
  top: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--night-950);
  background: var(--amber-400);
  font-size: 12px;
  font-weight: 900;
}

.ranking-card-body {
  align-self: center;
}

.ranking-index {
  color: var(--amber-300);
  font-size: 13px;
  font-weight: 900;
}

.ranking-card h2 {
  margin: 4px 0 6px;
  font-size: 24px;
}

.ranking-card p {
  margin: 0 0 10px;
  color: var(--text-300);
}

.detail-main {
  padding-bottom: 50px;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 620px;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
}

.detail-backdrop img {
  width: 100%;
  height: 100%;
  opacity: 0.38;
  filter: blur(2px) saturate(1.15);
}

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

.detail-grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 36px;
  align-items: center;
}

.large-poster {
  border-radius: 24px;
}

.detail-info h1 {
  margin: 12px 0 16px;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1;
  letter-spacing: -0.06em;
}

.detail-one-line {
  max-width: 760px;
  color: var(--text-200);
  font-size: 19px;
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.detail-meta-grid div {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: rgba(15, 33, 51, 0.66);
}

.detail-meta-grid strong,
.detail-meta-grid span {
  display: block;
}

.detail-meta-grid strong {
  color: var(--text-400);
  font-size: 12px;
}

.detail-meta-grid span {
  margin-top: 3px;
  font-weight: 800;
}

.player-section {
  margin-top: -42px;
}

.player-heading {
  align-items: start;
}

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

.video-player {
  width: 100%;
  height: 100%;
  background: #000000;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 0;
  color: #ffffff;
  background: #000000;
}

.player-cover.is-hidden {
  display: none;
}

.player-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.56;
}

.player-mask {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(245, 158, 11, 0.14), transparent 18rem),
    linear-gradient(180deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.72));
}

.play-button {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  padding-left: 5px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--amber-500), #ef4444);
  box-shadow: 0 0 50px rgba(245, 158, 11, 0.48);
  font-size: 32px;
}

.player-cover strong {
  position: absolute;
  left: 28px;
  bottom: 24px;
  z-index: 2;
  font-size: 24px;
}

.detail-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 300px;
  gap: 22px;
  padding-top: 42px;
}

.content-card {
  padding: 26px;
}

.content-card h2 {
  margin-bottom: 12px;
  font-size: 28px;
}

.content-card p {
  color: var(--text-300);
  font-size: 16px;
}

.detail-tags a:hover {
  color: #ffffff;
  background: rgba(245, 158, 11, 0.38);
}

.related-grid {
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}

.site-footer {
  margin-top: 80px;
  border-top: 1px solid var(--border);
  background: rgba(7, 17, 31, 0.88);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) 1fr 1fr;
  gap: 42px;
  padding: 48px 0;
}

.footer-logo {
  margin-bottom: 14px;
}

.footer-small {
  font-size: 14px;
}

.site-footer h3 {
  margin: 0 0 14px;
  font-size: 18px;
}

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

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

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

.footer-bottom {
  padding: 18px 0;
  border-top: 1px solid var(--border);
  color: var(--text-400);
  font-size: 14px;
  text-align: center;
}

.footer-bottom p {
  margin: 0;
}

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

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

  .two-column-section,
  .detail-content-grid {
    grid-template-columns: 1fr;
  }

  .ranking-panel {
    position: static;
  }

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

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

  .mobile-toggle {
    display: block;
  }

  .hero-content {
    min-height: 72vh;
    padding-bottom: 148px;
  }

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

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

  .category-overview-grid,
  .category-overview-card,
  .detail-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

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

  .ranking-card {
    grid-template-columns: 92px minmax(0, 1fr);
  }
}

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

  .nav-wrap {
    min-height: 64px;
  }

  .brand-text {
    font-size: 18px;
  }

  .hero {
    min-height: 78vh;
  }

  .hero-content {
    align-items: end;
    min-height: 78vh;
    padding-top: 70px;
    padding-bottom: 160px;
  }

  .hero h1 {
    font-size: clamp(38px, 12vw, 56px);
  }

  .hero-summary,
  .detail-one-line {
    font-size: 16px;
  }

  .hero-controls {
    bottom: 102px;
  }

  .hero-thumb-row {
    bottom: 16px;
    gap: 8px;
  }

  .hero-thumb {
    min-height: 68px;
  }

  .section,
  .page-main,
  .player-section {
    padding-top: 52px;
  }

  .section-heading {
    display: block;
  }

  .section-action {
    margin-top: 12px;
  }

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

  .movie-grid,
  .home-grid,
  .latest-grid,
  .listing-grid,
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
  }

  .page-hero {
    padding: 28px;
    border-radius: 22px;
  }

  .detail-hero {
    min-height: 0;
  }

  .detail-hero-inner {
    padding: 34px 0 54px;
  }

  .detail-poster {
    width: min(260px, 80vw);
  }

  .detail-info h1 {
    font-size: 40px;
  }

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

  .video-shell {
    border-radius: 20px;
  }

  .player-cover strong {
    right: 18px;
    left: 18px;
    bottom: 18px;
    font-size: 18px;
  }

  .play-button {
    width: 68px;
    height: 68px;
    font-size: 26px;
  }

  .content-card {
    padding: 20px;
  }

  .search-page-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .movie-grid,
  .home-grid,
  .latest-grid,
  .listing-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }
}
