:root {
  --bg: #f8fafc;
  --paper: #ffffff;
  --paper-soft: #f1f5f9;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --emerald: #059669;
  --emerald-dark: #047857;
  --teal: #0d9488;
  --cyan: #0891b2;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 12px 30px rgba(15, 23, 42, 0.08);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

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

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

img.is-missing {
  opacity: 0;
}

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
}

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

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

.brand-icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--emerald), var(--cyan));
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(5, 150, 105, 0.28);
  font-size: 14px;
}

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

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  color: #334155;
  border-radius: 999px;
  font-weight: 650;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--emerald-dark);
  background: #ecfdf5;
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: #f1f5f9;
  cursor: pointer;
  padding: 10px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  border-radius: 99px;
  background: #0f172a;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-drawer {
  display: none;
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.mobile-drawer-inner {
  padding: 14px 0 20px;
}

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

.mobile-sub-link {
  padding: 12px;
  color: var(--emerald-dark);
  background: #ecfdf5;
  border-radius: 14px;
  font-weight: 700;
  text-align: center;
}

.hero {
  position: relative;
  min-height: 540px;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, var(--emerald), var(--teal), var(--cyan));
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: overlay;
  opacity: 0.65;
  transform: scale(1.02);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 25%, rgba(255, 255, 255, 0.22), transparent 28%),
    linear-gradient(90deg, rgba(2, 44, 34, 0.82), rgba(2, 44, 34, 0.5), rgba(2, 132, 199, 0.2));
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(310px, 0.8fr);
  gap: 36px;
  align-items: center;
  min-height: 540px;
  padding: 68px 0;
}

.hero-content {
  max-width: 740px;
}

.hero-pill,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  color: #ecfeff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  backdrop-filter: blur(14px);
  font-size: 14px;
  font-weight: 700;
}

.hero h1,
.page-hero h1 {
  margin: 18px 0 16px;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.hero p {
  max-width: 680px;
  margin: 0 0 26px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 18px;
}

.hero-actions,
.form-row,
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

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

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

.btn-primary {
  color: var(--emerald-dark);
  background: #ffffff;
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.2);
}

.btn-primary:hover {
  background: #f8fafc;
  box-shadow: 0 22px 42px rgba(15, 23, 42, 0.24);
}

.btn-secondary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.32);
}

.btn-emerald {
  color: #ffffff;
  background: linear-gradient(135deg, var(--emerald), var(--teal));
  box-shadow: 0 16px 30px rgba(5, 150, 105, 0.22);
}

.hero-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  max-width: 560px;
  margin-top: 28px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  backdrop-filter: blur(14px);
}

.hero-search input,
.search-box input,
.search-box select,
.filter-input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: 0;
  background: #ffffff;
  color: var(--ink);
  padding: 0 14px;
}

.hero-search input {
  border-color: rgba(255, 255, 255, 0.42);
}

.hero-search button {
  min-width: 112px;
}

.hero-panel {
  padding: 18px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 28px;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
}

.hero-panel h2 {
  margin: 4px 6px 14px;
  font-size: 18px;
}

.hero-mini {
  display: grid;
  gap: 12px;
}

.hero-mini a {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.13);
  border-radius: 18px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-mini a:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateX(3px);
}

.hero-mini img {
  width: 82px;
  height: 110px;
  object-fit: cover;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
}

.hero-mini strong {
  display: block;
  margin-bottom: 4px;
  font-size: 16px;
}

.hero-mini span {
  display: block;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

.main-section {
  padding: 56px 0;
}

.main-section.alt {
  background: linear-gradient(180deg, #f8fafc, #eef2f7);
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

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

.section-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--emerald-dark);
  font-weight: 800;
  white-space: nowrap;
}

.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));
}

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

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

.movie-card-link {
  display: block;
  height: 100%;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid rgba(226, 232, 240, 0.86);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card-link:hover {
  transform: translateY(-6px);
  border-color: rgba(5, 150, 105, 0.3);
  box-shadow: var(--shadow);
}

.poster-frame {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #d1fae5, #e0f2fe);
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(15, 23, 42, 0.68));
  opacity: 0.7;
}

