:root {
  --bg: #090909;
  --surface: #121212;
  --surface-soft: #181818;
  --surface-lift: #222222;
  --text: #f5f5f5;
  --muted: #b7b7b7;
  --border: rgba(255, 255, 255, 0.12);
  --brand: #e50914;
  --brand-soft: rgba(229, 9, 20, 0.24);
  --danger: #ff5b65;
  --radius-lg: 14px;
  --radius-md: 10px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  color: var(--text);
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at 18% -8%, rgba(229, 9, 20, 0.16), transparent 36%),
    radial-gradient(circle at 90% 0%, rgba(255, 255, 255, 0.04), transparent 28%),
    linear-gradient(180deg, #080808 0%, #111111 48%, #090909 100%);
}

h1,
h2,
h3,
h4 {
  font-family: "Outfit", sans-serif;
  margin: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(8px);
  background: linear-gradient(180deg, rgba(7, 7, 7, 0.98) 0%, rgba(7, 7, 7, 0.86) 72%, rgba(7, 7, 7, 0.72) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-inner {
  width: min(1240px, calc(100% - 24px));
  margin: 0 auto;
  min-height: 80px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding: 10px 0;
}

.logo {
  text-decoration: none;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.logo-dot {
  width: 12px;
  height: 20px;
  border-radius: 3px;
  background: var(--brand);
  box-shadow: 0 0 20px rgba(229, 9, 20, 0.72);
}

.logo-text-group {
  display: inline-flex;
  flex-direction: column;
  gap: 1px;
}

.logo h1 {
  font-family: "Bebas Neue", "Outfit", sans-serif;
  font-size: 1.75rem;
  letter-spacing: 0.12em;
  line-height: 1;
  color: #ffffff;
}

.logo-text-group small {
  color: #8f8f8f;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-actions {
  margin-left: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.navbar.is-detail .nav-actions {
  display: none;
}

.server-control {
  display: inline-grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  column-gap: 10px;
  row-gap: 1px;
  padding: 9px 12px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(30, 30, 30, 0.96), rgba(16, 16, 16, 0.98));
  border: 1px solid var(--border);
  min-width: 232px;
}

.server-caption {
  color: #b2b2b2;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.server-hint {
  color: #ff6b73;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.server-control select {
  grid-column: 2;
  grid-row: 1 / span 2;
  border: none;
  background: transparent;
  color: var(--text);
  font-weight: 700;
  outline: none;
  cursor: pointer;
}

.search-wrap {
  min-width: min(560px, 62vw);
  flex: 1;
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(31, 31, 31, 0.96), rgba(16, 16, 16, 0.98));
  overflow: hidden;
}

.search-wrap input::placeholder {
  color: #8d8d8d;
}

.search-wrap input {
  width: 100%;
  border: none;
  background: transparent;
  color: var(--text);
  padding: 12px 14px;
  font-size: 0.95rem;
  outline: none;
}

.search-wrap button {
  border: none;
  border-left: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  width: 40px;
  height: 40px;
  cursor: pointer;
}

.mobile-menu-btn {
  display: none;
  border: 1px solid var(--border);
  background: transparent;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  margin-left: auto;
}

.mobile-menu-btn span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  margin: 3px auto;
}

.app-shell {
  width: min(1240px, calc(100% - 24px));
  margin: 14px auto 30px;
}

.view {
  display: none;
}

.view.is-active {
  display: block;
}

body.is-modal-open {
  overflow: hidden;
}

body.is-busy {
  overflow: hidden;
}

.global-loading {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: grid;
  place-items: center;
  padding: 20px;
}

.global-loading.is-hidden {
  display: none;
}

.global-loading-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 10%, rgba(229, 9, 20, 0.2), transparent 35%),
    radial-gradient(circle at 82% 0%, rgba(255, 255, 255, 0.08), transparent 28%),
    rgba(4, 4, 4, 0.78);
  backdrop-filter: blur(8px);
}

.global-loading-card {
  position: relative;
  width: min(320px, 100%);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, rgba(30, 30, 30, 0.95), rgba(12, 12, 12, 0.98));
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.52);
  padding: 18px 18px 16px;
  overflow: hidden;
}

