#player-section {
  width: 100%;
  max-width: 1000px;
  margin-inline: auto;
}
.watch-mode {
  background: #000;
}
.watch-mode #main-content {
  background: #000;
}
.watch-mode .footer,
.watch-mode .mobile-bottom-nav,
.watch-mode .ad-placement {
  display: none;
}
.watch-page {
  width: 100%;
  min-height: calc(100vh - var(--nav-h));
  padding: 12px clamp(12px, 2vw, 28px) 32px;
  background: #000;
}
.watch-page-header {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 12px;
}
.watch-page-close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid #34363b;
  border-radius: 4px;
  color: #fff;
  font-size: 30px;
  line-height: 1;
  text-decoration: none;
}
.watch-page-close:hover {
  background: #191a1d;
}
.watch-page-title {
  min-width: 0;
}
.watch-page-title span {
  color: #e50914;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.watch-page-title h1 {
  margin: 2px 0 0;
  color: #f5f5f5;
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 600;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
#player-section.watch-player-section {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
}
#player-section.watch-player-section .yx-player-wrap {
  width: 100%;
  margin: 0;
}
.watch-page-status {
  width: min(100%, 1200px);
  margin: 12px auto;
  padding: 24px;
  border: 1px solid #292a2e;
  background: #111;
  color: #e8e8e8;
}
.watch-page-status h2 {
  margin: 0 0 8px;
  font-size: 18px;
}
.watch-page-status p {
  margin: 0;
  color: #aeb0b5;
}
.yx-server-selector {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.server-switch-btn {
  min-height: 44px;
  max-width: 100%;
  transition:
    background-color 0.15s,
    color 0.15s;
}
.yx-player-wrap {
  position: relative;
  width: calc(100% + 2 * var(--gutter, 14px));
  max-width: none;
  aspect-ratio: 16/9;
  margin-inline: calc(-1 * var(--gutter, 14px));
  overflow: hidden;
  border-radius: 0;
  background: #000;
  user-select: none;
  -webkit-user-select: none;
  outline: none;
  isolation: isolate;
}
.yx-player-wrap:focus-visible {
  box-shadow: inset 0 0 0 2px #e50914;
}
.yx-player-wrap video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #000;
  object-fit: contain;
}
.yx-player-wrap:fullscreen,
.yx-player-wrap:-webkit-full-screen {
  width: 100%;
  height: 100%;
  max-width: none;
  aspect-ratio: auto;
  margin: 0;
  border-radius: 0;
}
.yx-big-play {
  appearance: none;
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.yx-big-play-btn {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 50%;
  background: rgba(15, 16, 18, 0.68);
  transition:
    background-color 0.15s,
    border-color 0.15s,
    transform 0.15s;
}
.yx-big-play-btn svg {
  width: 24px;
  height: 24px;
}
.yx-big-play:hover .yx-big-play-btn {
  background: rgba(32, 33, 36, 0.94);
  border-color: #fff;
  transform: scale(1.03);
}
.yx-player-wrap.playing .yx-big-play,
.yx-player-wrap.buffering .yx-big-play {
  display: none;
}
.yx-spinner {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: none;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.yx-player-wrap.buffering .yx-spinner {
  display: flex;
}
.yx-spinner-ring {
  width: 38px;
  height: 38px;
  border: 3px solid rgba(255, 255, 255, 0.25);
  border-top-color: #fff;
  border-radius: 50%;
  animation: yx-spin 0.8s linear infinite;
}
@keyframes yx-spin {
  to {
    transform: rotate(360deg);
  }
}
.yx-controls {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 8;
  padding: 26px 8px 6px;
  background: linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.94),
    rgba(0, 0, 0, 0.48) 58%,
    transparent
  );
  opacity: 0;
  transition: opacity 0.18s ease;
}
.yx-player-wrap.show-controls .yx-controls,
.yx-player-wrap.paused .yx-controls,
.yx-player-wrap:focus-within .yx-controls {
  opacity: 1;
}
@media (hover: hover) {
  .yx-player-wrap:hover .yx-controls {
    opacity: 1;
  }
}
.yx-progress {
  position: relative;
  height: 24px;
  margin: 0 3px;
  border-radius: 2px;
  background: transparent;
  cursor: pointer;
  outline-offset: 1px;
  touch-action: manipulation;
}
.yx-progress::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.34);
  transform: translateY(-50%);
}
.yx-progress:hover::before {
  height: 4px;
}
.yx-progress-fill {
  position: absolute;
  top: 50%;
  left: 0;
  z-index: 1;
  height: 3px;
  border-radius: 2px;
  background: #e50914;
  transform: translateY(-50%);
}
.yx-progress-thumb {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.12s;
}
.yx-progress:hover .yx-progress-thumb {
  transform: translate(-50%, -50%) scale(1);
}
.yx-controls-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1px;
  min-height: var(--control-size, 44px);
  min-width: 0;
}
.yx-controls-right {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 1px;
  margin-left: auto;
  min-width: 0;
}
.yx-controls-right > * {
  flex: 0 0 auto;
}
.yx-btn-icon {
  display: flex;
  flex: 0 0 var(--control-size, 44px);
  align-items: center;
  justify-content: center;
  width: var(--control-size, 44px);
  height: var(--control-size, 44px);
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: #fff;
  opacity: 0.94;
  cursor: pointer;
  touch-action: manipulation;
  transition:
    background-color 0.12s,
    opacity 0.12s;
}
.yx-btn-icon svg {
  width: 19px;
  height: 19px;
}
.yx-btn-icon:hover {
  background: rgba(255, 255, 255, 0.12);
  opacity: 1;
}
.yx-btn-icon:focus-visible,
.yx-quality-btn:focus-visible,
.yx-quality-item:focus-visible,
.yx-sub-item:focus-visible,
.yx-sub-tab-btn:focus-visible,
.yx-sub-translate-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 1px;
}
.yx-volume-wrap {
  display: flex;
  align-items: center;
}
.yx-volume-slider {
  appearance: none;
  width: 0;
  height: 3px;
  margin: 0;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.45);
  opacity: 0;
  transition:
    width 0.16s,
    opacity 0.16s,
    margin 0.16s;
}
.yx-volume-wrap:hover .yx-volume-slider,
.yx-volume-slider:focus-visible {
  width: 66px;
  margin: 0 8px 0 2px;
  opacity: 1;
}
.yx-volume-slider::-webkit-slider-thumb {
  appearance: none;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #fff;
}
.yx-volume-slider::-moz-range-thumb {
  width: 11px;
  height: 11px;
  border: 0;
  border-radius: 50%;
  background: #fff;
}
.yx-time {
  flex: 0 0 auto;
  margin: 0 5px;
  color: #e7e7e7;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.yx-quality-wrap,
.yx-subtitle-wrap {
  position: relative;
  flex: 0 0 auto;
  margin-left: 0;
}
.yx-quality-wrap + .yx-subtitle-wrap {
  margin-left: 1px;
}
.yx-quality-btn {
  min-width: 44px;
  min-height: 44px;
  padding: 6px 8px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 3px;
  background: transparent;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}
.yx-quality-menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 7px);
  display: none;
  max-height: min(420px, calc(100dvh - 100px));
  overflow: auto;
  border: 1px solid #34363b;
  border-radius: 5px;
  background: #17181b;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
  z-index: 20;
  box-sizing: border-box;
  overscroll-behavior: contain;
}
.yx-quality-menu {
  min-width: 112px;
  padding: 4px;
}
.yx-quality-menu.open {
  display: block;
}
.yx-quality-item {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 8px 10px;
  border: 0;
  border-radius: 3px;
  background: none;
  color: #ddd;
  font-size: 12px;
  text-align: left;
  cursor: pointer;
}
.yx-quality-item:hover {
  background: #292a2e;
  color: #fff;
}
.yx-quality-item.active {
  color: #ff535d;
}
.yx-subtitle-menu {
  position: absolute;
  right: 16px;
  bottom: 64px;
  display: none;
  width: min(320px, calc(100vw - 32px));
  max-height: min(440px, 60%);
  overflow-y: auto;
  overflow-x: hidden;
  border: 1px solid #34363b;
  border-radius: 8px;
  background: #17181b;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.75);
  z-index: 30;
  box-sizing: border-box;
  overscroll-behavior: contain;
  padding: 0;
  color: #e8e8e8;
}

