:root {
  color-scheme: light;
  --sky: #0ea5e9;
  --cyan: #06b6d4;
  --blue: #2563eb;
  --ink: #0f172a;
  --muted: #64748b;
  --soft: #f0f9ff;
  --line: rgba(148, 163, 184, 0.25);
  --shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 42%, #f8fafc 100%);
  color: var(--ink);
  min-height: 100vh;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(14, 165, 233, 0.96), rgba(6, 182, 212, 0.96), rgba(37, 99, 235, 0.96));
  box-shadow: 0 12px 32px rgba(14, 165, 233, 0.25);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  max-width: 1280px;
  margin: 0 auto;
  min-height: 72px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.95);
  color: var(--blue);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.16);
}

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

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  color: rgba(255, 255, 255, 0.94);
  font-weight: 600;
  margin-left: auto;
}

.desktop-nav > a,
.nav-dropdown > a {
  padding: 12px 0;
  transition: color 0.2s ease;
}

.desktop-nav > a:hover,
.nav-dropdown > a:hover {
  color: #fef3c7;
}

.nav-dropdown {
  position: relative;
}

.dropdown-panel {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, 12px);
  width: 210px;
  padding: 10px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
}

.nav-dropdown:hover .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.dropdown-panel a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  color: #334155;
  font-size: 14px;
}

.dropdown-panel a:hover {
  background: #e0f2fe;
  color: #0369a1;
}

.nav-search {
  width: min(280px, 25vw);
  position: relative;
}

.nav-search input,
.mobile-search input,
.filter-input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  outline: none;
  border-radius: 999px;
  padding: 11px 46px 11px 16px;
  background: rgba(255, 255, 255, 0.92);
  color: #0f172a;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.nav-search button {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sky), var(--blue));
  color: #ffffff;
  cursor: pointer;
}

.menu-toggle {
  display: none;
  border: 0;
  border-radius: 14px;
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  cursor: pointer;
}

.mobile-panel {
  display: none;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 18px;
  color: #ffffff;
}

.mobile-panel.is-open {
  display: grid;
  gap: 10px;
}

.mobile-panel a {
  display: block;
  padding: 11px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.16);
}

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

.mobile-search input {
  padding-right: 16px;
}

.mobile-search button {
  border: 0;
  border-radius: 999px;
  padding: 0 16px;
  color: #0369a1;
  font-weight: 700;
  background: #ffffff;
}

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

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  background: radial-gradient(circle at 10% 15%, rgba(255, 255, 255, 0.26), transparent 28%), linear-gradient(135deg, #06b6d4 0%, #2563eb 52%, #7c3aed 100%);
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  background: linear-gradient(180deg, transparent, #f0f9ff 86%);
  pointer-events: none;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.24;
  filter: blur(8px) saturate(1.2);
  transform: scale(1.04);
}

.hero-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-backdrop img.is-broken,
.poster-link img.is-broken,
.rank-thumb img.is-broken,
.hero-poster img.is-broken,
.detail-poster img.is-broken,
.detail-backdrop img.is-broken {
  display: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  min-height: 680px;
  margin: 0 auto;
  padding: 76px 24px 88px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.55fr);
  align-items: center;
  gap: 56px;
}

.hero-copy {
  color: #ffffff;
  max-width: 760px;
  animation: rise 0.7s ease both;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #e0f2fe;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 18px 0 18px;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.06em;
  text-shadow: 0 12px 36px rgba(15, 23, 42, 0.35);
}

.hero-summary {
  max-width: 700px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.8;
}

.hero-tags,
.tag-list,
.meta-list,
.card-meta,
.rank-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.hero-tags {
  margin: 24px 0;
}

.hero-tags span,
.tag-list span,
.meta-list span {
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
}

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

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

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

.btn-primary {
  background: #ffffff;
  color: #0369a1;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.22);
}

.btn-ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.36);
}

.btn-soft {
  color: #0f172a;
  background: rgba(255, 255, 255, 0.72);
}

.hero-poster {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: 34px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.08));
  box-shadow: 0 36px 90px rgba(15, 23, 42, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.32);
  transform: rotate(2deg);
}

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

.hero-poster span {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: rgba(14, 165, 233, 0.9);
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.28);
}

