/* =========================================================
   RYUUKA MOVIES — Cinema Player Stylesheet
   Design: Dark Cinematic Obsidian + Apple Liquid Glass
   Creator: @Ryuuka
   ========================================================= */

:root {
  /* Depth & Surface Hierarchy (Nocturne Teal) */
  --bg-obsidian: #05080c;
  --bg-dark: #091017;
  --bg-surface: #0e1722;
  --bg-elevated: #152232;

  --bg: var(--bg-obsidian);
  --bg-2: var(--bg-dark);
  --bg-3: var(--bg-surface);
  --bg-4: var(--bg-elevated);

  /* Ryuuka Nocturne Teal System */
  --accent-primary: #14d2b8;
  --accent-light: #22e8cb;
  --accent-glow: rgba(20, 210, 184, 0.38);
  --accent-glow-strong: rgba(20, 210, 184, 0.75);

  --ivory: #f6f0dd;

  /* Aliased System Colors */
  --amber: #14d2b8;
  --amber-light: #22e8cb;
  --amber-glow: rgba(20, 210, 184, 0.38);
  --teal: #14d2b8;

  --red: var(--accent-primary);
  --red-2: var(--accent-light);
  --red-glow: var(--accent-glow);
  --gold: var(--ivory);

  --text: #f8fafc;
  --muted: #8193a8;
  --border: rgba(255, 255, 255, 0.08);
  --border-bright: rgba(255, 255, 255, 0.18);
  --radius: 14px;
  --radius-lg: 20px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  background: var(--bg-obsidian);
  color: var(--text);
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 15% -10%, rgba(20, 210, 184, 0.14), transparent 45%),
    radial-gradient(circle at 85% 10%, rgba(34, 232, 203, 0.08), transparent 40%);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 0);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 1;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* =========================================================
   CINEMA HEADER
   ========================================================= */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 4%;
  background: rgba(5, 8, 12, 0.88);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--border);
}

.header-right-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.back-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.15);
  transition: all .25s ease;
}
.back-btn:hover {
  color: #fff;
  border-color: rgba(20, 210, 184, 0.4);
  background: rgba(20, 210, 184, 0.12);
  transform: translateY(-1px);
}
.back-btn svg {
  transition: transform .25s ease;
}
.back-btn:hover svg {
  transform: translateX(-3px);
  stroke: var(--accent-light);
}

/* Ryuuka Logo in Header */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  transition: transform .2s ease;
  flex-shrink: 0;
}
.brand-logo:hover {
  transform: scale(1.02);
}
.brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(20, 210, 184, 0.12);
  border: 1px solid rgba(20, 210, 184, 0.35);
  display: grid;
  place-items: center;
  color: var(--accent-light);
  box-shadow: 0 0 20px var(--accent-glow);
}
.brand-title {
  display: flex;
  align-items: center;
  gap: 5px;
}
.brand-title span {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .8px;
  color: #fff;
}
.brand-badge {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(20, 210, 184, 0.16);
  color: var(--accent-light);
  border: 1px solid rgba(20, 210, 184, 0.35);
}

/* =========================================================
   CINEMA THEATER & PLAYER
   ========================================================= */
.wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 4% 80px;
  position: relative;
  z-index: 2;
}

.player-box {
  position: relative;
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 
    0 30px 90px rgba(0, 0, 0, 0.9),
    0 0 40px rgba(229, 169, 60, 0.12);
}
.player-aspect {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
}
.player-aspect video,
.player-aspect iframe,
.player-aspect .fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  border: none;
  background: #000;
}
/* Memastikan controls bawaan browser pada tag video selalu kontras dan jelas */
.player-aspect video::-webkit-media-controls-panel {
  display: flex !important;
  opacity: 1 !important;
  background-image: linear-gradient(transparent, rgba(0, 0, 0, 0.85)) !important;
}
.player-aspect video::-webkit-media-controls-play-button,
.player-aspect video::-webkit-media-controls-fullscreen-button,
.player-aspect video::-webkit-media-controls-timeline,
.player-aspect video::-webkit-media-controls-current-time-display,
.player-aspect video::-webkit-media-controls-time-remaining-display,
.player-aspect video::-webkit-media-controls-mute-button,
.player-aspect video::-webkit-media-controls-volume-slider {
  filter: brightness(1.2) drop-shadow(0 0 3px rgba(0,0,0,0.8)) !important;
}
.fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  gap: 14px;
  text-align: center;
  padding: 30px;
}
.fallback svg {
  opacity: .4;
  color: var(--amber-light);
}
.fallback h3 {
  color: #fff;
  font-size: 19px;
  font-weight: 800;
}
.fallback p {
  font-size: 14px;
  max-width: 400px;
  line-height: 1.6;
}

.player-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(8, 9, 12, 0.85);
  z-index: 2;
  backdrop-filter: blur(8px);
}
.spinner {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--amber-light);
  animation: spin .8s linear infinite;
  box-shadow: 0 0 20px rgba(229, 169, 60, 0.3);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* =========================================================
   PLAYER TIPS & NOTICE
   ========================================================= */
.player-tip {
  margin-top: 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 18px;
  border-radius: var(--radius);
  background: rgba(229, 169, 60, 0.08);
  border: 1px solid rgba(229, 169, 60, 0.25);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #e2e8f0;
  font-size: 13.5px;
  line-height: 1.5;
  box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.1);
}
.player-tip-icon {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--amber-light);
}
.player-tip-content strong {
  color: #fff;
  font-weight: 700;
  margin-right: 4px;
}
.player-tip-content span strong {
  color: var(--amber-light);
}

/* Accordion player-tip */
.player-tip-collapsible {
  cursor: pointer;
  user-select: none;
  flex-direction: row;
  align-items: flex-start;
}
.player-tip-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}
.player-tip-toggle-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  opacity: 0.75;
}
.player-tip-toggle-icon svg {
  transition: transform 0.22s ease;
}
.player-tip-detail {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding-top: 0;
  font-size: inherit;
  line-height: 1.55;
  transition: max-height 0.28s ease, opacity 0.22s ease, padding-top 0.22s ease;
}
.player-tip-collapsible:hover {
  border-color: rgba(229, 169, 60, 0.45);
}


/* =========================================================
   EPISODES & SEASONS SELECTOR (FOR TV SERIES)
   ========================================================= */
.ep-quick-nav {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  border-radius: var(--radius);
  background: rgba(16, 23, 34, 0.75);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 
    0 10px 30px rgba(0, 0, 0, 0.5),
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.2);
}
.ep-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 700;
  transition: all .2s ease;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.15);
}
.ep-nav-btn:hover:not(:disabled) {
  background: rgba(20, 210, 184, 0.15);
  border-color: rgba(20, 210, 184, 0.45);
  color: var(--accent-light);
  transform: translateY(-1px);
}
.ep-nav-btn.primary-nav:not(:disabled) {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-light));
  color: #08090c;
  border-color: transparent;
  box-shadow: 0 4px 16px var(--accent-glow);
}
.ep-nav-btn.primary-nav:hover:not(:disabled) {
  filter: brightness(1.08);
  box-shadow: 0 6px 22px var(--accent-glow-strong);
}
.ep-nav-btn:disabled {
  opacity: 0.32;
  cursor: not-allowed;
  pointer-events: none;
}
.ep-nav-center {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 800;
  color: #fff;
  text-align: center;
}
.ep-nav-badge {
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(20, 210, 184, 0.14);
  border: 1px solid rgba(20, 210, 184, 0.35);
  color: var(--accent-light);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .5px;
}