.yx-subtitle-menu.open {
  display: flex;
  flex-direction: column;
}

/* Header */
.yx-sub-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  background: #1c1d22;
  position: sticky;
  top: 0;
  z-index: 2;
}

.yx-sub-title {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.02em;
}

.yx-sub-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: transparent !important;
  border: 0 !important;
  color: #aeb0b5 !important;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 4px;
  min-height: 36px;
}
.yx-sub-back:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

.yx-sub-close {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  border: 0 !important;
  border-radius: 4px;
  background: transparent !important;
  color: #aeb0b5 !important;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.yx-sub-close:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
}

/* Views */
.yx-sub-view {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.yx-sub-view[hidden] {
  display: none !important;
}

.yx-sub-list {
  display: flex;
  flex-direction: column;
  padding: 6px;
  max-height: 300px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.yx-sub-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 44px;
  margin: 1px 0;
  padding: 8px 12px;
  border: 0 !important;
  border-radius: 4px;
  background: transparent !important;
  color: #dedfe1 !important;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  box-sizing: border-box;
}

.yx-sub-item:hover {
  background: #25262c !important;
  color: #ffffff !important;
}

.yx-sub-item.active {
  background: #23252a !important;
  color: #ffffff !important;
  font-weight: 600;
}

.yx-sub-item .ti-check {
  color: #e50914;
  font-size: 16px;
  margin-left: auto;
}

.yx-sub-footer {
  padding: 8px 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #17181b;
  margin-top: auto;
}

.yx-sub-nav-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #33363d !important;
  border-radius: 4px;
  background: #202227 !important;
  color: #e0e1e4 !important;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  box-sizing: border-box;
  transition:
    background 0.15s ease,
    border-color 0.15s ease;
}