.hero-controls {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 58px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 34px;
  height: 9px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.44);
  cursor: pointer;
  transition: all 0.2s ease;
}

.hero-dot.is-active {
  width: 62px;
  background: #ffffff;
}

.home-intro {
  position: relative;
  z-index: 5;
  margin-top: -48px;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 0.7fr);
  gap: 16px;
}

.intro-card,
.intro-stat,
.story-card,
.watch-panel,
.filter-panel {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  border-radius: var(--radius);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

.intro-card {
  padding: 26px;
}

.intro-card h2,
.story-card h2,
.watch-panel h2 {
  margin: 0 0 10px;
  font-size: 28px;
}

.intro-card p,
.story-card p,
.watch-panel p,
.category-tile p,
.section-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.intro-stat {
  min-height: 132px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 22px;
}

.intro-stat strong {
  display: block;
  font-size: 30px;
  color: var(--sky);
}

.intro-stat span {
  color: var(--muted);
}

.section-block {
  padding: 72px 24px 0;
}

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

.section-kicker {
  background: #e0f2fe;
  color: #0284c7;
  margin-bottom: 12px;
}

.section-head h2 {
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.04em;
}

.section-link {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  border-radius: 999px;
  padding: 11px 18px;
  color: #0369a1;
  background: #e0f2fe;
  font-weight: 800;
}

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

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(226, 232, 240, 0.82);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 70px rgba(14, 165, 233, 0.18);
}

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

.movie-card.compact .poster-link {
  aspect-ratio: 16 / 9;
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.02), rgba(15, 23, 42, 0.62));
}

.type-badge {
  position: absolute;
  left: 14px;
  top: 14px;
  border-radius: 999px;
  padding: 6px 10px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  background: rgba(15, 23, 42, 0.64);
  backdrop-filter: blur(10px);
}

.play-badge {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(14, 165, 233, 0.92);
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.24);
}

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

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

.movie-card-body h3 a:hover,
.rank-info h3 a:hover,
.category-preview-links a:hover {
  color: var(--sky);
}

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

.card-meta {
  justify-content: space-between;
  color: #64748b;
  font-size: 13px;
}

.card-meta a {
  color: #0284c7;
  font-weight: 800;
}

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

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

.category-tile {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--accent-a), var(--accent-b));
  box-shadow: 0 20px 56px rgba(15, 23, 42, 0.12);
  color: #ffffff;
}

.category-tile::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -40px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.category-main-link {
  position: relative;
  z-index: 2;
  display: block;
  padding: 26px;
  min-height: 220px;
}

.category-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  margin-bottom: 20px;
}

.category-tile h2 {
  margin: 0 0 10px;
  font-size: 24px;
}

.category-tile p {
  color: rgba(255, 255, 255, 0.86);
}

.category-preview-links {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 8px;
  padding: 0 26px 26px;
}

