/* =========================================================
   ROOT
========================================================= */

:root{
  --bg:#0b0d11;
  --card:#13161c;
  --border:#1f2228;
  --text:#e6e9ee;
  --accent:#3aa6ff;
}


/* =========================================================
   BASE
========================================================= */

*,
*::before,
*::after{
  box-sizing:border-box;
}

body{
  font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;
  background:var(--bg);
  color:var(--text);
  margin:0;
  padding:24px 0;
  min-height:100vh;
  transition:background .35s,color .35s;
}

/* tighter spacing when logged in */
body.logged-in .container{
  padding-top:10px;
  margin-top:10px;
}


/* =========================================================
   GLOBAL LINK STYLING
========================================================= */

a{
  color:var(--accent);
  text-decoration:none;
  font-weight:500;
  transition:opacity .2s ease, color .2s ease;
}

a:hover{
  opacity:.8;
}

a:visited{
  color:var(--accent);
}


/* =========================================================
   LAYOUT CONTAINER
========================================================= */

.container{
  max-width:1200px;
  margin:0 auto 40px;
  padding:0 16px;
  padding-top:16px;
}

.container h2,
.container .show-card{
  width:100%;
}

#shows{
  display:block;
  width:100%;
}


/* =========================================================
   GLOBAL INPUTS
========================================================= */

input,
select,
button{
  padding:8px 12px;
  border-radius:18px;
  border:1px solid var(--border);
  background:var(--card);
  color:var(--text);
  font-size:14px;
  font-family:inherit;
}

button{
  cursor:pointer;
  transition:
    background .2s ease,
    color .2s ease,
    transform .2s ease,
    filter .2s ease,
    box-shadow .2s ease,
    opacity .2s ease;
}

/* base hover lift */
button:hover{
  transform:translateY(-1px);
  filter:brightness(1.05);
}

button:disabled{
  opacity:.6;
  cursor:not-allowed;
  transform:none;
  filter:none;
}

#theme-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

/* =========================================================
   BUTTON VARIANTS
========================================================= */

.primary-btn{
  background:var(--accent);
  color:#fff;
  border:none;
}

.secondary-btn{
  background:transparent;
  border:1px solid var(--border);
  color:var(--text);
}

.danger-btn{
  background:#e74c3c;
  color:#fff;
  border-color:#e74c3c;
}


/* =========================================================
   FILTER + LIST BUTTON SYSTEM (MERGED)
========================================================= */

/* base state */
.filter-btn,
.list-btn{
  background:var(--card);
  color:var(--text);
  border:1px solid var(--border);
  box-shadow:none;
  opacity:.9;
  transition:
    opacity .2s ease,
    transform .2s ease,
    box-shadow .2s ease;
}

.filter-btn:hover,
.list-btn:hover{
  opacity:1;
}

/* active state — single source of truth */
.filter-btn.active,
.list-btn.active{
  background:var(--accent);
  color:#fff;
  border-color:var(--accent);
  box-shadow:
    0 4px 14px rgba(179,71,107,.35);
  transform:translateY(-1px);
}


/* =========================================================
   DASHBOARD BASE (MERGED DUPLICATES)
========================================================= */

#dashboardView{
  display:none;
  flex-direction:column;
  gap:0px;

  opacity:0;
  transform:translateY(8px);

  transition:
    opacity .35s ease,
    transform .35s ease;
}

/* when logged in */
body.logged-in #dashboardView{
  display:flex;
  opacity:1;
  transform:translateY(0);
  margin-top:-12px;
}


/* =========================================================
   AUTH VISIBILITY
========================================================= */

body:not(.logged-in) #dashboardControls{
  display:none;
}

body:not(.logged-in) .list-tabs{
  display:none;
}

/* =========================================================
   SPLASH VIEW
========================================================= */

.splash-view{
  padding-top:40px;
}

body.logged-in .splash-view{
  padding-top:0;
}


.splash-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 6px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  letter-spacing: 0.5px;
}

.splash-badge.shared {
  background: #8e44ad;
}