.yx-sub-nav-btn:hover {
  background: #2a2d33 !important;
  border-color: #484b54 !important;
  color: #ffffff !important;
}

.yx-sub-settings-body {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.yx-sub-setting-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.yx-sub-setting-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.yx-sub-setting-title {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #a7a8ac;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.yx-sub-offset-val {
  padding: 2px 7px;
  border-radius: 3px;
  background: #242528;
  color: #46d369;
  font-size: 11px;
  font-weight: 700;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.yx-sub-btn-group {
  display: flex;
  gap: 6px;
  width: 100%;
}

.yx-subtitle-menu .yx-sub-btn-sm,
.yx-sub-btn-sm {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 6px 10px;
  border: 1px solid #3c3f47 !important;
  border-radius: 4px;
  background-color: #24262b !important;
  color: #ffffff !important;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  touch-action: manipulation;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
  box-sizing: border-box;
}

.yx-subtitle-menu .yx-sub-btn-sm:hover,
.yx-sub-btn-sm:hover {
  background-color: #32353c !important;
  border-color: #555a64 !important;
  color: #ffffff !important;
}

.yx-subtitle-menu .yx-sub-btn-sm:focus-visible,
.yx-sub-btn-sm:focus-visible {
  outline: 2px solid #e50914 !important;
  outline-offset: 1px;
}

.yx-subtitle-menu .yx-sub-btn-sm.active,
.yx-sub-btn-sm.active {
  background-color: #e50914 !important;
  border-color: #e50914 !important;
  color: #ffffff !important;
  font-weight: 700;
}

.yx-sub-empty-state {
  padding: 14px 10px;
  color: #a7a8ac;
  font-size: 12px;
  text-align: center;
}

@media (max-width: 600px) {
  .yx-subtitle-menu {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-height: 60vh !important;
    border-radius: 14px 14px 0 0 !important;
    border-inline: 0 !important;
    border-bottom: 0 !important;
    z-index: 1000 !important;
  }
  .yx-sub-sheet-handle {
    display: block;
    width: 40px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.28);
    margin: 8px auto 2px;
  }
  .yx-sub-item {
    min-height: 48px;
    font-size: 14px;
  }
  .yx-subtitle-menu .yx-sub-btn-sm,
  .yx-sub-btn-sm {
    min-height: 44px;
    font-size: 13px;
  }
}
@media (min-width: 601px) {
  .yx-sub-sheet-handle {
    display: none;
  }
}

.yx-dualsub-overlay {
  position: absolute;
  right: 0;
  bottom: 64px;
  left: 0;
  z-index: 7;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0 12px;
  pointer-events: none;
}
.yx-cue-primary,
.yx-cue-secondary,
.yx-subtitle-display {
  max-width: min(90%, 900px);
  padding: 3px 8px;
  color: #fff;
  font-size: clamp(15px, 2.2vw, 22px);
  font-weight: 500;
  line-height: 1.35;
  text-align: center;
  overflow-wrap: anywhere;
}
.yx-cue-primary,
.yx-cue-secondary {
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.72);
  text-shadow:
    0 1px 3px #000,
    0 0 7px #000;
}
.yx-cue-secondary {
  font-size: clamp(13px, 1.8vw, 18px);
}

