:root {
  --bg: #0a0c10;
  --bg-deep: #050608;
  --bg-soft: #151922;
  --bg-card: #1a1f2a;
  --bg-card-hover: #242b39;
  --text: #f5f7fb;
  --muted: #a9b2c7;
  --accent: #e50914;
  --accent-soft: #ff2f3d;
  --accent-glow: rgba(229, 9, 20, 0.38);
  --line: rgba(255, 255, 255, 0.14);
  --shadow: 0 28px 64px rgba(0, 0, 0, 0.6);
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Be Vietnam Pro", "Noto Sans", "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(900px 420px at 100% 0%, rgba(229, 9, 20, 0.16), transparent 58%),
    radial-gradient(900px 500px at 0% 100%, rgba(66, 88, 190, 0.18), transparent 62%),
    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg) 100%);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

.skip-link {
  position: fixed;
  top: -60px;
  left: 20px;
  z-index: 999;
  background: #fff;
  color: #000;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 700;
  transition: top 0.25s ease;
}

.skip-link:focus-visible {
  top: 18px;
}

.bg-orbit,
.bg-orbit-2 {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  filter: blur(60px);
}

.bg-orbit {
  width: 520px;
  height: 520px;
  top: -160px;
  right: -140px;
  background: radial-gradient(circle, rgba(229, 9, 20, 0.24) 0%, transparent 68%);
  animation: orbitPulse 8s ease-in-out infinite;
}

.bg-orbit-2 {
  width: 620px;
  height: 620px;
  left: -220px;
  bottom: -260px;
  background: radial-gradient(circle, rgba(89, 116, 255, 0.2) 0%, transparent 68%);
  animation: orbitPulse 10s ease-in-out infinite reverse;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 14px 4vw;
  background: linear-gradient(180deg, rgba(3, 4, 8, 0.94) 0%, rgba(3, 4, 8, 0.7) 85%, transparent 100%);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-left,
.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, #b4040e 0%, var(--accent) 45%, #ff4551 100%);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 26px rgba(229, 9, 20, 0.45);
}

.logo-mark::before {
  content: "▶";
  margin-left: 2px;
  font-size: 12px;
}

.logo-text {
  font-weight: 800;
  font-size: 1.38rem;
  letter-spacing: 0.2px;
  color: #fef2f2;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  transition: transform 0.2s ease, background 0.2s ease;
}

.icon-btn:hover,
.icon-btn.active {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.18);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.lang-switch {
  display: flex;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.05);
}

.lang-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  transition: color 0.2s ease, background 0.2s ease;
}

.lang-switch a:hover,
.lang-switch a.active {
  color: #fff;
  background: rgba(229, 9, 20, 0.8);
}

.header-auth {
  display: flex;
  align-items: center;
  gap: 10px;
}

.solid-btn,
.ghost-btn,
.row-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1;
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 700;
  font-size: 0.86rem;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.solid-btn {
  color: #fff;
  background: linear-gradient(135deg, #c40410 0%, var(--accent) 60%, #ff3543 100%);
  box-shadow: 0 14px 26px rgba(229, 9, 20, 0.34);
}

.solid-btn:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #db0814 0%, #ff3543 100%);
}

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

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

.row-more {
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.row-more:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.35);
}

.inline {
  display: inline;
}

.full {
  width: 100%;
}

main {
  position: relative;
  z-index: 1;
}

.alert {
  margin: 14px 4vw 0;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
}

.alert-error {
  border-color: rgba(229, 9, 20, 0.45);
  background: rgba(229, 9, 20, 0.16);
}

.alert-success {
  border-color: rgba(34, 197, 94, 0.4);
  background: rgba(34, 197, 94, 0.14);
}

.hero {
  position: relative;
  min-height: 80vh;
  padding: 140px 4vw 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  transform: scale(1.03);
  filter: saturate(1.06) brightness(0.55);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 12, 16, 0.95) 0%, rgba(10, 12, 16, 0.78) 48%, rgba(10, 12, 16, 0.18) 100%),
    linear-gradient(180deg, rgba(10, 12, 16, 0.25) 0%, rgba(10, 12, 16, 1) 95%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 580px;
  display: grid;
  gap: 16px;
  animation: fadeUp 0.7s ease;
}