.category-preview-links a {
  padding: 9px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 14px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

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

.ranking-list {
  list-style: none;
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 0;
}

.rank-row {
  display: grid;
  grid-template-columns: 92px 54px minmax(0, 1fr) 62px;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

.rank-thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(135deg, #e0f2fe, #dbeafe);
}

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

.rank-number {
  font-size: 24px;
  font-weight: 900;
  color: #0ea5e9;
}

.rank-info h3 {
  margin: 0 0 6px;
  font-size: 17px;
}

.rank-info p {
  margin: 0 0 8px;
  color: #64748b;
  line-height: 1.55;
  font-size: 14px;
}

.rank-meta {
  color: #64748b;
  font-size: 13px;
}

.rank-meta a {
  color: #0284c7;
  font-weight: 800;
}

.rank-score {
  justify-self: end;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
}

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

.page-hero,
.movie-detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent-a, #06b6d4), var(--accent-b, #2563eb));
}

.page-hero-inner {
  padding: 72px 24px;
}

.page-hero h1,
.movie-detail-hero h1 {
  margin: 18px 0 16px;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.page-hero p,
.detail-one-line {
  max-width: 780px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  line-height: 1.8;
}

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

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

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

.filter-panel label {
  flex: 1;
  display: grid;
  gap: 8px;
  font-weight: 800;
}

.filter-input {
  border-color: #bae6fd;
  background: #ffffff;
  padding-right: 16px;
}

.filter-panel p {
  margin: 0;
  color: #64748b;
  font-weight: 700;
}

.search-panel {
  align-items: center;
}

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

.empty-state {
  display: none;
  padding: 56px 24px;
  text-align: center;
  color: #64748b;
  font-weight: 800;
}

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

.full-ranking .rank-row {
  grid-template-columns: 100px 64px minmax(0, 1fr) 70px;
}

.movie-detail-hero {
  background: radial-gradient(circle at 12% 10%, rgba(255, 255, 255, 0.24), transparent 26%), linear-gradient(135deg, var(--accent-a), var(--accent-b));
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.16;
  filter: blur(8px) saturate(1.3);
  transform: scale(1.04);
}

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

.detail-hero-inner {
  position: relative;
  z-index: 2;
  padding-top: 54px;
  padding-bottom: 70px;
}

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

.detail-poster {
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 32px 70px rgba(15, 23, 42, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

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

.detail-copy .meta-list {
  margin: 22px 0 14px;
}

.detail-copy .tag-list span {
  background: rgba(255, 255, 255, 0.2);
}

.watch-section {
  padding-top: 60px;
}

.watch-panel {
  padding: 26px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  margin-top: 20px;
  border-radius: 26px;
  background: #020617;
  aspect-ratio: 16 / 9;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.18);
}

.movie-player {
  width: 100%;
  height: 100%;
  display: block;
  background: #020617;
  cursor: pointer;
}

.player-trigger {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  gap: 12px;
  align-content: center;
  border: 0;
  background: radial-gradient(circle at center, rgba(14, 165, 233, 0.28), rgba(2, 6, 23, 0.74));
  color: #ffffff;
  cursor: pointer;
}

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

.player-icon {
  width: 86px;
  height: 86px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--sky), var(--blue));
  box-shadow: 0 24px 54px rgba(14, 165, 233, 0.32);
  font-size: 30px;
}

.player-trigger strong {
  font-size: 20px;
}

.story-section {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  padding-top: 32px;
}

.story-card {
  padding: 28px;
}

.story-card p {
  font-size: 16px;
}

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

.site-footer {
  margin-top: 82px;
  background: linear-gradient(180deg, #1e293b, #0f172a);
  color: #ffffff;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 54px 24px;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 34px;
}

.brand-footer {
  margin-bottom: 18px;
}

.site-footer h2 {
  margin: 0 0 16px;
  font-size: 18px;
}

.site-footer p,
.site-footer a,
.site-footer li {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.75;
}

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

.site-footer a:hover {
  color: #67e8f9;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 24px;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

  .home-intro,
  .split-section,
  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .menu-toggle {
    display: inline-grid;
    place-items: center;
    margin-left: auto;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 52px;
  }

  .hero-poster {
    max-width: 330px;
    margin: 0 auto;
    transform: none;
  }

  .detail-layout,
  .story-section {
    grid-template-columns: 1fr;
  }

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

  .filter-panel,
  .search-panel {
    display: grid;
    align-items: stretch;
  }
}

@media (max-width: 680px) {
  .nav-wrap,
  .container,
  .page-hero-inner,
  .detail-hero-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

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

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

  .hero h1 {
    font-size: 40px;
  }

  .hero-controls {
    bottom: 34px;
  }

  .home-intro,
  .movie-grid,
  .category-grid,
  .category-grid.wide,
  .category-movie-grid,
  .search-movie-grid,
  .side-card-grid,
  .related-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .section-block {
    padding-top: 52px;
  }

  .section-head {
    display: grid;
  }

  .rank-row,
  .full-ranking .rank-row {
    grid-template-columns: 82px minmax(0, 1fr) 54px;
  }

  .rank-number {
    position: absolute;
    transform: translate(10px, -34px);
    font-size: 18px;
    color: #ffffff;
    background: rgba(14, 165, 233, 0.9);
    border-radius: 999px;
    padding: 4px 8px;
  }

  .rank-info p,
  .rank-meta span:nth-child(n + 3) {
    display: none;
  }

  .rank-score {
    width: 46px;
    height: 46px;
  }

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