:root {
  --bg: #0a0a0a;
  --surface: #111111;
  --card: #1a1a1a;
  --gold: #FFB900;
  --gold-dark: #cc9400;
  --text: #ffffff;
  --text-muted: #888888;
  --border: #2a2a2a;
  --radius: 8px;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
  min-height: 100vh;
}

body[dir="rtl"] {
  font-family: 'Segoe UI', 'Arabic UI Text', Tahoma, Arial, sans-serif;
}

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

/* ── Navbar ─────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 10, 10, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.nav-start { display: flex; align-items: center; gap: 2rem; }
.nav-logo  { color: var(--gold); font-size: 1.4rem; font-weight: bold; }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a { color: var(--text-muted); transition: color .2s; }
.nav-links a:hover { color: var(--gold); }
.nav-actions { display: flex; gap: .75rem; align-items: center; }

/* ── Buttons ────────────────────────────────── */
.btn {
  padding: .55rem 1.2rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  font-size: .9rem;
  font-weight: 600;
  transition: all .2s;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  text-decoration: none;
}
.btn-gold    { background: var(--gold); color: #000; }
.btn-gold:hover { background: var(--gold-dark); }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-danger  { background: #dc2626; color: #fff; }
.btn-danger:hover { background: #b91c1c; }
.btn-sm { padding: .35rem .8rem; font-size: .8rem; }
.btn-block { width: 100%; justify-content: center; }

/* ── Badges ─────────────────────────────────── */
.badge {
  padding: .18rem .55rem;
  border-radius: 4px;
  font-size: .75rem;
  font-weight: 700;
  display: inline-block;
}
.badge-gold { background: var(--gold); color: #000; }
.badge-dark { background: rgba(255,255,255,.15); color: #fff; }
.badge-age  { background: rgba(220,38,38,.8); color: #fff; border: 1px solid rgba(220,38,38,.5); }

/* ── Hero ───────────────────────────────────── */
.hero { position: relative; height: 100vh; overflow: hidden; }

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .9s ease;
  pointer-events: none;
}
.hero-slide.active { opacity: 1; pointer-events: auto; }

.hero-bg { width: 100%; height: 100%; object-fit: cover; }
.hero-bg-plain { width: 100%; height: 100%; background: linear-gradient(135deg,#1a1a2e,#16213e,#0f3460); }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,.85) 40%, transparent 100%);
}
[dir="rtl"] .hero-overlay {
  background: linear-gradient(to left, rgba(0,0,0,.85) 40%, transparent 100%);
}

.hero-content {
  position: absolute;
  bottom: 14%;
  padding: 0 4rem;
  max-width: 620px;
}
[dir="ltr"] .hero-content { left: 0; text-align: left; }
[dir="rtl"] .hero-content { right: 0; text-align: right; }

.hero-meta { display: flex; gap: .65rem; align-items: center; flex-wrap: wrap; margin-bottom: 1rem; }
[dir="rtl"] .hero-meta { justify-content: flex-end; }

.hero-title { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; line-height: 1.2; margin-bottom: .7rem; }
.hero-desc  { color: #ccc; margin-bottom: 1.4rem; line-height: 1.65; font-size: .98rem; }

.hero-dots {
  position: absolute;
  bottom: 7%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: .5rem;
}
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.35);
  cursor: pointer;
  transition: all .3s;
}
.dot.active { width: 26px; border-radius: 4px; background: var(--gold); }

/* ── Sections ───────────────────────────────── */
.section { padding: 1.5rem 2rem; }
.section-title {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 1.1rem;
  border-inline-start: 4px solid var(--gold);
  padding-inline-start: .7rem;
}

/* ── Scroll Row ─────────────────────────────── */
.scroll-row {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: .5rem;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) var(--surface);
}
.scroll-row::-webkit-scrollbar { height: 4px; }
.scroll-row::-webkit-scrollbar-track { background: var(--surface); }
.scroll-row::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 2px; }

/* ── Content Card ───────────────────────────── */
.content-card {
  flex-shrink: 0;
  width: 155px;
  cursor: pointer;
  transition: transform .2s;
  display: block;
  color: inherit;
  text-decoration: none;
}
.content-card:hover { transform: scale(1.06); }

.card-poster {
  width: 155px;
  height: 232px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  position: relative;
}
.card-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-poster-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg,#1a1a2e,#16213e,#0f3460);
  font-size: 2.5rem;
  color: rgba(255,255,255,.25);
}
.card-new-badge { position: absolute; top: .45rem; inset-inline-start: .45rem; }
.card-title {
  margin-top: .45rem;
  font-size: .82rem;
  font-weight: 500;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.card-year { color: var(--text-muted); font-size: .75rem; text-align: center; margin-top: .15rem; }

/* ── Content Grid ───────────────────────────── */
.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  gap: 1.25rem;
}
.content-grid .content-card { width: 100%; }
.content-grid .card-poster  { width: 100%; }

/* ── Filter Tabs ────────────────────────────── */
.filter-tabs { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.filter-tab {
  padding: .38rem 1rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-size: .83rem;
  transition: all .2s;
}
.filter-tab.active,
.filter-tab:hover { background: var(--gold); color: #000; border-color: var(--gold); }

/* ── Detail Hero ────────────────────────────── */
.detail-hero {
  position: relative;
  min-height: 65vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: 3rem;
}
.detail-hero-bg { position: absolute; inset: 0; overflow: hidden; }
.detail-hero-bg img { width: 100%; height: 100%; object-fit: cover; filter: blur(2px) brightness(.7); }
.detail-hero-bg .no-poster { width: 100%; height: 100%; background: linear-gradient(135deg,#1a1a2e,#16213e,#0f3460); }
.detail-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg) 28%, rgba(0,0,0,.55) 100%);
}

.detail-content { position: relative; padding: 0 4rem; max-width: 780px; }
[dir="rtl"] .detail-content { margin-inline-start: auto; text-align: right; }
[dir="ltr"] .detail-content { text-align: left; }

.detail-meta    { display: flex; gap: .7rem; flex-wrap: wrap; align-items: center; margin-bottom: 1rem; }
[dir="rtl"] .detail-meta { justify-content: flex-end; }
.detail-title   { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; margin-bottom: .9rem; }
.detail-actions { display: flex; gap: 1rem; align-items: center; margin-bottom: 1.4rem; }
[dir="rtl"] .detail-actions { justify-content: flex-end; }
.detail-desc    { color: #ccc; line-height: 1.75; max-width: 600px; }

/* ── Episodes ───────────────────────────────── */
.episodes-section { padding: 2rem 4rem; }
.season-block { margin-bottom: 1.2rem; }
.season-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .9rem 1.1rem;
  background: var(--surface);
  border-radius: var(--radius);
  cursor: pointer;
  border: 1px solid var(--border);
  margin-bottom: .5rem;
  user-select: none;
}
.season-header:hover { border-color: var(--gold); }
.season-header span { font-weight: 600; }
.season-arrow { transition: transform .3s; display: inline-block; }
.season-body.collapsed { display: none; }

.episode-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .8rem 1rem;
  background: var(--card);
  border-radius: var(--radius);
  margin-bottom: .45rem;
  transition: background .2s;
}
.episode-item:hover { background: #222; }
.episode-num  { color: var(--gold); font-weight: 700; font-size: 1.15rem; min-width: 2.2rem; text-align: center; }
.episode-info { flex: 1; }
.episode-title { font-weight: 600; font-size: .9rem; }
.episode-desc  { color: var(--text-muted); font-size: .8rem; margin-top: .15rem; }
.episode-dur   { color: var(--text-muted); font-size: .8rem; white-space: nowrap; }

/* ── Player ─────────────────────────────────── */
.player-page { background: #000; min-height: 100vh; }
.player-wrapper {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.player-wrapper video { width: 100%; height: 100%; object-fit: contain; display: block; }

.player-top-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  background: linear-gradient(to bottom, rgba(0,0,0,.8), transparent);
  transition: opacity .35s;
}
.player-title { color: #fff; font-weight: 600; font-size: .95rem; }

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  cursor: pointer;
}
.player-controls {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 10;
  background: linear-gradient(to top, rgba(0,0,0,.92), transparent);
  padding: 3rem 1.5rem 1.2rem;
  transition: opacity .35s;
}
.player-controls.hidden, .player-top-bar.hidden { opacity: 0; pointer-events: none; }

.progress-bar {
  width: 100%;
  height: 5px;
  background: rgba(255,255,255,.25);
  border-radius: 4px;
  cursor: pointer;
  margin-bottom: 1.2rem;
  position: relative;
  transition: transform 0.2s, height 0.2s;
}
.progress-bar:hover {
  height: 7px;
}
.progress-bar::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 20px;
  transform: translateY(-50%);
  background: transparent;
  cursor: pointer;
}
.progress-fill { 
  height: 100%; 
  background: var(--gold); 
  border-radius: 4px; 
  pointer-events: none; 
  width: 0%; 
  position: relative;
  box-shadow: 0 0 10px rgba(255, 184, 0, 0.5);
}
.progress-fill::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%) scale(0);
  width: 14px;
  height: 14px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 0 5px rgba(0,0,0,0.5);
}
.progress-bar:hover .progress-fill::after {
  transform: translateY(-50%) scale(1);
}

.controls-row { display: flex; align-items: center; gap: 1rem; }
.ctrl-btn {
  background: none; 
  border: none; 
  color: #fff;
  cursor: pointer; 
  padding: .5rem; 
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color .2s, transform .2s, color .2s; 
  line-height: 1;
}
.ctrl-btn svg { pointer-events: none; }
.ctrl-btn:hover { 
  background-color: rgba(255, 255, 255, 0.15);
  color: var(--gold); 
  transform: scale(1.1);
}
.ctrl-btn:active {
  transform: scale(0.95);
}
.ctrl-btn.active { color: var(--gold); }

.time-display {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.5px;
  margin-inline-end: auto;
}
.ctrl-settings {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .2rem;
}
.time-display { color: #ccc; font-size: .82rem; }

.player-settings-wrap { position: relative; display: inline-flex; align-items: center; }
.player-settings-panel {
  position: absolute;
  bottom: calc(100% + 10px);
  inset-inline-end: 0;
  min-width: 220px;
  max-width: min(92vw, 280px);
  background: rgba(12, 12, 18, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: .85rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.55);
  z-index: 30;
  backdrop-filter: blur(8px);
}
.player-settings-panel[hidden] { display: none !important; }
.settings-group + .settings-group {
  margin-top: .85rem;
  padding-top: .85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.settings-label {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--gold);
  margin-bottom: .5rem;
  font-weight: 600;
}
.settings-options { display: flex; flex-wrap: wrap; gap: .4rem; }
.settings-opt {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #eee;
  border-radius: 6px;
  padding: .35rem .65rem;
  font-size: .8rem;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.settings-opt:hover { border-color: var(--gold); color: var(--gold); }
.settings-opt.active {
  background: rgba(212, 175, 55, 0.18);
  border-color: var(--gold);
  color: var(--gold);
  font-weight: 600;
}
.settings-hint { margin: 0; font-size: .78rem; color: #999; line-height: 1.4; }
.settings-opt:disabled { opacity: .85; cursor: default; }

.settings-quality-list { display: flex; flex-direction: column; gap: 2px; width: 100%; }
.settings-quality-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: .5rem .6rem;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: #eee;
  font-size: .88rem;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.settings-quality-item:hover { background: rgba(255, 255, 255, 0.08); }
.settings-quality-item.active {
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold);
  font-weight: 600;
}
.settings-quality-check {
  opacity: 0;
  font-size: .85rem;
  color: var(--gold);
}
.settings-quality-item.active .settings-quality-check { opacity: 1; }
.settings-quality-badge {
  font-size: .6rem;
  line-height: 1;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: .12rem .3rem;
  border-radius: 3px;
  margin-inline-start: .2rem;
  max-width: 42px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ctrl-settings { flex-wrap: nowrap; gap: .15rem; }

.subtitle-overlay {
  position: absolute;
  bottom: 80px;
  left: 0; right: 0;
  text-align: center;
  z-index: 20;
  pointer-events: none;
}
.subtitle-text {
  display: inline-block;
  background: rgba(0,0,0,.82);
  color: #fff;
  padding: .3rem 1.1rem;
  border-radius: 4px;
  font-size: 1.1rem;
  max-width: 80vw;
  line-height: 1.55;
}

/* ── Auth Pages ─────────────────────────────── */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 1.2rem 2rem;
}
.auth-card {
  background: rgba(17, 17, 17, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 2.5rem;
  width: 100%;
  max-width: 430px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}
.auth-logo { text-align: center; margin-bottom: 1.6rem; }
.auth-logo-icon {
  width: 62px; height: 62px;
  background: rgba(255,185,0,.12);
  border: 1px solid var(--gold);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto .8rem;
  font-size: 1.6rem;
}
.auth-title { font-size: 1.7rem; font-weight: 700; text-align: center; margin-bottom: .2rem; }
.auth-sub   { color: var(--text-muted); text-align: center; font-size: .88rem; }
.auth-link  { text-align: center; margin-top: 1rem; font-size: .88rem; color: var(--text-muted); }
.auth-link a { color: var(--gold); }
.alert { padding: .7rem 1rem; border-radius: var(--radius); margin-bottom: 1rem; font-size: .88rem; }
.alert-error   { background: rgba(220,38,38,.15); color: #f87171; border: 1px solid rgba(220,38,38,.3); }
.alert-success { background: rgba(34,197,94,.15); color: #4ade80; border: 1px solid rgba(34,197,94,.3); }

/* ── Form ───────────────────────────────────── */
.form-group { margin-bottom: 1.15rem; }
.form-label { display: block; margin-bottom: .38rem; font-size: .88rem; font-weight: 500; }
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: .62rem 1rem;
  background: #0a0a0a;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: .92rem;
  transition: border-color .2s;
  font-family: inherit;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus { outline: none; border-color: var(--gold); }
.form-input::placeholder,
.form-textarea::placeholder { color: var(--text-muted); }
.form-textarea { min-height: 90px; resize: vertical; }
.form-check { display: flex; align-items: center; gap: .5rem; }
.form-check input { accent-color: var(--gold); width: 1rem; height: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ── Admin ──────────────────────────────────── */
.admin-layout { display: flex; min-height: 100vh; padding-top: 60px; }
.admin-sidebar {
  width: 235px;
  flex-shrink: 0;
  background: var(--surface);
  border-inline-end: 1px solid var(--border);
  padding: 1.5rem 1rem;
  position: sticky;
  top: 60px;
  height: calc(100vh - 60px);
  overflow-y: auto;
}
.admin-sidebar h3 { color: var(--text-muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .6rem; padding: 0 .5rem; }
.admin-sidebar a {
  display: block;
  padding: .68rem 1rem;
  color: var(--text-muted);
  border-radius: var(--radius);
  margin-bottom: .2rem;
  transition: all .2s;
  font-size: .9rem;
}
.admin-sidebar a:hover,
.admin-sidebar a.active { background: rgba(255,185,0,.1); color: var(--gold); }
.admin-main { flex: 1; padding: 2rem; min-width: 0; }
.admin-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 1.5rem; }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1.1rem; margin-bottom: 2rem; }
.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  text-align: center;
}
.stat-number { font-size: 2.4rem; font-weight: 800; color: var(--gold); }
.stat-label  { color: var(--text-muted); font-size: .85rem; margin-top: .25rem; }

.table-wrap { overflow-x: auto; }
.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: .88rem;
}
.data-table th {
  background: var(--card);
  padding: .75rem 1rem;
  text-align: inherit;
  font-weight: 600;
  color: var(--text-muted);
}
.data-table td { padding: .7rem 1rem; border-top: 1px solid var(--border); }
.data-table tr:hover td { background: rgba(255,255,255,.02); }
.row-actions { display: flex; gap: .4rem; }

/* ── Profile ────────────────────────────────── */
.profile-page { max-width: 680px; margin: 0 auto; padding: 5.5rem 2rem 2rem; }
.profile-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 2rem; }
.avatar-wrap { text-align: center; margin-bottom: 1.5rem; }
.avatar-img {
  width: 100px; height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gold);
}
.avatar-placeholder {
  width: 100px; height: 100px;
  border-radius: 50%;
  background: var(--card);
  border: 3px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem;
  margin: 0 auto .8rem;
}

/* ── Toast ──────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: #000;
  padding: .7rem 1.6rem;
  border-radius: var(--radius);
  font-weight: 700;
  z-index: 9999;
  display: none;
  white-space: nowrap;
}
.toast.show { display: block; animation: fadeUp .3s ease; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateX(-50%) translateY(10px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ── Modal ──────────────────────────────────── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.72);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  width: 90%;
  max-width: 420px;
}
.modal-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 1.4rem; }
.modal-actions { display: flex; gap: .75rem; justify-content: flex-end; margin-top: 1.2rem; }

/* ── Page header ────────────────────────────── */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.4rem;
}

/* ── Responsive ─────────────────────────────── */
@media (max-width: 768px) {
  .hero-title  { font-size: 1.7rem; }
  .hero-content { padding-inline: 1.2rem; }
  .detail-content, .episodes-section { padding-inline: 1.2rem; }
  .navbar { padding: .75rem 1rem; }
  .nav-links { display: none; }
  .admin-sidebar { display: none; }
  .admin-layout { display: block; }
  .admin-main { padding: 1rem; }
  .section { padding: 1rem; }
  .content-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
  .form-row { grid-template-columns: 1fr; }
}

/* ── OTP Steps ──────────────────────────────── */
.otp-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 1.8rem;
}
.otp-step {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--card);
  border: 2px solid var(--border);
  color: var(--text-muted);
  font-weight: 700;
  font-size: .85rem;
  display: flex; align-items: center; justify-content: center;
  transition: all .3s;
}
.otp-step.active { background: var(--gold); border-color: var(--gold); color: #000; }
.otp-step.done   { background: #22c55e;     border-color: #22c55e;     color: #000; }
.otp-step-line   { flex: 1; height: 2px; background: var(--border); max-width: 60px; }

/* ── Continue Watching Cards ────────────────── */
.cw-card .card-poster { position: relative; }
.cw-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity .25s;
  border-radius: var(--radius);
}
.cw-card:hover .cw-overlay { opacity: 1; }
.cw-play {
  font-size: 2.2rem;
  color: var(--gold);
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.8));
}
.cw-progress-bar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: rgba(255,255,255,.2);
  border-radius: 0 0 var(--radius) var(--radius);
}
.cw-progress-fill {
  height: 100%;
  background: var(--gold);
  border-radius: inherit;
  transition: width .3s;
}