.loading-line {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(229, 9, 20, 0.92) 42%, transparent 100%);
  animation: loadingSweep 1.15s linear infinite;
}

.loading-orbit {
  width: 78px;
  height: 78px;
  margin: 8px auto 12px;
  position: relative;
  display: grid;
  place-items: center;
}

.loading-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid transparent;
}

.ring-one {
  border-top-color: rgba(229, 9, 20, 0.95);
  border-right-color: rgba(229, 9, 20, 0.4);
  animation: loadingSpin 1.05s linear infinite;
}

.ring-two {
  inset: 10px;
  border-bottom-color: rgba(255, 255, 255, 0.62);
  border-left-color: rgba(255, 255, 255, 0.2);
  animation: loadingSpinReverse 1.4s linear infinite;
}

.loading-core {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle, #ff6169 0%, #e50914 72%);
  box-shadow: 0 0 16px rgba(229, 9, 20, 0.7);
}

.loading-title {
  margin: 0;
  text-align: center;
  color: #f1f1f1;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
}

@keyframes loadingSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes loadingSpinReverse {
  from {
    transform: rotate(360deg);
  }
  to {
    transform: rotate(0deg);
  }
}

@keyframes loadingSweep {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(100%);
  }
}

.provider-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 20px;
}

.provider-modal.is-hidden {
  display: none;
}

.provider-modal-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 8%, rgba(229, 9, 20, 0.28), transparent 34%),
    radial-gradient(circle at 90% 0%, rgba(255, 255, 255, 0.08), transparent 22%),
    rgba(3, 3, 3, 0.82);
  backdrop-filter: blur(7px);
}

.provider-modal-card {
  position: relative;
  width: min(760px, 100%);
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background:
    linear-gradient(170deg, rgba(33, 33, 33, 0.95), rgba(11, 11, 11, 0.96)),
    radial-gradient(circle at 84% 18%, rgba(229, 9, 20, 0.2), transparent 45%);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.58);
  padding: 24px;
  animation: providerModalIn 0.32s ease;
}

.provider-modal-kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  color: #ff8990;
  font-weight: 800;
}

.provider-modal-card h2 {
  margin-top: 8px;
  font-size: clamp(1.3rem, 2vw, 1.9rem);
}

.provider-modal-desc {
  margin: 10px 0 0;
  color: #d4d4d4;
  line-height: 1.6;
  font-size: 0.94rem;
}

.provider-modal-options {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
}

.provider-choice-btn {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  min-height: 42px;
  padding: 10px 12px;
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
}

.provider-choice-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(229, 9, 20, 0.72);
  background: rgba(229, 9, 20, 0.16);
}

.provider-choice-btn.is-active {
  border-color: rgba(255, 129, 137, 0.92);
  background: linear-gradient(180deg, rgba(229, 9, 20, 0.38), rgba(229, 9, 20, 0.18));
  color: #ffeef0;
}

.provider-modal-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
}

.donation-modal-actions {
  justify-content: space-between;
  gap: 10px;
}

.donation-modal-actions .btn-ghost,
.donation-modal-actions .donation-now-btn {
  min-width: 140px;
}

.donation-now-btn {
  border-color: rgba(255, 129, 137, 0.92);
  background: linear-gradient(180deg, rgba(229, 9, 20, 0.38), rgba(229, 9, 20, 0.18));
  color: #ffeef0;
}

@keyframes providerModalIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hero-slider {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 320px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #101010;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.46);
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.52) saturate(1.08);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 6, 6, 0.94), rgba(6, 6, 6, 0.44) 52%, rgba(16, 4, 5, 0.9) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0) 40%);
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
}

.hero-content h3 {
  font-size: clamp(1.45rem, 3.1vw, 2.5rem);
  max-width: 580px;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.6);
}

.hero-content p {
  margin: 0;
  color: #d8d8d8;
  max-width: 620px;
  line-height: 1.6;
}

