:root {
  --bg: #fff8ed;
  --bg-soft: #fff3dd;
  --surface: #ffffff;
  --surface-strong: #fff7e8;
  --text: #1f2937;
  --muted: #6b7280;
  --line: rgba(146, 64, 14, 0.16);
  --amber: #f59e0b;
  --amber-dark: #d97706;
  --orange: #ea580c;
  --brown: #78350f;
  --shadow: 0 18px 45px rgba(120, 53, 15, 0.14);
  --shadow-strong: 0 26px 70px rgba(120, 53, 15, 0.25);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.18), transparent 34rem),
    linear-gradient(180deg, #fff7ea 0%, #fffaf3 42%, #fff 100%);
  color: var(--text);
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 248, 237, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.header-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  color: var(--brown);
  white-space: nowrap;
}

.logo-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 12px 28px rgba(245, 158, 11, 0.32);
}

.logo-text {
  font-size: 1.2rem;
}

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

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

.nav-link:hover,
.nav-link.active {
  color: #fff;
  background: var(--amber);
  box-shadow: 0 10px 24px rgba(245, 158, 11, 0.28);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(320px, 26vw);
  padding: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 10px 26px rgba(120, 53, 15, 0.08);
}

.header-search input {
  width: 100%;
  border: 0;
  outline: none;
  padding: 8px 10px;
  background: transparent;
  color: var(--text);
}

.header-search button,
.quick-search button {
  border: 0;
  border-radius: 999px;
  padding: 9px 16px;
  background: var(--amber);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  transition: 0.2s ease;
}

.header-search button:hover,
.quick-search button:hover {
  background: var(--amber-dark);
}

.mobile-menu-button {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: #fff;
  color: var(--brown);
  box-shadow: 0 8px 22px rgba(120, 53, 15, 0.12);
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
}

.mobile-nav.open {
  display: grid;
  gap: 6px;
}

.mobile-nav a {
  padding: 12px 14px;
  border-radius: 12px;
  color: #4b5563;
  font-weight: 700;
}

.mobile-nav a:hover {
  background: var(--bg-soft);
  color: var(--brown);
}

.hero {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  background: #111827;
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.66) 45%, rgba(17, 24, 39, 0.14)),
    linear-gradient(0deg, rgba(17, 24, 39, 0.78), transparent 45%);
}

.hero-content {
  position: relative;
  height: 680px;
  display: flex;
  align-items: center;
}

.hero-copy {
  width: min(720px, 100%);
  color: #fff;
}

.hero-badge,
.page-hero span,
.section-heading span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  color: #fff;
  background: var(--amber);
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.hero-badge {
  padding: 10px 16px;
  box-shadow: 0 12px 28px rgba(245, 158, 11, 0.28);
}

.hero h1 {
  margin: 22px 0 18px;
  font-size: clamp(2.8rem, 7vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.hero p {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.06rem, 2vw, 1.35rem);
  line-height: 1.8;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.84);
  font-weight: 700;
}

.hero-stats span {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 14px 24px;
  font-weight: 900;
  transition: 0.2s ease;
}

.btn-primary {
  background: var(--amber);
  color: #fff;
  box-shadow: 0 18px 38px rgba(245, 158, 11, 0.35);
}

.btn-primary:hover {
  background: var(--amber-dark);
  transform: translateY(-2px) scale(1.02);
}

.btn-ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
}

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

.hero-category-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero-category-links a {
  padding: 8px 12px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-category-links a:hover {
  color: #fff;
  background: rgba(245, 158, 11, 0.8);
}

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

.hero-controls > button,
.hero-dot {
  border: 0;
  cursor: pointer;
}

.hero-controls > button {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  font-size: 2rem;
  line-height: 1;
  backdrop-filter: blur(12px);
}

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

.hero-dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  transition: 0.2s ease;
}

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

.quick-search-section,
.section-block,
.two-column-section,
.page-main {
  padding-top: 44px;
}

.quick-search {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 22px;
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.quick-search span {
  display: block;
  color: var(--amber-dark);
  font-weight: 900;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.quick-search strong {
  display: block;
  margin-top: 2px;
  color: var(--text);
  font-size: 1.08rem;
}

.quick-search input {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  outline: none;
  padding: 14px 18px;
  background: var(--surface-strong);
}

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

.section-heading.compact {
  margin-bottom: 18px;
}

.section-heading span,
.page-hero span {
  padding: 6px 11px;
}

.section-heading h2,
.page-hero h1 {
  margin: 8px 0 0;
  color: var(--text);
  font-size: clamp(2rem, 4vw, 3.3rem);
  letter-spacing: -0.04em;
}

.section-heading a {
  color: var(--amber-dark);
  font-weight: 900;
}

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

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

.movie-card.is-hidden {
  display: none;
}

.movie-card-link {
  display: block;
  height: 100%;
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow);
  transition: 0.25s ease;
}

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

.movie-cover {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #fef3c7, #fed7aa);
}

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

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

.movie-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.72));
}