/* ── Stars / Ratings ────────────────────────── */
.star {
  color: var(--border);
  font-size: 1.25rem;
  cursor: pointer;
  transition: color .15s, transform .15s;
  display: inline-block;
  line-height: 1;
}
.star.active, .star.hover { color: var(--gold); transform: scale(1.15); }

/* Content detail rating widget */
.content-rating-widget {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
}
.rating-label { color: var(--text-muted); font-size: .88rem; }
.stars-row { display: flex; gap: .1rem; }
.rating-avg-badge {
  background: rgba(255,185,0,.12);
  border: 1px solid rgba(255,185,0,.3);
  color: var(--gold);
  font-weight: 700;
  padding: .2rem .65rem;
  border-radius: 20px;
  font-size: .85rem;
}

/* Season stars */
.season-stars { display: flex; gap: .05rem; align-items: center; }
.season-stars .star { font-size: 1rem; }

/* Player rating */
.player-rating {
  display: flex;
  align-items: center;
  gap: .08rem;
  margin-inline: auto;
}
.player-rating .star { font-size: 1rem; color: rgba(255,255,255,.3); }
.player-rating .star.active, .player-rating .star.hover { color: var(--gold); }
.player-rating .rating-avg { color: #ccc; font-size: .75rem; margin-inline-start: .4rem; }

/* ── Resume Banner ──────────────────────────────────────── */
.resume-banner {
  position: absolute;
  top: 4.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  background: rgba(20,20,20,.92);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  padding: .6rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  white-space: nowrap;
  color: #fff;
  font-size: .88rem;
  animation: fadeUp .3s ease;
}

/* ── Card Panel ─────────────────────────────────────────── */
.card-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

/* ── Page Hero Mini ─────────────────────────────────────── */
.page-hero-mini {
  text-align: center;
  padding: 2rem 0 1.5rem;
  margin-bottom: 1.5rem;
}
.page-hero-mini h1 { font-size: 1.6rem; margin: .5rem 0; }

/* ── Suggestion Card ────────────────────────────────────── */
.suggestion-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem;
  margin-bottom: 1rem;
  transition: border-color .2s;
}
.suggestion-card:hover { border-color: rgba(255,185,0,.3); }
.suggestion-card.has-reply { border-color: rgba(34,197,94,.25); }
.suggestion-card.new-item  { border-color: var(--gold); background: rgba(255,185,0,.04); }

