:root {
  color-scheme: dark;
  --bg: #020617;
  --bg-soft: #0f172a;
  --bg-card: rgba(15, 23, 42, 0.74);
  --bg-card-strong: rgba(15, 23, 42, 0.92);
  --text: #f8fafc;
  --muted: #94a3b8;
  --line: rgba(148, 163, 184, 0.18);
  --red: #ef4444;
  --red-dark: #b91c1c;
  --orange: #f97316;
  --shadow: 0 24px 80px rgba(2, 6, 23, 0.42);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 8%, rgba(239, 68, 68, 0.24), transparent 30rem),
    radial-gradient(circle at 88% 4%, rgba(59, 130, 246, 0.16), transparent 32rem),
    linear-gradient(180deg, #020617 0%, #07111f 46%, #020617 100%);
  color: var(--text);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 74%);
  z-index: -1;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.78);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(1280px, calc(100% - 32px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 12px 36px rgba(239, 68, 68, 0.34);
}

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

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

.nav-link,
.mobile-link {
  color: var(--muted);
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link {
  padding: 9px 14px;
  font-size: 14px;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  color: white;
  background: rgba(239, 68, 68, 0.14);
}

.nav-search,
.mobile-search,
.hero-search,
.page-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-search input,
.mobile-search input,
.hero-search input,
.page-search input,
.filter-bar input,
.filter-bar select {
  border: 1px solid var(--line);
  outline: 0;
  color: white;
  background: rgba(15, 23, 42, 0.8);
  transition: border 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-search input {
  width: 210px;
  padding: 11px 14px;
  border-radius: 999px;
}

.nav-search button,
.mobile-search button,
.hero-search button,
.page-search button {
  border: 0;
  color: white;
  cursor: pointer;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  border-radius: 999px;
  padding: 11px 18px;
  box-shadow: 0 12px 30px rgba(239, 68, 68, 0.24);
}

.nav-search input:focus,
.mobile-search input:focus,
.hero-search input:focus,
.page-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: rgba(239, 68, 68, 0.7);
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.16);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.8);
  cursor: pointer;
}

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

.mobile-nav {
  display: none;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.95);
}

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

.mobile-search {
  margin-top: 12px;
}

.mobile-search input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 999px;
}

.hero {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-track,
.hero-slide,
.hero-bg,
.hero-shadow {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  visibility: hidden;
  transform: scale(1.02);
  transition: opacity 0.6s ease, visibility 0.6s ease, transform 1.2s ease;
}

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

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.04);
}

.hero-shadow {
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.78) 38%, rgba(2, 6, 23, 0.22) 100%),
    linear-gradient(0deg, #020617 0%, transparent 38%),
    radial-gradient(circle at 72% 36%, rgba(239, 68, 68, 0.22), transparent 28rem);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1280px, calc(100% - 32px));
  min-height: 760px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 54px;
  padding: 96px 0 118px;
}

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

.eyebrow,
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fca5a5;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-kicker::before,
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--red), var(--orange));
}

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

.hero p {
  max-width: 700px;
  margin: 0 0 24px;
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.8;
}

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

.hero-tags span,
.detail-meta span,
.detail-meta a,
.genre-pills span,
.tag-row span,
.tag-cloud a {
  color: #e2e8f0;
  border: 1px solid rgba(226, 232, 240, 0.14);
  background: rgba(15, 23, 42, 0.68);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
}

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

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

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

.btn-primary {
  color: white;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  box-shadow: 0 18px 40px rgba(239, 68, 68, 0.3);
}

.btn-ghost {
  color: white;
  border: 1px solid rgba(226, 232, 240, 0.18);
  background: rgba(15, 23, 42, 0.56);
}

.btn-ghost:hover {
  border-color: rgba(239, 68, 68, 0.6);
  background: rgba(239, 68, 68, 0.12);
}

.hero-poster {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 32px;
  border: 1px solid rgba(226, 232, 240, 0.18);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.52);
  transform: rotate(2deg);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.hero-poster span,
.play-mini,
.play-overlay span {
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  box-shadow: 0 18px 40px rgba(239, 68, 68, 0.36);
}

.hero-poster span {
  position: absolute;
  left: 26px;
  bottom: 26px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
}

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

.hero-arrow,
.hero-dot {
  border: 0;
  color: white;
  cursor: pointer;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(226, 232, 240, 0.16);
}

.hero-arrow {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  font-size: 30px;
  line-height: 1;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 50%;
}

.hero-dot.is-active {
  width: 34px;
  border-radius: 999px;
  background: var(--red);
}

