/* vid — design în stil Lampa (dark, sidebar, rânduri orizontale, accent galben) */

:root {
  --bg: #1d1f20;
  --bg-content: #171819;
  --card: #262829;
  --card-hover: #353535;
  --text: #fff;
  --sub: #a3a3a3; /* contrast mai bun pentru textele mici */
  --accent: #ffe216;
  --accent-dark: #e6c514;
  --success: #76e67a;
  --danger: #ea4e4e;
  --radius: 14px;
  --nav-w: 92px;
}

* { box-sizing: border-box; }
.hidden { display: none !important; }

/* indicator „mai există conținut jos" — gradient care dispare la capăt */
.scroll-fade {
  position: fixed; left: 0; right: 0; bottom: 0;
  height: 110px;
  background: linear-gradient(transparent, rgba(10, 10, 10, 0.85));
  pointer-events: none;
  z-index: 49;
}
.eps-more-wrap { display: flex; justify-content: center; margin: 0 1.8rem 0.8rem; }

/* următorul episod: apare cu 30s înainte de final, auto-avans cu countdown */
.next-ep {
  display: flex; align-items: center; justify-content: center; gap: 0.7rem;
  margin: 0.6rem 0;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 0.55rem 0.9rem;
}
.next-count { color: var(--sub); font-size: 0.85rem; min-width: 84px; text-align: center; }

/* ---------- trailer embed în modal ---------- */
.trailer-wrap {
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}
.trailer-wrap iframe {
  width: 100%; height: 100%;
  border: 0;
  display: block;
}

/* ---------- login ---------- */
.login-overlay {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(0, 0, 0, 0.82);
  display: flex; align-items: center; justify-content: center;
}
.login-panel {
  background: var(--bg);
  border-radius: 18px;
  padding: 2rem 2.2rem;
  width: min(360px, 92vw);
  display: flex; flex-direction: column; gap: 0.9rem;
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.6);
}
.login-title { font-size: 1.2rem; font-weight: 700; text-align: center; }
#login-pass {
  background: var(--card); color: var(--text);
  border: 1px solid #2f3133; border-radius: 10px;
  padding: 0.7rem 0.9rem; font-size: 1rem; outline: none;
}
#login-pass:focus { border-color: var(--accent); }
.login-err { color: var(--danger); font-size: 0.85rem; text-align: center; }

/* ---------- fără scrollbar-uri vizibile: derularea merge (rotiță/touch), barele dispar ---------- */
* { scrollbar-width: none; -ms-overflow-style: none; }
*::-webkit-scrollbar { width: 0; height: 0; display: none; }

body {
  margin: 0;
  background: var(--bg-content);
  color: var(--text);
  font-family: "Segoe UI", -apple-system, Roboto, Arial, sans-serif;
  font-size: 16px;
}

/* ---------- NAV (sidebar desktop / bottom-bar mobil) ---------- */
#nav {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: var(--nav-w);
  background: var(--bg);
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 0;
  gap: 6px;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}
.nav-logo {
  min-width: 44px; height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  background: var(--accent);
  color: #111;
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: 0.4px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  user-select: none;
}
.nav-items { display: flex; flex-direction: column; gap: 6px; }
.nav-item {
  position: relative;
  width: 74px; height: 62px;
  flex-direction: column; gap: 5px; /* iconiță + etichetă dedesubt */
  border: none; background: none; color: var(--sub);
  cursor: pointer; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.nav-item svg { width: 27px; height: 27px; fill: currentColor; flex-shrink: 0; }
.nav-item:hover { background: var(--card); color: var(--text); }
.nav-item.active { color: var(--accent); }
.nav-item.active::before {
  content: "";
  position: absolute; left: -9px; top: 10px; bottom: 10px;
  width: 3px; border-radius: 3px;
  background: var(--accent);
}
.nav-tip { display: block; font-size: 0.68rem; font-weight: 600; line-height: 1; letter-spacing: 0.1px; }

main#content {
  margin-left: var(--nav-w);
  padding: 0 0 3rem;
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 380px;
  border-radius: 0 0 var(--radius) var(--radius);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  margin-bottom: 1.4rem;
}
.hero-backdrop {
  position: absolute; inset: -40px;
  background-size: cover;
  background-position: center 20%;
  filter: blur(28px) brightness(0.45);
  z-index: 0;
}
.hero-inner {
  position: relative; z-index: 1;
  display: flex; gap: 1.6rem;
  align-items: flex-end;
  padding: 1.8rem 2.2rem 2rem;
  width: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent 55%);
}
.hero-poster {
  width: 190px; aspect-ratio: 2 / 3;
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.55);
  flex-shrink: 0;
  cursor: pointer;
}
.hero-poster img { width: 100%; height: 100%; object-fit: cover; }
.hero-info { flex: 1; min-width: 0; }
.hero-title {
  font-size: 1.9rem; font-weight: 700;
  margin: 0 0 0.45rem; line-height: 1.2;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
  cursor: pointer;
}
.hero-meta { display: flex; gap: 1.1rem; align-items: center; color: var(--sub); font-size: 0.92rem; }
.hero-meta .stars { color: var(--accent); font-weight: 700; }
.hero-actions { display: flex; gap: 0.6rem; margin-top: 1.1rem; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 0.45rem;
  border: none; border-radius: 10px; cursor: pointer;
  padding: 0.62rem 1.35rem;
  font-size: 0.95rem; font-weight: 600;
  background: var(--accent); color: #111;
  transition: filter 0.15s, transform 0.1s;
}
.btn:active { transform: scale(0.97); }
.btn:hover { filter: brightness(1.06); }
.btn.ghost {
  background: rgba(255, 255, 255, 0.09); color: var(--text);
  backdrop-filter: blur(6px);
}
.btn.small { padding: 0.38rem 0.9rem; font-size: 0.85rem; }
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn:disabled { opacity: 0.55; cursor: default; }