.hero-dots {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: flex;
  gap: 6px;
  z-index: 3;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

.hero-dot.is-active {
  background: var(--brand);
}

.catalog-panel,
.history-panel,
.detail-layout,
.player-panel,
.detail-top {
  margin-top: 14px;
  background: linear-gradient(180deg, rgba(24, 24, 24, 0.96), rgba(12, 12, 12, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4);
}

.catalog-panel {
  padding: 18px;
}

.history-panel {
  padding: 14px;
}

.history-grid {
  margin-top: 10px;
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 4px;
  gap: 10px;
}

.history-grid::-webkit-scrollbar {
  height: 5px;
}

.history-grid::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
}

.history-card {
  flex: 0 0 136px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
  cursor: pointer;
}

.history-card img {
  width: 100%;
  display: block;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.history-card-body {
  padding: 9px;
}

.history-card-body h4 {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.35;
  min-height: 34px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.history-card-body p {
  margin: 6px 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.history-empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 10px;
}

.panel-head h3 {
  font-size: 1.18rem;
}

.panel-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.category-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 12px 0;
  padding-bottom: 2px;
}

.category-tabs::-webkit-scrollbar {
  display: none;
}

.category-tabs button,
.btn-secondary,
.btn-ghost,
.episode-btn {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  cursor: pointer;
  padding: 8px 14px;
  font-weight: 700;
  font-family: "Manrope", sans-serif;
  transition: 0.2s ease;
}

.btn-secondary {
  background: linear-gradient(180deg, rgba(229, 9, 20, 0.95), rgba(171, 6, 16, 0.95));
  border-color: rgba(255, 120, 126, 0.7);
  color: #fff;
}

.category-tabs button.is-active {
  border-color: rgba(229, 9, 20, 0.75);
  background: var(--brand-soft);
  color: #fff0f1;
}

.error-box {
  margin-bottom: 10px;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.88rem;
  border: 1px solid rgba(255, 95, 122, 0.45);
  background: rgba(255, 95, 122, 0.12);
}

.error-box.is-hidden {
  display: none;
}

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

.card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(229, 9, 20, 0.75);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.45);
}

.card img {
  width: 100%;
  display: block;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.card-body {
  padding: 10px;
}

.card-body h4 {
  font-size: 0.95rem;
  line-height: 1.35;
  min-height: 38px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-body p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.skeleton {
  border-radius: var(--radius-md);
  min-height: 250px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.06));
  background-size: 180% 100%;
  animation: shimmer 1.1s infinite linear;
}

@keyframes shimmer {
  0% {
    background-position: 180% 0;
  }
  100% {
    background-position: -30% 0;
  }
}

.paging-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
}

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

.append-loading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #d1d1d1;
  font-size: 0.8rem;
  padding: 4px 0 0;
}

.append-loading.is-hidden {
  display: none;
}

.append-loading-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ff5a62, #e50914);
  box-shadow: 0 0 10px rgba(229, 9, 20, 0.62);
  animation: appendPulse 0.9s ease-in-out infinite;
}

@keyframes appendPulse {
  0% {
    transform: scale(0.84);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.08);
    opacity: 1;
  }
  100% {
    transform: scale(0.84);
    opacity: 0.6;
  }
}

.btn-secondary:hover,
.btn-ghost:hover,
.episode-btn:hover {
  background: rgba(229, 9, 20, 0.2);
  border-color: rgba(229, 9, 20, 0.7);
}

.detail-top {
  padding: 10px 12px;
}

.detail-layout {
  padding: 14px;
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}

.detail-poster {
  width: 100%;
  max-width: 300px;
  border-radius: var(--radius-md);
  object-fit: cover;
  aspect-ratio: 2 / 3;
}

.detail-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.detail-meta {
  margin: 0;
  color: #c8c8c8;
}

.detail-description {
  margin: 0;
  color: #e0e0e0;
  line-height: 1.7;
}

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

.tag-list span {
  font-size: 0.78rem;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(229, 9, 20, 0.22);
  border: 1px solid rgba(229, 9, 20, 0.4);
}

.player-panel {
  padding: 14px;
}

.player-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.quality-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.82rem;
}

.quality-control select {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-soft);
  color: var(--text);
  padding: 7px 8px;
}

#videoPlayer {
  width: 100%;
  background: #000;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  aspect-ratio: 16 / 9;
}