.episodes-container {
  margin-top: 18px;
  background: rgba(16, 20, 28, 0.65);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 
    0 12px 36px rgba(0, 0, 0, 0.5),
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  padding: 16px 20px;
}
.episodes-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 12px;
}
.episodes-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 1px;
}
.episodes-title svg {
  color: var(--accent-light);
}
.season-picker select {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  outline: none;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.15);
  transition: all .2s ease;
}
.season-picker select:focus,
.season-picker select:hover {
  border-color: rgba(20, 210, 184, 0.5);
  background: rgba(20, 210, 184, 0.12);
}
.season-picker select option {
  background: #0e1722;
  color: #fff;
}
.episodes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(95px, 1fr));
  gap: 10px;
  max-height: 280px;
  overflow-y: auto;
  padding-right: 4px;
}
.episodes-grid::-webkit-scrollbar {
  width: 6px;
}
.episodes-grid::-webkit-scrollbar-thumb {
  background: rgba(20, 210, 184, 0.3);
  border-radius: 3px;
}
.ep-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 10px 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #cbd5e1;
  transition: all .2s ease;
  min-height: 52px;
  cursor: pointer;
}
.ep-btn:hover {
  border-color: rgba(20, 210, 184, 0.5);
  background: rgba(20, 210, 184, 0.12);
  color: #fff;
  transform: translateY(-2px);
}
.ep-btn.active {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-light));
  color: #08090c;
  font-weight: 800;
  border-color: transparent;
  box-shadow: 0 6px 20px var(--accent-glow);
}
.ep-btn.active .ep-sub {
  color: rgba(8, 9, 12, 0.85);
  font-weight: 700;
}
.ep-btn.active .ep-num {
  color: #08090c;
}
.ep-num {
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
}
.ep-sub {
  font-size: 10.5px;
  color: var(--muted);
}

/* =========================================================
   SERVER MIRROR PICKER (APPLE LIQUID GLASS RAIL)
   ========================================================= */
.servers {
  margin-top: 14px;
  background: rgba(13, 20, 30, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 10px 14px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.servers-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 12px;
  color: var(--muted);
}

.servers-head-left {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #94a3b8;
  font-weight: 500;
  font-size: 12px;
}

.servers-head-left svg {
  color: var(--accent-light);
  flex-shrink: 0;
}

.servers-head-left strong {
  color: #22e8cb;
  font-weight: 700;
}

.servers-count-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
}

/* Horizontal Scrollable Rail */
.server-list {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  flex-wrap: nowrap;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  padding: 4px 2px 8px;
  scrollbar-width: none;
}

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

.server-btn {
  flex-shrink: 0;
  scroll-snap-align: start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  min-height: 38px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.2s ease;
  cursor: pointer;
  touch-action: manipulation;
}

.server-btn:hover {
  background: rgba(20, 210, 184, 0.1);
  border-color: rgba(34, 232, 203, 0.35);
  color: #fff;
}

.server-btn.active {
  background: rgba(20, 210, 184, 0.18);
  border-color: #22e8cb;
  color: #22e8cb;
  font-weight: 700;
  box-shadow: 0 0 14px rgba(20, 210, 184, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.3);
}

.server-btn-num {
  font-weight: 700;
}

.server-btn-tag {
  font-size: 10px;
  opacity: 0.85;
  padding: 1.5px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
}

.server-btn.active .server-btn-tag {
  background: rgba(34, 232, 203, 0.2);
  color: #22e8cb;
}

/* =========================================================
   MOVIE INFO & METADATA
   ========================================================= */
.info {
  margin-top: 26px;
  background: rgba(16, 20, 28, 0.65);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 
    0 16px 48px rgba(0, 0, 0, 0.55),
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.info-banner {
  position: relative;
  height: 200px;
  background-size: cover;
  background-position: center 30%;
  filter: saturate(1.1);
}
.info-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(16, 20, 28, 0.98) 6%, rgba(16, 20, 28, 0.5) 60%, transparent 100%);
}
.info-body {
  padding: 0 32px 32px;
  margin-top: -60px;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.info-top-row {
  display: flex;
  align-items: flex-end;
  gap: 24px;
}
.info-poster {
  width: 140px;
  height: 210px;
  aspect-ratio: 2 / 3;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8);
  flex-shrink: 0;
  background: var(--bg-surface);
}
.info-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.info-headline {
  flex: 1;
  min-width: 0;
  padding-bottom: 6px;
}
.info-bottom-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.info-title {
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 12px;
  color: #fff;
}
.info-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}
.info-meta .pill {
  border: 1px solid var(--border-bright);
  padding: 4px 11px;
  border-radius: 8px;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.05);
  font-weight: 600;
  font-size: 12px;
}
.info-meta .score {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--amber-light);
  font-weight: 800;
  background: rgba(229, 169, 60, 0.15);
  border: 1px solid rgba(229, 169, 60, 0.35);
  padding: 4px 10px;
  border-radius: 8px;
}
.info-genres {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.info-genres span {
  background: rgba(229, 169, 60, 0.12);
  border: 1px solid rgba(229, 169, 60, 0.35);
  color: var(--amber-light);
  padding: 4px 13px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
}
.info-desc {
  color: #cbd5e1;
  line-height: 1.75;
  font-size: 14.5px;
}
.info-actions {
  display: flex;
  gap: 12px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  transition: all .22s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--amber), var(--amber-light));
  color: #08090c;
  box-shadow: 0 8px 26px rgba(229, 169, 60, 0.35), inset 0 1px 1px 0 rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 12px 36px rgba(229, 169, 60, 0.5);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.15);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.25);
}
.btn-ghost.fav-active {
  background: linear-gradient(135deg, var(--amber), var(--amber-light));
  border-color: transparent;
  color: #08090c;
  box-shadow: 0 6px 20px rgba(229, 169, 60, 0.4);
}

.err-wrap {
  max-width: 560px;
  margin: 80px auto;
  text-align: center;
  padding: 30px;
  position: relative;
  z-index: 2;
  background: rgba(16, 20, 28, 0.7);
  backdrop-filter: blur(24px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.err-wrap svg {
  opacity: .4;
  margin-bottom: 20px;
  color: var(--amber-light);
}
.err-wrap h2 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 10px;
  color: #fff;
}
.err-wrap p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 24px;
}

