:root {
  color-scheme: dark;
  --bg: #020617;
  --bg-soft: #0f172a;
  --panel: rgba(15, 23, 42, 0.78);
  --panel-strong: rgba(15, 23, 42, 0.96);
  --line: rgba(148, 163, 184, 0.18);
  --line-strong: rgba(245, 158, 11, 0.42);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-strong: #cbd5e1;
  --accent: #f59e0b;
  --accent-deep: #ea580c;
  --shadow: 0 24px 80px rgba(2, 6, 23, 0.42);
  --radius: 22px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.12), transparent 34rem),
    radial-gradient(circle at top right, rgba(234, 88, 12, 0.1), transparent 32rem),
    var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

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

.site-nav {
  max-width: var(--max);
  height: 72px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: white;
  box-shadow: 0 16px 38px rgba(245, 158, 11, 0.26);
}

.brand-copy {
  display: grid;
  line-height: 1.15;
}

.brand-title {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.03em;
}

.brand-subtitle {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted-strong);
  font-size: 14px;
}

.nav-link {
  position: relative;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: white;
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--line);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: white;
  border-radius: 999px;
}

.mobile-menu {
  display: none;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 22px 18px;
}

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

.mobile-link {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.72);
  color: var(--muted-strong);
}

.hero,
.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
}

.hero {
  min-height: 680px;
  background: linear-gradient(135deg, #020617, #0f172a 48%, #111827);
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.26;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.08) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black, transparent 88%);
}

.hero-track {
  position: relative;
  min-height: 680px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.65s ease;
}

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

.hero-image-layer {
  position: absolute;
  inset: 0;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  filter: saturate(1.05);
}

.hero-shade,
.detail-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.95), rgba(2, 6, 23, 0.72) 44%, rgba(2, 6, 23, 0.16)),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.18) 42%, rgba(2, 6, 23, 0.72) 100%);
}

.hero-content {
  position: relative;
  width: min(var(--max), calc(100% - 44px));
  margin: 0 auto;
  padding: 110px 0 130px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-content h1,
.page-hero h1,
.detail-info h1 {
  margin: 0;
  letter-spacing: -0.06em;
  line-height: 1.05;
}

.hero-content h1 {
  font-size: clamp(42px, 7vw, 86px);
}

.hero-content h2 {
  max-width: 760px;
  margin: 16px 0 0;
  color: white;
  font-size: clamp(30px, 4.6vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.hero-content p {
  max-width: 620px;
  margin: 20px 0 0;
  color: var(--muted-strong);
  font-size: clamp(16px, 2vw, 20px);
}

.hero-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hero-meta span,
.detail-meta span,
.tag-list span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.7);
  color: var(--muted-strong);
  font-size: 13px;
  backdrop-filter: blur(14px);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 14px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

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

.button-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: white;
  box-shadow: 0 18px 44px rgba(245, 158, 11, 0.28);
}

.button-ghost,
.button-soft {
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.72);
  color: white;
  backdrop-filter: blur(14px);
}

.button-soft {
  color: var(--accent);
}

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

.hero-arrow,
.hero-dot {
  color: white;
  background: rgba(15, 23, 42, 0.74);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

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

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

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 999px;
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.active {
  width: 34px;
  background: var(--accent);
}

.quick-section,
.featured-section,
.catalog-section,
.detail-content,
.rank-page,
.text-panel,
.category-shell {
  width: min(var(--max), calc(100% - 44px));
  margin: 0 auto;
}

.quick-section,
.featured-section,
.catalog-section,
.rank-page,
.text-panel,
.category-shell {
  padding: 70px 0;
}

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

.section-head h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 38px);
  letter-spacing: -0.04em;
}

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

.center-head {
  display: grid;
  justify-items: center;
  text-align: center;
}

.small-head h2 {
  font-size: 28px;
}

.more-link {
  flex: 0 0 auto;
  color: var(--accent);
  font-weight: 800;
}

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

.quick-link {
  min-height: 148px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.82), rgba(30, 41, 59, 0.48));
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.quick-link:hover,
.movie-card:hover,
.compact-card:hover,
.rank-page-item:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: 0 20px 60px rgba(245, 158, 11, 0.1);
}

