/* =========================
   Mobile (default) styles
   ========================= */

@font-face{
  font-family: "Google Sans";
  src: url("fonts/Google_Sans/GoogleSans-VariableFont_GRAD,opsz,wght.ttf") format("truetype");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face{
  font-family: "Google Sans";
  src: url("fonts/Google_Sans/GoogleSans-Italic-VariableFont_GRAD,opsz,wght.ttf") format("truetype");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}

/* Base */
:root{
 /* --brand:#e50000;*/
  /*--brand-hover:#d84a4a;*/
   --brand:#FFDD71; /*e1c07e  */
  --brand-hover:#e1c07e; /*#947f57 */
  --text:#222;
  --bg:#f6f6f7;
  --bluray:#0b74ff;
  --spine:#01337a;
  --edge-right-a:#006794;
  --edge-right-b:#0b74ff;
  --edge-bottom:#0b74ff;
  --nav-h: 68px;
  --topbar-h: 56px;
}
html{overflow-x: hidden;max-width: 100vw;}
html,body{/*height:100%;*/margin:0px;}
body{font-family:"Google Sans","Segoe UI",sans-serif;background:var(--bg);color:var(--text); padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom));}

/* Infinite bottom loader (shared) */
.bottom-loader{ display:none; text-align:center; color:#666; padding:20px 0 150px; }
.bottom-loader .spinner{ width:20px; height:20px; border:3px solid #bbb; border-top-color:#555; border-radius:50%; display:inline-block; vertical-align:middle; margin-right:8px; animation:spin 1s linear infinite }
@keyframes spin{ to { transform: rotate(360deg); } }

.topbar{
  position:fixed; top:0; left:0; right:0; z-index:60;
  padding:10px 14px; display:flex; align-items:center; justify-content:space-between;
  transition: transform .25s ease; will-change: transform;
  background: rgba(0,0,0,0.78);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
  backdrop-filter: blur(8px) saturate(120%);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.topbar--hidden{ transform: translateY(-100%); }
.top-left{ display:flex; align-items:center; gap:8px; text-decoration:none; color:inherit; }
.top-logo{ width:24px; height:24px; display:block; box-shadow: 0px 0px 9px 0px #ffffff85; border-radius: 5px;}
.brand{font-weight:bold;color:var(--brand);font-size:18px}
.top-right{ display:flex; align-items:center; gap:10px; }
.topbar a{ text-decoration:none; }
.icon-btn{ position:relative; width:36px; height:36px; display:grid; place-items:center; text-decoration:none; }
.icon-btn img{ width:22px; height:22px; display:block; }
.icon-btn-sm{
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  border-radius:10px;
  border:1px solid rgba(255,255,255,0.12);
  background:rgba(255,255,255,0.04);
  cursor:pointer;
}
.icon-btn-sm img{ width:18px; height:18px; filter: invert(1); }
.icon-btn .badge{ position:absolute; right:-4px; top:-4px; min-width:16px;width: 16px; height:16px; padding:2px; border-radius:999px; background:var(--brand); color:#000000; font:700 11px/18px "Google Sans","Segoe UI",sans-serif; text-align:center; border:2px solid #000000c7; box-sizing:content-box; line-height: 16px; pointer-events:none;}
.icon-btn .badge:empty{ display:none; }
.notif-wrap{ position:relative; }
.notif-panel{
  position:fixed; right:16px; top:calc(var(--topbar-h) + 8px); width:320px; max-width:90vw;
  color:#e9ebf5; border:1px solid rgba(255,255,255,0.12);
  box-shadow:0 18px 40px rgba(0,0,0,0.45); display:none; z-index:1200;
  border-radius: 0px 0px 12px 12px;
  background: linear-gradient(180deg, rgba(8,10,16,0.95), rgba(12,14,22,0.95));
}
.notif-panel.active{ display:block; }
.notif-head{ display:flex; align-items:center; justify-content:space-between; padding:10px 12px; border-bottom:1px solid rgba(255,255,255,0.06); }
.notif-title{ font-weight:700; font-size:14px; }
.notif-list{ max-height:360px; overflow:auto; }
.notif-item{ display:flex; gap:10px; padding:10px 12px; border-bottom:1px solid rgba(255,255,255,0.06); }
.notif-item:last-child{ border-bottom:0; }
.notif-item.is-read{ opacity:0.6; }
.notif-item.is-read .notif-btn{
  background:rgba(255,255,255,0.05);
  border-color:rgba(255,255,255,0.08);
  color:#b5bccb;
}
.notif-page-item.is-read{ opacity:0.6; }
.notif-avatar{ width:32px; height:32px; border-radius:50%; background:#1f2937; display:grid; place-items:center; flex:0 0 auto; color:#fff; font-weight:700; font-size:13px; }
.notif-avatar img{ width:100%; height:100%; border-radius:50%; object-fit:cover; display:block; }
.notif-body{ display:flex; flex-direction:column; gap:6px; font-size:13px; }
.notif-actions{ display:flex; gap:6px; flex-wrap:wrap; }
.notif-btn{ background:rgba(255,255,255,0.08); border:1px solid rgba(255,255,255,0.12); color:#fff; border-radius:8px; padding:4px 8px; font-size:12px; cursor:pointer; }
.notif-btn.is-primary{ background:var(--brand); color:#000; border-color:transparent; }
.notif-empty{ padding:16px; font-size:13px; color:#9ca3af; }
.notif-footer{ padding:8px 12px; border-top:1px solid rgba(255,255,255,0.06); text-align:right; }
.notif-link{ color:var(--brand); text-decoration:none; font-size:12px; }

.avatar-stack{ display:flex; align-items:center; gap:6px; }
.avatar-circle{
  width:28px; height:28px; border-radius:50%; display:grid; place-items:center; font-size:12px; font-weight:700;
  border:1px solid rgba(255,255,255,0.15); background:#111827; color:#f0c15a;
}
.avatar-circle img{ width:100%; height:100%; border-radius:50%; object-fit:cover; display:block; }
.avatar--gold{ background:#111; color:#f0c15a; border-color:#f0c15a55; }
.avatar--red{ background:#b91c1c; color:#fff; }
.avatar--purple{ background:#6d28d9; color:#fff; }
.avatar--green{ background:#15803d; color:#fff; }
.avatar--white{ background:#f8fafc; color:#111; }

.modal{ position:fixed; inset:0; background:rgba(0,0,0,0.72); display:none; align-items:center; justify-content:center; z-index:1200; }
.modal.active{ display:flex; }
.modal-card{
  width:min(520px, 92vw); background:#0f172a; color:#e9ebf5; border-radius:14px;
  border:1px solid rgba(255,255,255,0.08); box-shadow:0 22px 50px rgba(0,0,0,0.5);
}
.modal-head{ display:flex; align-items:center; justify-content:space-between; padding:12px 14px; border-bottom:1px solid rgba(255,255,255,0.06); }
.modal-title{ font-weight:700; }
.modal-body{ padding:14px; display:flex; flex-direction:column; gap:10px; }
.modal-actions{ display:flex; justify-content:flex-end; gap:8px; padding:12px 14px; border-top:1px solid rgba(255,255,255,0.06); }
.modal-close{ background:transparent; border:0; color:#9ca3af; font-size:18px; cursor:pointer; }
.input{ width:100%; padding:8px 10px; border-radius:8px; border:1px solid #1f2937; background:#111827; color:#e5e7eb; box-sizing:border-box; }
.select{ padding:8px 10px; border-radius:8px; border:1px solid #1f2937; background:#111827; color:#e5e7eb; box-sizing:border-box; }
.suggest-list{ position:relative; }
.suggest-panel{
  position:absolute; left:0; right:0; top:100%; background:#111827; border:1px solid rgba(255,255,255,0.08);
  border-radius:10px; margin-top:6px; z-index:5; max-height:220px; overflow:auto; display:none;
}
.suggest-panel--static{ position:static; display:block; margin-top:6px; max-height:none; }
.suggest-panel.active{ display:block; }
.suggest-item{ display:flex; gap:10px; align-items:center; padding:8px 10px; cursor:pointer; }
.suggest-item:hover{ background:rgba(255,255,255,0.06); }
.suggest-item--empty{ cursor:default; color:#9ca3af; }
.suggest-avatar{ width:28px; height:28px; border-radius:50%; background:#1f2937; display:grid; place-items:center; font-size:12px; font-weight:700; color:#fff; flex:0 0 auto; }
.suggest-avatar img{ width:100%; height:100%; border-radius:50%; object-fit:cover; display:block; }
.suggest-meta{ display:flex; flex-direction:column; font-size:13px; }
.suggest-email{ color:#9ca3af; font-size:12px; }
.suggested-block{ display:flex; flex-direction:column; gap:6px; }
.suggested-title{ font-size:12px; text-transform:uppercase; letter-spacing:0.06em; color:#9ca3af; }

.share-row{ display:flex; align-items:center; justify-content:space-between; gap:10px; padding:8px 0; border-bottom:1px solid rgba(255,255,255,0.06); }
.share-row:last-child{ border-bottom:0; }
.share-meta{ display:flex; align-items:center; gap:10px; }
.share-role{ display:flex; align-items:center; gap:6px; }
.search{display:inline-flex;align-items:center;gap:8px;border:1px solid #ddd;border-radius:8px;padding:6px 10px;max-width:560px;width:100%}
.search input{border:0;outline:0;width:100%;font-size:14px}
.search button{background:var(--brand);color:#fff;border:0;border-radius:6px;padding:6px 10px;cursor:pointer}
.search button:hover{background:var(--brand-hover)}

/* Bottom Navigation */
.bottom-nav{
  position: fixed; left: 0; right: 0; bottom: 0;
  height: var(--nav-h);
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  display: flex; justify-content: space-around; align-items: center;
  background: rgba(0,0,0,0.78);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
  backdrop-filter: blur(8px) saturate(120%);
  border-top: 1px solid rgba(255,255,255,0.08);
  z-index: 900;
}
.bottom-nav .nav-item{
  display:flex; flex-direction:column; align-items:center; gap:6px;
  color:#e8e8e8; text-decoration:none; font-size:12px; line-height:1;
}
.bottom-nav .nav-icon{ width:36px; height:36px; border-radius:50%; display:grid; place-items:center; }
.bottom-nav .nav-icon img{ width:22px; height:22px; display:block; filter: invert(0.9); opacity:0.9; }
.bottom-nav .nav-item.active .nav-icon{ border:2px solid #fff; }
.bottom-nav .nav-item.active .nav-icon img{ filter: invert(1); opacity:1; }
.bottom-nav .nav-label{ opacity:.95; }

/* Layout */
.wrap {
  max-width: 1200px;
  margin: 14px auto;
  padding: 60px 20px 170px 20px ;
}
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  justify-items: center;
}

/* Cases (Blu-ray) */
.case-3d {
  position: relative;
  width: 100%;
  max-width:350px;
  border-radius: 10px;
  /* box-shadow: 1px 7px 5px 2px rgb(70 70 70 / 47%); */  /* Black Box Shadow */
  box-shadow: -2px 7px 3px 2px #f0c15a24; /* Gold Box Shadow */
  /* perspective: 1000px; */
}
.case-3d::before {
  content: "";
  display: block;
  padding-top: calc(150% + 10px);
}
.case-inner {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}
.front {
  position: absolute;
  inset: 0;
  transform: translateZ(1px);
  backface-visibility: hidden;
  border-right: 5px solid #0b74ff;
  border-radius: 0px 10px 10px 0px;
}
/* Overlay front Blu-ray (unique classes) */
.front-fs .fs-case-chrome{
  position: absolute;
  inset: 0;
  border-radius: 10px;
  background: #152033;
  overflow: visible;
  box-shadow: 0 6px 16px rgba(0,0,0,.15);
}
.front-fs .fs-topbar-blu{
  position: absolute;
  left: 0; top: 0; right: 0;
  height: 20px;
  background: #0b74ff;
  display: flex; align-items: center; justify-content: center;
  font-weight: bold; color: #fff; letter-spacing: .5px; font-size: 13px;
  text-shadow: 0 1px 0 rgba(0,0,0,.35);
  z-index: 3;
}
.front-fs .fs-spine{
  position: absolute; left: 0px; top: 0; bottom: 0;
  width: 0px; background: var(--spine);
  border-top-left-radius: 8px;
  box-shadow: inset -1px 0 0 rgba(255,255,255,.06);
  z-index: 10;
}
.front-fs .fs-edge-right{
  position: absolute; right:0px; top: 0; bottom: 0;
  width: 5px; background: #0b74ff;
  border-top-right-radius: 8px;
  z-index: 1;
}
.front-fs .fs-edge-bottom{
  position: absolute; left: 0px; right: 0px; bottom: 0px;
  height: 6px; background: #0b74ff;
  border-bottom-left-radius: 3px; border-bottom-right-radius: 4px;
  z-index: 4; pointer-events: none;
}
.front-fs .fs-poster{
  position:absolute; left:0; right:0; top:20px; bottom:15px;
  width:100%; height:auto; object-fit:cover;
}
.front-fs .fs-badge{position:absolute; right:6px; bottom:6px; width:20px; height:auto; display:block; z-index:4}
.case-chrome {
  position: absolute;
  inset: 0;
  /*border-radius: 10px;*/
  /* Match front-fs tone so the case looks like plastic, not black */
  background: #152033;
  overflow: visible;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .15);
}
.topbar-blu {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  height: 20px;
  background: #0b74ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #fff;
  letter-spacing: .5px;
  font-size: 0; /* hide text, show logo via ::before */
  text-shadow: 0 1px 0 rgba(0, 0, 0, .35);
  z-index: 3;
}
.topbar-blu::before{
  content: "";
  display:block;
  width:100%;
  height:13px;
  background-image:url('../images/icons/blu-ray.svg');
  background-repeat:no-repeat;
  background-position:center;
  background-size:contain;
}
.spine {
  position: absolute;
  left: 0px;
  top: 0;
  bottom: 0px;
  width: 0px;
  background: var(--spine);
  border-top-left-radius: 8px;
  /* border-bottom-left-radius: 8px; */
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, .06);
  z-index: 2;
}
.edge-right {
  position: absolute;
  right: -5px;
  top: 0;
  bottom: 0px;
  width: 5px;
  background: #0b74ff;
  border-top-right-radius: 8px;
  z-index: 1;
  border-radius: 0px 20px 0px 0px;
}
.edge-bottom {
  position: absolute;
  left: 0px;
  right: -5px;
  bottom: -6px;
  height: 6px;
  background: #0b74ff;
  border-bottom-left-radius: 3px;
  border-bottom-right-radius: 4px;
  z-index: 4;
  pointer-events: none;
}
.front .poster {
  position: absolute;
  left: 0;
  right: 0;
  top: 20px;
  bottom: 15px;
  width: 100%;
  height: auto;
  object-fit: cover;
  /* Placeholder so the DVD illusion holds before image paint */
  background: linear-gradient(180deg,#23324f,#1a2740);
}
.badge{position:absolute; right:6px; bottom:6px; width:25px; height:auto; display:block; z-index:4}

/* Back mini card */
.back-mini{
  position:absolute; inset:0;
  transform:rotateY(180deg) translateZ(1px);
  backface-visibility:hidden;
  display:flex; flex-direction:column;
  border-radius:10px; overflow:hidden;
}
.back-mini .head{
  padding:10px 12px;
  background:linear-gradient(180deg,#1b1f2c,#101420);
  border-bottom:1px solid #1f2633;
  font-weight:bold; font-size:13px; color:#f5f7fb;
}
.back-mini .body{
  flex:1; display:grid; grid-template-rows:auto 1fr; gap:6px; padding:10px 12px; background:#0f131c;
}
.back-mini .pills{display:flex; gap:6px; flex-wrap:wrap}
.back-mini .pill{background:#1d2635; border:1px solid #2d3646; border-radius:999px; padding:4px 8px; font-size:11px; color:#e6e9f2}
.back-mini .lines{display:grid; gap:4px}
.back-mini .line{height:8px; background:#1c2432; border-radius:6px}
.back-mini .line:nth-child(2){width:90%}
.back-mini .line:nth-child(3){width:80%}
.back-mini .foot{padding:8px 12px; border-top:1px solid #1f2633; background:#0f131c; font-size:11px; text-align:center; color:#c1c6d2}

.sentinel{height:1px}

/* Overlay + Flip (shared) */
.overlay{position:fixed; inset:0; background:rgba(0,0,0,.72); display:none; align-items:center; justify-content:center; z-index:1000}
.overlay.active{display:flex}
.flip-wrap{width:min(92vw,760px); perspective:1500px}
.flip-card{position:relative; width:100%; aspect-ratio:2/3; transform-style:preserve-3d; transition:transform .7s cubic-bezier(.2,.7,.2,1)}
.flip-card.show-back{transform:rotateY(180deg)}
.face{position:absolute; inset:0; backface-visibility:hidden; border-radius:6px; overflow:hidden; box-shadow:0 18px 42px rgba(0,0,0,.45)}
.face.front-fs{background:#111}
.face.back-fs{background:#0e1016; color:#e8ecf5; transform:rotateY(180deg); display:flex; flex-direction:column}

.back-head{padding:14px 16px 10px 16px;background:linear-gradient(180deg,#1b1f2c,#101420);border-bottom:1px solid #1f2633;display:flex;align-items:start;gap:10px;justify-content:space-between;color:#f5f7fb}
.back-title{font-weight:bold;color:#f7f8fc;font-size:18px;line-height:1.2;flex:1}
.close-btn{border:1px solid #2c3545;background:#1e2633;padding:6px 10px;border-radius:8px;cursor:pointer;color:#e8ecf5}
.close-btn:hover{background:#2b3344}

.back-meta{padding:6px 16px 0 16px;font-size:13px;color:#c1c6d2}
.back-meta .dot::before{content:'.';margin:0 6px;color:#70798a}

.trailer-section{display:grid;grid-template-columns:1fr 92px;gap:10px;align-items:start;padding:10px 10px}
.trailer.placeholder{display:flex;align-items:center;justify-content:center;border:1px dashed #2f394b;background:linear-gradient(180deg,#141922,#0f131c);color:#7d8798;height:125px}
.trailer-controls{ position:absolute; bottom:8px; right:8px; display:flex; gap:6px; padding:4px; margin:0; background:rgba(0,0,0,0.6); border-radius:8px; align-items:center; }
.trailer-controls button{ border:0; background:transparent; padding:0; display:inline-flex; align-items:center; justify-content:center; cursor:pointer; }
.trailer-controls .cast-btn{ width:36px; height:36px; border-radius:8px; }
.trailer-controls .cast-btn img{ width:20px; height:20px; filter: invert(1); }
.metrics{display:flex;flex-direction:column;gap:8px}
.metrics .pill{text-align:center;padding:8px 10px}

.detail-row{padding:5px 16px 8px 16px;font-size:14px}
.detail-row strong{font-weight:700}

/* Links within back details */
.fs-back a{ color: var(--brand); text-decoration:none }
.fs-back a:hover{ text-decoration:underline }
.back-title a{ color:#f7f8fc; text-decoration:none }
.back-title a:hover{ text-decoration:underline }

.info-rows{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:10px 16px 0 16px;font-size:13px}
.fs-back .pill{background:#1d2635;border:1px solid #2d3646;border-radius:999px;padding:6px 10px;text-align:center;color:#e6e9f2}

.synopsis{
  padding:10px 16px;
  font-size:14px;
  line-height:1.45;
  color:#dfe2ea;
  max-height:28vh;
  min-height:0px;
  overflow-y:auto;
  overflow-x:hidden;
  -webkit-overflow-scrolling:touch;
}
.cast{padding:10px 16px;font-size:14px;color:#dfe2ea}
.cast strong{display:block;margin-bottom:4px}

.trailer{border-radius:10px;overflow:hidden;background:#000;display:none;position:relative;border:1px solid #575e6b}
.trailer.active{display:block}
.trailer iframe{width:100%;height:125px;border:0;display:block}

.back-actions{margin-top:auto;padding:12px 16px;display:flex;gap:10px;border-top:1px solid #1f2633;background:#0f131c}
.btn{flex:1;text-align:center;border:0;border-radius:10px;padding:10px 12px;cursor:pointer;background:var(--brand);color:#1a1a1a;font-weight:bold}
.btn:hover{background:var(--brand-hover)}

/* Back action icon buttons */
.back-actions--icons{justify-content:space-between;flex-wrap:wrap}
.back-actions--icons .btn{
  flex:0 0 auto;
  width:35px; height:35px;
  border-radius:6px;
  padding:0;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(145deg,#1d2635,#141a27);
  border:1px solid #2d3646;
  box-shadow:0 6px 16px rgba(0,0,0,.35);
  color:transparent;
  font-size:0;
}
.back-actions--icons .btn::before{
  content:"";
  width:22px; height:22px;
  background-repeat:no-repeat;
  background-position:center;
  background-size:contain;
  filter: invert(1) brightness(1.2) drop-shadow(0 1px 2px rgba(0,0,0,.55));
}
.back-actions--icons .btn:hover{background:linear-gradient(145deg,#222c3c,#161c29);border-color:#3a4354}
.back-actions--icons .btn.btn-active{
  background:var(--brand);
  border-color:rgba(255,255,255,0.15);
  box-shadow:0 6px 18px rgba(0,0,0,.45), inset 0 0 0 1px rgba(0,0,0,.2);
}
.back-actions--icons .btn.btn-active::before{
  filter: invert(0) brightness(0.2);
}
.back-actions--icons #btnAdd::before{background-image:url('../images/icons/shortlist.svg')}
.back-actions--icons #btnLater::before{background-image:url('../images/icons/time.svg')}
.back-actions--icons #btnSeen::before{background-image:url('../images/icons/seen.svg')}
.back-actions--icons #btnLike::before{background-image:url('../images/icons/like.svg')}
.back-actions--icons #btnDislike::before{background-image:url('../images/icons/dislike.svg')}
.back-actions--icons #btnFav::before{background-image:url('../images/icons/heart.svg')}
.back-actions--icons #btnMore::before{background-image:url('../images/icons/list.svg')}
.back-actions--icons #btnRemove::before{background-image:url('../images/icons/shortlist.svg')}
.back-actions--icons #btnRemove.btn-active,
.back-actions--icons #btnRemove{
  background:var(--brand);
  border-color:rgba(255,255,255,0.2);
  color:transparent;
}
.back-actions--icons #btnRemove::before{
  filter: invert(0) brightness(0.2);
}

/* Home overlay: cleaned action bar + add panel */
#backActions{
  position:relative;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:nowrap;
  flex-direction:row;
}
#backActions .back-actions-left{
  flex:1 1 auto;
  min-width:0;
}
#backActions .back-actions-right{
  display:flex;
  align-items:center;
  gap:6px;
  flex:0 0 auto;
}
#backActions #btnMore::before{background-image:url('../images/icons/add.svg')}

.providers-box{
  display:flex;
  justify-content: center;
  flex-direction:column;
  gap:6px;
}
.providers-title{
  font-size:11px;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:#9099ab;
}
.providers-row{
  display:flex;
  gap:6px;
  align-items:center;
  min-height:24px;
}
.provider-slot{
  width:35px;
  height:35px;
  border-radius:6px;
  border:1px dashed #2d3646;
  background:#131926;
  display:inline-block;
}
.provider-link{
  position:relative;
  display:inline-flex;
  width:35px;
  height:35px;
  border-radius:6px;
  text-decoration:none;
}
.provider-logo{
  width:35px;
  height:35px;
  object-fit:cover;
  background:#131926;
  border:1px solid #2d3646;
  border-radius:6px;
}
.provider-empty{
  font-size:12px;
  color:#9ca3af;
  padding:6px 4px;
}
.provider-badges{
  position:absolute;
  right:-1px;
  bottom:-1px;
  display:flex;
  gap:2px;
}
.overlay .provider-badges{
  display:none;
}
.provider-badge{
  width:7px;
  height:7px;
  background-size:7px 7px;
  background-repeat:no-repeat;
}
.provider-badge.is-rent{ background-image:url('../images/icons/rent.svg'); }
.provider-badge.is-ads{ background-image:url('../images/icons/ads.svg'); }
.provider-badge.is-buy{ background-image:url('../images/icons/buy.svg'); }
.provider-more{
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:35px;
  height:35px;
  border-radius:6px;
  background:#e1c07e;
  border:1px solid #d2b26e;
  text-decoration:none;
}
.provider-more::before{
  content:'';
  width:16px;
  height:16px;
  background-image:url('../images/icons/add.svg');
  background-size:16px 16px;
  background-repeat:no-repeat;
  filter:brightness(0) invert(1);
}

.add-panel-scrim{
  position:fixed;
  inset:0;
  display:none;
  background:transparent;
  z-index:10;
  pointer-events:auto;
}
#backActions.is-add-open .add-panel-scrim{display:block}

.add-panel{
  position:absolute;
  right:12px;
  bottom:58px;
  width:min(78vw, 280px);
  background:#0f131c;
  border:1px solid #1f2633;
  border-radius:12px;
  padding:10px;
  box-shadow:0 16px 32px rgba(0,0,0,.45);
  display:none;
  flex-direction:column;
  gap:8px;
  z-index:11;
}
#backActions.is-add-open .add-panel{display:flex}
.add-panel-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  color:#f5f7fb;
  font-weight:700;
  font-size:14px;
}
.add-panel-close{
  border:1px solid #2c3545;
  background:#1e2633;
  color:#e8ecf5;
  border-radius:8px;
  width:28px;
  height:28px;
  cursor:pointer;
}
.add-panel-close:hover{background:#2b3344}
.add-panel-actions{
  display:grid;
  gap:6px;
}
.add-item{
  display:flex;
  align-items:center;
  gap:10px;
  width:100%;
  padding:10px 12px;
  border:0px;
  background:linear-gradient(145deg,#1d2635,#141a27);
  color:#e8ecf5;
  font-weight:600;
  text-align:left;
  cursor:pointer;
  border-top: 1px solid #1f2633;
}
.add-item .add-label{
  flex:1 1 auto;
}
.add-item .add-status{
  flex:0 0 auto;
  padding:4px 10px;
  border-radius:6px;
  border:1px solid #2c3545;
  background:#1b2231;
  color:#dfe3ea;
  font-size:12px;
  font-weight:100;
}
.add-item::before{
  content:"";
  width:18px;
  height:18px;
  background-repeat:no-repeat;
  background-position:center;
  background-size:contain;
  filter: invert(1) brightness(1.1);
}
#btnAdd::before{background-image:url('../images/icons/shortlist.svg')}
#btnLater::before{background-image:url('../images/icons/time.svg')}
#btnSeen::before{background-image:url('../images/icons/seen.svg')}
.add-item:hover{border-color:#3a4354}
.add-item.btn-active{
  background:var(--brand);
  border-color:rgba(255,255,255,0.15);
  color:#1a1a1a;
}
.add-item.btn-active .add-status{
  border-color:rgba(0,0,0,0.2);
  background:rgba(0,0,0,0.1);
  color:#1a1a1a;
}
.add-item.btn-active::before{filter: invert(0) brightness(0.2)}

.add-panel-toggle{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  width:100%;
  padding:10px 12px;
  border-radius:0px;
  border:0px;
  background:#121827;
  color:#dfe3ea;
  cursor:pointer;
  font-weight:600;
}
.add-panel-toggle:hover{border-color:#3a4354}
.add-panel-toggle .chev{
  width:8px;
  height:8px;
  border-right:2px solid #c3cad8;
  border-bottom:2px solid #c3cad8;
  transform:rotate(45deg);
  transition:transform .2s ease;
}
.add-panel.is-custom-open .chev{transform:rotate(-135deg)}

.add-panel-custom{
  display:none;
  gap:6px;
  margin-top:4px;
  max-height:200px;
  overflow:auto;
}
.add-panel.is-custom-open .add-panel-custom{display:grid}
.add-panel.is-custom-open.is-custom-empty .add-panel-empty{display:block}
.add-panel-empty{
  display:none;
  color:#9ca3af;
  font-size:12px;
  padding:4px 4px 0;
}
.add-custom-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  padding:10px 12px;
  border:1px solid #1f2633;
  border-radius:0px;
  background:linear-gradient(145deg,#1d2635,#141a27);
}
.add-custom-meta div:first-child{color:#f5f7fb;font-size:13px}
.add-custom-meta div:last-child{color:#9ca3af;font-size:11px}
.add-custom-row.is-active{
  background:var(--brand);
  border-color:rgba(255,255,255,0.15);
}
.add-custom-row.is-active .add-custom-meta div:first-child,
.add-custom-row.is-active .add-custom-meta div:last-child{color:#1a1a1a}
.add-custom-btn{
  border:1px solid #2c3545;
  background:#1b2231;
  color:#dfe3ea;
  border-radius:8px;
  padding:4px 10px;
  cursor:pointer;
  font-size:12px;
  font-weight:100;
}
.add-custom-btn:hover{background:#2b3344}
.add-custom-btn.is-disabled{opacity:.6;cursor:not-allowed}
.add-custom-btn.btn-active{
  border-color:rgba(0,0,0,0.2);
  background:rgba(0,0,0,0.1);
  color:#1a1a1a;
}

@media (max-width: 520px){
  .add-panel{
    right:12px;
    bottom:58px;
  }
}

/* ===== Flight clone ===== */
.flight3d{
  position:fixed; z-index:2000; pointer-events:none;
  transform-origin:center center;
  will-change:transform;
  transition:transform .7s cubic-bezier(.2,.7,.2,1);
  perspective:1000px;
}

/* =========================
   Desktop overrides (≥900px)
   ========================= */
@media (min-width: 900px) {
  /* Layout */
  .wrap{ padding: 0 10px; }
  .grid { gap: 50px; }

  /* Cases (Blu-ray) */
  .case-3d::before { padding-top: calc(150% + 30px); border-radius: 10px;}
  .topbar-blu { height: 40px; }
  .topbar-blu::before{ height:24px; }
  .spine { left: 0px; width: 0px; }
  .edge-right { right: 0px; width: 10px; }
  .edge-bottom {
    left: 0px; right: 0px; bottom: 0px; height: 15px;
    border-bottom-left-radius: 10px; border-bottom-right-radius: 10px;
  }
  .front .poster{ border-bottom-left-radius:10px; border-bottom-right-radius:10px; }
  .front-fs .fs-topbar-blu{ height: 40px; }
  .front-fs .fs-spine{ left:0px; width:4px; }
  .front-fs .fs-edge-right{ right:0px; width:10px; }
  .front-fs .fs-edge-bottom{ left:0px; right:0px; bottom:0px; height:15px; border-bottom-left-radius:10px; border-bottom-right-radius:10px; }
  .front-fs .fs-poster{ top: 40px; border-bottom-left-radius:10px; border-bottom-right-radius:10px; }
}

/* =========================
   Overlay DVD Flip (unique)
   ========================= */
.flip-wrap{width:min(92vw,760px); max-width:450px; perspective:900px; -webkit-filter:drop-shadow(10px 10px 7px rgba(0,0,0,.3)); filter:drop-shadow(10px 10px 7px rgba(0,0,0,.3))}
.flip-card{position:relative; width:100%; aspect-ratio:2/3; transform-style:preserve-3d; transform: translateZ(-14px) rotateY(0deg) rotateX(0deg); transition: transform 1.5s ease-in-out}
.flip-card.show-back{transform: translateZ(-14px) rotateY(180deg) rotateX(0deg)}

.fs-front, .fs-back, .fs-left{ position:absolute; box-sizing:border-box; backface-visibility:hidden; background-size:cover; background-position:right center; }
.fs-front{ width:100%; height:100%; border-top:30px solid #0b74ff; border-right:7px solid #0b74ff; border-bottom:7px solid #0b74ff; border-radius:0 10px 10px 0; z-index:10; transform: rotateY(0deg) translateZ(14px) }
.fs-back{ width:100%; height:100%; border-top:30px solid #0b74ff; border-left:7px solid #0b74ff; border-bottom:7px solid #0b74ff; border-radius:10px 0 0 10px; transform: rotateY(180deg) translateZ(14px); background-color:#0e1016; color:#e8ecf5; display:flex; flex-direction:column }
.fs-left{ width:28px; height:100%; border-top:30px solid #0b74ff; border-bottom:7px solid #0b74ff; overflow: hidden; transform: rotateY(-90deg) translateZ(14px) }

.fs-blu-logo{ position:absolute; top:-27px; left:50%; transform:translateX(-50%); height:24px; width:auto; filter:drop-shadow(0 1px 2px rgba(0,0,0,.5)); pointer-events:none }
.fs-spine-title{ position:absolute; top:50%; left:50%; transform: translate(-50%, -50%) rotate(-90deg); color:#fff; font:700 16px/1 "Google Sans","Segoe UI",sans-serif; letter-spacing:.06em; white-space:nowrap; text-shadow:0 1px 2px rgba(0,0,0,.6) }


.perspective-none{
  perspective: none !important;
}

/* =========================
   Capability-based sizing
   ========================= */
/* Desktop-class devices: mouse + hover */
@media (hover: hover) and (pointer: fine) {
  .flip-wrap { width: min(92vw, 500px); perspective: 1200px; }
}

/* Touch devices: coarse pointers, no hover */
@media (hover: none) and (pointer: coarse) {
  .flip-wrap { width: min(92vw, 760px); }
}

/* =========================
   Auth pages
   ========================= */
.auth-shell{
  min-height: 100vh;
  display: grid;
  place-items: center;
  font-family: "Google Sans","Segoe UI",sans-serif;
  background:
    radial-gradient(circle at 10% 10%, rgba(64,78,120,0.35), transparent 40%),
    radial-gradient(circle at 90% 0%, rgba(239,184,78,0.18), transparent 45%),
    #0b0c12;
  color: #e9ebf5;
  padding: 40px 16px 120px;
}
.auth-shell > div{
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  box-sizing: border-box;
  padding: 0 12px;
}
@media (max-width: 768px){
  .auth-card{
    width: 100%;
    box-sizing: border-box;
  }
}
.auth-card{
  max-width: 460px;
  background: #111827;
  border: 1px solid #1f2937;
  border-radius: 18px;
  box-shadow: 0 16px 32px rgba(0,0,0,.45);
  padding: 26px 28px 30px;
}
.auth-brand{
  text-align: center;
  margin-bottom: 22px;
}
.auth-brand img{ width:90px; height:90px; }
.auth-brand h1{
  margin: 10px 0 6px;
  color: var(--brand);
  font-size: 28px;
}
.auth-brand p{
  margin: 0;
  color: #a4abc6;
  font-size: 13px;
}
.auth-head{
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  color: #f5f7fb;
}
.auth-sub{
  margin: 4px 0 18px;
  color: #9aa5b6;
  font-size: 13px;
}
.auth-sub a{
  color: var(--brand);
  text-decoration: none;
}
.auth-sub a:hover{ text-decoration: underline; }
.social-row{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.btn-google,.btn-facebook{
  height: 44px;
  border: 1px solid #d0d0d0;
  border-radius: 8px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  color: #333;
  gap: 8px;
}
.btn-facebook{
  background: #1877f2;
  border-color: #1877f2;
  color: #fff;
}
.btn-google img,
.btn-facebook img{ width: 20px; height: 20px; }
.divider-row{
  display: flex;
  align-items: center;
  gap: 12px;
  color: #a1a1a1;
  font-size: 12px;
  margin: 10px 0 14px;
}
.divider-row .line{
  height: 1px;
  flex: 1;
  background: #e0e0e0;
}
.auth-form .field{
  margin-bottom: 12px;
}
.auth-form label{
  display: block;
  font-size: 12px;
  margin-bottom: 6px;
  color: #b7c0d0;
}
.auth-input{
  width: 100%;
  height: 44px;
  border: 1px solid #2b3648;
  background: #0f1622;
  color: #e9edf6;
  border-radius: 8px;
  padding: 0 12px;
  font-size: 14px;
  box-sizing: border-box;
}
.auth-input:focus{
  outline: 2px solid var(--brand);
  border-color: var(--brand);
  box-shadow: 0 0 0 2px rgba(255, 221, 113, 0.18);
}
.auth-actions{
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  margin: 4px 0 14px;
}
.auth-actions a{ color: var(--brand); text-decoration: none; }
.auth-actions a:hover{ text-decoration: underline; }
.auth-btn{
  width: 100%;
  height: 46px;
  background: var(--brand);
  border: none;
  color: #1a1a1a;
  font-weight: 700;
  border-radius: 10px;
  cursor: pointer;
  font-size: 15px;
}
.auth-btn:hover{ background: var(--brand-hover); }
.soft-brand-buttons .auth-btn{
  background: rgba(255,221,113,0.08);
  border: 1px solid rgba(255,221,113,0.55);
  color: var(--brand);
}
.soft-brand-buttons .auth-btn:hover{
  background: rgba(255,221,113,0.14);
  border-color: rgba(255,221,113,0.75);
  color: var(--brand);
}

.auth-footer{
  text-align: center;
  margin-top: 16px;
  color: #9aa3bf;
  font-size: 12px;
}
.auth-footer a{ color: var(--brand); text-decoration: none; }
.auth-footer a:hover{ text-decoration: underline; }
.auth-alert{
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 12px;
}
.auth-alert.error{
  background: #ffe8e6;
  border: 1px solid #f5b1aa;
  color: #9d1b0c;
}
.auth-alert.success{
  background: #e4f7e9;
  border: 1px solid #b4e5c2;
  color: #1a6b2f;
}

@media (max-width: 768px){
  .auth-shell{
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - var(--nav-h));
    padding: 24px 12px calc(var(--nav-h) + 24px);
  }
  .auth-card{
    width: 100%;
    max-width: 520px;
  }
  .auth-brand{
    margin-bottom: 14px;
  }
}

/* Shortlist page */
.shortlist-page{
  background: #0b0c12;
  color: #e9ebf5;
}
.shortlist-toolbar{
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: calc(var(--topbar-h) + 12px) 14px 12px;
  background: linear-gradient(180deg, rgba(11,12,18,0.95), rgba(11,12,18,0.3));
  border-bottom: 1px solid #1f2633;
}
.shortlist-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.shortlist-title{
  font-size:24px;
  font-weight:700;
  letter-spacing:0.2px;
}
.shortlist-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.shortlist-btn{
  border:1px solid rgba(255,255,255,0.12);
  background:linear-gradient(145deg,#1d2635,#141a27);
  color:#e8ecf5;
  border-radius:10px;
  padding:10px 14px;
  cursor:pointer;
  font-weight:600;
}
.shortlist-btn:hover{border-color:#3a4354}
.shortlist-btn.is-ghost{
  background:transparent;
  color:#cbd2df;
}
.shortlist-meta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
}
.shortlist-collab{
  display:flex;
  align-items:center;
  gap:8px;
}
.shortlist-collab .avatar-stack{ cursor:pointer; }
.shortlist-page .result-meta{
  color: #9aa3bf;
  font-size: 12px;
}
.shortlist-page .wrap{
  padding-top: 16px;
}

/* Account page layout */
.account-page{
  background: #0b0f16;
  color: #e6e9f2;
}
.account-shell{
  max-width: 980px;
  margin: 0 auto;
  padding: calc(var(--topbar-h) + 12px) 12px calc(var(--nav-h) + 24px);
  box-sizing: border-box;
}
.account-hero{
  position: relative;
  margin: 0 auto 14px;
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, #1d2432, #121826);
  border: 1px solid #1f2735;
  overflow: hidden;
}
.account-hero::after{
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 10% 0%, rgba(255, 221, 113, 0.22), transparent 55%);
  pointer-events: none;
}
.account-hero-main{
  position: relative;
  display: flex;
  gap: 16px;
  align-items: center;
  z-index: 1;
}
.account-hero-info h1{
  font-size: 26px;
  margin: 0 0 6px;
  color: #f5f7fb;
}
.account-tier{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  font-size: 13px;
}
.account-tier-label{
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #2c3647;
  background: #141b28;
  color: #d2d8e4;
  font-weight: 600;
}
.account-tier-role{
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #3a4557;
  background: #0f1622;
  color: #f5e7a6;
  font-weight: 600;
  font-size: 12px;
}
.account-tier-cta{
  color: var(--brand);
  text-decoration: none;
  font-weight: 700;
}
.account-tier-cta:hover{ text-decoration: underline; }
.account-photo-wrap{ margin: 0; }
.photo-btn{
  position: relative;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
}
.account-photo{
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #2a3342;
  background: #0f1622;
}
.photo_invert{
  filter: invert(0) !important;
}
.invert{
  filter: invert(1) !important;
}
.photo-overlay{
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,0.55);
  color: #fff;
  opacity: 0;
  transition: opacity .2s ease;
  font-size: 13px;
  border-radius: 50%;
}
.photo-btn:hover .photo-overlay{ opacity: 1; }
.account-page-header{
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
  margin-top: 15px;
}
.account-page-header h1{
  margin: 0 0 4px;
  font-size: 24px;
}
.account-page-header p{
  margin: 0;
  color: #9ca3af;
  font-size: 13px;
}
.account-back{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 38px;
  padding: 0 10px;
  border-radius: 12px;
  background: #0f1622;
  border: 1px solid #2b3648;
  color: #e6e9f2;
  text-decoration: none;
  font-weight: 700;
}
.account-back img{
  width: 18px;
  height: 18px;
  filter: invert(1);
}
.account-back-fallback{
  display: none;
  font-size: 18px;
  line-height: 1;
}
.account-card{
  margin: 0 auto 14px;
  padding: 16px;
  border-radius: 16px;
  background: rgb(19 19 26);
  border: 1px solid #1f2937;
  box-shadow: 0 16px 30px rgba(0,0,0,.35);
}
.account-card-head{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.account-card-head h2{
  margin: 0 0 6px;
  font-size: 20px;
}
.account-card-head p{
  margin: 0;
  color: #a5afc1;
  font-size: 13px;
}
.account-badge{
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 221, 113, 0.2);
  color: #f5e7a6;
  border: 1px solid rgba(255, 221, 113, 0.5);
  font-size: 12px;
  font-weight: 700;
}
.account-section-title{
  margin: 0 0 12px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #9aa5b6;
}
.account-list{
  display: grid;
  gap: 8px;
}
.account-pill{
  margin-left: auto;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #2b3648;
  background: #0f1622;
  color: #cbd5e1;
  font-size: 12px;
  text-transform: capitalize;
}
.account-row{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(12,12,17,1);
  border: 1px solid #1f2a3a;
  text-decoration: none;
  color: #e9edf6;
  transition: background .2s ease, border-color .2s ease;
}
.account-row:hover{
  background: #141c2a;
  border-color: #2b3a50;
}
.account-row--button{
  padding: 0;
  background: transparent;
  border: none;
}
.account-row-btn{
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #0f1622;
  border: 1px solid #1f2a3a;
  color: #e9edf6;
  cursor: pointer;
  font: inherit;
  text-align: left;
}
.account-row-btn:hover{
  background: #141c2a;
  border-color: #2b3a50;
}
.account-row--cta{
  margin-top: 6px;
}
.account-icon-slot{
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px dashed #334155;
  background: #0b111a;
  display: grid;
  place-items: center;
}
.account-icon-slot img{
  width: 18px;
  height: 18px;
  filter: invert(1);
}
.account-chev{
  margin-left: auto;
  color: #7c8799;
}
.account-label{
  font-weight: 600;
}
.account-pro-actions{
  display: grid;
  gap: 12px;
  margin-top: 12px;
}
.account-pro-code{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #0f1622;
  border: 1px solid #243142;
  color: #f5f7fb;
  font-size: 13px;
}
.account-pro-code strong{
  font-size: 16px;
  letter-spacing: .18em;
}
.account-pro-link label{
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  color: #9aa5b6;
}
.account-providers{
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.account-provider-logo{
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1px solid #2b3648;
  background: #0f1622;
  object-fit: cover;
}
.account-provider-add{
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #2b3648;
  background: #0f1622;
  color: #c9d2e3;
  font-size: 11px;
  text-decoration: none;
  font-weight: 600;
}
.account-provider-add:hover{
  border-color: #3a465b;
  color: #eef2f9;
}
.account-pro-compact{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.account-share-mini{
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid #2b3648;
  background: #0f1622;
  color: #e9edf6;
  cursor: pointer;
  font-weight: 700;
}
.account-share-mini:hover{
  background: #141c2a;
  border-color: #2b3a50;
}
.account-share-row{
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  align-items: center;
}
.account-share-btn{
  height: 42px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid #2b3648;
  background: #0f1622;
  color: #e9edf6;
  cursor: pointer;
  font-weight: 600;
}
.account-share-btn:hover{
  background: #141c2a;
  border-color: #2b3a50;
}
.admin-search{
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}
.admin-table{
  display: grid;
  gap: 10px;
}
.admin-table-head,
.admin-table-row{
  display: grid;
  grid-template-columns: minmax(160px, 1.2fr) minmax(180px, 1.4fr) 120px 160px minmax(200px, 1.4fr);
  gap: 12px;
  align-items: center;
}
.admin-table-head{
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #9aa5b6;
}
.admin-table-row{
  padding: 12px;
  border-radius: 12px;
  background: #0f1622;
  border: 1px solid #1f2a3a;
}
.admin-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.admin-select{
  height: 38px;
  border-radius: 10px;
  border: 1px solid #2b3648;
  background: #0b111a;
  color: #e9edf6;
  padding: 0 8px;
}
.admin-subtle{
  font-size: 12px;
  color: #9aa5b6;
}
.admin-delete{
  border-color: #7a2c2c;
  color: #f8d6d6;
}
.admin-delete:hover{
  background: #3a1414;
  border-color: #9f3b3b;
}

@media (max-width: 860px){
  .admin-table-head{
    display: none;
  }
  .admin-table-row{
    grid-template-columns: 1fr;
    gap: 6px;
  }
}
.account-share-hint{
  margin: 8px 0 0;
  color: #9aa5b6;
  font-size: 12px;
}
.account-hint{
  margin: 0 0 12px;
  color: #a4adbd;
  font-size: 13px;
}
.account-profile-top{
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.account-profile-meta h2{
  margin: 0 0 4px;
  font-size: 20px;
}
.account-profile-meta p{
  margin: 0;
  color: #9aa5b6;
  font-size: 13px;
}
.account-placeholder{
  background: #0f1622;
  border: 1px dashed #2a3648;
  border-radius: 12px;
  padding: 12px;
  color: #a5afc1;
  font-size: 13px;
}
.account-faq{
  display: grid;
  gap: 14px;
}
.account-faq-item h4{
  margin: 0 0 6px;
  color: #f1f5fb;
}
.account-faq-item p{
  margin: 0;
  color: #a5afc1;
  font-size: 13px;
}
.account-legal h4{
  margin: 14px 0 6px;
  color: #f1f5fb;
}
.account-legal p{
  margin: 0;
  color: #a5afc1;
  font-size: 13px;
}
.account-legal a,
.account-legal a:visited{
  color: var(--brand);
}
.account-legal-table{
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  font-size: 13px;
}
.account-legal-table th,
.account-legal-table td{
  text-align: left;
  padding: 10px 12px;
  border: 1px solid #1f2a3a;
  vertical-align: top;
  color: #cbd5e1;
}
.account-legal-table th{
  background: #0f1622;
  color: #e9edf6;
  font-weight: 700;
}
.ack-grid{
  display: grid;
  gap: 14px;
}
.ack-card{
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 14px;
  border-radius: 14px;
  background: #0f1622;
  border: 1px solid #1f2a3a;
}
.ack-logo{
  width: 140px;
  max-width: 140px;
  height: auto;
  flex: 0 0 auto;
  filter: none;
}
.ack-body{
  flex: 1 1 auto;
}
.ack-card p{
  margin: 0;
  font-size: 0.9em
}
@media (max-width: 640px){
  .ack-logo{
    width: 20%;
    max-width: 20%;
  }
}
.account-page .auth-input{
  background: #0f1622;
  border: 1px solid #2b3648;
  color: #e9edf6;
}
.account-page .auth-input:focus{
  outline: 2px solid var(--brand);
  border-color: var(--brand);
}
.account-page .auth-form label{
  color: #b7c0d0;
}
.account-page .auth-btn{
  color: #1a1a1a;
}
.account-page.soft-brand-buttons .auth-btn{
  color: var(--brand);
}

.inline-check{
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}
.inline-check input{ transform: scale(1.05); }
.account-streaming{
  padding: 12px;
  border: 1px solid #243142;
  border-radius: 12px;
  background: #0f1622;
}
.subs-input{
  border: 1px solid #2b3648;
  background: #0b111a;
}
.subs-chip{
  border: 1px solid #2b3648;
  background: #1a2332;
  color: #e9edf6;
}
.subs-chip button{
  color: #e9edf6;
}
.subs-input-row{ display: flex; gap: 8px; }
.subs-input{
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #2b3648;
  border-radius: 8px;
  padding: 6px 10px;
  background: #0b111a;
  width: 100%;
}
.subs-input:focus-within{
  border-color: var(--brand);
  box-shadow: 0 0 0 2px rgba(255, 221, 113, 0.2);
}
.subs-input-field{
  border: 0;
  outline: 0;
  background: transparent;
  width: 100%;
  font-size: 14px;
  color: #e9edf6;
}
.subs-input-field::placeholder{
  color: #9aa5b6;
}
.subs-spinner{
  width: 14px;
  height: 14px;
  border: 2px solid #2b3648;
  border-top-color: #e9edf6;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  display: none;
}
.subs-suggest,
.subs-chips{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.subs-chip{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #2b3648;
  background: #1a2332;
  color: #e9edf6;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  cursor: pointer;
}
.subs-chip button{
  border: 0;
  background: transparent;
  font-weight: 700;
  cursor: pointer;
  color: #e9edf6;
}

/* Toasts */
.toast{
  position:fixed;
  right:12px;
  top:12px;
  padding:10px 14px;
  border-radius:10px;
  background:var(--toast-bg, #2e7d32);
  color:var(--toast-text, #fff);
  border:1px solid var(--toast-border, transparent);
  box-shadow:0 10px 20px rgba(0,0,0,.35);
  font-size:13px;
  z-index:1400;
  display:none;
}
.toast--success{ --toast-bg:#2e7d32; --toast-border:#1b5e20; }
.toast--remove{ --toast-bg:#8d2b2b; --toast-border:#5a1b1b; }
.toast--info{ --toast-bg:#1d4b7a; --toast-border:#16385a; }
.toast--warn{ --toast-bg:#a67c00; --toast-border:#775700; --toast-text:#1a1a1a; }
.toast--error{ --toast-bg:#7a1b1b; --toast-border:#4e1010; }

/* Login required gate */
.login-gate{
  position:fixed;
  inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  background:rgba(6,8,12,0.7);
  z-index:1400;
  padding:16px;
  backdrop-filter: blur(6px) saturate(120%);
}
.login-gate.active{ display:flex; }
.login-gate-card{
  width:min(420px, 92vw);
  background:#0f131c;
  color:#f1f3f8;
  border:1px solid #1f2633;
  border-radius:16px;
  padding:22px;
  position:relative;
  box-shadow:0 18px 40px rgba(0,0,0,.35);
  text-align:center;
}
.login-gate-title{ margin:0 0 8px 0; font-size:18px; }
.login-gate-text{ margin:0 0 16px 0; color:#b9c0cf; font-size:14px; }
.login-gate-close{
  position:absolute;
  top:10px;
  right:10px;
  width:30px;
  height:30px;
  border-radius:8px;
  border:1px solid #2c3545;
  background:#1e2633;
  color:#e8ecf5;
  cursor:pointer;
}
.login-gate-actions{
  display:flex;
  gap:10px;
  justify-content:center;
  margin-bottom:12px;
  flex-wrap:wrap;
}
.login-gate-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 14px;
  border-radius:10px;
  background:var(--brand);
  color:#1a1a1a;
  font-weight:700;
  text-decoration:none;
  min-width:120px;
}
.login-gate-btn.is-secondary{
  background:#1e2633;
  color:#e8ecf5;
  border:1px solid #2c3545;
}
.login-gate-divider{
  display:flex;
  align-items:center;
  gap:10px;
  color:#8f98ab;
  font-size:12px;
  margin:8px 0 12px;
}
.login-gate-divider::before,
.login-gate-divider::after{
  content:'';
  height:1px;
  flex:1;
  background:#242b39;
}
.login-gate-google{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 14px;
  border-radius:10px;
  border:1px solid #2c3545;
  background:#fff;
  color:#1a1a1a;
  font-weight:700;
  text-decoration:none;
}
body.modal-open{ overflow:hidden; }

@media (max-width: 720px){
  .account-shell{
    padding: calc(var(--topbar-h) + 8px) 10px calc(var(--nav-h) + 14px);
  }
  .account-card{
    box-shadow: none;
    border-radius: 12px;
  }
}