.splash-badge.personal {
  background: #3498db;
}

.splash-badge.both {
  background: #e67e22;
}


/* =========================================================
   SPLASH HERO
========================================================= */

.splash-hero{
  text-align:center;
  margin-bottom:60px;
}

.splash-hero h1{
  font-size:32px;
  margin-bottom:12px;
}

.splash-hero p{
  opacity:.75;
  margin-bottom:20px;
}

.splash-section-title{
  margin:40px 0 15px;
}


/* =========================================================
   NETFLIX STYLE ROW
========================================================= */

.splash-section{
  margin-bottom:30px;
}

.row-wrapper{
  position:relative;
  overflow:hidden; /* stabilizes arrows */
}


/* =========================================================
   ROW SCROLLER
========================================================= */

.splash-row{
  display:flex;
  gap:16px;
  overflow-x:auto;
  overflow-y:hidden;
  scroll-behavior:smooth;
  padding:10px 60px;
  scrollbar-width:none;
}

.splash-row::-webkit-scrollbar{
  display:none;
}

.modal-next-episode{
  margin-top:8px;
  font-size:13px;
  opacity:.85;
}

/* =========================================================
   SPLASH CARDS
========================================================= */

.splash-card {
  flex: 0 0 160px;
  cursor: pointer;
  transition: transform .25s ease;
  position: relative;
}

.splash-card:hover {
  transform: scale(1.08);
  z-index: 3;
}

/* =========================================================
   POSTER
========================================================= */

.splash-poster {
  width: 100%;
  aspect-ratio: 2 / 3;
  background-size: cover;
  background-position: center;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
}

/* =========================================================
   ADD OVERLAY
========================================================= */

.splash-add-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  padding: 8px;
  background: linear-gradient(
    to top,
    rgba(0,0,0,.75) 0%,
    rgba(0,0,0,.45) 35%,
    rgba(0,0,0,0) 70%
  );
  opacity: 0;
  transition: opacity .2s ease;
}

/* Show overlay on hover (desktop) */
.splash-card:hover .splash-add-overlay {
  opacity: 1;
}

/* Always visible on touch devices */
@media (hover: none) {
  .splash-add-overlay {
    opacity: 1;
  }
}

/* =========================================================
   ADD BUTTONS
========================================================= */

.splash-add-btn {
  font-size: 12px;
  padding: 6px 8px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  background: rgba(0,0,0,.75);
  color: white;
  transition: transform .15s ease, background .2s ease;
}

.splash-add-btn:hover {
  transform: scale(1.05);
  background: var(--accent);
}

/* =========================================================
   ADDED BADGE
========================================================= */

.splash-added {
  font-size: 12px;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(0,0,0,.6);
  color: #4ade80;
  text-align: center;
  font-weight: 500;
}


/* =========================================================
   GRADIENT EDGE MASKS
========================================================= */

.row-wrapper::before,
.row-wrapper::after{
  content:"";
  position:absolute;
  top:0;
  width:80px;
  height:100%;
  pointer-events:none;
  z-index:2;
}

.row-wrapper::before{
  left:0;
  background:linear-gradient(
    to right,
    var(--bg) 0%,
    var(--bg) 40%,
    rgba(0,0,0,0) 100%
  );
}

.row-wrapper::after{
  right:0;
  background:linear-gradient(
    to left,
    var(--bg) 0%,
    var(--bg) 40%,
    rgba(0,0,0,0) 100%
  );
}


/* =========================================================
   ROW ARROWS
========================================================= */

.row-arrow{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  z-index:5;

  display:flex;
  align-items:center;
  justify-content:center;

  width:40px;
  height:70px;

  background:rgba(0,0,0,.55);
  border:none;
  color:white;
  font-size:28px;

  cursor:pointer;
  opacity:0;

  transition:
    opacity .2s ease,
    background .2s ease;
}

/* show arrows on row hover */
.row-wrapper:hover .row-arrow{
  opacity:1;
}

.row-arrow:hover{
  background:rgba(0,0,0,.85);
}

