/* css/site.css */
:root{
  --bg:#000000; --accent:#ff000086; --text:#f5f5f5;
}

*{ box-sizing:border-box }
body{ margin:0; background:var(--bg); color:var(--text); font-family:"Bungee", Arial, sans-serif; }

/* ══════════════════════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════════════════════ */
.nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; gap: 6px;
  padding: 0 20px; height: 60px;
  background: linear-gradient(90deg, #000 0%, #ff000086 50%, #000 100%);
  border-bottom: 1px solid rgba(255,0,0,0.35);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 2px 32px rgba(255,0,0,0.15), 0 2px 8px rgba(0,0,0,0.6);
}

/* Brand */
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: #fff;
  font-size: 15px; letter-spacing: 0.3px;
  flex-shrink: 0; margin-right: 8px;
  transition: opacity .15s;
}
.nav-brand:hover { opacity: 0.8; }
.nav-logo-dot {
  width: 20px; height: 20px; border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 10px rgba(255,255,255,0.7);
  flex-shrink: 0;
}
.nav-brand-text { white-space: nowrap; }

/* Center links */
.nav-links {
  display: flex; align-items: center; gap: 2px;
}
.nav-link {
  display: inline-flex; align-items: center; gap: 7px;
  color: rgba(255,255,255,0.55); text-decoration: none;
  font-size: 12px; padding: 7px 13px; border-radius: 10px;
  white-space: nowrap;
  transition: color .15s, background .15s, box-shadow .15s, transform .12s;
}
.nav-link i { font-size: 13px; flex-shrink: 0; }
.nav-link:hover {
  color: #fff;
  background: rgba(255,255,255,0.07);
  transform: translateY(-1px);
}
.nav-link.active {
  color: #fff;
  background: rgba(255,0,0,0.18);
  box-shadow: 0 0 0 1px rgba(255,0,0,0.25), 0 0 12px rgba(255,0,0,0.1);
}

/* Right section */
.nav-right {
  margin-left: auto;
  display: flex; align-items: center; gap: 8px;
}

/* Username chip */
.nav-user {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; color: rgba(255,255,255,0.45);
  padding: 6px 12px; border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  white-space: nowrap;
}
.nav-user i { font-size: 14px; color: rgba(255,0,0,0.7); }

/* Logout button */
.nav-logout {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; color: rgba(255,255,255,0.6);
  text-decoration: none; padding: 7px 13px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
  white-space: nowrap;
  transition: color .15s, background .15s, border-color .15s, box-shadow .15s, transform .12s;
}
.nav-logout i { font-size: 13px; }
.nav-logout:hover {
  color: #fff;
  background: rgba(255,0,0,0.18);
  border-color: rgba(255,0,0,0.3);
  box-shadow: 0 0 12px rgba(255,0,0,0.15);
  transform: translateY(-1px);
}

/* ── HAMBURGER ────────────────────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column; justify-content: center; align-items: center;
  gap: 5px; cursor: pointer; background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1); border-radius: 10px;
  padding: 8px; width: 38px; height: 38px;
  transition: background .15s, border-color .15s;
}
.hamburger:hover { background: rgba(255,0,0,0.15); border-color: rgba(255,0,0,0.3); }
.hamburger span {
  display: block; width: 18px; height: 2px;
  background: #fff; border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
  transform-origin: center;
}
/* X state */
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE MENU ──────────────────────────────────────────── */
.nav-mobile {
  display: none;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(80,0,0,0.97) 0%, rgba(6,6,6,0.99) 100%);
  border-bottom: 1px solid rgba(255,0,0,0.25);
  padding: 8px 16px 16px;
  gap: 4px;
  /* slide-down */
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
}
.nav-mobile.open {
  display: flex;
  max-height: 400px;
}
.nav-mobile-user {
  font-size: 12px; color: rgba(255,255,255,0.35);
  padding: 10px 12px 8px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 4px;
  display: flex; align-items: center; gap: 8px;
}
.nav-mobile-user i { color: rgba(255,0,0,0.6); }
.nav-mobile-link {
  display: flex; align-items: center; gap: 10px;
  color: rgba(255,255,255,0.6); text-decoration: none;
  font-size: 13px; padding: 10px 12px; border-radius: 10px;
  transition: background .15s, color .15s;
}
.nav-mobile-link i { font-size: 14px; width: 18px; text-align: center; }
.nav-mobile-link:hover, .nav-mobile-link.active {
  background: rgba(255,0,0,0.15); color: #fff;
}
.nav-mobile-logout {
  color: rgba(255,100,100,0.7);
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: 4px; padding-top: 14px;
}