@media (max-width: 640px) {
  .wrap { padding: 12px 3.5% calc(50px + env(safe-area-inset-bottom, 16px)); }
  .header {
    padding: 10px 14px;
    gap: 8px;
    justify-content: space-between;
  }
  .back-btn {
    width: 38px;
    height: 38px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
  }
  .back-btn-text {
    display: none !important;
  }
  .header-secondary-btn {
    display: none !important;
  }
  .nav-nobar-btn {
    display: inline-flex !important;
    flex-shrink: 0;
    padding: 6px 12px;
    font-size: 12px;
    min-height: 36px;
    white-space: nowrap;
  }
  .brand-logo {
    margin: 0 auto;
    gap: 6px;
  }
  .brand-icon {
    width: 28px;
    height: 28px;
  }
  .brand-title span {
    font-size: 14px;
  }
  .brand-badge {
    font-size: 8px;
    padding: 1.5px 4px;
  }
  .speed-bar-hint {
    display: none !important;
  }
  .player-speed-bar {
    margin-top: 8px;
    padding: 8px 10px;
    border-radius: 12px;
  }
  .player-box { border-radius: 14px; }
  
  /* Tips Box */
  .player-tip { font-size: 12px; padding: 10px 12px; gap: 10px; border-radius: 12px; line-height: 1.55; }
  .player-tip-icon svg { width: 18px; height: 18px; }

  /* Episodes Quick Nav on Mobile */
  .ep-quick-nav { margin-top: 12px; padding: 10px 12px; gap: 8px; border-radius: 12px; }
  .ep-nav-btn { padding: 8px 12px; font-size: 12px; min-height: 40px; border-radius: 8px; gap: 5px; }
  .ep-nav-btn svg { width: 13px; height: 13px; }
  .ep-nav-center { font-size: 12px; gap: 6px; }
  .ep-nav-badge { font-size: 11px; padding: 2px 7px; border-radius: 6px; }

  /* Episodes & Season Picker on Mobile */
  .episodes-container { margin-top: 14px; padding: 14px 12px; border-radius: 14px; }
  .episodes-head { margin-bottom: 12px; gap: 8px; }
  .episodes-title { font-size: 11.5px; }
  .season-picker select { font-size: 12px; padding: 6px 10px; }
  .episodes-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; max-height: 220px; }
  .ep-btn { min-height: 46px; padding: 6px 4px; border-radius: 10px; }
  .ep-num { font-size: 12px; }
  .ep-sub { font-size: 9.5px; }

  /* Server Rail on Mobile: Clean horizontal swipe, zero clutter */
  .servers { margin-top: 12px; padding: 10px 12px; border-radius: 12px; }
  .servers-head { font-size: 11.5px; margin-bottom: 8px; }
  .server-list { display: flex; overflow-x: auto; flex-wrap: nowrap; gap: 7px; padding: 3px 2px 6px; }
  .server-btn {
    padding: 6px 12px;
    font-size: 11.5px;
    min-height: 36px;
  }

  /* Info Card */
  .info { margin-top: 20px; border-radius: 16px; }
  .info-banner { height: 120px; }
  .info-body {
    padding: 0 14px 18px;
    margin-top: -45px;
    gap: 16px;
  }
  
  /* Top Row on Mobile: Poster + Title side-by-side cleanly */
  .info-top-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
  }
  .info-poster {
    width: 100px;
    height: 150px;
    min-width: 100px;
    max-width: 100px;
    aspect-ratio: 2 / 3;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.7);
    flex-shrink: 0;
  }
  .info-headline {
    flex: 1;
    min-width: 0;
    padding-top: 48px;
  }
  .info-title {
    font-size: 18px;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
    line-height: 1.2;
    word-break: break-word;
  }
  .info-meta {
    gap: 6px;
    margin-bottom: 8px;
    font-size: 11px;
  }
  .info-meta .pill,
  .info-meta .score {
    padding: 3px 8px;
    font-size: 11px;
    border-radius: 6px;
  }
  .info-genres {
    gap: 5px;
    margin-bottom: 0;
  }
  .info-genres span {
    padding: 3px 9px;
    font-size: 10.5px;
  }

  /* Bottom Content: full width synopsis & spacious action buttons */
  .info-bottom-content {
    gap: 16px;
  }
  .info-desc {
    font-size: 13px;
    line-height: 1.65;
    color: #cbd5e1;
  }
  .info-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 0;
  }
  .info-actions .btn {
    padding: 10px 4px;
    font-size: 11.5px;
    min-height: 44px;
    border-radius: 10px;
    gap: 5px;
    white-space: nowrap;
  }
  .info-actions .btn svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
  }
}

@media (max-width: 380px) {
  .info-poster {
    width: 88px;
    height: 132px;
    min-width: 88px;
  }
  .info-headline {
    padding-top: 42px;
  }
  .info-title {
    font-size: 16.5px;
  }
  .info-actions .btn {
    font-size: 11px;
    padding: 9px 2px;
  }
  .episodes-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---- Header button text: hide labels on narrow screens ---- */
@media (max-width: 480px) {
  .nav-sync-btn span,
  .nav-mobile-notice span {
    display: none;
  }
  .nav-sync-btn,
  .nav-mobile-notice {
    padding: 8px 10px;
    min-width: 36px;
    justify-content: center;
  }
  .notice-pulse-dot {
    display: none;
  }
}


/* =========================================================
   2X HOLD-TO-SPEED HUD & CONTROLS (APPLE LIQUID GLASS)
   ========================================================= */
.speed-hud {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%) translateY(-24px);
  z-index: 100;
  pointer-events: none;
  opacity: 0;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
.speed-hud.active {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.speed-hud-content {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  background: rgba(9, 16, 23, 0.88);
  border: 1.5px solid rgba(20, 210, 184, 0.55);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 25px var(--accent-glow);
  color: #fff;
}
.speed-hud-badge {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-light));
  color: #05080c;
  font-weight: 900;
  font-size: 13px;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}
.speed-hud-anim {
  color: var(--accent-light);
  display: flex;
  align-items: center;
  animation: speedGlow 0.55s infinite alternate;
}
@keyframes speedGlow {
  0% { transform: scale(0.95); opacity: 0.75; }
  100% { transform: scale(1.15); opacity: 1; filter: drop-shadow(0 0 8px var(--accent-light)); }
}
.speed-hud-text {
  font-size: 13px;
  font-weight: 700;
  color: #f8fafc;
  letter-spacing: 0.3px;
}

/* Screen Gesture Layer disabled so native video iframe controls (pause, gear, resolution) are 100% unblocked */
.player-gesture-layer {
  display: none !important;
  pointer-events: none !important;
}

.gesture-center-ripple {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.6);
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: rgba(9, 16, 23, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(20, 210, 184, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-light);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.28s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.28s ease;
  box-shadow: 0 0 25px rgba(20, 210, 184, 0.4);
}
.gesture-center-ripple.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.1);
}