.quick-link span {
  display: block;
  color: white;
  font-size: 20px;
  font-weight: 850;
}

.quick-link em {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

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

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

.movie-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.64);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.card-link {
  display: grid;
  height: 100%;
}

.card-cover {
  position: relative;
  margin: 0;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 20%, rgba(245, 158, 11, 0.22), transparent 34%),
    #0f172a;
}

.movie-card-wide .card-cover {
  aspect-ratio: 16 / 10;
}

.card-cover img,
.compact-card img,
.rank-page-item img,
.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, opacity 0.2s ease;
}

.image-empty {
  opacity: 0;
}

.card-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.86), rgba(2, 6, 23, 0.16) 54%, rgba(2, 6, 23, 0.08));
}

.movie-card:hover .card-cover img,
.compact-card:hover img,
.rank-page-item:hover img {
  transform: scale(1.08);
}

.card-type,
.card-year,
.card-play {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  backdrop-filter: blur(12px);
}

.card-type {
  left: 10px;
  top: 10px;
  padding: 5px 10px;
  background: rgba(15, 23, 42, 0.82);
  color: var(--muted-strong);
  font-size: 12px;
}

.card-year {
  right: 10px;
  top: 10px;
  padding: 5px 9px;
  background: rgba(245, 158, 11, 0.9);
  color: white;
  font-size: 12px;
  font-weight: 800;
}

.card-play {
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  background: rgba(245, 158, 11, 0.88);
  color: white;
  transform: translate(-50%, -50%) scale(0.86);
  opacity: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

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

.card-body {
  padding: 15px;
}

.card-body h3 {
  margin: 0;
  display: -webkit-box;
  min-height: 48px;
  overflow: hidden;
  color: white;
  font-size: 16px;
  line-height: 1.45;
  font-weight: 800;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-body p {
  margin: 8px 0 0;
  display: -webkit-box;
  min-height: 42px;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.rank-section {
  padding: 70px 0;
  background: rgba(15, 23, 42, 0.36);
}

.rank-panel {
  width: min(var(--max), calc(100% - 44px));
  margin: 0 auto;
}

.rank-list,
.rank-page-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

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

.rank-list a,
.rank-page-item a {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.34);
}

.rank-num {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: white;
  font-weight: 900;
}

.rank-num.large {
  width: 52px;
  height: 52px;
}

.rank-main {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.rank-main strong {
  overflow: hidden;
  color: white;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-main em,
.rank-main small {
  overflow: hidden;
  color: var(--muted);
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-year {
  margin-left: auto;
  color: var(--accent);
  font-weight: 800;
}

.category-shell {
  display: grid;
  gap: 42px;
}

.category-strip {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.42);
}

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

.compact-card {
  min-width: 0;
  display: flex;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.32);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.compact-card img {
  width: 70px;
  height: 94px;
  flex: 0 0 auto;
  border-radius: 12px;
  background: #0f172a;
}

.compact-card span {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 8px;
}

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

.compact-card em {
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
}

.simple-hero {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(2, 6, 23, 0.96));
}

.page-hero-inner {
  position: relative;
  width: min(var(--max), calc(100% - 44px));
  margin: 0 auto;
  padding: 82px 0 64px;
}

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

.page-hero p {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--muted-strong);
  font-size: 18px;
}

.category-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.category-cloud a {
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.68);
  color: var(--muted-strong);
  font-size: 13px;
}

.catalog-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.52);
}

.search-box,
.sort-box {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.search-box {
  flex: 1;
}

.search-box input,
.sort-box select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: none;
  background: rgba(2, 6, 23, 0.72);
  color: white;
  padding: 0 14px;
}

.catalog-grid {
  align-items: stretch;
}

.detail-hero {
  min-height: 620px;
  background: var(--bg);
}

.detail-bg {
  position: absolute;
  inset: 0;
  background-image: var(--detail-image);
  background-size: cover;
  background-position: center;
  transform: scale(1.08);
  filter: blur(8px) saturate(1.05);
  opacity: 0.55;
}

.detail-wrap {
  position: relative;
  width: min(var(--max), calc(100% - 44px));
  margin: 0 auto;
  padding: 40px 0 70px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 38px;
  color: var(--muted);
  font-size: 13px;
}

