/* ============================================================================
   VFX Player — linguagem visual: glass / transparente / preto absoluto
   ========================================================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* O atributo hidden precisa vencer qualquer display definido em classe.
   Sem esta regra, .spinner/.panel com display:grid|flex ignoram o hidden. */
[hidden] {
  display: none !important;
}

:root {
  --glass: rgba(255, 255, 255, 0.08);
  --glass-soft: rgba(255, 255, 255, 0.05);
  --glass-hover: rgba(255, 255, 255, 0.18);
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.28);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.55);
  --faint: rgba(255, 255, 255, 0.4);
  --good: #10b981;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

html,
body {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: #000;
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  user-select: none;
}

button,
input,
select {
  font-family: inherit;
  color: inherit;
  outline: none;
}

button {
  cursor: pointer;
  border: 0;
  background: none;
}

.screen[hidden] {
  display: none !important;
}

/* ============================== tela inicial ============================== */

.home {
  display: flex;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 28px 24px;
  background:
    radial-gradient(900px 520px at 18% -10%, rgba(255, 255, 255, 0.09), transparent 62%),
    radial-gradient(760px 520px at 100% 110%, rgba(16, 185, 129, 0.09), transparent 60%),
    #000;
}

.glass-card {
  /* margin auto em vez de align-items:center — assim, em telas baixas,
     o topo do card continua alcançável em vez de ser cortado. */
  margin: auto;
  width: min(440px, 100%);
  display: grid;
  gap: 14px;
  padding: 28px;
  border-radius: 22px;
  background: var(--glass-soft);
  border: 1px solid var(--line);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.7);
}

.home-head {
  display: grid;
  gap: 6px;
}

.glass-card h1 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.brand-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.85);
}

.hint {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.hint.mono {
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 11.5px;
  color: var(--faint);
}

.field {
  display: grid;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--faint);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field input,
.field select {
  height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: normal;
  text-transform: none;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.field input:focus,
.field select:focus {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--line-strong);
}

.field select option {
  background: #12141c;
  color: #fff;
}

/* ------------------------- seletor de tipo (segmented) ------------------------ */

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.seg {
  height: 36px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.55);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.seg:hover {
  color: rgba(255, 255, 255, 0.85);
}

.seg.active {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

/* -------------------------------- erros / atalhos ----------------------------- */

.form-error {
  margin-top: -4px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  color: #f87171;
}

.quick-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.quick {
  height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 11.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.62);
  transition: all 0.2s var(--ease);
}

.quick:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--line-strong);
  color: #fff;
}

/* número: esconde as setinhas que quebravam o alinhamento */
.field input[type="number"]::-webkit-outer-spin-button,
.field input[type="number"]::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
  appearance: none;
}

.field input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.primary {
  height: 46px;
  margin-top: 4px;
  border-radius: 12px;
  background: #fff;
  color: #000;
  font-size: 14px;
  font-weight: 800;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.primary:hover {
  transform: scale(1.015);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.18);
}

/* ================================= player ================================= */

.player {
  position: fixed;
  inset: 0;
  background: #000;
  overflow: hidden;
}

.player video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000;
  z-index: 1;
}

.player.idle {
  cursor: none;
}

/* ------------------------------- topo (glass) ------------------------------ */

.header-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}

.player.idle .header-overlay {
  opacity: 0;
  transform: translateY(-10px);
}

.header-left,
.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
}

.header-center {
  flex: 1;
  min-width: 0;
  pointer-events: none;
  text-align: center;
}

.header-center h1 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.9);
}

.header-center p {
  margin-top: 3px;
  font-size: 11.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.62);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.9);
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s var(--ease);
}

.back-btn:hover {
  background: var(--glass-hover);
  border-color: var(--line-strong);
  transform: scale(1.03);
}

.back-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.glass-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
  color: #fff;
  transition: all 0.2s var(--ease);
}

.glass-circle:hover {
  background: var(--glass-hover);
  transform: scale(1.05);
}

.glass-circle svg {
  width: 18px;
  height: 18px;
}

.server-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
  color: #fff;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.3px;
  white-space: nowrap;
  transition: all 0.2s var(--ease);
}

.server-pill:hover {
  background: var(--glass-hover);
  border-color: var(--line-strong);
  transform: scale(1.04);
}

.server-pill svg {
  width: 17px;
  height: 17px;
  opacity: 0.9;
}

.server-pill b {
  min-width: 18px;
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 10.5px;
  font-weight: 800;
  text-align: center;
  letter-spacing: 0;
}

/* ----------------------------- dock de controles --------------------------- */

.control-dock {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  z-index: 20;
  width: min(920px, calc(100vw - 40px));
  padding: 12px 14px 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow: 0 12px 44px rgba(0, 0, 0, 0.62);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}

.player.idle .control-dock {
  opacity: 0;
  transform: translateX(-50%) translateY(14px);
}

.seek {
  position: relative;
  height: 16px;
  display: flex;
  align-items: center;
  cursor: pointer;
  touch-action: none;
}