.quick-search-panel,
.content-section,
.page-hero,
.detail-hero,
.player-section,
.detail-layout,
.breadcrumb {
  width: min(1280px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.quick-search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  align-items: center;
  gap: 32px;
  margin-top: -58px;
  position: relative;
  z-index: 8;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 28px;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(22px);
  box-shadow: var(--shadow);
}

.quick-search-panel h2,
.section-head h2,
.category-overview-card h2,
.ranking-info h2,
.detail-content h2,
.detail-aside h2,
.rank-mini-panel h2 {
  margin: 8px 0 0;
  color: white;
  letter-spacing: -0.04em;
}

.quick-search-panel p,
.page-hero p,
.category-overview-card p,
.detail-content p,
.ranking-info p {
  color: var(--muted);
  line-height: 1.8;
}

.hero-search input,
.page-search input {
  width: 100%;
  padding: 15px 18px;
  border-radius: 999px;
}

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

.page-main {
  padding-top: 34px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 22px;
  margin-bottom: 26px;
}

.section-head h2 {
  font-size: clamp(26px, 3vw, 38px);
}

.section-head.slim {
  align-items: center;
  margin-bottom: 18px;
}

.section-head.slim h2 {
  font-size: 22px;
}

.section-more,
.text-link,
.watch-link {
  color: #fca5a5;
  font-weight: 800;
}

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

.category-tile {
  position: relative;
  min-height: 160px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--bg-card);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  transition: transform 0.25s ease, border 0.25s ease;
}

.category-tile:hover,
.movie-card:hover,
.category-overview-card:hover,
.ranking-row:hover {
  transform: translateY(-4px);
  border-color: rgba(239, 68, 68, 0.52);
}

.category-tile img,
.category-tile span {
  position: absolute;
  inset: 0;
}

.category-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.34;
  transition: transform 0.5s ease;
}

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

.category-tile span {
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.94), rgba(2, 6, 23, 0.18));
}

.category-tile strong,
.category-tile small {
  position: relative;
  z-index: 1;
}

.category-tile strong {
  font-size: 22px;
}

.category-tile small {
  margin-top: 7px;
  color: var(--muted);
  line-height: 1.5;
}

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

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

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

.movie-card,
.ranking-panel,
.rank-mini-panel,
.sticky-card,
.detail-content,
.category-overview-card,
.ranking-row,
.category-side-list {
  border: 1px solid var(--line);
  background: var(--bg-card);
  box-shadow: 0 18px 55px rgba(2, 6, 23, 0.18);
}

.movie-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  transition: transform 0.25s ease, border 0.25s ease, background 0.25s ease;
}

.movie-cover {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #0f172a;
}

.movie-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.cover-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.04) 70%);
}

.play-mini {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .play-mini {
  opacity: 1;
  transform: translateY(0);
}

.rank-badge {
  position: absolute;
  left: 14px;
  top: 14px;
  border-radius: 999px;
  padding: 6px 10px;
  color: white;
  font-size: 12px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--red), var(--orange));
}

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

.movie-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  color: #94a3b8;
  font-size: 13px;
}

.movie-meta-line a {
  color: #fca5a5;
  font-weight: 800;
}

.movie-card h3 {
  margin: 10px 0 8px;
  color: white;
  font-size: 18px;
  line-height: 1.35;
}

.movie-card p {
  min-height: 52px;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.tag-row span {
  padding: 5px 9px;
  font-size: 12px;
}

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

.compact-card {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.36);
  border: 1px solid rgba(148, 163, 184, 0.12);
  transition: background 0.2s ease, transform 0.2s ease;
}

.compact-card:hover {
  background: rgba(239, 68, 68, 0.12);
  transform: translateX(4px);
}

.compact-card img {
  width: 76px;
  height: 54px;
  border-radius: 12px;
  object-fit: cover;
}

.compact-card strong,
.compact-card small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-card small {
  margin-top: 4px;
  color: var(--muted);
}

.compact-card > span {
  color: #fca5a5;
  font-weight: 900;
}

.ranking-panel,
.rank-mini-panel,
.category-side-list,
.sticky-card {
  border-radius: var(--radius-lg);
  padding: 20px;
}

.filter-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.filter-bar input,
.filter-bar select {
  min-height: 48px;
  border-radius: 999px;
  padding: 0 16px;
}

.filter-bar input {
  flex: 1;
}

.filter-bar select {
  width: 160px;
}

.page-hero {
  min-height: 330px;
  display: grid;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 46px;
  background:
    radial-gradient(circle at 88% 16%, rgba(239, 68, 68, 0.18), transparent 22rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.56));
  box-shadow: var(--shadow);
}

.compact-hero {
  grid-template-columns: minmax(0, 760px);
}

.category-hero {
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 34px;
}

.page-hero h1 {
  font-size: clamp(36px, 6vw, 66px);
}

.small-actions {
  margin-top: 24px;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 20px;
  border-radius: var(--radius-lg);
  padding: 18px;
  transition: transform 0.25s ease, border 0.25s ease;
}

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