.play-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.44);
  border-radius: 50%;
  backdrop-filter: blur(8px);
  transform: translate(-50%, -50%) scale(0.85);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.card-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.card-badge {
  right: 12px;
  top: 12px;
  color: var(--emerald-dark);
  background: rgba(255, 255, 255, 0.92);
}

.rank-badge {
  left: 12px;
  top: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
}

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

.movie-title {
  display: -webkit-box;
  min-height: 50px;
  overflow: hidden;
  color: #111827;
  font-size: 17px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  transition: color 0.2s ease;
}

.movie-card-link:hover .movie-title {
  color: var(--emerald-dark);
}

.movie-desc {
  display: -webkit-box;
  min-height: 44px;
  margin-top: 8px;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
  color: #64748b;
  font-size: 12px;
}

.movie-meta span {
  padding: 3px 8px;
  background: #f1f5f9;
  border-radius: 999px;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 154px;
  padding: 22px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.category-card::after {
  content: "";
  position: absolute;
  right: -28px;
  bottom: -28px;
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.15), rgba(8, 145, 178, 0.18));
  border-radius: 50%;
}

.category-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.category-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.category-card strong {
  display: inline-flex;
  margin-top: 14px;
  color: var(--emerald-dark);
  font-size: 14px;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 26px;
}

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

.compact-item {
  display: grid;
  grid-template-columns: 86px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 18px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.compact-item:hover {
  transform: translateX(4px);
  border-color: rgba(5, 150, 105, 0.32);
  box-shadow: var(--shadow-soft);
}

.compact-poster {
  width: 86px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: linear-gradient(135deg, #d1fae5, #e0f2fe);
  border-radius: 14px;
}

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

.compact-body {
  min-width: 0;
}

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

.compact-text {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.compact-meta {
  display: block;
  margin-top: 5px;
  color: #94a3b8;
  font-size: 12px;
}

.compact-rank {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--emerald-dark);
  background: #ecfdf5;
  border-radius: 14px;
  font-weight: 900;
}

.page-hero {
  color: #ffffff;
  background:
    radial-gradient(circle at 18% 25%, rgba(255, 255, 255, 0.2), transparent 26%),
    linear-gradient(135deg, var(--emerald), var(--teal), var(--cyan));
}

.page-hero-inner {
  padding: 54px 0 56px;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
}

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

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

.toolbar {
  display: grid;
  gap: 14px;
  margin: 0 0 24px;
  padding: 18px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
}

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

.filter-chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  color: #334155;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
}

.filter-chip.is-active {
  color: #ffffff;
  background: var(--emerald);
  border-color: var(--emerald);
}

.result-note {
  color: var(--muted);
  font-size: 14px;
}

.detail-page {
  background: #f8fafc;
}

.detail-hero {
  color: #ffffff;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.18), transparent 24%),
    linear-gradient(135deg, #064e3b, #0f766e, #075985);
}

.detail-hero-inner {
  display: grid;
  grid-template-columns: minmax(260px, 380px) minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  padding: 48px 0 58px;
}

.detail-poster {
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #d1fae5, #e0f2fe);
  border-radius: 28px;
  box-shadow: 0 28px 60px rgba(2, 44, 34, 0.36);
}

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

.detail-info h1 {
  margin: 18px 0 16px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.06em;
}

.detail-lead {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0;
}

.detail-meta span,
.tag-list span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 750;
}

.detail-meta span {
  color: #ecfeff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.tag-list span {
  color: #334155;
  background: #f1f5f9;
}

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

.content-card,
.side-card,
.player-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
}

.content-card {
  padding: 28px;
  margin-bottom: 24px;
}

.content-card h2,
.side-card h2,
.player-card h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  font-size: 24px;
  letter-spacing: -0.03em;
}