.suggestion-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: .8rem;
  flex-wrap: wrap;
}
.suggestion-body {
  color: var(--text-muted);
  font-size: .88rem;
  line-height: 1.6;
  margin: .6rem 0;
}
.suggestion-date {
  color: var(--text-muted);
  font-size: .75rem;
  margin-top: .8rem;
}

/* ── Admin Reply Box ────────────────────────────────────── */
.admin-reply-box {
  background: rgba(255,185,0,.07);
  border: 1px solid rgba(255,185,0,.25);
  border-radius: var(--radius);
  padding: .9rem 1rem;
  margin-top: .8rem;
  font-size: .86rem;
  line-height: 1.65;
}
.admin-reply-label {
  font-weight: 700;
  color: var(--gold);
  margin-bottom: .4rem;
  font-size: .82rem;
}

/* ── Status Badge ───────────────────────────────────────── */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: .22rem .7rem;
  border-radius: 50px;
  font-size: .75rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}
.status-pending  { background: rgba(245,158,11,.15); color: #f59e0b; border: 1px solid rgba(245,158,11,.3); }
.status-reviewed { background: rgba(99,102,241,.15); color: #818cf8; border: 1px solid rgba(99,102,241,.3); }
.status-replied  { background: rgba(34,197,94,.15);  color: #4ade80; border: 1px solid rgba(34,197,94,.3); }
.status-approved { background: rgba(34,197,94,.15);  color: #4ade80; border: 1px solid rgba(34,197,94,.3); }
.status-rejected { background: rgba(239,68,68,.15);  color: #f87171; border: 1px solid rgba(239,68,68,.3); }

/* ── Badge Count ────────────────────────────────────────── */
.badge-count {
  background: #ef4444;
  color: #fff;
  border-radius: 50px;
  padding: .12rem .5rem;
  font-size: .72rem;
  font-weight: 700;
  min-width: 20px;
  text-align: center;
  display: inline-block;
}

/* ── Admin Header ───────────────────────────────────────── */
.admin-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.admin-header h1 { margin: 0; }

/* ── Admin Suggestion Card ──────────────────────────────── */
.admin-sg-card { margin-bottom: 1.2rem; }
.sg-type-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255,185,0,.12);
  font-size: 1rem;
}
.sg-suggestion { background: rgba(255,185,0,.12); }
.sg-comment    { background: rgba(99,102,241,.12); }

/* ── Comment Card ───────────────────────────────────────── */
.comment-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  margin-bottom: .9rem;
  transition: border-color .2s;
}
.comment-card:hover { border-color: rgba(255,185,0,.25); }
.comment-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .6rem;
  gap: 1rem;
}
.comment-author { font-weight: 600; font-size: .9rem; }
.comment-date   { color: var(--text-muted); font-size: .75rem; }
.comment-body   { color: var(--text-muted); font-size: .88rem; line-height: 1.65; }

/* ── Poster Upload Zone ─────────────────────────────────── */
.poster-upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.poster-upload-zone:hover {
  border-color: var(--gold);
  background: rgba(255,185,0,.04);
}

/* ── Player Watermark ───────────────────────────────────── */
.player-watermark {
  position: absolute;
  z-index: 8;
  color: rgba(255,255,255,.08);
  font-size: .9rem;
  font-weight: 700;
  pointer-events: none;
  user-select: none;
  transition: all 3s ease;
  top: 20%;
  left: 10%;
}

/* ── Hamburger / Mobile Nav ─────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  border: none;
  background: none;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all .3s;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  top: 0;
  inset-inline-start: -300px;
  width: 280px;
  height: 100vh;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-inline-end: 1px solid rgba(255, 255, 255, 0.05);
  padding: 5rem 1.5rem 2rem;
  z-index: 98;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 5px 0 25px rgba(0,0,0,0.5);
  overflow-y: auto;
}
[dir="rtl"] .mobile-menu { box-shadow: -5px 0 25px rgba(0,0,0,0.5); }
.mobile-menu.open { transform: translateX(300px); }
[dir="rtl"] .mobile-menu.open { transform: translateX(-300px); }
.mobile-menu a, .mobile-menu button {
  padding: .75rem 1rem;
  border-radius: var(--radius);
  color: var(--text);
  font-size: .95rem;
  border: none;
  background: none;
  text-align: inherit;
  cursor: pointer;
  transition: background .2s;
  width: 100%;
}
.mobile-menu a:hover, .mobile-menu button:hover { background: var(--card); color: var(--gold); }

/* ── Footer ─────────────────────────────────────────────── */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 2rem;
  margin-top: 3rem;
  text-align: center;
  color: var(--text-muted);
  font-size: .85rem;
}
.site-footer strong { color: var(--gold); }