/* Speed Bar Under Video */
.player-speed-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding: 10px 16px;
  border-radius: 14px;
  background: rgba(14, 23, 34, 0.7);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  flex-wrap: wrap;
}
.speed-bar-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}
.speed-bar-hint svg {
  color: var(--accent-light);
  flex-shrink: 0;
}
.speed-bar-hint strong {
  color: #fff;
}
.speed-bar-presets {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.spd-btn {
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  transition: all .2s ease;
  cursor: pointer;
}
.spd-btn:hover {
  color: #fff;
  border-color: rgba(20, 210, 184, 0.4);
  background: rgba(20, 210, 184, 0.1);
}
.spd-btn.active {
  color: #05080c !important;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-light));
  border-color: transparent;
  box-shadow: 0 0 14px var(--accent-glow);
}
.hold-boost-btn {
  background: rgba(229, 169, 60, 0.16) !important;
  color: var(--amber-light) !important;
  border: 1px solid rgba(229, 169, 60, 0.45) !important;
  font-weight: 800 !important;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  cursor: pointer;
}
.hold-boost-btn:hover {
  background: rgba(229, 169, 60, 0.28) !important;
  border-color: var(--amber-light) !important;
  color: #fff !important;
}
.hold-boost-btn.holding {
  background: linear-gradient(135deg, #f59e0b, #fbbf24) !important;
  color: #0f172a !important;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.6) !important;
  transform: scale(0.96);
}

@media (max-width: 640px) {
  .player-speed-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 12px;
  }
  .speed-bar-presets {
    width: 100%;
    justify-content: space-between;
  }
  .spd-btn {
    flex: 1;
    text-align: center;
    padding: 6px 4px;
    font-size: 11px;
  }
}

/* =========================================================
   SERIES TOP NAV BAR & IN-PLAYER NEXT EPISODE CONTROLS
   ========================================================= */
.player-series-ctrl-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 18px;
  margin-bottom: 12px;
  background: rgba(13, 20, 30, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.2);
}
.series-ctrl-info {
  display: flex;
  align-items: center;
  gap: 10px;
}
.series-badge {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(20, 210, 184, 0.18);
  color: var(--accent-light);
  border: 1px solid rgba(20, 210, 184, 0.4);
}
.series-cur-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
}
.series-cur-title strong {
  color: var(--accent-light);
}
.series-ctrl-btns {
  display: flex;
  align-items: center;
  gap: 8px;
}
.top-ep-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 9px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  cursor: pointer;
  transition: all .2s ease;
}
.top-ep-nav-btn:hover:not(:disabled) {
  background: rgba(20, 210, 184, 0.2);
  border-color: #22e8cb;
  color: #22e8cb;
  transform: translateY(-1px);
}
.top-ep-nav-btn.primary {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-light));
  color: #05080c;
  border-color: transparent;
  box-shadow: 0 4px 14px var(--accent-glow);
}
.top-ep-nav-btn.primary:hover:not(:disabled) {
  filter: brightness(1.1);
  box-shadow: 0 6px 20px var(--accent-glow-strong);
}
.top-ep-nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

/* In-Player Floating Next Ep Button */
.inplayer-next-ep-wrap {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 40;
  pointer-events: auto;
}
.inplayer-next-ep-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 15px;
  border-radius: 999px;
  background: rgba(5, 8, 12, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(34, 232, 203, 0.45);
  color: #22e8cb;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.7), 0 0 14px rgba(20, 210, 184, 0.3);
  cursor: pointer;
  transition: all .2s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.inplayer-next-ep-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-light));
  color: #05080c;
  border-color: transparent;
  transform: scale(1.05);
  box-shadow: 0 8px 24px var(--accent-glow-strong);
}
.inplayer-next-ep-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

@media (max-width: 640px) {
  .player-series-ctrl-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
  }
  .series-ctrl-btns {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }
  .top-ep-nav-btn {
    flex: 1;
    justify-content: center;
    padding: 8px 10px;
    font-size: 12px;
    min-height: 38px;
  }
  .inplayer-next-ep-wrap {
    top: 8px;
    right: 8px;
  }
  .inplayer-next-ep-btn {
    padding: 6px 11px;
    font-size: 11px;
  }
}

/* =========================================================
   SERVER NOTICE & JPM ANNOUNCEMENT MODAL (PLAYER)
   ========================================================= */
.nav-sync-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(20, 210, 184, 0.14);
  color: #22e8cb;
  border: 1px solid rgba(20, 210, 184, 0.4);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 0 14px rgba(20, 210, 184, 0.25);
  cursor: pointer;
  transition: all .2s ease;
}
.nav-sync-btn:hover {
  background: rgba(20, 210, 184, 0.26);
  border-color: #22e8cb;
  color: #fff;
  transform: translateY(-1px);
}
.nav-sync-btn:active {
  transform: scale(0.96);
}

.nav-mobile-notice {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(229, 169, 60, 0.14);
  color: #ffbe42;
  border: 1px solid rgba(229, 169, 60, 0.4);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 0 14px rgba(229, 169, 60, 0.25);
  cursor: pointer;
  transition: all .2s ease;
}
.nav-mobile-notice:active {
  transform: scale(0.96);
}

.notice-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffbe42;
}

.modal-notice-backdrop {
  position: fixed;
  inset: 0;
  z-index: 999999 !important;
  background: rgba(8, 9, 12, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-notice-backdrop.open {
  display: flex !important;
}

.modal-notice {
  background: rgba(13, 19, 28, 0.95);
  backdrop-filter: blur(36px) saturate(190%);
  -webkit-backdrop-filter: blur(36px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  max-width: 640px;
  width: 95%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.9), inset 0 1px 1px rgba(255, 255, 255, 0.25);
  padding: 24px 28px;
}
.notice-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 20px;
}
.notice-header-left {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.notice-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(229, 169, 60, 0.14);
  border: 1px solid rgba(229, 169, 60, 0.4);
  color: #ffbe42;
  display: grid;
  place-items: center;
  box-shadow: 0 0 20px rgba(229, 169, 60, 0.25);
  flex-shrink: 0;
}
.notice-badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.notice-badge {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #ffbe42;
  background: rgba(229, 169, 60, 0.16);
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid rgba(229, 169, 60, 0.35);
}
.notice-badge-status {
  font-size: 10px;
  font-weight: 700;
  color: #22e8cb;
  background: rgba(20, 210, 184, 0.12);
  padding: 2px 7px;
  border-radius: 6px;
  border: 1px solid rgba(20, 210, 184, 0.3);
}
.notice-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #ffffff;
  margin: 0;
  line-height: 1.3;
}
.notice-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all .2s ease;
  flex-shrink: 0;
}
.notice-close-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  transform: rotate(90deg);
}

.notice-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.notice-card {
  display: flex;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(16, 23, 34, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.1);
}
.notice-card-icon {
  flex-shrink: 0;
  margin-top: 2px;
}
.notice-card.warning-card {
  background: rgba(229, 169, 60, 0.07);
  border-color: rgba(229, 169, 60, 0.3);
}
.notice-card.warning-card .notice-card-icon {
  color: #ffbe42;
}
.notice-card.success-card {
  background: rgba(20, 210, 184, 0.07);
  border-color: rgba(20, 210, 184, 0.32);
}
.notice-card.success-card .notice-card-icon {
  color: #22e8cb;
}
.notice-card.info-card {
  background: rgba(56, 189, 248, 0.07);
  border-color: rgba(56, 189, 248, 0.3);
}
.notice-card.info-card .notice-card-icon {
  color: #38bdf8;
}

.notice-card-content h4 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13.5px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 5px;
}
.notice-card-content p {
  font-size: 12.5px;
  color: #cbd5e1;
  line-height: 1.55;
  margin: 0;
}
.notice-card-content p strong {
  color: #fff;
}
.notice-card-content code {
  background: rgba(20, 210, 184, 0.18);
  padding: 1.5px 6px;
  border-radius: 5px;
  color: #22e8cb;
  font-weight: 700;
  font-size: 12px;
}