.yx-sub-size-small .yx-cue-primary {
  font-size: clamp(12px, 1.6vw, 16px);
}
.yx-sub-size-small .yx-cue-secondary {
  font-size: clamp(11px, 1.4vw, 14px);
}
.yx-sub-size-medium .yx-cue-primary {
  font-size: clamp(15px, 2.2vw, 22px);
}
.yx-sub-size-medium .yx-cue-secondary {
  font-size: clamp(13px, 1.8vw, 18px);
}
.yx-sub-size-large .yx-cue-primary {
  font-size: clamp(19px, 2.8vw, 28px);
}
.yx-sub-size-large .yx-cue-secondary {
  font-size: clamp(16px, 2.4vw, 24px);
}

.yx-sub-bg-box .yx-cue-primary,
.yx-sub-bg-box .yx-cue-secondary {
  background: rgba(0, 0, 0, 0.75);
  border-radius: 4px;
}
.yx-sub-bg-shadow .yx-cue-primary,
.yx-sub-bg-shadow .yx-cue-secondary {
  background: transparent;
  border-radius: 0;
  text-shadow:
    0 2px 4px #000,
    0 0 8px #000,
    0 0 12px #000;
}

:fullscreen .yx-dualsub-overlay,
:-webkit-full-screen .yx-dualsub-overlay {
  bottom: 84px;
}
:fullscreen .yx-player-wrap.show-controls .yx-dualsub-overlay,
:-webkit-full-screen .yx-player-wrap.show-controls .yx-dualsub-overlay {
  bottom: 120px;
}

@media (prefers-reduced-motion: reduce) {
  .yx-dualsub-overlay,
  .yx-cue-primary,
  .yx-cue-secondary,
  .yx-subtitle-menu,
  .yx-sub-btn-sm {
    transition: none !important;
    animation: none !important;
  }
}

@media (max-width: 700px) {
  .yx-sub-item {
    min-height: 44px;
    font-size: 13px;
  }
  .yx-sub-btn-sm {
    min-height: 44px;
    font-size: 12px;
  }
}
.yx-subtitle-display {
  position: absolute;
  bottom: 60px;
  left: 50%;
  z-index: 7;
  transform: translateX(-50%);
  pointer-events: none;
}
.yx-player-wrap.show-controls .yx-dualsub-overlay {
  bottom: 76px;
}
@media (min-width: 701px) {
  .yx-player-wrap {
    width: 100%;
    margin-inline: 0;
    border-radius: 4px;
  }
  .yx-controls {
    padding: 28px 12px 8px;
  }
  .yx-controls-row {
    flex-wrap: nowrap;
    gap: 2px;
  }
  .yx-controls-right {
    margin-left: auto;
  }
  .yx-quality-wrap,
  .yx-subtitle-wrap {
    margin-left: 1px;
  }
  .yx-volume-slider {
    width: 64px;
    margin: 0 8px 0 2px;
    opacity: 1;
  }
}
@media (max-width: 430px) {
  .yx-controls {
    padding: 22px 6px 5px;
  }
  .yx-controls-row {
    gap: 0;
  }
  .yx-time {
    margin-inline: 3px auto;
    font-size: 10px;
  }
  .yx-controls-right {
    flex-basis: auto;
    margin-left: auto;
  }
  .yx-quality-wrap + .yx-subtitle-wrap {
    margin-left: 0;
  }
  .yx-subtitle-menu {
    max-height: min(48dvh, 340px);
  }
  .yx-cue-primary,
  .yx-cue-secondary,
  .yx-subtitle-display {
    max-width: 94%;
    font-size: clamp(13px, 4vw, 17px);
  }
  .yx-player-wrap.show-controls .yx-dualsub-overlay {
    bottom: 112px;
  }
}
@media (max-width: 700px) {
  .watch-page {
    min-height: calc(100dvh - var(--nav-h));
    padding: 8px 0 calc(16px + env(safe-area-inset-bottom));
  }
  .watch-page-header {
    padding: 0 12px;
  }
  #player-section.watch-player-section {
    padding: 0;
  }
  .watch-page-status {
    width: calc(100% - 24px);
    padding: 18px;
  }
}
@media (orientation: landscape) and (max-height: 500px) {
  .yx-player-wrap {
    max-height: calc(100dvh - 54px);
  }
  .yx-player-wrap video {
    max-height: calc(100dvh - 54px);
  }
  .yx-player-wrap:fullscreen .yx-subtitle-menu {
    max-height: calc(100dvh - 74px);
  }
  .yx-player-wrap:fullscreen .yx-controls {
    padding-block: 16px 4px;
  }
  .yx-player-wrap:fullscreen .yx-subtitle-display {
    bottom: 50px;
  }
}