/* ── Subscription Not Active Banner ──────────────────────── */
.sub-required-banner {
  background: rgba(239,68,68,.08);
  border: 1px solid rgba(239,68,68,.2);
  border-radius: var(--radius);
  padding: .8rem 1.2rem;
  color: #f87171;
  font-size: .88rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}

/* ── Watermark (player) ─────────────────────────────────── */
@keyframes watermarkMove {
  0%   { top: 10%; left: 5%; }
  25%  { top: 70%; left: 60%; }
  50%  { top: 20%; left: 80%; }
  75%  { top: 80%; left: 15%; }
  100% { top: 10%; left: 5%; }
}

/* ── Responsive Updates & Professional Mobile UI/UX (<= 768px & <= 480px) ── */
@media (max-width: 768px) {
  .btn, .form-input, .form-select { min-height: 48px; }
  .hamburger { display: flex !important; }
  .desktop-search { display: none !important; }
  .nav-actions .btn:not(.hamburger) { display: none !important; }
  .plans-layout { grid-template-columns: 1fr !important; }
  .form-row-3 { grid-template-columns: 1fr !important; }
  .suggestion-head { flex-direction: column; gap: .5rem; }

  /* Hero section adjustments */
  .hero-content { padding: 1.5rem 1.2rem !important; }
  .hero-title { font-size: 1.8rem !important; line-height: 1.3 !important; }
  .hero-desc { font-size: 0.9rem !important; -webkit-line-clamp: 3; line-clamp: 3; }

  /* Content Pages & Detail Views */
  .detail-content { padding: 0 1.2rem !important; max-width: 100% !important; }
  .detail-title { font-size: 1.6rem !important; }
  .detail-actions { flex-wrap: wrap; gap: 0.8rem !important; }
  .detail-actions .btn { flex: 1 1 100%; justify-content: center; text-align: center; }
  .episodes-section { padding: 1.5rem 1.2rem !important; }
  .episode-item { flex-direction: column; align-items: flex-start; gap: 0.8rem !important; padding: 1rem !important; }
  .episode-thumb { width: 100% !important; max-width: none !important; aspect-ratio: 16/9; }
  .episode-actions { width: 100%; justify-content: flex-end; }

  /* Content Grid & Filters */
  .filter-tabs { overflow-x: auto; padding-bottom: 0.5rem; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; }
  .filter-tab { flex-shrink: 0; }
  .content-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important; gap: 1rem !important; }

  /* YouTube / Player Layout on Mobile */
  .yt-layout { grid-template-columns: 1fr !important; gap: 1.5rem !important; }
  .yt-main .player-wrapper { border-radius: 0 !important; }
  .yt-title { font-size: 1.25rem !important; }
  .yt-meta-row { flex-direction: column; align-items: flex-start !important; gap: 0.8rem; }

  /* ── Sleek Native Mobile Player Controls (`.player-controls.mockup-style`) ── */
  .player-controls.mockup-style {
    bottom: 10px !important;
    width: 96% !important;
    max-width: none !important;
    padding: 10px 12px !important;
    border-radius: 12px !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
  }

  /* Seek bar spans full width at the top of the controls block */
  .mockup-style .controls-center {
    width: 100% !important;
    order: -1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    margin-bottom: 2px !important;
  }
  .mockup-style .progress-bar-wrap {
    flex-grow: 1 !important;
    padding: 0 4px !important;
  }
  .mockup-style .progress-bar {
    height: 6px !important;
  }
  .mockup-style .progress-fill::after {
    opacity: 1 !important; /* Always show scrubber thumb on touch devices */
    width: 16px !important;
    height: 16px !important;
    right: -8px !important;
  }
  .mockup-style .time-display {
    font-size: 0.78rem !important;
    min-width: 38px !important;
  }

  /* Buttons row below the seek bar */
  .mockup-style .controls-left,
  .mockup-style .controls-right {
    gap: 8px !important;
  }
  .mockup-style .ctrl-btn {
    padding: 6px !important;
  }
  .mockup-style .play-main-btn {
    width: 40px !important;
    height: 40px !important;
  }
  .mockup-style .play-main-btn svg {
    width: 22px !important;
    height: 22px !important;
  }

  /* Hide volume slider & inline star ratings on mobile (hardware volume & bottom meta area handled) */
  .vol-group { display: none !important; }
  .player-rating { display: none !important; }

  /* Responsive Settings Panel inside mobile player */
  .mockup-style .player-settings-panel {
    position: fixed !important;
    bottom: 70px !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    width: calc(100vw - 32px) !important;
    max-width: 320px !important;
    max-height: 65vh !important;
    overflow-y: auto !important;
    z-index: 999 !important;
    box-shadow: 0 15px 40px rgba(0,0,0,0.85) !important;
  }
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.5rem !important; }
  .section-title { font-size: 1.25rem !important; }
  .content-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 0.75rem !important; }
  .card-poster { border-radius: 8px !important; }
  .detail-content { padding: 0 0.8rem !important; }
  .episodes-section { padding: 1.2rem 0.8rem !important; }
  .player-controls.mockup-style { padding: 8px 10px !important; bottom: 6px !important; }
}