/* DNS Guide Tabs & Steps */
.dns-guide-box {
  margin-top: 10px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 12px;
}
.dns-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 10px;
  overflow: visible;
}
.dns-tabs::-webkit-scrollbar {
  display: none;
}
.dns-tab-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  padding: 6px 10px;
  min-height: 34px;
  border-radius: 999px;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.dns-tab-btn svg {
  flex-shrink: 0;
}
.dns-tab-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.dns-tab-btn.active {
  background: rgba(56, 189, 248, 0.22);
  border-color: rgba(56, 189, 248, 0.55);
  color: #38bdf8;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.2);
}
.dns-step-content {
  font-size: 12.5px;
  color: #cbd5e1;
  line-height: 1.65;
}
.dns-step-content ol {
  margin: 0;
  padding-left: 20px;
}
.dns-step-content li {
  margin-bottom: 6px;
  padding-left: 2px;
}
.dns-step-content li:last-child {
  margin-bottom: 0;
}
.dns-copy-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 8px;
  background: rgba(20, 210, 184, 0.14);
  border: 1px solid rgba(20, 210, 184, 0.38);
  padding: 8px 12px;
  min-height: 40px;
  border-radius: 8px;
  color: #22e8cb;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
  transition: all .2s;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.dns-copy-badge svg {
  flex-shrink: 0;
}
.dns-copy-badge:hover, .dns-copy-badge:active {
  background: rgba(20, 210, 184, 0.25);
  border-color: #22e8cb;
  transform: translateY(-1px);
}

.notice-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.notice-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: #94a3b8;
  cursor: pointer;
  user-select: none;
}
.notice-checkbox-label input {
  accent-color: var(--accent-primary);
  width: 18px;
  height: 18px;
  cursor: pointer;
}
.notice-confirm-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  min-height: 44px;
  font-size: 13.5px;
  font-weight: 800;
}

@media (max-width: 600px) {
  .modal-notice {
    padding: 16px 14px;
    border-radius: 18px;
    width: 94%;
  }
  .notice-header {
    margin-bottom: 14px;
    padding-bottom: 12px;
  }
  .notice-title {
    font-size: 15.5px;
    line-height: 1.35;
  }
  .notice-icon-box {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }
  .notice-card {
    padding: 12px 14px;
    gap: 10px;
    border-radius: 12px;
  }
  .notice-card-content h4 {
    font-size: 13px;
    line-height: 1.4;
  }
  .notice-card-content p {
    font-size: 12px;
    line-height: 1.5;
  }
  .dns-guide-box {
    padding: 8px 10px;
    margin-top: 8px;
  }
  .dns-copy-badge {
    width: 100%;
    justify-content: space-between;
  }
  .notice-actions-row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .notice-confirm-btn {
    width: 100%;
    justify-content: center;
    min-height: 46px;
  }
}

@media (max-width: 480px) {
  .dns-tabs { gap: 5px; padding-bottom: 8px; }
  .dns-tab-btn { font-size: 10.5px; padding: 5px 8px; min-height: 32px; gap: 4px; }
  .dns-tab-btn svg { width: 12px; height: 12px; }
  .dns-copy-badge { font-size: 11px; padding: 7px 10px; }
  .dns-step-content { font-size: 12px; }
  .dns-step-content li { margin-bottom: 5px; }
}

/* =========================================================
   RESUME TIME NOTIFICATION BANNER & PROGRESS OVERLAY
   ========================================================= */
.resume-banner {
  margin-top: 14px;
  padding: 14px 18px;
  border-radius: var(--radius);
  background: rgba(20, 210, 184, 0.08);
  border: 1px solid rgba(20, 210, 184, 0.35);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), inset 0 1px 1px 0 rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeUp .35s ease;
}
.resume-banner-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.resume-banner-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(20, 210, 184, 0.18);
  border: 1px solid rgba(20, 210, 184, 0.4);
  color: #22e8cb;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 0 14px rgba(20, 210, 184, 0.25);
}
.resume-banner-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.resume-banner-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
}
.resume-banner-desc {
  font-size: 12.5px;
  color: #94a3b8;
}
.resume-banner-desc strong {
  color: #22e8cb;
}
.resume-banner-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.resume-btn-apply {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-light));
  color: #05080c;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12.5px;
  font-weight: 800;
  padding: 8px 16px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 14px var(--accent-glow);
  transition: all .2s ease;
}
.resume-btn-apply:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}
.resume-btn-dismiss {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #cbd5e1;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all .2s ease;
}
.resume-btn-dismiss:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

/* Floating Duration Tracker Badge on Player */
.player-duration-tracker {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 10;
  background: rgba(5, 8, 12, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  pointer-events: none;
  box-shadow: 0 4px 14px rgba(0,0,0,0.6);
  opacity: 0;
  transition: opacity .3s ease;
}
.player-duration-tracker.visible {
  opacity: 1;
}
.player-duration-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #22e8cb;
}

@media (max-width: 640px) {
  .resume-banner {
    flex-direction: column;
    align-items: stretch;
    padding: 12px 14px;
    gap: 12px;
  }
  .resume-banner-left {
    gap: 10px;
  }
  .resume-banner-title {
    font-size: 13.5px;
  }
  .resume-banner-desc {
    font-size: 12px;
  }
  .resume-banner-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .resume-btn-apply, .resume-btn-dismiss {
    width: 100%;
    justify-content: center;
    padding: 9px 8px;
    min-height: 42px;
  }
  .episodes-grid {
    grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
    gap: 8px;
  }
  .ep-btn {
    min-height: 48px;
    padding: 8px 4px;
  }
  .ep-num {
    font-size: 12.5px;
  }
  /* server-list maintains clean horizontal rail */
  .player-tip {
    padding: 10px 12px;
    font-size: 12px;
  }
}

/* =========================================================
   NOBAR PARTY & LIVE REALTIME CHAT SYSTEM (LIQUID GLASS)
   ========================================================= */
.nav-nobar-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 9999px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: #2dd4bf;
  background: rgba(20, 210, 184, 0.16);
  border: 1px solid rgba(34, 232, 203, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 
    0 2px 12px rgba(20, 210, 184, 0.2),
    inset 0 1px 1px rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
  white-space: nowrap;
}

.nav-nobar-btn:hover {
  background: rgba(20, 210, 184, 0.25);
  border-color: rgba(34, 232, 203, 0.8);
  box-shadow: 
    0 6px 22px rgba(20, 210, 184, 0.35),
    inset 0 1px 2px rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
}

.nobar-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22e8cb;
}

/* Modal Nobar Styles */
.nobar-modal {
  max-width: 520px !important;
}

.nobar-icon-box {
  background: rgba(20, 210, 184, 0.15) !important;
  color: #22e8cb !important;
  border-color: rgba(20, 210, 184, 0.4) !important;
}

.nobar-badge {
  background: rgba(20, 210, 184, 0.18) !important;
  border: 1px solid rgba(20, 210, 184, 0.45) !important;
  color: #22e8cb !important;
}

.nobar-live-status {
  background: rgba(16, 185, 129, 0.2) !important;
  border: 1px solid rgba(16, 185, 129, 0.5) !important;
  color: #34d399 !important;
}