.category-preview img {
  width: 100%;
  height: 84px;
  border-radius: 12px;
  object-fit: cover;
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 70px 142px minmax(0, 1fr) 90px;
  align-items: center;
  gap: 18px;
  border-radius: var(--radius-lg);
  padding: 14px;
  transition: transform 0.25s ease, border 0.25s ease;
}

.ranking-index {
  color: #fca5a5;
  font-size: 26px;
  font-weight: 900;
  text-align: center;
}

.ranking-thumb img {
  width: 142px;
  height: 92px;
  border-radius: 16px;
  object-fit: cover;
}

.ranking-info h2 {
  font-size: 22px;
}

.watch-link {
  justify-self: end;
  border: 1px solid rgba(239, 68, 68, 0.38);
  border-radius: 999px;
  padding: 10px 16px;
  background: rgba(239, 68, 68, 0.12);
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  margin-bottom: 24px;
}

.breadcrumb a {
  color: #fca5a5;
}

.detail-main {
  padding-top: 26px;
}

.detail-hero {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 28px;
  background:
    radial-gradient(circle at 88% 8%, rgba(239, 68, 68, 0.18), transparent 24rem),
    rgba(15, 23, 42, 0.7);
  box-shadow: var(--shadow);
}

.detail-cover {
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid rgba(226, 232, 240, 0.16);
}

.detail-cover img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.detail-intro h1 {
  font-size: clamp(34px, 5vw, 64px);
}

.lead {
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.8;
}

.player-section {
  padding-top: 34px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: black;
  box-shadow: var(--shadow);
}

.movie-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: black;
  cursor: pointer;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  cursor: pointer;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.54), rgba(2, 6, 23, 0.12));
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

.play-overlay span {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  font-size: 34px;
  padding-left: 6px;
}

.play-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  padding-top: 34px;
}

.detail-content {
  border-radius: var(--radius-lg);
  padding: 28px;
}

.detail-content h2 {
  font-size: 26px;
  margin-top: 0;
}

.detail-content h2:not(:first-child) {
  margin-top: 32px;
}

.detail-content p {
  color: #cbd5e1;
  font-size: 17px;
}

.tag-cloud a {
  transition: background 0.2s ease, border 0.2s ease;
}

.tag-cloud a:hover {
  border-color: rgba(239, 68, 68, 0.6);
  background: rgba(239, 68, 68, 0.16);
}

.detail-aside {
  align-self: start;
}

.sticky-card {
  position: sticky;
  top: 96px;
}

.detail-related {
  padding-bottom: 80px;
}

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

.footer-inner {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 520px);
  gap: 24px;
  color: var(--muted);
}

.footer-brand {
  color: white;
}

.footer-inner p {
  max-width: 620px;
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 18px;
}

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

.footer-links a:hover {
  color: white;
}

.hidden-by-filter {
  display: none !important;
}

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

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

  .hero-poster {
    display: none;
  }

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

  .category-side-list {
    display: none;
  }
}

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

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .site-header.is-open .mobile-nav {
    display: block;
  }

  .hero,
  .hero-content {
    min-height: 680px;
  }

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

  .quick-search-panel,
  .category-overview-card,
  .detail-hero,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .category-grid,
  .four-cols,
  .rank-mini-grid,
  .category-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ranking-row {
    grid-template-columns: 46px 96px minmax(0, 1fr);
  }

  .ranking-thumb img {
    width: 96px;
    height: 70px;
  }

  .watch-link {
    grid-column: 3;
    justify-self: start;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .header-inner {
    width: min(100% - 24px, 1280px);
  }

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

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

  .hero h1,
  .page-hero h1,
  .detail-intro h1 {
    letter-spacing: -0.05em;
  }

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

  .quick-search-panel,
  .content-section,
  .page-hero,
  .detail-hero,
  .player-section,
  .detail-layout,
  .breadcrumb,
  .footer-inner {
    width: min(100% - 24px, 1280px);
  }

  .quick-search-panel,
  .page-hero,
  .detail-hero,
  .detail-content,
  .ranking-panel,
  .rank-mini-panel,
  .sticky-card {
    padding: 18px;
  }

  .hero-search,
  .page-search,
  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-bar select {
    width: 100%;
  }

  .category-grid,
  .four-cols,
  .rank-mini-grid,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

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

  .category-preview img {
    height: 70px;
  }

  .detail-hero {
    gap: 22px;
  }

  .detail-cover {
    max-width: 240px;
  }

  .ranking-row {
    grid-template-columns: 44px 84px minmax(0, 1fr);
    gap: 12px;
  }

  .ranking-thumb img {
    width: 84px;
    height: 64px;
  }

  .ranking-info p {
    display: none;
  }

  .play-overlay span {
    width: 70px;
    height: 70px;
    font-size: 26px;
  }
}