.movie-duration,
.movie-play {
  position: absolute;
  z-index: 2;
  color: #fff;
}

.movie-duration {
  right: 10px;
  bottom: 10px;
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.7);
  font-size: 0.78rem;
  font-weight: 800;
}

.movie-play {
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.92);
  box-shadow: 0 14px 30px rgba(245, 158, 11, 0.35);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.86);
  transition: 0.22s ease;
}

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

.movie-info {
  padding: 16px;
}

.movie-info h3 {
  min-height: 2.85em;
  margin: 0 0 8px;
  font-size: 1rem;
  line-height: 1.42;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-info p {
  min-height: 3.9em;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #9a3412;
  font-size: 0.82rem;
  font-weight: 800;
}

.movie-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.movie-tags span {
  padding: 4px 7px;
  border-radius: 999px;
  color: #92400e;
  background: #ffedd5;
  font-size: 0.72rem;
  font-weight: 800;
}

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

.category-tile,
.category-overview-card {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 220px;
  overflow: hidden;
  border-radius: 26px;
  color: #fff;
  box-shadow: var(--shadow);
  isolation: isolate;
}

.category-tile img,
.category-overview-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 0.5s ease;
}

.category-tile::before,
.category-overview-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.78));
  z-index: -1;
}

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

.category-tile div,
.category-overview-card div {
  padding: 22px;
}

.category-tile h3,
.category-overview-card h2 {
  margin: 0 0 8px;
  font-size: 1.35rem;
}

.category-tile p,
.category-overview-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.6;
}

.category-overview-card span {
  color: #fde68a;
  font-weight: 900;
}

.two-column-section {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 24px;
}