.content-card h2::before,
.side-card h2::before,
.player-card h2::before {
  content: "";
  width: 8px;
  height: 28px;
  background: linear-gradient(180deg, var(--emerald), var(--cyan));
  border-radius: 99px;
}

.content-card p {
  margin: 0;
  color: #334155;
  font-size: 16px;
  white-space: pre-line;
}

.player-card {
  overflow: hidden;
  margin-bottom: 28px;
}

.player-card h2 {
  padding: 22px 24px 0;
}

.video-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  margin: 0 24px 24px;
  background: #020617;
  border-radius: 22px;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.2), rgba(2, 6, 23, 0.72));
  cursor: pointer;
}

.player-overlay span {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin: 0 auto 12px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  backdrop-filter: blur(8px);
  font-size: 30px;
}

.player-overlay strong {
  display: block;
  font-size: 18px;
}

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

.player-message {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 4;
  margin: 0;
  color: #ffffff;
  font-size: 13px;
  text-align: center;
  pointer-events: none;
}

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

.fact-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.fact-row {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.fact-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.fact-row dt {
  color: #64748b;
  font-weight: 800;
}

.fact-row dd {
  margin: 0;
  color: #111827;
}

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

.site-footer {
  margin-top: 60px;
  padding: 46px 0;
  color: #cbd5e1;
  background: #0f172a;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}

.footer-brand {
  color: #ffffff;
  font-size: 20px;
}

.site-footer p {
  max-width: 420px;
  margin: 14px 0 0;
  color: #94a3b8;
}

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

.site-footer a:not(.footer-brand) {
  display: block;
  margin: 8px 0;
  color: #cbd5e1;
}

.site-footer a:hover {
  color: #34d399;
}

.empty-state {
  display: none;
  padding: 30px;
  color: var(--muted);
  text-align: center;
  background: #ffffff;
  border: 1px dashed var(--line);
  border-radius: 18px;
}

.empty-state.is-visible {
  display: block;
}

.search-results {
  display: grid;
  gap: 14px;
}

.search-result-item {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
}

.search-result-item img {
  width: 100px;
  height: 130px;
  object-fit: cover;
  background: linear-gradient(135deg, #d1fae5, #e0f2fe);
  border-radius: 14px;
}

.search-result-item h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.search-result-item p {
  margin: 0 0 10px;
  color: var(--muted);
}

.search-result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  color: #64748b;
  font-size: 13px;
}

.search-result-meta span {
  padding: 3px 8px;
  background: #f1f5f9;
  border-radius: 999px;
}

@media (max-width: 1080px) {
  .grid-5,
  .grid-4,
  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .detail-content aside {
    order: -1;
  }
}

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

  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

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

  .mobile-drawer .nav-link {
    display: flex;
    margin: 4px 0;
    justify-content: center;
  }

  .hero,
  .hero-inner {
    min-height: auto;
  }

  .hero-inner {
    padding: 48px 0;
  }

  .hero-panel {
    padding: 14px;
  }

  .hero-search,
  .search-box {
    grid-template-columns: 1fr;
  }

  .grid-3,
  .grid-4,
  .grid-5,
  .category-grid,
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .detail-hero-inner {
    grid-template-columns: 1fr;
    padding: 34px 0 42px;
  }

  .detail-poster {
    max-width: 280px;
  }

  .content-card,
  .side-card {
    padding: 20px;
  }

  .video-shell {
    margin: 0 12px 14px;
    border-radius: 16px;
  }

  .player-card h2 {
    padding: 18px 18px 0;
  }

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

  .search-result-item {
    grid-template-columns: 78px 1fr;
  }

  .search-result-item img {
    width: 78px;
    height: 102px;
  }

  .search-result-item .btn {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  .brand-text {
    font-size: 20px;
  }

  .grid-3,
  .grid-4,
  .grid-5,
  .category-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .compact-item {
    grid-template-columns: 72px 1fr;
  }

  .compact-rank {
    display: none;
  }

  .hero-mini a {
    grid-template-columns: 68px 1fr;
  }

  .hero-mini img {
    width: 68px;
    height: 88px;
  }
}