/* Responsive breakpoints */
@media (max-width: 860px) {
  .nav-link span { display: none; }
  .nav-link { padding: 8px 10px; }
  .nav-user span { display: none; }
  .nav-logout-label { display: none; }
  .nav-install-label { display: none; }
}
@media (max-width: 600px) {
  .nav-links { display: none; }
  .nav-logout { display: none; }
  .nav-user { display: none; }
  .hamburger { display: flex; }
}

/* ── TOAST ───────────────────────────────────────────────── */
#toast-container{position:fixed;top:18px;right:18px;z-index:9999;display:flex;flex-direction:column;gap:10px;pointer-events:none;}
.toast{min-width:240px;max-width:360px;padding:14px 18px;border-radius:12px;background:#1a1a1a;border:1px solid #333;color:#f5f5f5;font-size:13px;font-family:"Bungee",Arial,sans-serif;display:flex;align-items:center;gap:10px;opacity:0;transform:translateX(40px);transition:opacity .3s ease,transform .3s ease;pointer-events:auto;}
.toast--visible{opacity:1;transform:translateX(0);}
.toast--success{border-left:4px solid #4caf50;}
.toast--error{border-left:4px solid #f44336;}
.toast--info{border-left:4px solid #ff000086;}
.toast-icon{font-size:16px;flex-shrink:0;}

/* ── SKELETON LOADER ─────────────────────────────────────── */
.skeleton-card{background:#111;border:1px solid #1b1b1b;border-radius:16px;overflow:hidden;}
.skeleton-thumb{width:100%;aspect-ratio:3/4;background:linear-gradient(90deg,#1a1a1a 25%,#252525 50%,#1a1a1a 75%);background-size:200% 100%;animation:shimmer 1.4s infinite;}
.skeleton-line{height:14px;border-radius:6px;margin:10px 12px 6px;background:linear-gradient(90deg,#1a1a1a 25%,#252525 50%,#1a1a1a 75%);background-size:200% 100%;animation:shimmer 1.4s infinite;}
.skeleton-line.short{width:55%;}
@keyframes shimmer{0%{background-position:200% 0}100%{background-position:-200% 0}}

/* ── CONFIRM MODAL ───────────────────────────────────────── */
.modal-overlay{position:fixed;inset:0;background:rgba(0,0,0,.75);z-index:1000;display:flex;align-items:center;justify-content:center;opacity:0;transition:opacity .2s;pointer-events:none;}
.modal-overlay.active{opacity:1;pointer-events:auto;}
.modal{background:#111;border:1px solid #333;border-radius:16px;padding:28px 32px;max-width:420px;width:90%;text-align:center;transform:scale(.9);transition:transform .2s;}
.modal-overlay.active .modal{transform:scale(1);}
.modal h3{margin:0 0 12px;font-size:18px;}
.modal p{color:#bbb;font-size:13px;margin:0 0 22px;}
.modal-actions{display:flex;gap:12px;justify-content:center;}
.modal-btn{padding:10px 24px;border-radius:10px;border:none;cursor:pointer;font-family:"Bungee",Arial,sans-serif;font-size:13px;}
.modal-btn--cancel{background:#222;color:#fff;border:1px solid #333;}
.modal-btn--danger{background:#c0392b;color:#fff;}

/* ── CARD ACTION OVERLAY ─────────────────────────────────── */
.card-actions{position:absolute;bottom:0;left:0;right:0;padding:10px;background:linear-gradient(to top,rgba(0,0,0,.85) 0%,transparent 100%);display:flex;gap:8px;justify-content:flex-end;opacity:0;transition:opacity .2s;pointer-events:none;}
.card:hover .card-actions{opacity:1;pointer-events:auto;}
.action-btn{padding:6px 12px;border-radius:8px;border:none;cursor:pointer;font-family:"Bungee",Arial,sans-serif;font-size:11px;color:#fff;transition:transform .1s;}
.action-btn:hover{transform:scale(1.05);}
.action-btn--edit{background:#1f1f1f;border:1px solid #444;}
.action-btn--delete{background:rgba(192,57,43,.85);}

/* ── MOBILE HAMBURGER NAV ────────────────────────────────── */
.hamburger{display:none;flex-direction:column;gap:5px;cursor:pointer;background:none;border:none;padding:6px;margin-left:auto;}
.hamburger span{display:block;width:22px;height:2px;background:#fff;border-radius:2px;transition:transform .2s,opacity .2s;}
.nav-mobile{display:none;flex-direction:column;gap:4px;padding:10px 22px 14px;background:#050505;border-bottom:1px solid rgba(255,0,0,.2);}
.nav-mobile.open{display:flex;}
.nav-mobile a{color:#fff;text-decoration:none;padding:10px 12px;border-radius:10px;}
.nav-mobile a.active,.nav-mobile a:hover{background:var(--accent);}
@media(max-width:768px){
  .hamburger{display:flex;}
  .nav > a:not(.nav-brand),.nav > .spacer,.nav > .icon-btn{display:none;}
}

/* ── FIELD VALIDATION + BACK BUTTON ─────────────────────── */
.field-error{color:#f44336;font-size:11px;margin-top:4px;display:block;min-height:16px;}
input.invalid,select.invalid{border-color:#f44336 !important;box-shadow:0 0 6px rgba(244,67,54,.35);}
.back-btn{display:inline-flex;align-items:center;gap:8px;color:#bbb;text-decoration:none;font-size:13px;margin-bottom:16px;padding:6px 12px;border-radius:8px;border:1px solid #333;background:#0f0f0f;cursor:pointer;transition:color .15s,border-color .15s;}
.back-btn:hover{color:#fff;border-color:#666;}

/* ── PLATFORM CARD DELETE BUTTON ─────────────────────────── */
.platform-del{position:absolute;top:8px;right:8px;background:rgba(192,57,43,.85);border:none;border-radius:8px;color:#fff;width:30px;height:30px;cursor:pointer;display:flex;align-items:center;justify-content:center;opacity:0;transition:opacity .2s;}
.card:hover .platform-del{opacity:1;}

/* ── NAV BADGE DOT ───────────────────────────────────────── */
.nav-badge-dot {
  position: absolute; top: -3px; right: -5px;
  width: 8px; height: 8px; border-radius: 50%;
  background: #ff3333;
  border: 1.5px solid #000;
  box-shadow: 0 0 6px rgba(255,0,0,0.7);
}

/* ── NAV AVATAR ──────────────────────────────────────────── */
.nav-user { cursor: pointer; transition: background .15s, box-shadow .15s; }
.nav-user:hover { background: rgba(255,255,255,0.09); box-shadow: 0 0 0 1px rgba(255,0,0,0.2); }
.nav-avatar-img {
  width: 24px; height: 24px; border-radius: 50%;
  object-fit: cover; display: block;
  border: 1px solid rgba(255,0,0,0.4);
}
.nav-user-avatar { display:flex; align-items:center; }

/* ── PROFILE MODAL ───────────────────────────────────────── */
.profile-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,.85);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; pointer-events: none;
  transition: opacity .2s;
}
.profile-overlay.active { opacity: 1; pointer-events: auto; }

.profile-modal {
  background: #111; border: 1px solid rgba(255,0,0,0.2);
  border-radius: 20px; padding: 28px 28px 24px;
  width: 100%; max-width: 500px;
  max-height: 88vh; overflow-y: auto; scrollbar-width: thin;
  transform: scale(.94); transition: transform .2s;
}
.profile-overlay.active .profile-modal { transform: scale(1); }

.profile-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px;
}
.profile-header h2 { font-size: 16px; color: #fff; margin: 0; }
.profile-close {
  background: #1a1a1a; border: 1px solid #333; border-radius: 8px;
  color: #aaa; padding: 5px 10px; cursor: pointer; font-size: 13px;
  transition: color .15s, border-color .15s;
}
.profile-close:hover { color: #fff; border-color: #666; }

/* Avatar */
.profile-avatar-wrap {
  position: relative; display: flex;
  justify-content: center; margin-bottom: 24px;
}
.profile-avatar {
  width: 90px; height: 90px; border-radius: 50%;
  background: #1a1a1a; border: 2px solid rgba(255,0,0,0.35);
  display: flex; align-items: center; justify-content: center;
  font-size: 42px; color: rgba(255,0,0,0.6); overflow: hidden;
}
.profile-avatar img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.profile-avatar-btn {
  position: absolute; bottom: 0; right: calc(50% - 52px);
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255,0,0,0.75); border: 2px solid #111;
  color: #fff; font-size: 11px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.profile-avatar-btn:hover { background: rgba(255,0,0,1); }

/* Fields */
.profile-fields { display: flex; flex-direction: column; gap: 14px; margin-bottom: 16px; }
.profile-field { display: flex; flex-direction: column; gap: 6px; }
.profile-field label { font-size: 11px; color: rgba(255,255,255,.45); letter-spacing: .5px; }
.profile-field input {
  padding: 11px 14px; background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1); border-radius: 10px;
  color: #fff; font-family: "Bungee", Arial, sans-serif; font-size: 13px;
  outline: none; transition: border-color .15s, box-shadow .15s;
}
.profile-field input:focus {
  border-color: rgba(255,0,0,.5);
  box-shadow: 0 0 0 3px rgba(255,0,0,.1);
}
.profile-field input:disabled { opacity: .4; cursor: not-allowed; }

/* Message */
.profile-msg { font-size: 12px; min-height: 18px; text-align: center; margin-bottom: 10px; }
.profile-msg.success { color: #4caf50; }
.profile-msg.error   { color: #f44336; }

/* Actions */
.profile-actions { display: flex; gap: 10px; }
.profile-save {
  flex: 1; padding: 11px; background: linear-gradient(135deg,#cc0000,#ff000086);
  border: none; border-radius: 10px; color: #fff;
  font-family: "Bungee", Arial, sans-serif; font-size: 12px;
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 7px;
  box-shadow: 0 4px 16px rgba(255,0,0,.25); transition: box-shadow .15s;
}
.profile-save:hover:not(:disabled) { box-shadow: 0 0 22px rgba(255,0,0,.5); }
.profile-save:disabled { opacity: .5; cursor: not-allowed; }
.profile-cancel {
  padding: 11px 18px; background: transparent;
  border: 1px solid #2a2a2a; border-radius: 10px; color: #666;
  font-family: "Bungee", Arial, sans-serif; font-size: 12px; cursor: pointer;
  transition: color .15s, border-color .15s;
}
.profile-cancel:hover { color: #ccc; border-color: #555; }

/* ── PROFILE STATS SECTION ───────────────────────────────── */
.prof-stats { border-top: 1px solid rgba(255,255,255,0.07); margin-top: 20px; padding-top: 18px; }
.prof-stats-hd { font-size: 10px; color: #555; letter-spacing: 1.5px; text-transform: uppercase; margin: 0 0 14px; }
.prof-section-lbl { font-size: 10px; color: #555; letter-spacing: 1.5px; text-transform: uppercase; margin: 0 0 10px; }

/* Quick stats */
.prof-quickstats { display: flex; gap: 6px; margin-bottom: 18px; }
.qs-item { flex: 1; background: #0d0d0d; border: 1px solid #1a1a1a; border-radius: 10px; padding: 10px 4px; text-align: center; }
.qs-num { display: block; font-size: 14px; color: #fff; margin-bottom: 3px; white-space: nowrap; }
.qs-lbl { display: block; font-size: 8px; color: #555; letter-spacing: 0.5px; }

/* Genre bars */
.genre-bars { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.genre-bar-row { display: flex; align-items: center; gap: 8px; }
.genre-bar-lbl { font-size: 10px; color: #888; min-width: 72px; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.genre-bar-track { flex: 1; height: 5px; background: #1a1a1a; border-radius: 999px; overflow: hidden; }
.genre-bar-fill { height: 100%; background: linear-gradient(90deg,#cc0000,#ff000086); border-radius: 999px; }
.genre-bar-count { font-size: 10px; color: #444; min-width: 14px; text-align: right; }

/* Type chips */
.type-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.type-chip { background: #111; border: 1px solid #222; border-radius: 999px; padding: 4px 10px; font-size: 10px; color: #777; }
.type-chip span { color: #ff9999; margin-left: 4px; }

/* Achievement badges */
.achv-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; }
.achv-badge { background: #0d0d0d; border: 1px solid #1a1a1a; border-radius: 12px; padding: 10px 4px; text-align: center; cursor: default; }
.achv-badge.unlocked { border-color: rgba(255,200,0,0.35); background: rgba(255,200,0,0.04); }
.achv-badge.locked { opacity: 0.3; filter: grayscale(1); }
.achv-icon { font-size: 22px; display: block; margin-bottom: 5px; }
.achv-lbl { font-size: 8px; color: #888; line-height: 1.3; display: block; }
.achv-badge.unlocked .achv-lbl { color: #ccc; }

/* ── PASSWORD TOGGLE (login) ─────────────────────────────── */
.pw-wrap{position:relative;}
.pw-wrap input{width:100%;padding-right:40px;box-sizing:border-box;}
.pw-toggle{position:absolute;right:10px;top:50%;transform:translateY(-50%);background:none;border:none;cursor:pointer;color:#bbb;font-size:16px;padding:0;}
.pw-toggle:hover{color:#fff;}

/* ══════════════════════════════════════════════════════════
   PLATFORM HUB (platform.html)
══════════════════════════════════════════════════════════ */
.plat-tabs { display:flex; gap:8px; margin-bottom:24px; flex-wrap:wrap; }
.plat-tab  {
  padding:7px 18px; border-radius:20px; border:1px solid rgba(255,255,255,.12);
  background:transparent; color:rgba(255,255,255,.5); cursor:pointer;
  font-family:"Bungee",Arial,sans-serif; font-size:12px; transition:all .15s;
}
.plat-tab:hover  { color:#fff; border-color:rgba(255,255,255,.25); }
.plat-tab.active { background:rgba(255,0,0,.15); border-color:rgba(255,0,0,.4); color:#fff; }

.shelf-section { margin-bottom:36px; }
.shelf-label   {
  font-size:11px; font-weight:600; color:rgba(255,255,255,.35);
  text-transform:uppercase; letter-spacing:.1em; margin-bottom:12px;
  padding-bottom:8px; border-bottom:1px solid #1a1a1a;
  display:flex; align-items:center; gap:8px;
}
.shelf-label i { font-size:10px; }

.shelf-row   { display:flex; gap:12px; overflow-x:auto; padding-bottom:8px; }
.shelf-row::-webkit-scrollbar { height:4px; }
.shelf-row::-webkit-scrollbar-track { background:transparent; }
.shelf-row::-webkit-scrollbar-thumb { background:#222; border-radius:2px; }

.shelf-card  {
  flex:0 0 130px; border-radius:10px; overflow:hidden;
  background:#111; border:1px solid #1e1e1e; transition:transform .15s, box-shadow .2s;
  cursor:pointer; position:relative;
  display:flex; flex-direction:column;
}
.shelf-card:hover {
  transform:translateY(-4px);
  box-shadow:0 8px 24px rgba(255,0,0,.2), 0 0 0 1px rgba(255,0,0,.15);
  border-color:rgba(255,0,0,.2);
}
.shelf-card img  { width:130px; height:180px; object-fit:cover; display:block; background:#0d0d0d; flex-shrink:0; }
.shelf-card-body { padding:7px 8px 9px; display:flex; flex-direction:column; flex:1; }
.shelf-card-title {
  font-size:10px; line-height:1.3; margin:0 0 4px;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}
.shelf-card-prog { font-size:9px; color:#777; margin-bottom:5px; }

.shelf-watch-btn {
  display:flex; align-items:center; justify-content:center; gap:5px;
  width:100%; padding:5px 0; border-radius:7px; border:none;
  background:#cc0000; color:#fff; font-family:"Bungee",Arial,sans-serif;
  font-size:10px; cursor:pointer; transition:background .15s;
  margin-top:auto;
}
.shelf-watch-btn:hover { background:#e00; }
.shelf-read-btn {
  display:flex; align-items:center; justify-content:center; gap:5px;
  width:100%; padding:5px 0; border-radius:7px; border:1px solid #333;
  background:#1a1a1a; color:#ccc; font-family:"Bungee",Arial,sans-serif;
  font-size:10px; cursor:pointer; transition:all .15s; text-decoration:none;
  margin-top:auto;
}
.shelf-read-btn:hover { background:#222; color:#fff; border-color:#555; }

/* progress bar on shelf card */
.shelf-card-bar {
  height:3px; width:100%; background:#1a1a1a; margin-bottom:5px;
}
.shelf-card-bar-fill {
  height:100%; background:#cc0000; border-radius:0 2px 2px 0;
  transition:width .3s;
}

/* Continue Watching — hero section */
.hero-section { margin-bottom:40px; }
.hero-label   {
  font-size:11px; font-weight:600; color:rgba(255,255,255,.35);
  text-transform:uppercase; letter-spacing:.1em; margin-bottom:14px;
  padding-bottom:8px; border-bottom:1px solid #1a1a1a;
  display:flex; align-items:center; gap:8px;
}
.hero-row { display:flex; gap:16px; overflow-x:auto; padding-bottom:10px; }
.hero-row::-webkit-scrollbar { height:4px; }
.hero-row::-webkit-scrollbar-track { background:transparent; }
.hero-row::-webkit-scrollbar-thumb { background:#222; border-radius:2px; }

.hero-card {
  flex:0 0 155px; border-radius:12px; overflow:hidden;
  background:#111; border:1px solid #1e1e1e;
  transition:transform .15s, box-shadow .2s; cursor:pointer; position:relative;
  display:flex; flex-direction:column;
}
.hero-card:hover {
  transform:translateY(-4px);
  box-shadow:0 8px 28px rgba(255,0,0,.25), 0 0 0 1px rgba(255,0,0,.2);
  border-color:rgba(255,0,0,.25);
}
.hero-card img { width:155px; height:215px; object-fit:cover; display:block; background:#0d0d0d; flex-shrink:0; }
.hero-card-body { padding:10px 12px 12px; display:flex; flex-direction:column; flex:1; }
.hero-card-title {
  font-size:11px; line-height:1.35; margin:0 0 4px;
  display:-webkit-box; -webkit-line-clamp:1; -webkit-box-orient:vertical; overflow:hidden;
}
.hero-card-sub { font-size:10px; color:#666; margin-bottom:8px; }
.hero-card-bar { height:3px; background:#1a1a1a; border-radius:2px; margin-bottom:8px; }
.hero-card-bar-fill { height:100%; background:#cc0000; border-radius:2px; }
.hero-card-btn {
  display:flex; align-items:center; justify-content:center; gap:6px;
  width:100%; padding:7px 0; border-radius:8px; border:none;
  background:#cc0000; color:#fff; font-family:"Bungee",Arial,sans-serif;
  font-size:10px; cursor:pointer; transition:background .15s;
  margin-top:auto;
}
.hero-card-btn:hover { background:#e00; }
.hero-card-btn.read { background:#1a1a1a; border:1px solid #333; color:#ccc; }
.hero-card-btn.read:hover { background:#222; color:#fff; }

/* Recently visited — Sources tab */
.recent-visited { margin-bottom:24px; }
.recent-visited-label {
  font-size:10px; color:#555; text-transform:uppercase; letter-spacing:.08em;
  margin-bottom:10px;
}
.recent-row { display:flex; gap:10px; flex-wrap:wrap; }
.recent-chip {
  display:flex; align-items:center; gap:8px;
  background:#111; border:1px solid #1e1e1e; border-radius:10px;
  padding:7px 12px; cursor:pointer; transition:all .15s;
}
.recent-chip:hover { border-color:rgba(255,0,0,.3); background:#161616; }
.recent-chip img { width:20px; height:20px; border-radius:50%; object-fit:cover; background:#0d0d0d; }
.recent-chip-name { font-size:10px; color:#ccc; }
.recent-chip-count { font-size:9px; color:#444; }

.shelf-empty {
  flex:none; width:100%; text-align:center; padding:30px 0;
  color:#333; font-size:11px;
}

/* ══════════════════════════════════════════════════════════
   WATCH PAGE (watch.html)
══════════════════════════════════════════════════════════ */
.watch-wrap   { max-width:960px; margin:0 auto; padding:20px 18px 40px; }
.watch-back   {
  display:inline-flex; align-items:center; gap:7px; margin-bottom:14px;
  color:rgba(255,255,255,.5); text-decoration:none; font-size:12px;
  transition:color .15s;
}
.watch-back:hover { color:#fff; }
.watch-title  { font-size:20px; margin:0 0 4px; }
.watch-meta   { font-size:11px; color:#666; margin-bottom:16px; }

.watch-player {
  position:relative; padding-top:56.25%; background:#000;
  border-radius:12px; border:1px solid #1a1a1a;
}
.watch-player iframe {
  position:absolute; inset:0; width:100%; height:100%; border:none;
  border-radius:12px;
}
.watch-player-msg {
  position:absolute; inset:0; display:flex; flex-direction:column;
  align-items:center; justify-content:center; gap:10px;
  color:#555; font-size:12px; text-align:center; padding:20px;
}
.watch-player-msg i { font-size:28px; color:#333; }

.watch-controls { margin-top:16px; display:flex; align-items:center; flex-wrap:wrap; gap:10px; }
.watch-ctrl-btn {
  padding:8px 14px; border-radius:10px; border:1px solid #333;
  background:#111; color:#bbb; font-family:"Bungee",Arial,sans-serif;
  font-size:11px; cursor:pointer; display:flex; align-items:center; gap:6px;
  transition:all .15s;
}
.watch-ctrl-btn:hover { color:#fff; border-color:#555; }
.watch-ctrl-btn.primary { background:#cc0000; border-color:#cc0000; color:#fff; }
.watch-ctrl-btn.primary:hover { background:#e00; }

/* ── Server info bar ──────────────────────────────── */
.watch-server-bar {
  display:flex; align-items:center; justify-content:space-between;
  flex-wrap:wrap; gap:10px;
  background:#0d0d0d; border:1px solid #1a1a1a; border-radius:10px;
  padding:10px 14px; margin-top:10px; font-size:11px;
}
.watch-server-msg { color:#888; line-height:1.5; }
.watch-server-msg span { color:#ccc; }
.watch-server-btns { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.watch-server-label { font-size:10px; color:#555; }
.watch-srv-btn {
  padding:5px 14px; border-radius:8px; border:1px solid #333;
  background:#1a1a1a; color:#888; font-family:"Bungee",Arial,sans-serif;
  font-size:10px; cursor:pointer; transition:all .15s;
}
.watch-srv-btn:hover { color:#fff; border-color:#555; }
.watch-srv-btn.active { background:rgba(255,0,0,.15); border-color:rgba(255,0,0,.4); color:#fff; }

/* ── Episode section ──────────────────────────────── */
.ep-section { margin-top:22px; }
.ep-section-title { font-size:11px; color:#555; margin-bottom:10px; letter-spacing:.06em; text-transform:uppercase; }
.ep-page-btns { display:flex; gap:0; margin-bottom:14px; flex-wrap:wrap; border-bottom:1px solid #1a1a1a; }
.ep-page-btn {
  padding:7px 14px; border:none; border-bottom:2px solid transparent;
  background:transparent; color:#555; font-family:"Bungee",Arial,sans-serif;
  font-size:10px; cursor:pointer; transition:all .15s; margin-bottom:-1px;
}
.ep-page-btn:hover { color:#ccc; }
.ep-page-btn.active { color:#fff; border-bottom-color:#cc0000; }

.ep-grid { display:flex; flex-wrap:wrap; gap:6px; }
.ep-btn  {
  width:46px; height:38px; border-radius:8px; border:1px solid #222;
  background:transparent; color:rgba(255,255,255,.5); font-family:"Bungee",Arial,sans-serif;
  font-size:11px; cursor:pointer; transition:all .15s; display:flex;
  align-items:center; justify-content:center;
}
.ep-btn:hover   { color:#fff; border-color:#555; background:#111; }
.ep-btn.current { background:#cc0000; border-color:#cc0000; color:#fff; }
.ep-btn.watched { background:rgba(255,255,255,.04); color:rgba(255,255,255,.2); border-color:#1a1a1a; }

/* ── Prev / Next / All Episodes nav ──────────────── */
.ep-nav {
  display:flex; gap:8px; margin-top:16px; align-items:center;
}
.ep-nav-btn {
  padding:9px 18px; border-radius:10px; border:1px solid #222;
  background:#0d0d0d; color:#888; font-family:"Bungee",Arial,sans-serif;
  font-size:11px; cursor:pointer; transition:all .15s;
}
.ep-nav-btn:hover:not(:disabled) { color:#fff; border-color:#555; }
.ep-nav-btn:disabled { opacity:.3; cursor:not-allowed; }
.ep-nav-btn.all { flex:1; background:rgba(255,0,0,.08); border-color:rgba(255,0,0,.25); color:#ff9999; text-align:center; }
.ep-nav-btn.all:hover { background:rgba(255,0,0,.15); }

/* ── Season cards ─────────────────────────────────── */
.seasons-section { margin-top:8px; }
.seasons-grid { display:flex; gap:10px; flex-wrap:wrap; }
.season-card {
  display:flex; flex-direction:column; align-items:center; gap:8px;
  background:#0d0d0d; border:1px solid #1e1e1e; border-radius:12px;
  padding:14px 18px; cursor:pointer; transition:all .18s;
  min-width:90px; text-align:center;
  font-family:"Bungee",Arial,sans-serif;
}
.season-card:hover { border-color:#555; background:#111; transform:translateY(-2px); }
.season-card.active {
  background:rgba(255,0,0,.12); border-color:rgba(255,0,0,.4);
  box-shadow:0 0 14px rgba(255,0,0,.15);
}
.season-card-num { font-size:16px; color:#fff; }
.season-card-label { font-size:10px; color:#555; }
.season-card.active .season-card-label { color:#ff9999; }
.season-card-eps { font-size:9px; color:#444; margin-top:2px; }
.season-card.active .season-card-num { color:#ff9999; }

.season-select {
  background:#121212; color:#fff; border:1px solid #333; border-radius:10px;
  padding:8px 12px; font-family:"Bungee",Arial,sans-serif; font-size:11px;
  outline:none; cursor:pointer; margin-left:auto;
}
.season-select:focus { border-color:rgba(255,0,0,.4); }