/* -- YouTube Layout --------------------------------------- */
.yt-player-page { background: var(--bg); height: auto; overflow: auto; }
.yt-layout { display: grid; grid-template-columns: 1fr 350px; gap: 2rem; padding-bottom: 3rem; }
.yt-main { display: flex; flex-direction: column; gap: 1rem; }
.yt-sidebar { display: flex; flex-direction: column; gap: 1rem; }

@media (max-width: 1024px) {
  .yt-layout { grid-template-columns: 1fr; }
}

.yt-main .player-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
}
.yt-main .player-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.yt-main .player-overlay { position: absolute; inset: 0; }
.yt-main .player-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
}

.yt-details { display: flex; flex-direction: column; gap: 1rem; }
.yt-title { font-size: 1.4rem; font-weight: bold; }
.yt-meta-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.yt-meta-left, .yt-meta-right { display: flex; gap: .75rem; align-items: center; }

.yt-rating { display: flex; gap: 2px; align-items: center; }
.yt-rating .star { cursor: pointer; color: #444; font-size: 1.5rem; transition: color .2s; }
.yt-rating .star:hover, .yt-rating .star.active { color: var(--gold); }
.yt-rating .rating-avg { font-size: .9rem; color: var(--text-muted); margin-inline-start: .5rem; }

.yt-description-box {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1rem;
  font-size: .95rem;
  line-height: 1.6;
  color: #ccc;
}

.yt-sidebar-title { font-size: 1.2rem; margin-bottom: 1rem; }
.yt-related-list { display: flex; flex-direction: column; gap: 1rem; }
.yt-related-card { display: flex; gap: 1rem; text-decoration: none; border-radius: var(--radius); transition: background .2s; padding: .5rem; }
.yt-related-card:hover { background: var(--surface); }
.yt-related-thumb { width: 140px; aspect-ratio: 16/9; background: #222; border-radius: 4px; overflow: hidden; flex-shrink: 0; position: relative; }
.yt-related-thumb img { width: 100%; height: 100%; object-fit: cover; }
.yt-related-info { display: flex; flex-direction: column; gap: .3rem; flex: 1; overflow: hidden; }
.yt-related-title { font-size: .95rem; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.yt-related-sub { font-size: .8rem; color: var(--text-muted); }


/* MOCKUP STYLE CONTROLS */
.player-controls.mockup-style { color: #fff;
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 90%;
  max-width: 1000px;
  background: rgba(30, 30, 30, 0.5);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 16px;
  padding: 15px 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.1);
  direction: ltr; /* Force LTR for universal media layout */
  background-image: none;
}

.mockup-style .controls-left, 
.mockup-style .controls-center, 
.mockup-style .controls-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.mockup-style .controls-center {
  flex-grow: 1;
}

.mockup-style .ctrl-btn {
  padding: 8px;
  border-radius: 50%;
}

.mockup-style .play-main-btn {
  background: #fff;
  color: #000;
  width: 46px;
  height: 46px;
  padding: 0;
  transition: transform 0.2s, background 0.2s;
  box-shadow: 0 4px 15px rgba(255,255,255,0.2);
}

.mockup-style .play-main-btn:hover {
  transform: scale(1.05);
  background: #fff;
}

.mockup-style .progress-bar-wrap {
  flex-grow: 1;
  display: flex;
  align-items: center;
  padding: 0 10px;
}

.mockup-style .progress-bar {
  position: relative;
  width: 100%;
  height: 5px;
  background: rgba(255,255,255,0.2);
  border-radius: 3px;
  cursor: pointer;
  overflow: visible;
  top: auto; left: auto; right: auto; margin: 0;
}

.mockup-style .progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #fbc02d, #fff176);
  box-shadow: 0 0 10px rgba(251,192,45,0.6);
  border-radius: 3px;
  position: relative;
}

.mockup-style .progress-fill::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  background: #fff;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.2s;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.mockup-style .progress-bar:hover .progress-fill::after {
  opacity: 1;
}