.breadcrumb a {
  color: var(--muted-strong);
}

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

.detail-poster {
  margin: 0;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  background: #0f172a;
  box-shadow: var(--shadow);
}

.detail-info h1 {
  font-size: clamp(38px, 5vw, 70px);
}

.detail-info .lead {
  max-width: 760px;
  margin: 20px 0 0;
  color: var(--muted-strong);
  font-size: 19px;
}

.watch-section {
  width: min(var(--max), calc(100% - 44px));
  margin: -70px auto 0;
  position: relative;
  z-index: 4;
}

.watch-wrap {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.video-box {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 20px;
  background: #000;
}

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

.player-start {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.92);
  color: white;
  box-shadow: 0 20px 60px rgba(245, 158, 11, 0.25);
  transform: translate(-50%, -50%);
}

.player-start span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.video-box.is-playing .player-start {
  opacity: 0;
  pointer-events: none;
}

.player-message {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 22px;
  z-index: 6;
  margin: 0;
  color: #fed7aa;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  padding: 48px 0 24px;
}

.content-card,
.text-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.52);
  padding: 26px;
}

.content-card h2,
.text-card h2 {
  margin: 0 0 14px;
  font-size: 24px;
  letter-spacing: -0.03em;
}

.content-card p,
.text-card p {
  margin: 0;
  color: var(--muted-strong);
}

.text-card {
  max-width: 900px;
  margin: 0 auto;
}

.text-card p + p {
  margin-top: 18px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.related-section {
  padding-top: 36px;
}

.rank-page-item {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.54);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.rank-page-item img {
  width: 82px;
  height: 110px;
  flex: 0 0 auto;
  border-radius: 14px;
  background: #0f172a;
}

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

.footer-wrap {
  width: min(var(--max), calc(100% - 44px));
  margin: 0 auto;
  padding: 46px 0;
  display: grid;
  grid-template-columns: minmax(0, 2fr) 1fr 1fr;
  gap: 36px;
}

.footer-brand p {
  max-width: 520px;
  color: var(--muted);
}

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

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

.site-footer a,
.footer-bottom {
  color: var(--muted);
}

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

.footer-bottom {
  padding: 20px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 13px;
}

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

  .nav-toggle {
    display: block;
  }

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

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

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

@media (max-width: 760px) {
  .site-nav {
    height: 66px;
    padding: 0 16px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

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

  .brand-subtitle {
    display: none;
  }

  .hero,
  .hero-track {
    min-height: 640px;
  }

  .hero-content {
    width: calc(100% - 32px);
    padding-top: 80px;
  }

  .hero-shade {
    background:
      linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.42) 58%, rgba(2, 6, 23, 0.84) 100%),
      rgba(2, 6, 23, 0.28);
  }

  .hero-controls {
    bottom: 22px;
  }

  .quick-section,
  .featured-section,
  .catalog-section,
  .detail-content,
  .rank-page,
  .text-panel,
  .category-shell,
  .rank-panel,
  .watch-section,
  .detail-wrap,
  .page-hero-inner,
  .footer-wrap {
    width: calc(100% - 32px);
  }

  .quick-grid,
  .movie-grid,
  .wide-grid,
  .compact-grid,
  .rank-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-head,
  .catalog-toolbar {
    display: grid;
  }

  .detail-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .detail-poster {
    width: min(260px, 70vw);
  }

  .watch-section {
    margin-top: -42px;
  }

  .watch-wrap {
    padding: 8px;
    border-radius: 22px;
  }

  .video-box {
    border-radius: 16px;
  }

  .player-start {
    padding: 12px 16px;
  }

  .player-start span {
    width: 30px;
    height: 30px;
  }

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

@media (max-width: 520px) {
  .quick-grid,
  .movie-grid,
  .wide-grid,
  .compact-grid,
  .rank-list {
    grid-template-columns: 1fr;
  }

  .card-cover {
    aspect-ratio: 16 / 10;
  }

  .rank-list a,
  .rank-page-item a {
    align-items: flex-start;
  }

  .rank-year {
    display: none;
  }
}