.seek-track,
.seek-buffered,
.seek-played {
  position: absolute;
  left: 0;
  height: 3px;
  border-radius: 999px;
  transition: height 0.14s var(--ease);
}

.seek-track {
  right: 0;
  background: rgba(255, 255, 255, 0.18);
}

.seek-buffered {
  width: 0;
  background: rgba(255, 255, 255, 0.34);
}

.seek-played {
  width: 0;
  background: #fff;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.5);
}

/* prévia do trecho sob o cursor */
.seek-hover {
  position: absolute;
  left: 0;
  width: 0;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
  opacity: 0;
  transition: opacity 0.14s var(--ease), height 0.14s var(--ease);
  pointer-events: none;
}

.seek:hover .seek-hover,
.seek.dragging .seek-hover {
  opacity: 1;
}

/* tooltip com o tempo */
.seek-tip {
  position: absolute;
  bottom: 20px;
  left: 0;
  padding: 4px 9px;
  border-radius: 8px;
  background: rgba(18, 18, 24, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.55);
  font-size: 11.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #fff;
  white-space: nowrap;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 2;
}

.seek-tip::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 7px;
  height: 7px;
  background: rgba(18, 18, 24, 0.94);
  border-right: 1px solid rgba(255, 255, 255, 0.16);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  transform: translateX(-50%) rotate(45deg);
}

.seek-knob {
  position: absolute;
  left: 0;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.16);
  transform: translate(-50%, 0) scale(0);
  transition: transform 0.14s var(--ease);
  pointer-events: none;
}

.seek:hover .seek-track,
.seek:hover .seek-buffered,
.seek:hover .seek-played {
  height: 5px;
}

.seek:hover .seek-knob,
.seek.dragging .seek-knob {
  transform: translate(-50%, 0) scale(1);
}

.dock-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

.dock-spacer {
  flex: 1;
}

.dock-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  color: #fff;
  transition: background 0.18s var(--ease), transform 0.18s var(--ease);
}

.dock-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.dock-btn:active {
  transform: scale(0.94);
}

.dock-btn svg {
  width: 19px;
  height: 19px;
}

#playBtn .i-play path,
#playBtn .i-pause path {
  fill: currentColor;
  stroke: none;
}

#playBtn .i-pause,
#playBtn.playing .i-play {
  display: none;
}

#playBtn.playing .i-pause {
  display: block;
}

.time {
  padding-left: 6px;
  min-width: 98px;
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.72);
}

.volume-wrap {
  display: flex;
  align-items: center;
  gap: 2px;
}

#muteBtn .i-mute,
#muteBtn.muted .i-vol {
  display: none;
}

#muteBtn.muted .i-mute {
  display: block;
}

#volume {
  width: 72px;
  height: 3px;
  padding: 0;
  background: transparent;
  accent-color: #fff;
  cursor: pointer;
}

/* ------------------------------ drawer lateral ----------------------------- */

.backdrop-overlay {
  position: absolute;
  inset: 0;
  z-index: 19;
  display: none;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(2px);
}

.backdrop-overlay.open {
  display: block;
}

.server-drawer {
  position: absolute;
  top: 68px;
  bottom: 92px;
  right: 20px;
  z-index: 25;
  width: 380px;
  max-width: calc(100vw - 32px);
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  transform: translateX(calc(100% + 80px));
  transition: transform 0.35s var(--ease);
}

.server-drawer.open {
  transform: translateX(0);
}

.drawer-header {
  padding: 22px 22px 10px;
}

.drawer-meta-tag {
  margin-bottom: 4px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.drawer-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.drawer-title {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.2px;
  line-height: 1.2;
}

.drawer-close-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  transition: all 0.2s var(--ease);
}

.drawer-close-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--line-strong);
  transform: scale(1.08);
}

.drawer-close-btn svg {
  width: 18px;
  height: 18px;
}

.drawer-hint {
  padding: 0 22px 12px;
  font-size: 11.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.45);
}

.server-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 16px 18px;
  overflow-y: auto;
  scrollbar-width: none;
}

.server-list::-webkit-scrollbar {
  display: none;
}

.srv-card {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 12px;
  text-align: left;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.2s var(--ease);
}

