:root {
  --brand-red: #ef4444;
  --brand-orange: #f97316;
  --brand-pink: #db2777;
  --brand-yellow: #facc15;
  --brand-green: #16a34a;
  --brand-blue: #2563eb;
  --text-main: #1f2937;
  --text-muted: #6b7280;
  --border-soft: rgba(15, 23, 42, 0.10);
  --card-bg: rgba(255, 255, 255, 0.90);
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-hover: 0 28px 70px rgba(15, 23, 42, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text-main);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  background: linear-gradient(135deg, #f0fdf4 0%, #fefce8 46%, #fff7ed 100%);
  min-height: 100vh;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 76px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 22px;
  align-items: center;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  color: #111827;
}

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

.brand-text {
  font-size: 22px;
  letter-spacing: -0.03em;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.nav-link {
  padding: 10px 14px;
  color: #4b5563;
  border-radius: 999px;
  font-weight: 700;
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #dc2626;
  background: rgba(254, 226, 226, 0.85);
  transform: translateY(-1px);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
}

.header-search input {
  width: 190px;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 8px 10px;
}

.header-search button,
.btn-primary,
.category-enter {
  cursor: pointer;
  color: #fff;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--brand-red), var(--brand-orange));
  box-shadow: 0 14px 30px rgba(239, 68, 68, 0.24);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.header-search button {
  padding: 8px 14px;
}

.btn-primary,
.btn-ghost,
.category-enter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 22px;
}

.header-search button:hover,
.btn-primary:hover,
.category-enter:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 18px 42px rgba(239, 68, 68, 0.34);
}

.btn-ghost {
  border: 2px solid rgba(255, 255, 255, 0.52);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  font-weight: 800;
  transition: background 0.25s ease, transform 0.25s ease;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.30);
  transform: translateY(-2px);
}

.btn-ghost.dark {
  color: #dc2626;
  border-color: rgba(239, 68, 68, 0.22);
  background: rgba(255, 255, 255, 0.78);
}

.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: linear-gradient(135deg, #ef4444 0%, #f97316 48%, #db2777 100%);
}

.hero-orb {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  filter: blur(26px);
  opacity: 0.55;
  pointer-events: none;
}

.orb-one {
  top: 92px;
  left: 8%;
  width: 260px;
  height: 260px;
  background: rgba(250, 204, 21, 0.40);
}

.orb-two {
  right: 6%;
  bottom: 76px;
  width: 350px;
  height: 350px;
  background: rgba(248, 113, 113, 0.38);
}

.hero-slides,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.8s ease, transform 1.4s ease;
}

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

.hero-backdrop {
  position: absolute;
  right: 0;
  top: 0;
  width: 58%;
  height: 100%;
  object-fit: cover;
  opacity: 0.52;
  filter: saturate(1.1) contrast(1.06);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(127, 29, 29, 0.92) 0%, rgba(194, 65, 12, 0.72) 44%, rgba(15, 23, 42, 0.26) 100%),
    radial-gradient(circle at 28% 20%, rgba(255, 255, 255, 0.22), transparent 34%);
}

.hero-content {
  position: relative;
  z-index: 5;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 620px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  color: #fff;
}

.hero-kicker,
.sub-kicker,
.detail-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  font-size: 14px;
  font-weight: 800;
}

.hero h1 {
  margin: 0 0 10px;
  max-width: 760px;
  font-size: clamp(44px, 8vw, 86px);
  line-height: 0.96;
  letter-spacing: -0.08em;
}

.hero h1 span {
  display: block;
  margin-top: 10px;
  font-size: clamp(30px, 5vw, 58px);
  color: #fde68a;
}

.hero h2 {
  margin: 10px 0 14px;
  max-width: 780px;
  font-size: clamp(24px, 4vw, 44px);
  line-height: 1.12;
}

.hero p {
  max-width: 720px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.90);
  font-size: 18px;
  line-height: 1.8;
}

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

.hero-tags span,
.tag-row span,
.detail-tags span,
.tag-cloud span {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  color: #dc2626;
  background: rgba(254, 242, 242, 0.92);
  font-size: 12px;
  font-weight: 800;
}

.hero-actions,
.sub-actions,
.detail-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 26px;
}

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