.player-panel.is-portrait #videoPlayer {
  aspect-ratio: 9 / 16;
}

.player-panel.is-landscape #videoPlayer {
  aspect-ratio: 16 / 9;
}

.episode-toolbar {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.episode-heading {
  margin-top: 14px;
  margin-bottom: 8px;
}

.episode-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 8px;
  max-height: 280px;
  overflow: auto;
  padding-right: 4px;
}

.episode-list::-webkit-scrollbar {
  width: 6px;
}

.episode-list::-webkit-scrollbar-thumb {
  background: rgba(156, 169, 192, 0.45);
  border-radius: 999px;
}

.episode-btn {
  border-radius: 10px;
  font-size: 0.8rem;
}

.episode-btn.is-active {
  background: linear-gradient(180deg, rgba(229, 9, 20, 0.34), rgba(229, 9, 20, 0.2));
  border-color: rgba(229, 9, 20, 0.7);
}

@media (min-width: 760px) {
  .card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .history-card {
    flex-basis: 160px;
  }

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

@media (min-width: 1040px) {
  .card-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .navbar {
    position: static;
  }

  .nav-inner {
    gap: 10px;
    min-height: auto;
    padding: 10px 0 8px;
  }

  .nav-actions {
    display: flex;
    position: static;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(180deg, rgba(23, 23, 23, 0.97), rgba(13, 13, 13, 0.97));
    border-radius: 14px;
    padding: 10px;
    flex-direction: column;
    align-items: stretch;
    margin-left: 0;
    margin-top: 4px;
    gap: 8px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.38);
  }

  .server-control {
    min-width: 100%;
  }

  .server-hint {
    font-size: 0.66rem;
  }

  .search-wrap {
    min-width: 100%;
  }
}

@media (max-width: 640px) {
  .app-shell {
    width: calc(100% - 14px);
    margin-top: 10px;
  }

  .history-panel,
  .catalog-panel,
  .detail-layout,
  .player-panel {
    padding: 12px;
    border-radius: 14px;
  }

  .hero-slider {
    min-height: 236px;
  }

  .hero-content {
    padding: 18px;
    gap: 8px;
  }

  .history-panel,
  .catalog-panel,
  .detail-layout,
  .player-panel {
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.34);
  }

  .hero-content h3 {
    font-size: 1.2rem;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .hero-content p {
    font-size: 0.88rem;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .panel-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

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

  .player-head {
    align-items: flex-start;
    gap: 8px;
    flex-direction: column;
  }

  .quality-control {
    width: 100%;
    justify-content: space-between;
  }

  #videoPlayer {
    width: min(100%, 360px);
    margin: 0 auto;
    display: block;
    aspect-ratio: 9 / 16;
    max-height: 70vh;
  }

  .player-panel.is-landscape #videoPlayer {
    width: 100%;
    max-width: none;
    aspect-ratio: 16 / 9;
    max-height: none;
  }

  .episode-toolbar {
    justify-content: flex-start;
    gap: 8px;
    flex-wrap: wrap;
  }

  #episodePosition {
    width: 100%;
    color: var(--muted);
    font-size: 0.88rem;
  }

  .episode-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-height: 240px;
  }

  .provider-modal {
    padding: 14px;
  }

  .provider-modal-card {
    border-radius: 16px;
    padding: 16px;
  }

  .global-loading-card {
    width: min(290px, 100%);
    padding: 16px 14px 14px;
    border-radius: 14px;
  }

  .loading-orbit {
    width: 70px;
    height: 70px;
  }

  .loading-title {
    font-size: 0.86rem;
  }

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

  .provider-modal-actions {
    justify-content: stretch;
  }

  .provider-modal-actions .btn-ghost {
    width: 100%;
  }

  .donation-modal-actions {
    flex-direction: column;
  }

  .donation-modal-actions .donation-now-btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .card,
  .search-row button,
  .ghost,
  .episode-btn {
    transition: none;
  }

  .ring-a,
  .ring-b {
    animation: none;
  }

  .loading-line,
  .ring-one,
  .ring-two,
  .append-loading-dot {
    animation: none;
  }
}