.nobar-modal-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
  margin-bottom: 18px;
  background: rgba(0, 0, 0, 0.45);
  padding: 4px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.nobar-tab-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 8px;
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.nobar-tab-btn.active {
  background: rgba(20, 210, 184, 0.2);
  color: #fff;
  border: 1px solid rgba(20, 210, 184, 0.4);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

.nobar-info-card {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(20, 210, 184, 0.08);
  border: 1px solid rgba(20, 210, 184, 0.25);
  color: #cbd5e1;
  font-size: 12.5px;
  line-height: 1.5;
  margin-bottom: 16px;
}

.nobar-form-group {
  margin-bottom: 14px;
}

.nobar-form-group label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #94a3b8;
  margin-bottom: 6px;
}

.nobar-input {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 13.5px;
  font-family: inherit;
  outline: none;
  transition: all 0.2s;
}

.nobar-input:focus {
  border-color: #22e8cb;
  box-shadow: 0 0 12px rgba(20, 210, 184, 0.35);
  background: rgba(0, 0, 0, 0.7);
}

.nobar-btn-full {
  width: 100%;
  justify-content: center;
  padding: 12px 16px;
  font-size: 13.5px;
  font-weight: 700;
  border-radius: 10px;
}

.public-nobar-banner {
  padding: 16px;
  border-radius: 12px;
  background: radial-gradient(circle at 10% 20%, rgba(20, 210, 184, 0.15), transparent 70%), rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(20, 210, 184, 0.3);
  margin-bottom: 16px;
}

.public-nobar-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 800;
  color: #34d399;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.nobar-pulse-green {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
}

.public-nobar-banner h3 {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}

.public-nobar-banner p {
  font-size: 12px;
  color: #94a3b8;
}

/* =========================================================
   DISCORD-STYLE NOBAR THEATER & CHAT PANEL (LIQUID GLASS)
   ========================================================= */
.theater-container {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.theater-container.with-chat {
  grid-template-columns: minmax(0, 1fr) 380px;
}

@media (max-width: 1080px) {
  .theater-container.with-chat {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
}

.theater-container > * {
  min-width: 0;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

/* Chat Panel Liquid Glass - Discord UI */
.nobar-chat-panel {
  display: flex;
  flex-direction: column;
  background: rgba(18, 19, 26, 0.88);
  border: 1px solid rgba(88, 101, 242, 0.35);
  border-radius: 16px;
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  box-shadow: 
    0 20px 50px rgba(0, 0, 0, 0.8),
    inset 0 1px 1px rgba(255, 255, 255, 0.15),
    0 0 30px rgba(88, 101, 242, 0.15);
  height: 100%;
  min-height: 520px;
  max-height: 660px;
  position: relative;
  overflow: hidden;
  animation: fadeInChat 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

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

/* Discord Channel Header */
.nobar-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(14, 15, 22, 0.85);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.nobar-chat-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nobar-discord-hash {
  color: #80848e;
  font-weight: 800;
  font-size: 18px;
  line-height: 1;
}

.nobar-chat-room-badge {
  font-size: 13.5px;
  font-weight: 800;
  color: #f2f3f5;
  letter-spacing: 0.3px;
}

.nobar-chat-users-online {
  font-size: 11.5px;
  color: #949ba4;
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.nobar-chat-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nobar-discord-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #b5bac1;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 700;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.nobar-discord-btn:hover {
  color: #fff;
  background: rgba(88, 101, 242, 0.25);
  border-color: rgba(88, 101, 242, 0.5);
  transform: translateY(-1px);
}

.nobar-discord-btn.voice-active {
  background: rgba(35, 165, 89, 0.25);
  border-color: rgba(35, 165, 89, 0.6);
  color: #57f287;
  box-shadow: 0 0 12px rgba(35, 165, 89, 0.3);
}

.nobar-chat-close-btn {
  background: none;
  border: none;
  color: #80848e;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  transition: all 0.2s;
}

.nobar-chat-close-btn:hover {
  color: #f2f3f5;
  background: rgba(255, 255, 255, 0.08);
}

/* Discord Voice Call Connected Bar (Telponan Suara) */
.nobar-voice-panel {
  display: none;
  padding: 10px 14px;
  background: linear-gradient(135deg, rgba(35, 165, 89, 0.15), rgba(88, 101, 242, 0.15));
  border-bottom: 1px solid rgba(35, 165, 89, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  animation: slideDownVoice 0.25s ease;
}

@keyframes slideDownVoice {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.nobar-voice-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.nobar-voice-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  color: #57f287;
  letter-spacing: 0.2px;
}

.nobar-voice-signal-icon {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #57f287;
  box-shadow: 0 0 10px #57f287;
  animation: voicePulse 1.2s infinite;
}

@keyframes voicePulse {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; filter: drop-shadow(0 0 6px #57f287); }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.nobar-voice-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nobar-voice-ctrl-btn {
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.4);
  color: #dbdee1;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s;
}

.nobar-voice-ctrl-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.nobar-voice-ctrl-btn.muted {
  background: rgba(237, 66, 69, 0.25);
  border-color: rgba(237, 66, 69, 0.6);
  color: #ed4245;
}

.nobar-voice-ctrl-btn.disconnect {
  background: rgba(237, 66, 69, 0.8);
  border-color: #ed4245;
  color: #fff;
}

.nobar-voice-ctrl-btn.disconnect:hover {
  background: #ed4245;
}

.nobar-voice-ctrl-btn.cam-on {
  background: rgba(88, 101, 242, 0.35);
  border-color: #5865f2;
  color: #c9cdfb;
  box-shadow: 0 0 10px rgba(88, 101, 242, 0.4);
}

.nobar-discord-btn.video-active {
  background: #5865f2;
  color: #fff;
  border-color: #5865f2;
  box-shadow: 0 0 12px rgba(88, 101, 242, 0.5);
}

/* Discord Video Grid (Webcam Teman & Pengguna) */
.nobar-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
  margin: 10px 0 6px 0;
  max-height: 220px;
  overflow-y: auto;
}

.nobar-video-box {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  border: 1.5px solid rgba(88, 101, 242, 0.3);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
}

.nobar-video-box video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1); /* Mirror view for natural webcam feel */
}

.nobar-video-box-label {
  position: absolute;
  bottom: 6px;
  left: 6px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  pointer-events: none;
  max-width: 85%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Daftar Peserta Voice Call yang Sedang Bicara */
.nobar-voice-users-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 4px;
}

.nobar-voice-user-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  font-size: 11px;
  font-weight: 700;
  color: #dbdee1;
  transition: all 0.2s;
}

.nobar-voice-user-pill.speaking {
  border-color: #57f287;
  color: #57f287;
  box-shadow: 0 0 10px rgba(87, 242, 135, 0.35);
}

/* Discord Messages Stream */
.nobar-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-behavior: smooth;
  background: rgba(14, 15, 22, 0.5);
}

.nobar-chat-messages::-webkit-scrollbar {
  width: 6px;
}

.nobar-chat-messages::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.15);
}

.nobar-chat-messages::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
}

/* Discord Message Item (Avatar + Header Row + Bubble/Text) */
.nobar-msg {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  animation: popMsg 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 4px 6px;
  border-radius: 10px;
  transition: background 0.15s;
}

.nobar-msg:hover {
  background: rgba(255, 255, 255, 0.03);
}

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

.nobar-msg.system {
  justify-content: center;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(88, 101, 242, 0.08);
  border: 1px solid rgba(88, 101, 242, 0.2);
  color: #949ba4;
  font-size: 11.5px;
  text-align: center;
}