.vol-group {
  display: flex;
  align-items: center;
  gap: 5px;
}

.vol-slider-wrap {
  width: 60px;
  display: flex;
  align-items: center;
}

.vol-slider {
  width: 100%;
  cursor: pointer;
  accent-color: #fbc02d;
  height: 4px;
}

.mockup-style .time-display {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  min-width: 45px;
  text-align: center;
}

.mockup-style .player-settings-wrap {
  margin: 0;
  position: relative;
}
.mockup-style .player-settings-panel {
  bottom: 150%;
  right: 0;
}



.sub-opts-horiz .sub-opt { width: auto; padding: 0.4rem 0.8rem; justify-content: center; }

/* ── YouTube-Grade Player Enhancements (Buffer Bar, Spinner, OSD, Tooltip, Speed Menu) ── */
.progress-buffer {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 4px;
  pointer-events: none;
  width: 0%;
  transition: width 0.25s linear;
  z-index: 1;
}
.mockup-style .progress-fill {
  z-index: 2;
}

/* Hover time code preview tooltip on seek bar */
.progress-tooltip {
  position: absolute;
  bottom: 22px;
  transform: translateX(-50%);
  background: rgba(18, 18, 18, 0.95);
  color: #fff;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.15);
  opacity: 0;
  transition: opacity 0.15s ease;
  z-index: 20;
}
.progress-bar:hover .progress-tooltip {
  opacity: 1;
}

/* YouTube Center Loading Spinner */
.yt-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  z-index: 15;
  pointer-events: none;
  display: none;
}
.yt-spinner::before {
  content: '';
  box-sizing: border-box;
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.15);
  border-top-color: var(--gold, #fbc02d);
  animation: yt-spin 0.8s linear infinite;
}
@keyframes yt-spin {
  to { transform: rotate(360deg); }
}

/* On-Screen Display (OSD) Flash Indicator */
.yt-osd {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  padding: 18px 28px;
  border-radius: 50px;
  font-size: 1.3rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 25;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 30px rgba(0,0,0,0.6);
}
.yt-osd.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Speed / Rate selector buttons in settings panel */
.speed-opts-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.speed-opt {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ddd;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 500;
}
.speed-opt:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}
.speed-opt.active {
  background: var(--gold, #fbc02d);
  color: #000;
  font-weight: bold;
  border-color: var(--gold, #fbc02d);
  box-shadow: 0 2px 8px rgba(251, 192, 45, 0.4);
}