.hero-eyebrow {
  color: #88f49f;
  font-size: 0.76rem;
  letter-spacing: 2px;
  font-weight: 700;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2.2rem, 5.4vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.hero-desc {
  color: #c6cede;
  font-size: 1.04rem;
  line-height: 1.8;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-actions .solid-btn,
.hero-actions .ghost-btn {
  padding: 12px 22px;
  font-size: 0.95rem;
}

.row-block,
.grid-block,
.episodes,
.player-section,
.list-hero,
.search-hero {
  padding-left: 4vw;
  padding-right: 4vw;
}

.row-block,
.grid-block,
.episodes {
  padding-top: 16px;
  padding-bottom: 22px;
}

.row-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.row-header h2,
.list-header h1,
.search-box h1 {
  font-size: clamp(1.2rem, 2.8vw, 1.65rem);
  font-weight: 700;
}

.row-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(170px, 226px);
  gap: 14px;
  overflow-x: auto;
  padding: 8px 0 12px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}

.row-scroll::-webkit-scrollbar {
  height: 8px;
}

.row-scroll::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
}

.movie-card {
  position: relative;
  display: grid;
  gap: 8px;
  scroll-snap-align: start;
  cursor: pointer;
}

.movie-thumb {
  position: relative;
  z-index: 2;
  display: block;
  aspect-ratio: 2 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

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

.movie-card:hover .movie-thumb {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.62), 0 0 26px var(--accent-glow);
}

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

.movie-badge,
.movie-episode,
.movie-quality {
  position: absolute;
  z-index: 2;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 999px;
}

.movie-badge {
  top: 10px;
  left: 10px;
  color: #fff;
  background: rgba(0, 0, 0, 0.6);
}

.movie-episode {
  left: 10px;
  bottom: 10px;
  color: #fff;
  background: rgba(229, 9, 20, 0.85);
}

.movie-quality {
  top: 10px;
  right: 10px;
  color: #fff;
  background: #16a34a;
}

.movie-play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-play-overlay span {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(229, 9, 20, 0.9);
  box-shadow: 0 8px 24px rgba(229, 9, 20, 0.45);
  transform: scale(0.92);
  transition: transform 0.25s ease;
}

.movie-play-overlay svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  margin-left: 2px;
}

.movie-card:hover .movie-play-overlay {
  opacity: 1;
}

.movie-card:hover .movie-play-overlay span {
  transform: scale(1);
}

.movie-thumb .movie-badge {
  right: auto;
}

.movie-card.has-progress .movie-episode {
  bottom: 28px;
}

.movie-progress {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 8px;
  height: 18px;
  z-index: 4;
  display: grid;
  align-content: end;
  gap: 4px;
}

.movie-progress::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
}

.movie-progress-label {
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1;
  color: #eaf0ff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.movie-progress-bar {
  display: block;
  position: absolute;
  left: 0;
  bottom: 0;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff3044 0%, #ff4f6c 100%);
}

.movie-expand-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: grid;
  gap: 8px;
  padding: 14px 10px 12px;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  background: linear-gradient(180deg, rgba(6, 8, 11, 0) 0%, rgba(6, 8, 11, 0.94) 74%);
}

.movie-expand-actions,
.movie-expand-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.expand-pill {
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 0.62rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.muted-pill,
.movie-expand-meta span {
  color: #e5eaf5;
  background: rgba(255, 255, 255, 0.14);
}

.movie-expand-meta span {
  border-radius: 999px;
  padding: 3px 7px;
  font-size: 0.6rem;
  font-weight: 600;
}

@media (min-width: 1024px) {
  .movie-card:hover .movie-thumb {
    transform: translateY(-8px) scale(1.06);
  }

  .movie-card:hover .movie-expand-overlay,
  .movie-card:focus-within .movie-expand-overlay {
    opacity: 1;
    transform: translateY(0);
  }
}

.movie-meta {
  display: grid;
  gap: 2px;
}

.movie-meta h3 {
  font-size: 0.94rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-meta p {
  color: var(--muted);
  font-size: 0.78rem;
}

.list-hero,
.search-hero {
  padding-top: 26px;
  padding-bottom: 8px;
}

.list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.muted {
  color: var(--muted);
}

.search-box form {
  display: flex;
  gap: 10px;
}

input,
textarea,
select {
  width: 100%;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 0.96rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: rgba(229, 9, 20, 0.9);
  box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.22);
}

input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
}