/* prevent hover from shifting position */
.row-arrow:hover,
.row-arrow:focus{
  transform:translateY(-50%);
}

.row-arrow.left{ left:0; }
.row-arrow.right{ right:0; }


/* =========================================================
   ANTICIPATED SECTION
========================================================= */

#anticipatedSection{
  display:none;
}


/* =========================================================
   MOBILE SPLASH GRID
========================================================= */

@media (max-width:768px){

  .splash-section-title::after{
    content:" • Top 10";
    opacity:.6;
    font-size:14px;
  }

  /* hide arrows on mobile */
  .row-arrow{
    display:none;
  }

  /* remove gradient edges */
  .row-wrapper::before,
  .row-wrapper::after{
    display:none;
  }

  /* convert horizontal row to grid */
  .splash-row{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(120px,1fr));
    gap:14px;
    overflow:visible;
    padding:0 10px;
  }

  .splash-card{
    flex:unset;
    transform:none !important;
  }

  .splash-card:hover{
    transform:none;
  }
}
/* =========================================================
   WELCOME BANNER
========================================================= */

.welcome-banner{
  margin:12px 0 18px 0;
  padding:16px 20px;
  border-radius:14px;
  background:var(--card);
  border:1px solid var(--border);
}

/* layout */
.welcome-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  flex-wrap:wrap;
}

/* text block */
.welcome-text h2{
  margin:0;
  font-size:1.15rem;
  font-weight:600;
}

.welcome-text span{
  color:var(--accent);
}

.welcome-text p{
  margin:4px 0 0 0;
  font-size:0.85rem;
  opacity:.65;
}

/* tabs */
.welcome-tabs{
  display:flex;
  gap:10px;
}

/* slightly smaller tabs inside banner */
.welcome-tabs .list-btn{
  padding:8px 14px;
}

.welcome-tabs{
  display:flex;
  gap:10px;
  justify-content:center;
}

/* share button row */
.welcome-share{
  display:flex;
  justify-content:flex-end;
  width:100%;
  margin-top:8px;
}

/* small screens */
@media (max-width:600px){

  .welcome-banner{
    padding:14px 16px;
  }

  .welcome-top{
    gap:14px;
  }
}


/* =========================================================
   DASHBOARD OFFSET (already merged in pass 1)
   (No duplicate blocks remain)
========================================================= */


/* =========================================================
   LIST SECTION TITLE (preserved)
========================================================= */

.list-section-title{
  margin:0 0 18px 0;
  font-size:20px;
  font-weight:600;
  color:var(--accent);
  letter-spacing:.2px;
}


/* =========================================================
   FILTER LAYOUT
========================================================= */

.primary-filters,
.filters{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  justify-content:center;
}


/* =========================================================
   STATUS DROPDOWN
========================================================= */

.status-filter-wrapper{
  position:relative;
}

.status-filter-menu{
  position:absolute;
  top:110%;
  left:0;

  display:none;
  flex-direction:column;
  gap:6px;

  min-width:160px;
  padding:8px;

  background:var(--card);
  border:1px solid var(--border);
  border-radius:12px;

  box-shadow:0 10px 25px rgba(0,0,0,.4);

  z-index:1200;
}

.status-filter-menu button{
  width:100%;
  text-align:left;
}

.status-filter-menu.open{
  display:flex;
}

/* hover state inside dropdown */
.status-filter-menu .filter-btn:hover{
  background:rgba(179,71,107,.15);
}


/* =========================================================
   PUBLIC HERO
========================================================= */

.public-hero{
  margin-bottom:24px;
}

.public-hero h2{
  margin-bottom:6px;
}

.public-hero p{
  opacity:.7;
}


/* =========================================================
   PUBLIC NOTICE
========================================================= */

.public-notice{
  margin-bottom:18px;
  padding:10px 16px;
  border-radius:14px;
  background:rgba(255,255,255,.05);
  border:1px solid var(--border);
  font-size:13px;
  opacity:.85;
}

/* =========================================================
   MODAL CORE (CRITICAL — DO NOT REMOVE)
========================================================= */