.srv-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.srv-card.active {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.srv-quality {
  flex-shrink: 0;
  min-width: 54px;
  padding: 5px 7px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.3px;
  text-align: center;
  color: rgba(255, 255, 255, 0.86);
}

.srv-card.active .srv-quality {
  background: #fff;
  color: #000;
}

.srv-body {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.srv-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
}

.srv-sub {
  font-size: 11.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.srv-offline {
  display: inline-flex;
  align-items: center;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(239, 68, 68, 0.16);
  border: 1px solid rgba(239, 68, 68, 0.42);
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: #f87171;
}

.srv-card.is-offline {
  opacity: 0.55;
  border-color: rgba(239, 68, 68, 0.22);
}

.srv-card.is-offline .srv-quality {
  background: rgba(239, 68, 68, 0.18);
  color: #fca5a5;
}

.srv-card.is-offline .srv-title {
  color: rgba(255, 255, 255, 0.75);
}

.srv-dot {
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: transparent;
}

.srv-card.active .srv-dot {
  background: #fff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

/* --------------------------- botão de episódios --------------------------- */

.left-episode-btn {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  color: #fff;
  transition: all 0.3s var(--ease);
}

.left-episode-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-50%) scale(1.08);
}

.left-episode-btn.active {
  background: rgba(255, 255, 255, 0.28);
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
}

.left-episode-btn svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.player.idle .left-episode-btn {
  opacity: 0;
  pointer-events: none;
}

/* --------------------------- drawer de episódios -------------------------- */

.episodes-drawer {
  position: absolute;
  top: 68px;
  bottom: 92px;
  left: 20px;
  z-index: 25;
  width: 380px;
  max-width: calc(100vw - 32px);
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  transform: translateX(calc(-100% - 80px));
  transition: transform 0.35s var(--ease);
}

.episodes-drawer.open {
  transform: translateX(0);
}

.season-select-wrap {
  position: relative;
  padding: 0 22px 14px;
}

.season-select {
  width: 100%;
  height: 42px;
  padding: 0 38px 0 16px;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.season-select:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--line-strong);
}

.season-select option {
  background: #12141c;
  color: #fff;
}

.select-chevron {
  position: absolute;
  right: 36px;
  top: 50%;
  transform: translateY(-60%);
  display: flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.6);
  pointer-events: none;
}

.episodes-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 16px 18px;
  overflow-y: auto;
  scrollbar-width: none;
}

.episodes-list::-webkit-scrollbar {
  display: none;
}

.ep-card {
  display: flex;
  gap: 13px;
  width: 100%;
  padding: 10px;
  text-align: left;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  transition: all 0.2s var(--ease);
}

.ep-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.ep-card.active {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.ep-thumb-wrap {
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 106px;
  height: 62px;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(135deg, #1e2230 0%, #10121a 100%);
}

.ep-thumb-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.ep-thumb-fallback {
  font-size: 13px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.6);
}

.ep-info-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ep-card-title {
  margin-bottom: 3px;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ep-card-desc {
  margin-bottom: 5px;
  font-size: 11.5px;
  font-weight: 400;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.55);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ep-card-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.6);
}

.ep-card.active .ep-card-badge {
  color: #fff;
}

.badge-pill {
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 9.5px;
  font-weight: 800;
  color: #fff;
}

.ep-empty {
  padding: 40px 10px;
  text-align: center;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.5);
}

/* --------------------------- pular abertura ------------------------------- */

.skip-btn {
  position: absolute;
  right: 20px;
  bottom: 112px;
  z-index: 18;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  animation: skip-in 0.22s var(--ease);
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease),
    transform 0.2s var(--ease);
}

.skip-btn:hover {
  background: rgba(255, 255, 255, 0.26);
  border-color: rgba(255, 255, 255, 0.42);
  transform: translateY(-1px);
}

.skip-btn:active {
  transform: scale(0.97);
}

.skip-btn svg {
  width: 16px;
  height: 16px;
}

@keyframes skip-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

/* ------------------------------- estados --------------------------------- */

.buffering {
  position: absolute;
  inset: 0;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.buffering .ring {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.16);
  border-top-color: #fff;
  animation: spin 0.8s linear infinite;
}

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

.toast {
  position: absolute;
  left: 50%;
  bottom: 164px;
  transform: translateX(-50%);
  z-index: 30;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--line);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  animation: fade-up 0.2s var(--ease);
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(8px);
  }
}

/* ------------------------------- responsivo -------------------------------- */

@media (max-width: 780px) {
  .header-center {
    display: none;
  }

  .time {
    min-width: 0;
    font-size: 11px;
  }

  .server-pill {
    height: 34px;
    padding: 0 11px;
    gap: 6px;
    font-size: 11.5px;
  }

  .server-pill b {
    display: none;
  }

  #volume {
    display: none;
  }

  .control-dock {
    width: calc(100vw - 24px);
    bottom: 12px;
    padding: 10px 12px 8px;
  }

  .server-drawer {
    top: auto;
    bottom: 0;
    right: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    height: 68vh;
    border-radius: 22px 22px 0 0;
    transform: translateY(100%);
  }

  .server-drawer.open {
    transform: translateY(0);
  }

  .episodes-drawer {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    height: 72vh;
    border-radius: 22px 22px 0 0;
    transform: translateY(100%);
  }

  .episodes-drawer.open {
    transform: translateY(0);
  }

  .left-episode-btn {
    left: 12px;
    width: 44px;
    height: 44px;
  }

  .left-episode-btn svg {
    width: 21px;
    height: 21px;
  }

  .back-btn span {
    display: none;
  }

  .back-btn {
    width: 38px;
    padding: 0;
    justify-content: center;
  }

  .toast {
    bottom: 140px;
    max-width: calc(100vw - 32px);
    white-space: normal;
    text-align: center;
  }

  .skip-btn {
    right: 12px;
    bottom: 92px;
    height: 36px;
    padding: 0 14px;
    font-size: 12px;
  }
}