.empty-state {
  color: var(--muted);
  margin: 4px 0 16px;
}

.detail-hero {
  position: relative;
  padding: 110px 4vw 56px;
  overflow: hidden;
}

.detail-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(18px) brightness(0.28);
  transform: scale(1.08);
}

.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 12, 16, 0.96) 0%, rgba(10, 12, 16, 0.84) 52%, rgba(10, 12, 16, 0.44) 100%),
    linear-gradient(180deg, rgba(10, 12, 16, 0.2) 0%, rgba(10, 12, 16, 1) 100%);
}

.detail-content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 30px;
  align-items: start;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
}

.detail-poster img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

.detail-info {
  display: grid;
  gap: 12px;
  max-width: 760px;
}

.detail-info h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.12;
}

.detail-origin {
  color: #ffa3aa;
  font-weight: 600;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: #d2d9e7;
}

.detail-meta span {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.86rem;
}

.detail-desc {
  color: #ccd3e2;
  line-height: 1.9;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.episode-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}

.episode-card {
  display: grid;
  gap: 4px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 14px;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.episode-card:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.11);
}

.episode-card.active {
  border-color: rgba(229, 9, 20, 0.85);
  background: rgba(229, 9, 20, 0.22);
}

.episode-card small {
  color: var(--muted);
}

.player-section {
  padding-top: 86px;
  padding-bottom: 24px;
}

.player-header {
  margin-bottom: 14px;
}

.player-header h1 {
  font-size: clamp(1.4rem, 3vw, 2.15rem);
}

.player-header p {
  color: var(--muted);
}

.player-shell {
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.player-shell video,
.player-stage iframe {
  display: block;
  width: 100%;
  min-height: min(66vh, 72vw);
  border: 0;
  background: #000;
}

.auth-shell,
.admin-shell {
  min-height: 78vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 4vw;
}

.auth-card,
.admin-card {
  width: min(520px, 100%);
  display: grid;
  gap: 18px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(180deg, rgba(23, 28, 38, 0.92) 0%, rgba(14, 17, 24, 0.92) 100%);
  padding: 30px;
  box-shadow: var(--shadow);
}

.auth-card h1,
.admin-card h1 {
  text-align: center;
}

.auth-card form,
.admin-card form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 6px;
  color: #d4daea;
  font-size: 0.86rem;
  font-weight: 600;
}

.sync-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.sync-stats div {
  display: grid;
  gap: 2px;
  text-align: center;
  border-radius: 12px;
  padding: 14px 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
}

.sync-stats strong {
  font-size: 1.3rem;
}

.site-footer {
  margin-top: 18px;
  padding: 30px 4vw 46px;
  text-align: center;
  color: var(--muted);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.3);
}

.infinite-sentinel {
  width: 100%;
  height: 1px;
}

:focus-visible {
  outline: 2px solid rgba(229, 9, 20, 0.95);
  outline-offset: 2px;
}

img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.25s ease;
}

img[loading="lazy"].loaded {
  opacity: 1;
}

.skeleton {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.06) 25%, rgba(255, 255, 255, 0.14) 50%, rgba(255, 255, 255, 0.06) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
  border-radius: var(--radius-sm);
}

.skeleton-text {
  height: 1em;
  margin-bottom: 8px;
}

.skeleton-title {
  width: 60%;
  height: 1.45em;
  margin-bottom: 12px;
}

.skeleton-thumb {
  aspect-ratio: 2 / 3;
}

.skeleton-btn {
  width: 120px;
  height: 40px;
  border-radius: 999px;
}

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

@keyframes orbitPulse {
  0%,
  100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.1);
  }
}