.modal{
  position:fixed;
  inset:0;

  display:flex;
  align-items:center;
  justify-content:center;

  background:rgba(0,0,0,.65);
  backdrop-filter:blur(8px);

  opacity:0;
  pointer-events:none;

  transition:opacity .25s ease;
  z-index:2000;
}

.modal.open{
  opacity:1;
  pointer-events:auto;
}

/* =========================================================
   MODAL HELPERS
========================================================= */

.modal-small{ max-width:420px; }
.modal-center{ text-align:center; }

.modal-stack{
  display:flex;
  flex-direction:column;
  gap:12px;
  margin-top:20px;
}

.modal-actions{
  display:flex;
  justify-content:center;
  gap:14px;
  margin-top:24px;
}

.modal-close{
  position:absolute;
  top:16px;
  right:16px;

  width:40px;
  height:40px;

  box-shadow:0 4px 12px rgba(0,0,0,.3);

  display:flex;
  align-items:center;
  justify-content:center;

  font-size:22px;
  font-weight:600;

  border-radius:50%;
  cursor:pointer;

  background:rgba(255,255,255,.06);

  transition:
    background .2s ease,
    transform .15s ease,
    opacity .2s ease;

  opacity:.8;
}

.modal-close:hover{
  background:rgba(255,255,255,.12);
  transform:scale(1.08);
  opacity:1;
}



/* =========================================================
   LOGIN MODAL CONTENT
========================================================= */

.login-modal-content{
  max-width:400px;
  width:100%;
  text-align:center;
  overflow-x:hidden;
}

.login-modal-content input{
  width:100%;
  margin-bottom:15px;
}

.login-modal-content button{
  width:100%;
  margin-bottom:10px;
}

.login-subtext{
  opacity:.7;
  font-size:14px;
  margin-bottom:20px;
}

.login-status{
  margin-top:10px;
  font-size:13px;
  opacity:.8;
}

/* ================= ADD MODAL ================= */

.add-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.add-modal.hidden {
  display: none;
}

.add-modal-content {
  background: var(--card-bg, #1c1c1c);
  padding: 24px;
  border-radius: 12px;
  width: 280px;
  text-align: center;
  animation: fadeIn .2s ease;
}

.add-modal-content h3 {
  margin-bottom: 18px;
}

.add-option {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 8px;
  border: none;
  background: var(--accent);
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: transform .15s ease;
}

.add-option:hover {
  transform: scale(1.05);
}

.add-cancel {
  width: 100%;
  padding: 8px;
  border: none;
  background: transparent;
  color: #aaa;
  cursor: pointer;
}

.splash-add-btn.added {
  background: var(--accent);
  opacity: 0.9;
  cursor: default;
}


.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: #111;
  color: #fff;
  padding: 14px 22px;
  border-radius: 10px;
  font-size: 14px;
  letter-spacing: 0.4px;
  box-shadow: 0 10px 30px rgba(0,0,0,.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  z-index: 9999;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(-8px);
}

#addListModal {
  transition: opacity 0.15s ease, transform 0.15s ease;
}

#addListModal.closing {
  opacity: 0;
  transform: scale(0.95);
}


/* =========================================================
   MOBILE EMAIL WRAP FIX
========================================================= */

@media (max-width:600px){

  .user-placeholder{
    font-size:13px;
    word-break:break-all;
    overflow-wrap:anywhere;
  }

  .login-text{
    font-size:13px;
    overflow-wrap:anywhere;
    word-break:break-word;
    min-width:0;
  }
}

/* =========================================================
   SHOW CARDS
========================================================= */

.show-card{
  display:flex;
  width:100%;
  gap:14px;
  padding:14px;
  margin-bottom:12px;
  border-radius:16px;
  position:relative;
  background:var(--card);
  border:1px solid var(--border);
  box-sizing:border-box;

  opacity:0;
  animation:cardReveal .35s ease forwards;

  transition:
    transform .22s ease,
    box-shadow .22s ease,
    opacity .25s ease;

  will-change:transform;
}