.player-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto 12px;
  padding: 0 4px;
}
.btn-back-detail {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 44px;
  min-height: 44px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  touch-action: manipulation;
  transition:
    background-color 0.15s,
    border-color 0.15s;
}
.btn-back-detail:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}
.btn-back-detail:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.player-top-title {
  flex: 1;
  min-width: 0;
  text-align: right;
}
.player-top-title .now-playing-badge {
  display: block;
  color: var(--primary, #e50914);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
}
.player-top-title .media-title {
  font-size: clamp(14px, 1.8vw, 17px);
  font-weight: 600;
  color: #f5f5f5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.now-playing-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 1000px;
  margin: 12px auto 8px;
  padding: 0 4px;
}
.now-playing-heading {
  font-size: 15px;
  font-weight: 600;
  color: #e5e5e5;
  margin: 0;
}
.now-playing-heading .now-playing-accent {
  color: var(--primary, #e50914);
}
.player-nav-btns {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.player-nav-btns .btn {
  min-height: 44px;
  padding: 8px 14px;
  display: inline-flex;
  align-items: center;
  touch-action: manipulation;
}

.server-switch-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  touch-action: manipulation;
  transition:
    background-color 0.15s,
    border-color 0.15s,
    color 0.15s;
}
.server-btn-active {
  background: #ffc107 !important;
  color: #000 !important;
  border: 1px solid #ffc107 !important;
  font-weight: 600;
}
.server-btn-inactive {
  background: #1c1d21 !important;
  color: #ddd !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
}
.server-btn-inactive:hover {
  background: #2a2b30 !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
  color: #fff !important;
}
.server-switch-btn .active-check {
  font-size: 13px;
  font-weight: bold;
}

.season-tabs {
  display: flex;
  gap: 8px;
  margin: 8px 0 14px;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.season-tabs::-webkit-scrollbar {
  display: none;
}
.season-tab {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
}

@media (prefers-reduced-motion: reduce) {
  .yx-spinner-ring {
    animation: none;
  }
  .yx-controls,
  .yx-btn-icon,
  .yx-progress,
  .yx-progress-thumb {
    transition: none;
  }
}

/* ── Loading Overlay ──────────────────────────────────────────────────── */
#yx-loading-overlay {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 25;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: rgba(0, 0, 0, 0.82);
  transition: opacity 0.15s ease;
}

#yx-loading-msg {
  color: #e5e5e5;
  font-size: 14px;
  font-weight: 600;
  animation: yx-pulse-text 1.6s ease-in-out infinite;
}

#yx-loading-sub {
  color: #aaa;
  font-size: 12px;
}

@keyframes yx-pulse-text {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.5; }
}

/* ── Error Overlay ────────────────────────────────────────────────────── */
#yx-error-overlay {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 26;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  text-align: center;
  background: rgba(0, 0, 0, 0.90);
}

#yx-error-title {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

#yx-error-desc {
  color: #bbb;
  font-size: 13px;
  max-width: 320px;
  line-height: 1.5;
}

@media (prefers-reduced-motion: reduce) {
  #yx-loading-msg { animation: none; }
}