.hero-dot {
  width: 11px;
  height: 11px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

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

.stats-bar {
  width: min(1040px, calc(100% - 32px));
  margin: -46px auto 42px;
  position: relative;
  z-index: 12;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.stats-bar div {
  padding: 22px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
}

.stats-bar strong {
  display: block;
  color: #dc2626;
  font-size: clamp(24px, 4vw, 38px);
  line-height: 1;
}

.stats-bar span {
  display: block;
  margin-top: 8px;
  color: var(--text-muted);
  font-weight: 700;
}

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

.section-band {
  background: linear-gradient(135deg, rgba(255, 247, 237, 0.86), rgba(254, 252, 232, 0.88));
}

.section-band.soft-green {
  background: linear-gradient(135deg, rgba(240, 253, 244, 0.90), rgba(236, 253, 245, 0.92));
}

.section-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

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

.section-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: #fff;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--brand-red), var(--brand-orange));
  box-shadow: 0 14px 30px rgba(239, 68, 68, 0.22);
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.1;
}

.section-heading p {
  margin: 6px 0 0;
  color: var(--text-muted);
}

.more-link {
  color: #dc2626;
  font-weight: 900;
}

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

.compact-grid,
.category-movie-grid,
.search-results {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 24px;
  background: var(--card-bg);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.card-poster {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #fee2e2, #ffedd5);
}

.compact .card-poster {
  aspect-ratio: 3 / 4;
}

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

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

.poster-play {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  height: 34px;
  color: #fff;
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.92);
  font-size: 13px;
  font-weight: 900;
}

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #fff;
  border-radius: 50%;
  background: linear-gradient(135deg, #ef4444, #f59e0b);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  font-style: normal;
  font-weight: 900;
}

.card-body {
  padding: 18px;
}

.card-meta,
.rank-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 800;
}

.card-meta a,
.rank-meta a {
  color: #dc2626;
}

.movie-card h3 {
  margin: 9px 0 8px;
  font-size: 20px;
  line-height: 1.24;
}

.movie-card.compact h3 {
  font-size: 17px;
}

.movie-card h3 a:hover,
.rank-info h3 a:hover,
.category-overview-card a:hover {
  color: #dc2626;
}

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

.movie-card.compact p {
  min-height: 48px;
  font-size: 13px;
}

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

.category-tile,
.category-overview-card {
  position: relative;
  overflow: hidden;
  min-height: 168px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
}

.category-tile::before,
.category-overview-card::before,
.sub-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.10;
  background: radial-gradient(circle at 80% 20%, currentColor, transparent 32%);
  pointer-events: none;
}

.category-count {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #dc2626;
  background: #fee2e2;
  font-size: 12px;
  font-weight: 900;
}

.category-tile strong {
  display: block;
  margin-bottom: 8px;
  font-size: 22px;
}

.category-tile p,
.category-overview-card p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.6;
}

.accent-red { color: #ef4444; }
.accent-orange { color: #f97316; }
.accent-purple { color: #9333ea; }
.accent-blue { color: #2563eb; }
.accent-emerald { color: #059669; }
.accent-cyan { color: #0891b2; }
.accent-rose { color: #e11d48; }
.accent-slate { color: #475569; }
.accent-yellow { color: #ca8a04; }
.accent-green { color: #16a34a; }

.sub-hero {
  position: relative;
  overflow: hidden;
  min-height: 330px;
  color: #fff;
  background: linear-gradient(135deg, #ef4444, #f97316, #db2777);
}

.sub-hero > div {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 78px 0;
}

.sub-hero h1 {
  margin: 0 0 18px;
  max-width: 780px;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.05;
}

.sub-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 18px;
  line-height: 1.75;
}

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

.category-overview-card {
  min-height: auto;
}

.category-overview-head {
  display: block;
}

.category-overview-head span {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  color: #dc2626;
  background: #fee2e2;
  font-weight: 900;
  font-size: 12px;
}

.category-overview-card h2 {
  margin: 12px 0 8px;
  font-size: 28px;
}

.category-overview-card ul {
  margin: 18px 0 20px;
  padding: 0;
  list-style: none;
}

.category-overview-card li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--border-soft);
  color: #374151;
}

.category-overview-card li span {
  color: var(--text-muted);
  font-size: 13px;
}

.filter-panel,
.search-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
}

.filter-panel strong {
  font-size: 22px;
}

.filter-panel p,
.search-panel p {
  margin: 6px 0 0;
  color: var(--text-muted);
}

.filter-panel label {
  display: grid;
  gap: 8px;
  min-width: min(360px, 100%);
  color: var(--text-muted);
  font-weight: 800;
}

.filter-panel input,
.search-panel input {
  width: 100%;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  outline: 0;
  padding: 13px 16px;
  background: #fff;
}

.filter-panel input:focus,
.search-panel input:focus {
  border-color: rgba(239, 68, 68, 0.45);
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.10);
}

.tag-cloud {
  margin-bottom: 24px;
}

.ranking-layout {
  padding-top: 34px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 70px 128px 1fr;
  align-items: center;
  gap: 18px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-soft);
}

.rank-number {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  color: #fff;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--brand-red), var(--brand-orange));
  font-size: 18px;
  font-weight: 900;
}

.rank-thumb {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: 18px;
  background: #fee2e2;
}

.rank-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-info h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.rank-info p {
  margin: 0 0 10px;
  color: var(--text-muted);
  line-height: 1.65;
}

.search-panel {
  display: block;
}

.search-panel form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.search-panel button {
  border: 0;
  border-radius: 999px;
  padding: 0 24px;
  color: #fff;
  font-weight: 900;
  cursor: pointer;
  background: linear-gradient(135deg, var(--brand-red), var(--brand-orange));
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: #111827;
}

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

.detail-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.30;
  filter: blur(2px) saturate(1.1);
}

.detail-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.96), rgba(127, 29, 29, 0.76), rgba(17, 24, 39, 0.54));
}

.detail-wrap {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 38px 0 58px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
}

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

.detail-main {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 34px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.36);
  background: linear-gradient(135deg, #fee2e2, #ffedd5);
}

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

.detail-info h1 {
  margin: 0 0 18px;
  font-size: clamp(32px, 5vw, 62px);
  line-height: 1.08;
}

.detail-one-line {
  margin: 0 0 22px;
  max-width: 820px;
  color: rgba(255, 255, 255, 0.90);
  font-size: 19px;
  line-height: 1.75;
}

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

.detail-meta-grid div {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(10px);
}

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

.detail-meta-grid strong {
  color: #fde68a;
  font-size: 12px;
}

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

.detail-tags.large {
  margin-top: 14px;
}

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(320px, 0.72fr);
  gap: 26px;
  align-items: start;
}