@keyframes shimmer {
  from {
    background-position: -200% 0;
  }
  to {
    background-position: 200% 0;
  }
}

@media (max-width: 980px) {
  .site-header {
    flex-wrap: wrap;
    gap: 10px;
  }

  .header-left,
  .header-right {
    width: 100%;
    justify-content: space-between;
  }

  .main-nav {
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero {
    min-height: 68vh;
    padding-top: 118px;
  }

  .detail-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .detail-poster img {
    max-width: 300px;
    margin: 0 auto;
  }

  .detail-meta,
  .detail-actions {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 10px 3vw;
  }

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

  .main-nav {
    gap: 2px;
  }

  .nav-link {
    font-size: 0.82rem;
    padding: 7px 10px;
  }

  .header-right {
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .icon-btn,
  .solid-btn,
  .ghost-btn,
  .row-more,
  .lang-switch a,
  .nav-link {
    min-height: 44px;
  }

  .header-auth {
    gap: 8px;
  }

  .solid-btn,
  .ghost-btn,
  .row-more {
    padding: 9px 14px;
    font-size: 0.8rem;
  }

  .hero {
    min-height: 56vh;
    padding: 94px 3vw 46px;
  }

  .hero-desc {
    font-size: 0.94rem;
    line-height: 1.65;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .solid-btn,
  .hero-actions .ghost-btn {
    flex: 1 1 0;
    justify-content: center;
  }

  .row-block,
  .grid-block,
  .episodes,
  .player-section,
  .list-hero,
  .search-hero,
  .site-footer {
    padding-left: 3vw;
    padding-right: 3vw;
  }

  .row-scroll {
    grid-auto-columns: minmax(130px, 156px);
    gap: 10px;
    touch-action: pan-x;
    -webkit-overflow-scrolling: touch;
    scroll-snap-stop: always;
  }

  .movie-progress {
    left: 8px;
    right: 8px;
    bottom: 6px;
  }

  .movie-progress-label {
    font-size: 0.58rem;
  }

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

  .list-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .search-box form {
    flex-direction: column;
  }

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

  .auth-card,
  .admin-card {
    padding: 20px;
    border-radius: 14px;
  }

  .sync-stats {
    grid-template-columns: 1fr;
  }
}

body.mobile-vn .site-header {
  padding-bottom: 12px;
}

body.mobile-vn .movie-thumb {
  border-radius: 12px;
}

body.mobile-vn .movie-card.has-progress .movie-episode {
  bottom: 24px;
}

body.mobile-vn .movie-play-overlay {
  opacity: 1;
}

body.mobile-vn .movie-play-overlay span {
  width: 44px;
  height: 44px;
  transform: scale(0.8);
  background: rgba(229, 9, 20, 0.74);
}

body.mobile-vn .movie-expand-overlay {
  display: none;
}

body.mobile-vn .movie-progress {
  bottom: 6px;
  gap: 3px;
}

body.mobile-vn .movie-progress-label {
  font-size: 0.56rem;
}

body.mobile-vn .row-scroll.is-swiping {
  scroll-snap-type: none;
}

body.ios-vn.mobile-vn .row-scroll {
  grid-auto-columns: minmax(138px, 164px);
  gap: 10px;
}

body.android-vn.mobile-vn .row-scroll {
  grid-auto-columns: minmax(148px, 176px);
  gap: 12px;
}

body.ios-vn.mobile-vn .solid-btn,
body.ios-vn.mobile-vn .ghost-btn,
body.ios-vn.mobile-vn .row-more,
body.ios-vn.mobile-vn .icon-btn,
body.ios-vn.mobile-vn .nav-link {
  min-height: 46px;
}

body.android-vn.mobile-vn .solid-btn,
body.android-vn.mobile-vn .ghost-btn,
body.android-vn.mobile-vn .row-more,
body.android-vn.mobile-vn .icon-btn,
body.android-vn.mobile-vn .nav-link {
  min-height: 48px;
}

body.low-power-mode *,
body.low-power-mode *::before,
body.low-power-mode *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.12s !important;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