.nobar-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #5865F2, #4752C4);
  box-shadow: 0 4px 12px rgba(88, 101, 242, 0.35);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  user-select: none;
}

.nobar-avatar.mine {
  background: linear-gradient(135deg, #22e8cb, #0ea5e9);
  box-shadow: 0 4px 12px rgba(34, 232, 203, 0.35);
}

.nobar-msg-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nobar-msg-header {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.nobar-msg-user {
  font-size: 13px;
  font-weight: 800;
  color: #5865F2;
  cursor: pointer;
}

.nobar-msg.mine .nobar-msg-user {
  color: #22e8cb;
}

.nobar-msg-badge {
  font-size: 9.5px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(88, 101, 242, 0.2);
  color: #8ea1e1;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.nobar-msg-time {
  font-size: 10.5px;
  color: #6d727a;
  font-weight: 600;
}

.nobar-msg-bubble {
  font-size: 13px;
  line-height: 1.45;
  color: #dbdee1;
  word-break: break-word;
}

.nobar-msg.reaction-msg .nobar-msg-bubble {
  font-size: 26px;
  line-height: 1.2;
  animation: emojiBounce 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes emojiBounce {
  0% { transform: scale(0.6); }
  60% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

/* Discord Emoji Soundboard Reactions Bar */
.nobar-chat-input-bar {
  padding: 10px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(14, 15, 22, 0.95);
  box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.3);
}

.nobar-soundboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.nobar-soundboard-title {
  font-size: 11px;
  font-weight: 800;
  color: #949ba4;
  display: flex;
  align-items: center;
  gap: 5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nobar-soundboard-hint {
  font-size: 10.5px;
  color: #5865F2;
  font-weight: 700;
}

.nobar-sfx-toggle-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #dbdee1;
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.nobar-sfx-toggle-btn:hover {
  background: rgba(88, 101, 242, 0.25);
  border-color: rgba(88, 101, 242, 0.5);
  color: #fff;
}

.nobar-sfx-toggle-btn.muted-sfx {
  background: rgba(237, 66, 69, 0.2);
  border-color: rgba(237, 66, 69, 0.5);
  color: #ed4245;
}

.nobar-emoji-reactions {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
  overflow-x: auto;
  padding: 4px 2px 6px;
}

.nobar-emoji-reactions::-webkit-scrollbar {
  height: 4px;
}

.nobar-emoji-reactions::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

/* Discord Reaction Pill Button with Soundwave Icon */
.nobar-emoji-btn {
  background: rgba(43, 45, 54, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 15px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #dbdee1;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  user-select: none;
  flex-shrink: 0;
}

.nobar-emoji-btn span.lbl {
  font-size: 11px;
  font-weight: 700;
  color: #949ba4;
}

.nobar-emoji-btn:hover {
  background: rgba(88, 101, 242, 0.25);
  border-color: rgba(88, 101, 242, 0.6);
  transform: translateY(-2px) scale(1.05);
  color: #fff;
  box-shadow: 0 4px 14px rgba(88, 101, 242, 0.35);
}

.nobar-emoji-btn:hover span.lbl {
  color: #c9cdfb;
}

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

/* Discord Chat Input Box */
.nobar-chat-form {
  display: flex;
  gap: 8px;
  align-items: center;
  background: #2b2d31;
  border-radius: 10px;
  padding: 4px 6px 4px 12px;
  border: 1.5px solid transparent;
  transition: all 0.2s;
}

.nobar-chat-form:focus-within {
  border-color: #5865F2;
  box-shadow: 0 0 12px rgba(88, 101, 242, 0.3);
}

.nobar-chat-text-input {
  flex: 1;
  padding: 8px 0;
  background: transparent;
  border: none;
  color: #f2f3f5;
  font-size: 13px;
  outline: none;
  font-family: inherit;
}

.nobar-chat-text-input::placeholder {
  color: #80848e;
}

.nobar-chat-send-btn {
  background: #5865F2;
  border: none;
  color: #fff;
  font-weight: 800;
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.nobar-chat-send-btn:hover {
  background: #4752c4;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(88, 101, 242, 0.4);
}

/* =========================================================
   NOBAR ACTIVE STRIP & MOBILE RESPONSIVE HUD (APPLE LIQUID GLASS)
   ========================================================= */
.nobar-active-strip {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(18, 19, 26, 0.92);
  border: 1px solid rgba(88, 101, 242, 0.35);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  margin-bottom: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55), inset 0 1px 1px rgba(255, 255, 255, 0.15);
  animation: fadeInChat 0.25s ease;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.nobar-strip-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-width: 0;
}

.nobar-strip-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.nobar-strip-room {
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(88, 101, 242, 0.22);
  padding: 4px 8px;
  border-radius: 8px;
  border: 1px solid rgba(88, 101, 242, 0.45);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  flex-shrink: 0;
}

.nobar-strip-room:hover {
  background: rgba(88, 101, 242, 0.35);
  border-color: #5865f2;
}

.nobar-strip-sync-info {
  font-size: 11px;
  color: #949ba4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
  min-width: 0;
}

.nobar-strip-sync-info strong {
  color: #fff;
}

.nobar-strip-btns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  width: 100%;
  box-sizing: border-box;
}

.nobar-strip-action-btn {
  padding: 7px 4px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #dbdee1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
}

.nobar-strip-action-btn svg {
  flex-shrink: 0;
}

.nobar-strip-action-btn:hover {
  background: rgba(88, 101, 242, 0.25);
  border-color: rgba(88, 101, 242, 0.5);
  color: #fff;
}

.nobar-strip-action-btn.active {
  background: rgba(88, 101, 242, 0.32);
  border-color: #5865f2;
  color: #fff;
  box-shadow: 0 0 12px rgba(88, 101, 242, 0.4);
}

.nobar-strip-action-btn.voice-btn {
  background: rgba(35, 165, 89, 0.16);
  border-color: rgba(35, 165, 89, 0.4);
  color: #57f287;
}

.nobar-strip-action-btn.voice-btn.active {
  background: rgba(35, 165, 89, 0.36);
  border-color: #57f287;
  color: #fff;
  box-shadow: 0 0 12px rgba(35, 165, 89, 0.45);
}

.nobar-strip-action-btn.video-btn {
  background: rgba(88, 101, 242, 0.18);
  border-color: rgba(88, 101, 242, 0.4);
  color: #c9cdfb;
}

.nobar-strip-action-btn.video-btn.active {
  background: rgba(88, 101, 242, 0.38);
  border-color: #5865f2;
  color: #fff;
  box-shadow: 0 0 12px rgba(88, 101, 242, 0.45);
}

.nobar-strip-action-btn.chat-btn.active {
  background: rgba(229, 169, 60, 0.22);
  border-color: rgba(229, 169, 60, 0.55);
  color: #fbbf24;
  box-shadow: 0 0 12px rgba(229, 169, 60, 0.35);
}

.nobar-strip-action-btn.leave {
  color: #ed4245;
  border-color: rgba(237, 66, 69, 0.4);
  background: rgba(237, 66, 69, 0.14);
  padding: 4px 10px;
  font-size: 11px;
  width: auto;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.nobar-strip-action-btn.leave:hover {
  background: #ed4245;
  color: #fff;
}

@media (min-width: 768px) {
  .nobar-active-strip {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
  }
  .nobar-strip-top-row {
    width: auto;
    flex: 1;
    justify-content: flex-start;
    gap: 12px;
  }
  .nobar-strip-btns {
    display: flex;
    align-items: center;
    width: auto;
    gap: 8px;
  }
  .nobar-strip-action-btn {
    width: auto;
    padding: 6px 12px;
    font-size: 12px;
  }
}

/* Responsive adjustments for Nobar Chat Panel on Mobile */
@media (max-width: 640px) {
  .nobar-chat-panel {
    min-height: 380px;
    max-height: 480px;
    border-radius: 14px;
    margin-top: 6px;
  }
  .nobar-chat-header {
    padding: 8px 10px;
    gap: 6px;
  }
  .nobar-chat-room-badge {
    max-width: 90px;
    font-size: 12px;
  }
  .nobar-chat-header-actions {
    gap: 4px;
  }
  .nobar-discord-btn {
    padding: 5px 6px;
    font-size: 10.5px;
    gap: 3px;
  }
  .nobar-voice-info-row {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .nobar-voice-status {
    justify-content: center;
    font-size: 11px;
  }
  .nobar-voice-controls {
    display: flex;
    justify-content: center;
    width: 100%;
    gap: 6px;
  }
  .nobar-voice-ctrl-btn {
    flex: 1;
    justify-content: center;
    padding: 6px 4px;
    font-size: 11px;
  }
  .nobar-chat-messages {
    padding: 8px 10px;
    gap: 8px;
  }
  .nobar-msg {
    gap: 8px;
    padding: 3px 4px;
  }
  .nobar-avatar {
    width: 30px;
    height: 30px;
    font-size: 11.5px;
  }
  .nobar-msg-user {
    font-size: 12px;
  }
  .nobar-msg-bubble {
    font-size: 12.5px;
  }
  .nobar-chat-input-bar {
    padding: 8px 10px;
  }
  .nobar-soundboard-header {
    flex-wrap: wrap;
    gap: 4px;
  }
  .nobar-soundboard-title {
    font-size: 10px;
  }
  .nobar-sfx-toggle-btn {
    padding: 2px 6px;
    font-size: 10px;
  }
  .nobar-emoji-btn {
    padding: 4px 8px;
    font-size: 14px;
  }
  .nobar-emoji-btn span.lbl {
    font-size: 10px;
  }
  .nobar-chat-form {
    padding: 3px 4px 3px 10px;
  }
  .nobar-chat-text-input {
    font-size: 12.5px;
    padding: 6px 0;
  }
  .nobar-chat-send-btn {
    padding: 6px 10px;
    font-size: 11.5px;
  }
}

@media (max-width: 420px) {
  .nobar-discord-btn .nobar-btn-label {
    display: none;
  }
  .nobar-discord-btn {
    padding: 5px 6px;
  }
  .nobar-modal-tabs {
    gap: 4px;
    padding: 3px;
  }
  .nobar-tab-btn {
    padding: 6px 4px;
    font-size: 11px;
    gap: 4px;
  }
  .nobar-tab-btn svg {
    width: 12px;
    height: 12px;
  }
}

@media (max-width: 350px) {
  .header {
    padding: 8px 8px;
    gap: 6px;
  }
  .nav-nobar-btn {
    padding: 5px 8px;
    font-size: 11px;
    min-height: 32px;
  }
  .brand-logo-text {
    font-size: 12px;
  }
  .nobar-active-strip {
    padding: 8px 10px;
  }
  .nobar-strip-action-btn {
    padding: 6px 2px;
    font-size: 10px;
    gap: 3px;
  }
  .nobar-strip-action-btn svg {
    width: 12px;
    height: 12px;
  }
}

.wrap { width: min(100%, 1280px); padding: 20px clamp(12px, 4vw, 48px) 64px; }
.player-box { border-radius: 12px; box-shadow: none; }
.servers {
  margin-top: 14px;
  border-radius: 12px;
  background: #10171d;
  box-shadow: none;
}
.servers-head-left { flex-wrap: wrap; }
.server-btn { min-height: 44px; border-radius: 8px; box-shadow: none; }
.server-btn.active {
  color: #101c1a;
  background: #8af0db;
  border-color: #8af0db;
  box-shadow: inset 0 1px 0 #ffffff70;
}
.server-help, .playback-options > summary {
  min-height: 44px;
  padding: 10px 12px;
  cursor: pointer;
  color: #d1d8de;
}
.server-help {
  border: 1px solid #ffffff20;
  border-radius: 8px;
  background: #ffffff0c;
  backdrop-filter: blur(12px);
}
.info {
  margin-top: 24px;
  border: 0;
  border-top: 1px solid #ffffff20;
  background: transparent;
  border-radius: 0;
  backdrop-filter: none;
  box-shadow: none;
}
.info-body { margin: 0; padding: 22px 0 12px; gap: 14px; }
.info-top-row { align-items: center; gap: 16px; }
.info-top-row .info-poster {
  width: 68px;
  min-width: 68px;
  height: 102px;
  border-radius: 8px;
  box-shadow: none;
}
.info-title { margin-bottom: 8px; letter-spacing: -.035em; overflow-wrap: anywhere; }
.info-meta, .info-genres { margin-bottom: 4px; }
.info-meta .pill, .info-genres span {
  background: transparent;
  border: 0;
  color: #c5ced3;
  padding: 0;
}
.info-genres span + span::before { content: '·'; margin-right: 7px; color: #a9b4ba; }
.synopsis-title { margin-bottom: 6px; font-size: 16px; }
.info-desc { max-width: 70ch; }
.info-actions { margin-top: 0; gap: 8px; }
.info-actions .btn { min-height: 44px; border-radius: 8px; box-shadow: none; }
.playback-options { border-block: 1px solid #ffffff20; margin-top: 14px; }
.playback-options .player-speed-bar { margin: 0 0 12px; }
:focus-visible { outline: 2px solid #6ff0d7; outline-offset: 3px; }

.servers {
  padding: 16px;
  background: #11191f;
}
.servers-head { flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 12px; }
.servers-head-left { align-items: baseline; min-width: 0; }
.servers-head-left strong { font-size: 13px; color: #e2eee9; }
.source-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.source-actions button {
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 8px;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
}
.source-actions button[hidden] { display: none; }
.source-retry { color: #e0e8e5; border: 1px solid #ffffff26; background: #ffffff0a; }
.source-next {
  color: #152c25;
  border: 1px solid #e4fff4;
  background: #bbe8d7;
  box-shadow: inset 0 1px 0 #ffffffaa;
}
.source-retry:hover { background: #ffffff18; }
.source-next:hover { background: #d5f6ea; }
.source-status { min-height: 1.5em; margin-top: 8px; color: #c4d2d1; font-size: 13px; line-height: 1.5; }
.server-list { gap: 8px; }
.server-btn { padding: 6px 12px; }
.server-btn.active .server-btn-tag { color: #193c32; }
@media (max-width: 600px) {
  .servers { padding: 12px; }
  .source-actions { width: 100%; }
  .source-actions button { flex: 1 1 auto; }
}