.show-card:hover{
  transform:translateY(-3px);
  box-shadow:
    0 0 0 1px var(--accent),
    0 12px 26px rgba(0,0,0,.55);
}

@keyframes cardReveal{
  to{ opacity:1; }
}


/* =========================================================
   AIRING PULSE
========================================================= */

.show-card.airing{
  animation:
    cardReveal .35s ease forwards,
    pulse 3s ease-in-out infinite;
}

@keyframes pulse{
  0%{ box-shadow:none; }
  50%{ box-shadow:0 0 22px var(--accent); }
  100%{ box-shadow:none; }
}


/* =========================================================
   SHOW CONTENT LAYOUT
========================================================= */

.poster{
  width:75px;
  height:110px;
  border-radius:10px;
  background:#222 center/cover no-repeat;
  flex-shrink:0;
}

.show-content{
  flex:1;
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:6px;
}

.show-name{
  font-weight:600;
  font-size:16px;
  line-height:1.3;
}

.show-meta{
  font-size:14px;
  opacity:.9;
}

.watch-on{
  font-size:13px;
}


/* =========================================================
   REMOVE BUTTON
========================================================= */

.remove-btn{
  position:absolute;
  top:10px;
  right:10px;

  width:26px;
  height:26px;

  border-radius:50%;
  border:none;

  display:flex;
  align-items:center;
  justify-content:center;

  font-size:14px;
  color:#fff;
  background:rgba(0,0,0,.6);

  cursor:pointer;
  z-index:4;

  transition:background .2s ease;
}

/* prevent global button hover lift */
.remove-btn:hover,
.remove-btn:focus{
  transform:none;
  filter:none;
  background:#e74c3c;
}


/* =========================================================
   DRAG + REORDER MODE
========================================================= */

.drag-handle{
  cursor:grab;
  padding:6px 10px;
  opacity:.6;
  user-select:none;
  font-size:18px;
  flex-shrink:0;
}

body.reorder-mode .drag-handle{
  display:block;
}

body:not(.reorder-mode) .drag-handle{
  display:none;
}

body.dragging{
  overflow:hidden;
  touch-action:none;
}

.show-card.dragging{
  opacity:.85;
  transform:scale(1.02);
  box-shadow:
    0 0 0 2px var(--accent),
    0 20px 40px rgba(0,0,0,.6);
}


/* =========================================================
   WATCH TOGGLE
========================================================= */

.watch-toggle{
  cursor:pointer;
  user-select:none;
  transition:.2s ease;
}

.watch-toggle:hover{
  transform:translateY(-1px);
  filter:brightness(1.15);
}

.badge.watch-toggle{
  background:rgba(255,255,255,.08);
  border:1px solid var(--border);
}

.badge.watch-toggle.watching{
  background:#224242;
  color:#fff;
}

.badge.watch-toggle.not-watching{
  background:#3a3a3a;
  color:#ccc;
}


/* =========================================================
   BADGES
========================================================= */

.badges{
  display:flex;
  gap:6px;
  flex-wrap:wrap;
}

.badge{
  font-size:11px;
  padding:3px 8px;
  border-radius:999px;
  font-weight:600;
  line-height:1.2;
  white-space:nowrap;
}