.section-card,
.detail-card,
.sidebar-card,
.filter-panel {
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.section-card,
.detail-card,
.sidebar-card,
.filter-panel {
  padding: 24px;
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 48px 56px minmax(0, 1fr) auto auto;
  gap: 14px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: #fff7ed;
  transition: 0.2s ease;
}

.ranking-list.large .ranking-row {
  grid-template-columns: 58px 74px minmax(0, 1fr) auto auto;
}

.ranking-row:hover {
  background: #ffedd5;
  transform: translateX(4px);
}

.rank-number {
  color: var(--orange);
  font-size: 1.15rem;
  font-weight: 950;
}

.ranking-row img {
  width: 56px;
  height: 74px;
  border-radius: 12px;
  object-fit: cover;
}

.ranking-list.large .ranking-row img {
  width: 74px;
  height: 98px;
}

.rank-title {
  min-width: 0;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-meta,
.rank-views {
  color: var(--muted);
  font-size: 0.88rem;
  white-space: nowrap;
}

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

.related-card {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 8px;
  border-radius: 16px;
  transition: 0.2s ease;
}

.related-card:hover {
  background: #fff7ed;
}

.related-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  background: #fed7aa;
}

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

.related-cover span {
  position: absolute;
  right: 6px;
  bottom: 6px;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 0.72rem;
}

.related-card h4 {
  margin: 0 0 5px;
  font-size: 0.95rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.site-footer {
  margin-top: 64px;
  color: #fde68a;
  background: linear-gradient(90deg, #78350f, #9a3412, #78350f);
}

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

.footer-logo {
  margin-bottom: 14px;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 950;
}

.site-footer p {
  max-width: 520px;
  margin: 0;
  line-height: 1.8;
}

.site-footer h3 {
  margin: 0 0 14px;
  color: #fff;
}

.site-footer a {
  display: block;
  margin: 9px 0;
  color: #fde68a;
}

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

.footer-bottom {
  padding: 18px;
  border-top: 1px solid rgba(253, 230, 138, 0.18);
  text-align: center;
  color: #fde68a;
}

.page-main {
  min-height: 60vh;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-weight: 700;
}

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

.page-hero {
  position: relative;
  margin-top: 24px;
  padding: clamp(36px, 7vw, 72px);
  overflow: hidden;
  border-radius: 34px;
  background:
    radial-gradient(circle at right top, rgba(234, 88, 12, 0.22), transparent 28rem),
    linear-gradient(135deg, #fff7ed, #fff);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.page-hero p {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.8;
}

.category-hero,
.ranking-hero,
.search-hero {
  background:
    radial-gradient(circle at right top, rgba(245, 158, 11, 0.28), transparent 28rem),
    linear-gradient(135deg, #fff7ed, #fffaf3 48%, #fff);
}

.filter-panel {
  display: grid;
  gap: 16px;
  margin: 28px 0;
}

.filter-search input {
  width: 100%;
  border: 1px solid var(--line);
  outline: none;
  border-radius: 18px;
  padding: 15px 18px;
  background: #fff7ed;
}

.large-input input {
  font-size: 1.06rem;
  padding: 18px 20px;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.filter-row > span {
  color: var(--brown);
  font-weight: 950;
  margin-right: 2px;
}

.filter-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 13px;
  background: #fff;
  color: #4b5563;
  font-weight: 800;
  cursor: pointer;
  transition: 0.2s ease;
}

.filter-chip:hover,
.filter-chip.active {
  border-color: var(--amber);
  background: var(--amber);
  color: #fff;
}

.page-grid {
  margin-top: 24px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(290px, 0.85fr);
  gap: 28px;
  margin-top: 28px;
}

.detail-primary {
  display: grid;
  gap: 22px;
}

.player-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 24px;
  background: #000;
  box-shadow: var(--shadow-strong);
}

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

.player-center,
.player-loading,
.player-error,
.player-controls {
  position: absolute;
  z-index: 3;
}

.player-center {
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.player-big-button {
  width: 78px;
  height: 78px;
  border: 0;
  border-radius: 50%;
  background: var(--amber);
  color: #fff;
  font-size: 2.1rem;
  box-shadow: 0 22px 48px rgba(245, 158, 11, 0.45);
  cursor: pointer;
  transform: scale(1);
  transition: 0.2s ease;
  pointer-events: auto;
}

.player-big-button:hover {
  background: var(--amber-dark);
  transform: scale(1.08);
}

.player-shell.playing .player-center {
  display: none;
}

.player-loading {
  inset: 0;
  display: none;
  place-items: center;
  background: rgba(0, 0, 0, 0.34);
  pointer-events: none;
}

.player-shell.is-loading .player-loading {
  display: grid;
}

.player-loading span {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.24);
  border-top-color: var(--amber);
  animation: spin 0.9s linear infinite;
}

.player-error {
  left: 50%;
  top: 18px;
  display: none;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(185, 28, 28, 0.86);
  color: #fff;
  transform: translateX(-50%);
}

.player-shell.has-error .player-error {
  display: block;
}

.player-controls {
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.72));
  opacity: 0;
  transition: 0.25s ease;
}

.player-shell:hover .player-controls,
.player-shell:focus-within .player-controls {
  opacity: 1;
}

.player-controls button {
  border: 0;
  border-radius: 999px;
  padding: 9px 14px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.player-controls button:hover {
  background: var(--amber);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.detail-card h1,
.detail-card h2,
.sidebar-card h2 {
  margin: 0 0 14px;
  color: var(--text);
}

.detail-card h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.04em;
}

.detail-card h2,
.sidebar-card h2 {
  font-size: 1.45rem;
}

.detail-card p {
  margin: 0;
  color: #4b5563;
  font-size: 1.02rem;
  line-height: 1.9;
}

.detail-one-line {
  margin-bottom: 18px !important;
  color: var(--muted) !important;
  font-size: 1.12rem !important;
}

.detail-badges,
.detail-stats,
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.detail-badges span {
  padding: 7px 11px;
  border-radius: 999px;
  background: #ffedd5;
  color: #9a3412;
  font-weight: 900;
}

.detail-stats {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-weight: 800;
}

.tag-cloud span {
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff7ed;
  color: #92400e;
  font-weight: 900;
}

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

@media (max-width: 1100px) {
  .movie-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

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

  .mobile-menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

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

  .quick-search,
  .two-column-section,
  .detail-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

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

  .ranking-row,
  .ranking-list.large .ranking-row {
    grid-template-columns: 42px 54px minmax(0, 1fr);
  }

  .rank-meta,
  .rank-views {
    display: none;
  }
}

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

  .header-inner {
    min-height: 64px;
  }

  .logo-text {
    font-size: 1rem;
  }

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

  .hero h1 {
    font-size: 2.75rem;
  }

  .hero-actions,
  .hero-stats {
    gap: 10px;
  }

  .hero-controls {
    bottom: 20px;
  }

  .quick-search,
  .section-card,
  .detail-card,
  .sidebar-card,
  .filter-panel {
    border-radius: 20px;
    padding: 18px;
  }

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

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

  .movie-info {
    padding: 12px;
  }

  .movie-info h3 {
    font-size: 0.92rem;
  }

  .movie-info p {
    font-size: 0.82rem;
  }

  .page-hero {
    border-radius: 24px;
    padding: 30px 20px;
  }

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

  .player-controls {
    opacity: 1;
  }
}