/* ---------- RÂNDURI (shelves) ---------- */
.rows { padding: 0 2.2rem; }
.row { margin-bottom: 1.8rem; }
.row-title {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 1.06rem; font-weight: 700;
  margin: 0 0 0.75rem;
}
.row-more {
  color: var(--sub); font-weight: 400; font-size: 0.82rem;
  border: none; background: none; cursor: pointer;
  padding: 0.5rem 0.2rem 0.5rem 0.8rem; margin: -0.5rem 0; /* țintă mai mare la atingere */
}
.row-more:hover { color: var(--text); }

.row-scroll {
  display: flex; gap: 0.8rem;
  overflow-x: auto;
  padding-bottom: 0.4rem;
}
.row-scroll .card { flex: 0 0 148px; }

/* ---------- CARD ---------- */
.card { cursor: pointer; display: flex; flex-direction: column; }
.card:hover .card-poster { transform: scale(1.04); }
.card-poster {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: 14px;
  overflow: hidden;
  background: var(--card);
  transition: transform 0.22s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}
.card-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-poster .noimg {
  display: flex; align-items: center; justify-content: center;
  height: 100%; color: var(--sub); font-size: 0.72rem; text-align: center; padding: 0.5rem;
}
.card-rate {
  position: absolute; left: 8px; bottom: 8px;
  background: rgba(0, 0, 0, 0.72);
  border-radius: 50%;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.68rem; font-weight: 700;
  color: var(--success);
}
.card-rate.low { color: var(--danger); }
.card-tag {
  position: absolute; right: 8px; top: 8px;
  width: auto; padding: 0 7px; height: 22px; border-radius: 6px;
  background: rgba(0, 0, 0, 0.72);
  color: var(--text); font-size: 0.62rem; font-weight: 500;
  display: flex; align-items: center; justify-content: center;
}
.card-name {
  margin-top: 0.5rem;
  font-size: 0.82rem; line-height: 1.25;
  color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-sub { color: var(--sub); font-size: 0.7rem; margin-top: 2px; }
.card-sub.accent { color: var(--accent); font-weight: 600; }
/* focus vizibil la navigarea cu tastatura */
.card:focus-visible, .ep-card:focus-visible, .torrent-row:focus-visible,
.btn:focus-visible, .nav-item:focus-visible, .modal-close:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 14px;
}
.card:focus { outline: none; }
.card:focus-visible .card-poster { transform: scale(1.04); }
.card-progress {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 3px; background: rgba(255, 255, 255, 0.15);
}
.card-progress i { display: block; height: 100%; background: var(--accent); }
.card .badge-src {
  position: absolute; top: 6px; right: 6px;
  background: rgba(0, 0, 0, 0.6); color: var(--sub);
  font-size: 0.6rem; border-radius: 6px; padding: 1px 6px;
}

/* ---------- GRID normal (watchlist, search results) ---------- */
.grid-wrap { padding: 0 2.2rem; }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 1rem;
}
.view-title {
  font-size: 1.25rem; font-weight: 700;
  margin: 1.6rem 0 1rem;
}
.status {
  text-align: center; color: var(--sub); padding: 3rem 1rem; font-size: 1rem;
  overflow-wrap: anywhere; /* URL-uri lungi din mesajele de eroare nu mai lățesc pagina */
}
.status.error { color: var(--danger); }

/* ---------- SEARCH OVERLAY ---------- */
.search-overlay {
  position: fixed; inset: 0; z-index: 40;
  background: var(--bg-content);
  padding: 2rem 3rem;
  overflow-y: auto;
}
.search-box {
  display: flex; align-items: center; gap: 0.9rem;
  background: var(--card);
  border-radius: 14px;
  padding: 0.9rem 1.3rem;
  max-width: 1100px;
}
.search-box svg { width: 22px; height: 22px; fill: var(--sub); flex-shrink: 0; }
#search-input {
  flex: 1; background: none; border: none; outline: none;
  color: var(--text); font-size: 1.15rem;
}
#search-input::placeholder { color: var(--sub); }
.search-close {
  border: none; background: none; color: var(--sub);
  font-size: 1.6rem; cursor: pointer;
}
.search-close:hover { color: var(--text); }
.search-results {
  margin-top: 1.6rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 1rem;
  max-width: 1100px;
}

/* ---------- MODAL detaliu ---------- */
.modal {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(0, 0, 0, 0.7);
  display: flex; align-items: flex-start; justify-content: center;
  overflow-y: auto; padding: 2.4rem 1rem;
}
.modal-panel {
  width: min(920px, 100%);
  background: var(--bg);
  border-radius: 18px;
  padding: 0 0 1.4rem;
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.6);
  position: relative;
}
.modal-head {
  position: relative;
  border-radius: 18px 18px 0 0;
  overflow: hidden;
  padding: 1.6rem 1.8rem;
  display: flex; gap: 1.5rem;
}
.modal-backdrop {
  position: absolute; inset: -60px;
  background-size: cover; background-position: center 22%;
  filter: blur(30px) brightness(0.4);
  z-index: 0;
}
.modal-head-inner { position: relative; z-index: 1; display: flex; gap: 1.5rem; }
.modal-poster {
  align-self: flex-start; /* nu se întinde după înălțimea descrierii */
  width: 165px; aspect-ratio: 2 / 3; flex-shrink: 0;
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}
.modal-poster img { width: 100%; height: 100%; object-fit: cover; }
.modal-info h2 { margin: 0 0 0.35rem; font-size: 1.45rem; line-height: 1.2; }
.modal-original { color: var(--sub); font-size: 0.88rem; margin-bottom: 0.6rem; }
.modal-chips { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-top: 0.6rem; }
.modal-chips span {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  border-radius: 7px; padding: 2px 9px; font-size: 0.74rem;
}
.modal-desc {
  color: #cfcfcf; font-size: 0.92rem; line-height: 1.55;
  margin-top: 0.9rem;
  display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical;
  overflow: hidden;
  cursor: pointer;
}
.modal-desc.expanded { display: block; }
.modal-close {
  position: absolute; top: 12px; right: 14px;
  width: 40px; height: 40px; border-radius: 50%;
  border: none; background: rgba(0, 0, 0, 0.35); padding: 0;
  font-size: 1.8rem; line-height: 1; cursor: pointer; color: var(--text); z-index: 7;
  display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { color: var(--accent); }

.modal-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; margin: 1.3rem 1.8rem; }