/* special badges */
.badge.production{ background:#6c5ce7; color:#fff; }
.badge.anime{ background:#ff4fa3; color:#fff; }

/* status badges */
.badge.airing{ background:#1b5e20; }
.badge.renewed{ background:#0d47a1; }
.badge.tbd{ background:#6a1b9a; }
.badge.ended{ background:#5e1b1b; }
.badge.miniseries{ background:#4a148c; }
.badge.continuing{ background:#004d40; }
.badge.watching{ background:#224242; }
.badge.not-watching{ background:#3a3a3a; }

.badge.updated{
  background:var(--accent);
  color:#fff;
  animation:fadePulse 2s ease-in-out infinite;
}

@keyframes fadePulse{
  0%{ opacity:1; }
  50%{ opacity:.6; }
  100%{ opacity:1; }
}


/* =========================================================
   STREAMING PLATFORMS
========================================================= */

.platform{
  display:inline-flex;
  align-items:center;
  gap:6px;

  padding:4px 10px;
  border-radius:999px;

  font-size:11px;
  font-weight:600;
  letter-spacing:.3px;
  line-height:1.2;

  border:1px solid var(--border);
  background:rgba(255,255,255,.08);

  white-space:nowrap;
}

.platform.netflix{
  background:#e50914;
  color:#fff;
  border-color:#b20710;
}

.platform.disney{ background:#0b3c5d; color:#fff; }
.platform.prime{ background:#1a98ff; color:#fff; }
.platform.apple{ background:#111; color:#fff; }
.platform.max{ background:#3a1aff; color:#fff; }
.platform.tbd{ background:#555; color:#eee; }


/* =========================================================
   MODAL LAYOUT
========================================================= */

.modal-header{
  display:flex;
  gap:22px;
  align-items:flex-start;
  flex-wrap:wrap;
}

.modal-poster{
  width:160px;
  height:235px;
  background-size:cover;
  background-position:center;
  border-radius:16px;
  flex-shrink:0;
  box-shadow:0 10px 25px rgba(0,0,0,.4);
}

.modal-info{
  flex:1;
  min-width:0;
}

.modal-info h2{ margin-bottom:6px; }

.modal-badges{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin:8px 0 6px;
}

.modal-season{
  margin-top:4px;
  font-weight:500;
  opacity:.85;
}

.modal-watch{ margin-top:12px; }

.modal-overview{
  margin-top:28px;
}

.modal-overview h3{
  margin-bottom:8px;
  font-size:15px;
  letter-spacing:.5px;
  text-transform:uppercase;
  opacity:.6;
}

/* =========================================================
   MODAL CONTENTS
========================================================= */
.modal-content{
  position:relative;

  width:92%;
  max-width:680px;
  max-height:85vh;

  overflow:auto;

  background:rgba(19,22,28,.88); /* slightly transparent */
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);

  border:1px solid var(--border);
  border-radius:22px;
  padding:28px;

  box-shadow:0 25px 60px rgba(0,0,0,.45);
  border-top:3px solid var(--accent);

  transform:translateY(15px) scale(.97);
  transition:transform .25s ease;
}
.modal-content a{
  color:var(--accent);
  text-decoration:none;
  font-weight:500;
}

.modal-content a:hover{
  opacity:.8;
}

.modal-content a:visited{
  color:var(--accent);
}


/* =========================================================
   APP BAR
========================================================= */

.app-bar{
  position:relative;
  z-index:1000;
  max-width:1200px;
  margin:0 auto;
  padding:0 16px;
  display:flex;
  flex-direction:column;
}


/* =========================================================
   HEADER
========================================================= */

.app-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:16px 24px;
  background:var(--card);
  border:1px solid var(--border);
  border-radius:20px 20px 0 0;
  box-shadow:0 6px 18px rgba(0,0,0,.35);
}

.header-left,
.header-right{
  display:flex;
  align-items:center;
  gap:12px;
}

.app-logo{ font-size:20px; }

.app-title{
  display:flex;
  align-items:center;
  gap:0;
  font-size:18px;
  font-weight:600;
}

.brand-my{ opacity:.75; font-weight:500; }
.brand-rose{ color:var(--accent); font-weight:700; }
.brand-list{ opacity:.9; font-weight:600; }


/* =========================================================
   USER AREA
========================================================= */

.user-placeholder{
  display:flex;
  align-items:center;
  gap:8px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.05);
  cursor:pointer;
}

.user-avatar{
  width:28px;
  height:28px;
  border-radius:50%;
  background:var(--accent);
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:600;
}

.menu-toggle{ display:none; }


/* =========================================================
   TOOLBAR
========================================================= */

.toolbar{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  padding:10px 24px 8px 24px;
  justify-content:center;
  align-items:center;
  background:rgba(0,0,0,.15);
  border:1px solid var(--border);
  border-top:none;
  border-radius:0 0 20px 20px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05);
}

#search{
  min-width:220px;
  max-width:300px;
  width:100%;
}


/* =========================================================
   SEARCH DROPDOWN
========================================================= */

.search-results{
  position:absolute;
  top:110%;
  left:0;
  width:300px;
  max-height:350px;
  overflow:auto;
  margin-top:6px;
  background:var(--card);
  border:1px solid var(--border);
  border-radius:14px;
  box-shadow:0 12px 30px rgba(0,0,0,.5);
  z-index:1300;
}

.search-results:empty{ display:none; }

.search-item{
  padding:10px;
  cursor:pointer;
  border-radius:10px;
  transition:background .2s ease, transform .2s ease;
}

.search-item:hover{
  background:rgba(255,255,255,.06);
  transform:translateX(4px);
}

.search-item-inner{
  display:flex;
  align-items:center;
  gap:10px;
}

.search-poster{
  width:45px;
  height:65px;
  background:center/cover no-repeat;
  border-radius:6px;
  flex-shrink:0;
}

.search-title{
  font-weight:600;
  font-size:14px;
  line-height:1.3;
}

.search-year{
  font-size:12px;
  opacity:.6;
}


/* =========================================================
   ICON BUTTON (REFRESH)
========================================================= */

.icon-btn{
  width:36px;
  height:36px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:16px;
  background:rgba(255,255,255,.06);
  border:1px solid var(--border);
  transition:
    background .2s ease,
    color .2s ease,
    transform .2s ease;
}

.icon-btn:hover{
  background:var(--accent);
  color:#fff;
  transform:rotate(20deg);
}

.icon-btn.spinning{
  animation:spin 1s linear infinite;
  box-shadow:0 0 12px var(--accent);
}

.icon-btn.spinning:hover{
  transform:none;
}

@keyframes spin{
  from{ transform:rotate(0deg); }
  to{ transform:rotate(360deg); }
}


/* =========================================================
   THEME BACKGROUND
========================================================= */

#theme-bg{
  position:fixed;
  inset:0;
  z-index:-1;
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
  opacity:0;
  transition:opacity .6s ease;
  transform:translateZ(0);
  will-change:opacity;
}

#theme-bg::before{
  content:"";
  position:absolute;
  inset:0;
  background:inherit;
  filter:blur(6px) saturate(.95);
  z-index:-1;
}

#theme-bg::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(
      ellipse at center,
      rgba(0,0,0,0) 40%,
      rgba(0,0,0,.65) 100%
    );
}


/* =========================================================
   FOOTER
========================================================= */

.app-footer{
  margin-top:80px;
  padding:40px 0;
  text-align:center;
  border-top:1px solid var(--border);
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:12px;
  opacity:.85;
}

.app-footer button{
  background:none;
  border:1px solid var(--border);
  color:var(--text);
  padding:8px 18px;
  border-radius:999px;
  transition:.2s ease;
}

.app-footer button:hover{
  background:var(--accent);
  color:#fff;
  border-color:var(--accent);
}

.footer-brand{
  font-size:14px;
  letter-spacing:.3px;
}

.footer-note{
  font-size:13px;
  opacity:.65;
  letter-spacing:.4px;
}

.footer-note .brand-rose{
  font-weight:600;
}


/* =========================================================
   MOBILE ADJUSTMENTS
========================================================= */

@media (max-width:768px){

  .splash-section-title::after{
    content:" • Top " attr(data-count);
    opacity:.6;
    font-size:14px;
  }
  .menu-toggle{ display:block; }

  .toolbar{
    display:none;
    flex-direction:column;
  }

  .toolbar.open{ display:flex; }

  .filters{ flex-direction:column; }

  .modal-header{
    flex-direction:column;
    align-items:center;
  }

  .modal-poster{
    width:140px;
    height:205px;
  }

  .modal-info{
    width:100%;
    margin-top:12px;
  }

  .modal-watch{ margin-top:12px; }
}