.player-panel,
.text-panel {
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.90);
  box-shadow: var(--shadow-soft);
}

.player-panel {
  padding: 18px;
}

.video-frame {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #020617;
}

.video-frame video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-content: center;
  gap: 10px;
  border: 0;
  color: #fff;
  cursor: pointer;
  background: radial-gradient(circle at center, rgba(239, 68, 68, 0.18), rgba(2, 6, 23, 0.62));
}

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

.play-symbol {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  margin: 0 auto;
  border-radius: 999px;
  color: #dc2626;
  background: #fff;
  font-size: 30px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.28);
}

.player-status {
  position: absolute;
  left: 16px;
  bottom: 12px;
  z-index: 4;
  margin: 0;
  padding: 6px 10px;
  color: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.42);
  font-size: 12px;
  font-weight: 800;
}

.text-panel {
  padding: 28px;
}

.text-panel h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.text-panel p {
  margin: 0 0 24px;
  color: #4b5563;
  line-height: 1.9;
}

.site-footer {
  margin-top: 24px;
  color: #f9fafb;
  background: #111827;
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0;
  display: grid;
  grid-template-columns: 1.2fr auto 1.2fr;
  gap: 26px;
  align-items: start;
}

.footer-inner p {
  margin: 8px 0 0;
  color: rgba(249, 250, 251, 0.70);
  line-height: 1.7;
}

.footer-links,
.footer-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-links a,
.footer-categories a {
  color: rgba(249, 250, 251, 0.78);
}

.footer-links a:hover,
.footer-categories a:hover {
  color: #fde68a;
}

@media (max-width: 980px) {
  .header-inner {
    grid-template-columns: 1fr;
    padding: 12px 0;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .header-search {
    width: 100%;
  }

  .header-search input {
    flex: 1;
    width: auto;
  }

  .hero-backdrop {
    width: 100%;
    opacity: 0.24;
  }

  .stats-bar,
  .card-grid,
  .compact-grid,
  .category-movie-grid,
  .editor-grid,
  .category-grid,
  .category-overview-grid,
  .footer-inner,
  .detail-content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-main {
    grid-template-columns: 200px 1fr;
  }

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

@media (max-width: 680px) {
  .hero,
  .hero-content {
    min-height: 680px;
  }

  .hero h1 {
    letter-spacing: -0.05em;
  }

  .stats-bar,
  .card-grid,
  .compact-grid,
  .category-movie-grid,
  .editor-grid,
  .category-grid,
  .category-overview-grid,
  .rank-item,
  .footer-inner,
  .detail-content,
  .detail-main,
  .detail-meta-grid {
    grid-template-columns: 1fr;
  }

  .section-topline,
  .filter-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .rank-item {
    grid-template-columns: 54px 1fr;
  }

  .rank-info {
    grid-column: 1 / -1;
  }

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

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

  .search-panel button {
    min-height: 46px;
  }
}