/* ---------- PLAYER + TORRENȚI ---------- */
.player-box { margin: 0 1.8rem; }
.player-box video {
  width: 100%; border-radius: 12px; background: #000; outline: none;
  aspect-ratio: 16 / 9;
}
.player-box select {
  margin-top: 0.6rem;
  background: var(--card); color: var(--text);
  border: 1px solid #2f3133; border-radius: 10px;
  padding: 0.5rem 0.7rem; width: 100%;
}
.torrent-list {
  margin: 0 1.8rem;
  border-radius: 14px;
  overflow: hidden;
  background: var(--card);
}
.torrent-row {
  display: flex; align-items: center; gap: 0.9rem;
  padding: 0.6rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: background 0.12s;
}
.torrent-row:last-child { border-bottom: none; }
.torrent-row:hover { background: var(--card-hover); }
.torrent-row.playing { background: rgba(255, 226, 22, 0.08); box-shadow: inset 3px 0 0 var(--accent); }
.t-name { flex: 1; min-width: 0; }
/* numele lung al release-ului: max. 2 rânduri, întreg la hover (title) */
.t-title {
  font-size: 0.8rem; line-height: 1.3; color: #d6d6d6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; word-break: break-word;
}
.t-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.7rem;
  color: var(--sub); font-size: 0.74rem; margin-top: 0.25rem;
}
.t-seeds { color: var(--success); }
.t-src { opacity: 0.85; }
/* eticheta de calitate, primul lucru citit pe rând */
.t-q {
  flex-shrink: 0; width: 52px; text-align: center;
  border-radius: 8px; padding: 0.35rem 0;
  font-size: 0.74rem; font-weight: 800; letter-spacing: 0.2px;
  background: rgba(255, 255, 255, 0.08); color: var(--sub);
}
.t-q.q-4k { background: rgba(255, 226, 22, 0.16); color: var(--accent); }
.t-q.q-fhd { background: rgba(118, 230, 122, 0.14); color: var(--success); }
.t-q.q-hd { background: rgba(120, 170, 255, 0.14); color: #8fb6ff; }
.q-filter {
  display: flex; gap: 0.4rem; flex-wrap: wrap;
  margin: 0 1.8rem 0.7rem;
}
.q-filter button {
  border: 1px solid #2f3133; background: var(--card); color: var(--sub);
  border-radius: 999px; padding: 0.3rem 0.8rem; font-size: 0.78rem; cursor: pointer;
}
.q-filter button:hover { color: var(--text); }
.q-filter button.on { background: var(--accent); color: #111; border-color: var(--accent); font-weight: 700; }
.video-error {
  margin-top: 0.6rem; padding: 0.7rem 0.9rem;
  border-radius: 10px; font-size: 0.86rem; line-height: 1.45;
  background: rgba(234, 78, 78, 0.12); color: #ff9c9c;
}
.torrent-row .btn-play {
  background: var(--accent); color: #111;
  border: none; border-radius: 50%;
  width: 34px; height: 34px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: transform 0.12s, filter 0.12s;
}
.torrent-row .btn-play svg { fill: #111; margin-left: 1px; }
.torrent-row .btn-play:hover { transform: scale(1.1); filter: brightness(1.05); }
.resume-chip {
  margin: 1rem 1.8rem 0;
  font-size: 0.86rem; color: var(--sub);
  display: flex; align-items: center; gap: 0.5rem;
}
/* ---------- PLAYER-FIRST + AUTO-PILOT (TMDB) ---------- */
.pf-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.8rem 0.7rem;
}
.pf-title { font-size: 1.25rem; font-weight: 700; }
.pf-year { color: var(--sub); font-weight: 400; margin-left: 6px; }
.pf-actions { display: flex; gap: 0.45rem; flex-shrink: 0; }

.auto-pill {
  display: flex; align-items: center; gap: 0.5rem;
  margin: 0.7rem 1.8rem 0;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 0.5rem 0.9rem;
  font-size: 0.8rem; color: var(--sub);
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.auto-pill .pill-tag {
  background: var(--accent); color: #111;
  font-weight: 800; font-size: 0.68rem;
  border-radius: 6px; padding: 2px 7px;
  flex-shrink: 0;
}
.auto-pill .dot { color: #555; }

.player-box { max-height: none; }
.player-box video { max-height: 62vh; }
.torrent-row { border-radius: 0; }
#torrents .torrent-list { margin-top: 0.7rem; }

.info-panel {
  display: flex; gap: 1rem;
  margin: 0.9rem 1.8rem;
  padding: 0.9rem 1.1rem;
  background: var(--card);
  border-radius: 14px;
}
.info-panel .info-poster { width: 110px; border-radius: 10px; flex-shrink: 0; }
.info-panel p { color: #cfcfcf; font-size: 0.9rem; line-height: 1.55; margin: 0.4rem 0 0; }

.stream-links {
  margin: 0.8rem 1.8rem 0;
  font-size: 0.74rem; color: var(--sub);
  word-break: break-all;
}

/* ---------- MOBIL: sidebar → bottom bar ---------- */
@media (max-width: 760px) {
  #nav {
    top: auto; left: 0; right: 0; bottom: 0;
    width: auto; height: 64px;
    flex-direction: row;
    justify-content: space-around;
    padding: 4px 0 calc(4px + env(safe-area-inset-bottom));
    border-right: none; border-top: 1px solid rgba(255, 255, 255, 0.06);
  }
  .nav-logo { display: none; }
  .nav-items { flex-direction: row; gap: 2px; width: 100%; justify-content: space-around; }
  .nav-item { width: auto; flex: 1; height: 50px; }
  .nav-item.active::before { display: none; }
  .nav-item.active { background: none; }
  .nav-tip { display: block; font-size: 0.62rem; position: absolute; bottom: 3px; }
  .nav-item svg { width: 20px; height: 20px; margin-top: 4px; }
  main#content { margin-left: 0; padding-bottom: 76px; }
  .rows, .grid-wrap { padding: 0 1rem; }
  .hero-inner { padding: 1.2rem 1rem 1.4rem; gap: 1rem; }
  .hero-poster { width: 118px; }
  .hero-title { font-size: 1.3rem; }
  .search-overlay { padding: 1rem 0.8rem; }
  .filter-bar { flex-wrap: wrap; }
  .eps-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important; }

  /* hero compact: fără spațiu gol deasupra, „Continuă vizionarea” intră în primul ecran */
  .hero { min-height: 0; }
  .hero-inner { padding-top: 2.6rem; align-items: center; }
  .hero-poster { width: 104px; border-radius: 12px; }
  .hero-meta { gap: 0.8rem; }
  .hero-actions { margin-top: 0.8rem; }
  .hero-actions .btn { padding: 0.55rem 1rem; font-size: 0.9rem; }
  .hero-skel { min-height: 230px !important; }

  /* modal pe tot ecranul, margini mici, buton de închidere mereu vizibil */
  .modal { padding: 0; }
  .modal-panel { border-radius: 0; min-height: 100%; padding-bottom: 2rem; }
  .modal-head { border-radius: 0; padding: 1rem 3.4rem 1rem 1rem; }
  .modal-head-inner { gap: 0.9rem; }
  .modal-poster { width: 96px; border-radius: 10px; align-self: flex-start; }
  .modal-info { min-width: 0; }
  .modal-info h2 { font-size: 1.15rem; }
  .modal-desc { font-size: 0.86rem; -webkit-line-clamp: 4; margin-top: 0.6rem; }
  .modal-close { position: fixed; top: 10px; right: 10px; background: rgba(0, 0, 0, 0.6); }
  .modal-actions { margin: 1rem; gap: 0.5rem; }
  .modal-actions .btn { padding: 0.55rem 1rem; }
  .tabs { padding: 0 0.6rem; }
  .player-box, .torrent-list, .q-filter, .resume-chip, .auto-pill, .sub-title,
  .season-chips, .eps-grid, .info-desc, .similar-row, .eps-more-wrap { margin-left: 1rem !important; margin-right: 1rem !important; }
  .cast-row { padding: 0 1rem; }
  .torrent-row { padding: 0.6rem 0.75rem; gap: 0.7rem; }
  .t-q { width: 46px; }
}

/* ecrane tactile: fără hover, deci butonul de play al episoadelor rămâne vizibil */
@media (hover: none) {
  .ep-thumb .ep-play { opacity: 1; } /* specificitate mai mare decât .ep-play de mai jos */
  .ep-thumb .ep-play::before { width: 40px; height: 40px; opacity: 0.92; }
  .ep-thumb .ep-play svg { transform: scale(0.9); }
  .card:hover .card-poster { transform: none; }
}

/* ---------- SKELETOANE (loaders) ---------- */
.skel {
  position: relative;
  overflow: hidden;
  background: var(--card);
  border-radius: 10px;
}
.skel::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
  animation: skel-shimmer 1.3s infinite;
}
@keyframes skel-shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
.skel-poster { aspect-ratio: 2 / 3; border-radius: 14px; }
.skel-line { height: 0.8rem; margin-top: 0.5rem; width: 85%; }
.skel-title { height: 1.1rem; width: 200px; margin-bottom: 0.75rem; }
.hero-skel { margin-bottom: 1.4rem; min-height: 380px; border-radius: 0 0 var(--radius) var(--radius); }

/* ---------- TOAST ---------- */
#toasts {
  position: fixed; top: 18px; right: 18px; z-index: 100;
  display: flex; flex-direction: column; gap: 0.5rem;
}
.toast {
  background: var(--card);
  border-left: 3px solid var(--success);
  color: var(--text);
  padding: 0.7rem 1.1rem;
  border-radius: 10px;
  font-size: 0.88rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  opacity: 0; transform: translateX(12px);
  transition: opacity 0.3s, transform 0.3s;
  max-width: 340px;
}
.toast.show { opacity: 1; transform: translateX(0); }
.toast.error { border-left-color: var(--danger); }

/* ---------- FILTRE BROWSE ---------- */
.filter-bar {
  display: flex; gap: 0.6rem; margin-bottom: 1.2rem; flex-wrap: wrap;
}
.filter-bar select {
  background: var(--card); color: var(--text);
  border: 1px solid #2f3133; border-radius: 10px;
  padding: 0.5rem 0.8rem; font-size: 0.88rem;
  cursor: pointer;
}
.load-more-wrap { display: flex; justify-content: center; margin: 1.4rem 0; }

/* ---------- WATCHLIST: status select ---------- */
.wl-status {
  margin-top: 0.45rem;
  background: var(--card); color: var(--sub);
  border: 1px solid #2f3133; border-radius: 8px;
  padding: 0.3rem 0.5rem; font-size: 0.74rem;
  cursor: pointer;
}
.card .wl-status:hover { color: var(--text); }

/* ---------- TABURI MODAL (lipicioase la scroll) ---------- */
.tabs {
  position: sticky; top: 0; z-index: 6;
  display: flex; gap: 0.3rem;
  margin: 0;
  padding: 0 1.8rem;
  background: var(--bg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.tabs button {
  border: none; background: none; cursor: pointer;
  color: var(--sub); font-size: 0.92rem; font-weight: 600;
  padding: 0.6rem 1rem;
  border-bottom: 2px solid transparent;
}
.tabs button:hover { color: var(--text); }
.tabs button.on { color: var(--accent); border-bottom-color: var(--accent); }

/* ---------- SEGMENT watchlist-status în modal ---------- */
.seg { display: inline-flex; border-radius: 10px; overflow: hidden; border: 1px solid #2f3133; }
.seg button {
  border: none; background: none; color: var(--sub);
  padding: 0.55rem 0.9rem; font-size: 0.82rem; cursor: pointer;
}
.seg button:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.seg button.on { background: var(--accent); color: #111; font-weight: 700; }

/* ---------- EPISOADE ---------- */
.season-chips {
  display: flex; gap: 0.4rem; flex-wrap: wrap;
  margin: 0.9rem 1.8rem 0.9rem;
}
.season-chips button {
  border: 1px solid #2f3133; background: var(--card); color: var(--sub);
  border-radius: 999px; padding: 0.26rem 0.75rem; font-size: 0.76rem; cursor: pointer;
  transition: color 0.15s, background 0.15s;
}
.season-chips button:hover { color: var(--text); border-color: #4d5153; }
.season-chips button.on { background: var(--accent); color: #111; border-color: var(--accent); font-weight: 700; }
.eps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.9rem 0.9rem;
  margin: 0 1.8rem 0.5rem;
}
.ep-card { cursor: pointer; }
.ep-thumb {
  position: relative; aspect-ratio: 16 / 9;
  border-radius: 10px; overflow: hidden; background: var(--card);
}
.ep-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0.85; transition: opacity 0.15s; }
.ep-card:hover .ep-thumb img { opacity: 1; }
.ep-thumb .noimg {
  display: flex; align-items: center; justify-content: center;
  height: 100%; color: var(--sub); font-size: 0.78rem;
}
.ep-play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity 0.15s;
  pointer-events: none;
}
.ep-play::before {
  content: "";
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
}
.ep-play svg { position: absolute; color: #111; transform: scale(1.18); }
.ep-card:hover .ep-thumb img { opacity: 0.55; }
.ep-card:hover .ep-play { opacity: 1; }
.ep-progress {
  position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: rgba(255, 255, 255, 0.2);
}
.ep-progress i { display: block; height: 100%; background: var(--accent); }
.ep-done {
  position: absolute; right: 6px; top: 6px;
  background: rgba(0, 0, 0, 0.7); color: var(--success);
  font-size: 0.64rem; border-radius: 6px; padding: 2px 7px;
  display: flex; align-items: center; gap: 3px;
}
.ep-name {
  margin-top: 0.4rem; font-size: 0.8rem; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- DETALII: cast + similar ---------- */
.sub-title {
  font-size: 1rem; font-weight: 700;
  margin: 1.1rem 1.8rem 0.7rem;
}
.info-desc {
  color: #cfcfcf; font-size: 0.92rem; line-height: 1.6;
  margin: 1rem 1.8rem 0;
}
.cast-row {
  display: flex; flex-wrap: wrap; gap: 0.9rem 0.7rem;
  padding: 0 1.8rem;
}
.cast-chip {
  flex: 0 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
  width: 96px; text-align: center;
}
.cast-chip img {
  width: 72px; height: 72px; border-radius: 50%;
  object-fit: cover; border: 2px solid rgba(255, 255, 255, 0.12);
}
.cast-noimg {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--card); color: var(--sub);
  display: flex; align-items: center; justify-content: center;
}
.cast-name { font-size: 0.74rem; color: var(--text); line-height: 1.2; }
.cast-char { font-size: 0.66rem; color: var(--sub); line-height: 1.2; }
.similar-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.8rem;
  margin: 0 1.8rem 0.6rem;
}

/* ---------- PLAYER: spinner + butoane extra ---------- */
.video-wrap { position: relative; }
.video-wrap video { display: block; }
.buffer {
  position: absolute; top: calc(50% - 22px); left: calc(50% - 22px);
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.25);
  border-top-color: var(--accent);
  animation: spin 0.9s linear infinite;
  pointer-events: none;
}
@keyframes spin { to { transform: rotate(360deg); } }
.video-extra {
  display: flex; gap: 0.5rem; margin-top: 0.6rem; align-items: center;
}
.cc-state {
  margin-right: auto;
  font-size: 0.78rem; color: var(--sub);
  background: var(--card); border-radius: 8px; padding: 0.35rem 0.7rem;
}
.cc-state.on { color: var(--success); }
.btn.danger { background: var(--danger); color: #fff; }
.auto-pill { font-size: 0.78rem; }
.ru-badge {
  background: rgba(118, 230, 122, 0.16);
  color: var(--success);
  border-radius: 5px;
  padding: 0 5px;
  font-size: 0.66rem;
  font-weight: 800;
}

/* hero skeleton ocupă locul hero-ului la încărcare */
.rows:empty { display: none; }

/* =================== DESKTOP: ecran mare =================== */
:root { --card-w: 148px; }
@media (min-width: 1500px) { :root { --card-w: 168px; } }
.row-scroll .card { flex: 0 0 var(--card-w); }
.grid, .search-results { grid-template-columns: repeat(auto-fill, minmax(var(--card-w), 1fr)); }

/* rânduri: săgeți de derulare (mouse) — apar la hover pe rând */
.row-track { position: relative; }
.row-arrow {
  position: absolute; top: 0; z-index: 3;
  height: calc(var(--card-w) * 1.5);
  width: 52px; border: none; cursor: pointer; color: var(--text);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.18s;
}
.row-arrow.left { left: -2.2rem; background: linear-gradient(90deg, var(--bg-content) 30%, transparent); }
.row-arrow.right { right: -2.2rem; background: linear-gradient(270deg, var(--bg-content) 30%, transparent); }
.row:hover .row-arrow { opacity: 0.9; }
.row-arrow:hover { opacity: 1 !important; color: var(--accent); }
.row-arrow.off { opacity: 0 !important; pointer-events: none; }
@media (hover: none) { .row-arrow { display: none; } }

/* hero: imaginea lată reală (cadru din film) peste posterul estompat, cu descriere */
.hero-desc {
  color: #dcdcdc; font-size: 0.95rem; line-height: 1.55;
  margin-top: 0.8rem; max-width: 620px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.hero-desc:empty { display: none; }
.hero-backdrop.sharp {
  inset: 0; filter: none;
  background-position: center 22%;
  opacity: 0; transition: opacity 0.7s ease;
}
.hero.has-backdrop .hero-backdrop.sharp { opacity: 1; }
/* umbra pentru text acoperă tot hero-ul (pe .hero-inner lăsa o linie vizibilă deasupra) */
.hero.has-backdrop .hero-inner { background: none; }
.hero.has-backdrop::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(23, 24, 25, 0.96) 0%, rgba(23, 24, 25, 0.78) 34%, rgba(23, 24, 25, 0.15) 70%, transparent),
    linear-gradient(to top, rgba(23, 24, 25, 0.9), transparent 45%);
}

/* fereastra filmului: imaginea lată în antet */
.modal-backdrop.sharp {
  inset: 0; filter: brightness(0.62);
  background-position: center 22%;
}
.modal-head.has-backdrop::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(90deg, rgba(29, 31, 32, 0.94) 0%, rgba(29, 31, 32, 0.7) 45%, rgba(29, 31, 32, 0.2) 100%),
    linear-gradient(to top, var(--bg), transparent 45%);
}

@media (min-width: 761px) {
  .hero { min-height: 460px; }
  .hero-inner { padding: 2.4rem 2.6rem 2.6rem; }
  .hero.has-backdrop .hero-poster { display: none; } /* imaginea lată spune deja totul */
  .hero.has-backdrop .hero-title { font-size: 2.5rem; -webkit-line-clamp: 2; }
  .hero-skel { min-height: 460px; }

  /* fereastra filmului mai lată, player mai mare */
  .modal { padding: 2rem 1.5rem; }
  .modal-panel { width: min(1180px, 100%); }
  .modal-head { padding: 2rem 2.2rem; min-height: 300px; align-items: flex-end; }
  .modal-head.has-backdrop { min-height: 340px; }
  .modal-info h2 { font-size: 1.8rem; }
  .modal-desc { max-width: 720px; }
  .player-box video { max-height: 74vh; }
}
@media (max-width: 760px) {
  .hero-desc { display: none; }
  .row-arrow { display: none; }
}

/* =================== meniu cu categorii =================== */
#nav { overflow-y: auto; }
.nav-item { height: 58px; flex-shrink: 0; }
.nav-sep { width: 36px; height: 1px; background: rgba(255, 255, 255, 0.08); margin: 4px auto; flex-shrink: 0; }

/* =================== pagina filmului (în stilul Lampa) =================== */
.hero-kicker {
  color: var(--accent); font-size: 0.8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0.4rem;
}
.d-pre { color: #cfcfcf; font-size: 0.95rem; margin-bottom: 0.35rem; }
.d-tagline { color: #e6e6e6; font-size: 1.05rem; font-style: italic; margin: 0.35rem 0 0.2rem; }
.d-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-top: 0.9rem; }
.d-rate { font-size: 1.25rem; font-weight: 800; color: var(--text); margin-right: 0.3rem; }
.d-rate small { font-size: 0.68rem; font-weight: 700; color: var(--sub); margin-left: 2px; vertical-align: middle; }
.d-box {
  border: 1.5px solid rgba(255, 255, 255, 0.75); border-radius: 6px;
  padding: 1px 8px; font-size: 0.78rem; font-weight: 700; color: var(--text);
}
.d-box.soft { border-color: rgba(255, 255, 255, 0.25); color: var(--sub); font-weight: 600; }
.d-meta { color: #d8d8d8; font-size: 0.92rem; margin-top: 0.8rem; }
.d-meta .dot { color: var(--sub); margin: 0 0.35rem; }
.modal-info .modal-actions { margin: 1.3rem 0 0; }
.btn.big { padding: 0.75rem 1.6rem; font-size: 1rem; border-radius: 12px; }

/* fișa titlului (tabul Detalii) */
.facts {
  display: grid; grid-template-columns: max-content 1fr; gap: 0.45rem 1.4rem;
  margin: 1.2rem 1.8rem; font-size: 0.9rem;
}
.facts dt { color: var(--sub); }
.facts dd { margin: 0; color: var(--text); }

/* rândurile de sub film: actori + recomandări + similare */
.d-rows { padding: 1.4rem 1.8rem 0; }
.d-rows .row-arrow.left { left: -1.8rem; background: linear-gradient(90deg, var(--bg-content) 30%, transparent); }
.d-rows .row-arrow.right { right: -1.8rem; background: linear-gradient(270deg, var(--bg-content) 30%, transparent); }
.cast-scroll { display: flex; gap: 0.9rem; overflow-x: auto; padding-bottom: 0.4rem; }
.cast-scroll .cast-chip { width: 104px; }
.cast-scroll .cast-chip img, .cast-scroll .cast-noimg { width: 92px; height: 92px; }
.cast-chip.link { cursor: pointer; border-radius: 12px; padding: 0.3rem 0; transition: background 0.15s; }
.cast-chip.link:hover { background: var(--card); }
.cast-chip.link:hover .cast-name { color: var(--accent); }
.cast-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* pagina actorului */
.person-head { display: flex; gap: 2rem; align-items: flex-start; margin: 2rem 0 0.5rem; }
.person-photo {
  width: 220px; aspect-ratio: 2 / 3; flex-shrink: 0; border-radius: 16px; overflow: hidden;
  background: var(--card); display: flex; align-items: center; justify-content: center; color: var(--sub);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
}
.person-photo img { width: 100%; height: 100%; object-fit: cover; }
.person-info { min-width: 0; max-width: 900px; }
.person-info h1 { margin: 0 0 0.3rem; font-size: 2.2rem; line-height: 1.15; }
.person-bio {
  color: #d0d0d0; font-size: 0.93rem; line-height: 1.6; margin-top: 1rem; white-space: pre-line;
  display: -webkit-box; -webkit-line-clamp: 8; -webkit-box-orient: vertical; overflow: hidden; cursor: pointer;
}
.person-bio.expanded { display: block; }

@media (min-width: 761px) {
  /* pagina filmului ocupă tot ecranul (meniul rămâne vizibil), nu o fereastră peste pagină */
  .modal { left: var(--nav-w); padding: 0; background: var(--bg-content); align-items: stretch; }
  .modal-panel {
    width: 100%; max-width: none; min-height: 100%;
    border-radius: 0; box-shadow: none; background: var(--bg-content); padding-bottom: 3rem;
  }
  .modal-head, .modal-head.has-backdrop {
    border-radius: 0; min-height: min(78vh, 760px);
    padding: 4.5rem 3rem 2.6rem; align-items: flex-end;
  }
  .modal-head-inner { gap: 2.4rem; align-items: flex-end; width: 100%; max-width: 1500px; }
  .modal-poster { width: 240px; border-radius: 16px; }
  .modal-info h2 { font-size: 3rem; line-height: 1.08; margin: 0; letter-spacing: -0.5px; }
  .modal-info { max-width: 900px; }
  .modal-desc { -webkit-line-clamp: 3; font-size: 0.98rem; color: #dcdcdc; max-width: 820px; margin-top: 1rem; }
  .modal-backdrop.sharp { filter: brightness(0.7); background-position: center 18%; }
  .modal-head.has-backdrop::after {
    background:
      linear-gradient(90deg, rgba(23, 24, 25, 0.95) 0%, rgba(23, 24, 25, 0.75) 38%, rgba(23, 24, 25, 0.15) 75%, transparent),
      linear-gradient(to top, var(--bg-content) 2%, transparent 55%);
  }
  .modal-close { position: fixed; top: 16px; right: 22px; background: rgba(0, 0, 0, 0.5); }
  .tabs { background: var(--bg-content); padding: 0 3rem; }
  .player-box, .torrent-list, .q-filter, .resume-chip, .auto-pill, .sub-title,
  .season-chips, .eps-grid, .info-desc, .similar-row, .eps-more-wrap, .facts { margin-left: 3rem; margin-right: 3rem; }
  /* conținutul taburilor (player + versiuni, episoade, detalii) centrat ca un bloc:
     pe ecranele late nu mai rămâne un gol doar în dreapta */
  #tab-play, #tab-eps, #tab-info { max-width: calc(1500px + 6rem); margin-left: auto; margin-right: auto; }
  .d-rows { padding: 1.6rem 3rem 0; }
  .d-rows .row-arrow.left { left: -3rem; }
  .d-rows .row-arrow.right { right: -3rem; }
  .scroll-fade { left: var(--nav-w); }
}
@media (max-width: 760px) {
  .nav-cat, .nav-sep { display: none !important; } /* pe telefon: categoriile sunt pe Acasă */
  .nav-item { height: 50px; }
  .d-rows { padding: 1rem 1rem 0; }
  .facts { margin: 1rem; }
  .person-head { flex-direction: column; gap: 1rem; }
  .person-photo { width: 140px; }
  .person-info h1 { font-size: 1.5rem; }
}

/* =================== calendar apariții =================== */
.cal-hint { color: var(--sub); font-size: 0.86rem; margin: -0.4rem 0 1rem; }
.cal-filter { margin: 0 0 1.2rem !important; }
.cal-filter small { opacity: 0.7; margin-left: 2px; }
.cal-day { margin-bottom: 1.8rem; scroll-margin-top: 1rem; }
.cal-day.past { opacity: 0.6; }
.cal-day-head {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 1.05rem; font-weight: 700; margin-bottom: 0.8rem;
  padding-bottom: 0.45rem; border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.cal-day-head span {
  font-size: 0.72rem; font-weight: 700; color: var(--sub);
  background: var(--card); border-radius: 999px; padding: 1px 8px;
}
.cal-day.today .cal-day-head { color: var(--accent); border-bottom-color: rgba(255, 226, 22, 0.35); }
.cal-badge {
  position: absolute; left: 8px; top: 8px;
  font-size: 0.66rem; font-weight: 800; border-radius: 6px; padding: 2px 7px;
  background: rgba(0, 0, 0, 0.72); color: var(--text);
}
.cal-badge.k-cinema { color: #ffb36b; }
.cal-badge.k-digital { color: var(--success); }
.cal-badge.k-episode { color: #8fb6ff; }

/* =================== MODUL CINEMA (player pe toată fereastra) =================== */
body.cinema-open { overflow: hidden; }
.cinema {
  position: fixed; inset: 0; z-index: 70;
  background: #000; color: var(--text);
  display: flex; flex-direction: column;
}
.cin-top {
  position: absolute; left: 0; right: 0; top: 0; z-index: 6;
  display: flex; align-items: center; gap: 1rem;
  padding: 0.9rem 1.2rem 2.2rem;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), transparent);
  transition: opacity 0.25s;
}
.cin-back {
  width: 44px; height: 44px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255, 255, 255, 0.12); color: var(--text);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.cin-back:hover { background: rgba(255, 255, 255, 0.22); }
.cin-titles { min-width: 0; flex: 1; }
.cin-title { font-size: 1.15rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cin-sub { color: #cfcfcf; font-size: 0.85rem; margin-top: 2px; }
.cin-mini {
  font-size: 0.8rem; color: #d6d6d6; white-space: nowrap;
  background: rgba(255, 255, 255, 0.08); border-radius: 999px; padding: 0.3rem 0.8rem;
  display: flex; align-items: center; gap: 0.45rem;
}
.cin-mini:empty { display: none; }
.dot-ok, .dot-mid, .dot-bad { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot-ok { background: var(--success); }
.dot-mid { background: var(--accent); }
.dot-bad { background: var(--danger); }
.cin-tabs { display: flex; gap: 0.35rem; }
.cin-tab {
  border: none; cursor: pointer; border-radius: 10px;
  background: rgba(255, 255, 255, 0.1); color: var(--text);
  padding: 0.5rem 0.95rem; font-size: 0.88rem; font-weight: 600;
}
.cin-tab:hover { background: rgba(255, 255, 255, 0.2); }
.cin-tab.on { background: var(--accent); color: #111; }

.cin-body { flex: 1; display: flex; min-height: 0; }
.cin-stage { flex: 1; min-width: 0; position: relative; display: flex; }
.cin-stage #player { flex: 1; margin: 0 !important; max-width: none !important; display: flex; position: relative; }
.cin-video { position: relative; flex: 1; display: flex; align-items: center; justify-content: center; background: #000; }
.cin-video video {
  width: 100%; height: 100%; max-height: none !important; aspect-ratio: auto !important;
  border-radius: 0 !important; object-fit: contain; background: #000; cursor: pointer;
}
.cin-status {
  margin: auto; text-align: center; color: #cfcfcf; font-size: 1.05rem; padding: 2rem; max-width: 720px;
  display: flex; flex-direction: column; gap: 0.6rem; overflow-wrap: anywhere;
}
.cin-status small { color: var(--sub); font-size: 0.82rem; }
.cin-status.error { color: #ff9c9c; }
.cin-video .buffer { top: calc(50% - 26px); left: calc(50% - 26px); width: 52px; height: 52px; }
.cin-video .video-error {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  max-width: 560px; text-align: center; font-size: 0.95rem; z-index: 3; margin: 0;
}
.cin-bigplay {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 92px; height: 92px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255, 226, 22, 0.92); color: #111; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}
.cin-bigplay svg { margin-left: 6px; }

/* bara de jos */
.cin-controls {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  padding: 2.4rem 1.4rem 0.9rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.88), transparent);
  transition: opacity 0.25s;
}
.cin-progress { position: relative; height: 18px; display: flex; align-items: center; cursor: pointer; touch-action: none; }
.cin-track { position: relative; width: 100%; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.22); transition: height 0.12s; }
.cin-progress:hover .cin-track { height: 7px; }
.cin-track i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; }
.cin-track .buf { background: rgba(255, 255, 255, 0.38); }
.cin-track .played { background: var(--accent); }
.cin-track .knob {
  width: 14px; height: 14px; top: 50%; bottom: auto; margin: -7px 0 0 -7px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 4px rgba(255, 226, 22, 0.25); opacity: 0; transition: opacity 0.12s;
}
.cin-progress:hover .knob { opacity: 1; }
.cin-hover {
  position: absolute; bottom: 20px; transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.85); color: var(--text); font-size: 0.78rem; font-weight: 600;
  padding: 2px 7px; border-radius: 6px; pointer-events: none; white-space: nowrap;
}
.cin-row { display: flex; align-items: center; gap: 0.35rem; margin-top: 0.45rem; }
.cin-grow { flex: 1; }
.cbtn {
  border: none; background: none; color: var(--text); cursor: pointer;
  width: 42px; height: 42px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.cbtn:hover { background: rgba(255, 255, 255, 0.12); color: var(--accent); }
.cbtn.txt { width: auto; padding: 0 0.7rem; font-weight: 800; font-size: 0.85rem; letter-spacing: 0.3px; }
.cbtn.on { color: var(--accent); }
.cin-vol { display: flex; align-items: center; }
.cin-vol input { width: 0; opacity: 0; transition: width 0.18s, opacity 0.18s; accent-color: var(--accent); }
.cin-vol:hover input, .cin-vol input:focus { width: 90px; opacity: 1; margin-right: 0.4rem; }
.cin-time { font-size: 0.86rem; color: #e0e0e0; font-variant-numeric: tabular-nums; margin-left: 0.4rem; white-space: nowrap; }

/* meniuri (subtitrări, viteză) */
.cin-pop {
  position: absolute; bottom: 82px; right: 7.5rem; z-index: 5;
  min-width: 220px; max-width: 320px;
  background: rgba(24, 25, 26, 0.97); border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px; padding: 0.7rem; box-shadow: 0 14px 50px rgba(0, 0, 0, 0.6);
}
.cin-pop.right { right: 4.6rem; min-width: 150px; }
.cin-pop-title { font-size: 0.78rem; color: var(--sub); text-transform: uppercase; letter-spacing: 0.8px; margin: 0.1rem 0.4rem 0.5rem; }
.cin-pop .cc-state { margin: 0 0.4rem 0.5rem; display: inline-block; }
.cin-pop #cc-extract { margin: 0 0.4rem 0.5rem; }
.cin-pop-list { display: flex; flex-direction: column; }
.cin-pop-list button {
  border: none; background: none; color: var(--text); cursor: pointer; text-align: left;
  padding: 0.5rem 0.7rem; border-radius: 8px; font-size: 0.9rem;
}
.cin-pop-list button:hover { background: rgba(255, 255, 255, 0.08); }
.cin-pop-list button.on { color: var(--accent); font-weight: 700; }
.cin-pop-list button.on::before { content: "✓ "; }

/* „urmează” peste video */
.cinema .next-ep {
  position: absolute; right: 1.6rem; bottom: 110px; z-index: 4; margin: 0;
  background: rgba(24, 25, 26, 0.95);
}

/* panoul lateral */
.cin-panel {
  width: min(460px, 38vw); flex-shrink: 0; overflow-y: auto;
  background: var(--bg); border-left: 1px solid rgba(255, 255, 255, 0.06);
  padding: 4.6rem 0 1.5rem; position: relative; z-index: 5;
}
.cin-panel .sub-title, .cin-panel .q-filter, .cin-panel .torrent-list,
.cin-panel .season-chips, .cin-panel .eps-grid, .cin-panel .eps-more-wrap { margin-left: 1rem !important; margin-right: 1rem !important; }
.cin-panel #cin-files select {
  width: calc(100% - 2rem); margin: 0 1rem 0.6rem;
  background: var(--card); color: var(--text); border: 1px solid #2f3133; border-radius: 10px; padding: 0.5rem 0.7rem;
}
.cin-panel .eps-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.cin-panel .t-q { width: 46px; }
.cin-verdict { margin: 0 1rem 1rem; padding: 0.8rem 1rem; border-radius: 12px; font-size: 0.92rem; line-height: 1.45; }
.cin-verdict.ok { background: rgba(118, 230, 122, 0.12); color: var(--success); }
.cin-verdict.mid { background: rgba(255, 226, 22, 0.1); color: var(--accent); }
.cin-verdict.bad { background: rgba(234, 78, 78, 0.13); color: #ff9c9c; }
.cin-facts { margin: 0 1rem !important; font-size: 0.86rem; }
.cin-facts dd.wrap { overflow-wrap: anywhere; color: var(--sub); }
.cin-hint { margin: 1rem; color: var(--sub); font-size: 0.8rem; line-height: 1.45; }

/* inactiv: totul dispare, rămâne doar filmul (și cursorul se ascunde) */
.cinema.idle .cin-top, .cinema.idle .cin-controls { opacity: 0; pointer-events: none; }
.cinema.idle .cin-video, .cinema.idle .cin-video video { cursor: none; }

@media (max-width: 760px) {
  .cin-top { padding: 0.6rem 0.6rem 1.6rem; gap: 0.5rem; flex-wrap: wrap; }
  .cin-mini { display: none; }
  .cin-panel { position: absolute; inset: 0; width: 100%; padding-top: 4.2rem; }
  .cin-vol input { display: none; }
  .cin-pop { right: 0.6rem !important; }
}
