:root{font-family:Inter,system-ui,sans-serif;background:#0f1115;color:#f5f6f8}
*{box-sizing:border-box}
body{margin:0}
header{height:72px;padding:0 5vw;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #252a33}
header strong{font-size:20px;margin-right:12px}
header span,.muted{color:#9299a6}
main{width:min(1100px,92vw);margin:34px auto}
.hidden{display:none!important}
.panel{max-width:440px;margin:12vh auto;padding:28px;border:1px solid #292f39;border-radius:18px;background:#171a20}
.auth input,select,input{width:100%;padding:13px 14px;border:1px solid #343b47;border-radius:11px;background:#101318;color:white;margin:7px 0 14px}
button{border:0;border-radius:11px;padding:12px 16px;font-weight:700;cursor:pointer;background:#f3f4f6;color:#111}
.ghost{background:#252a33;color:#fff}
.toolbar{display:flex;justify-content:space-between;align-items:center}
.quick{margin:28px 0 20px;padding:20px;background:#171a20;border:1px solid #282e38;border-radius:16px}
.filters{display:flex;gap:9px;flex-wrap:wrap;margin:0 0 28px}
.filter{background:#20242c;color:#c7cbd2;padding:9px 14px}
.filter.active{background:#f3f4f6;color:#111}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:16px}
.card{background:#171a20;border:1px solid #292f39;border-radius:16px;overflow:hidden}
.card img{width:100%;aspect-ratio:2/3;object-fit:cover;background:#252a33}
.card .content{padding:14px}
.card h3{margin:0 0 6px}
.badge{display:inline-block;padding:4px 8px;background:#292f39;border-radius:999px;font-size:12px;color:#c7cbd2}
.card-actions{display:grid;grid-template-columns:1fr auto;gap:8px;margin-top:12px}
.next{width:100%}
.edit{background:#292f39;color:#fff;padding:12px 14px}
.result{display:flex;gap:12px;align-items:center;padding:10px;border-top:1px solid #292f39;cursor:pointer}
.result img{width:44px;height:66px;object-fit:cover;border-radius:6px}
.result:hover{background:#20242c}
.modal{position:fixed;inset:0;background:#000b;display:grid;place-items:center;padding:20px;z-index:50}
.modalbox{position:relative;background:#171a20;border:1px solid #343b47;border-radius:18px;padding:24px;width:min(460px,96vw);max-height:92vh;overflow:auto}
.x{position:absolute;right:12px;top:10px;background:transparent;color:#fff;font-size:26px}
.selected{display:flex;gap:12px;align-items:center;margin-bottom:12px}
.selected img{width:56px;border-radius:7px}
label{display:block;color:#c7cbd2;font-size:14px}
.modal-actions{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-top:4px}
.danger{background:#3a2024;color:#ffd8dc}
.toast{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);z-index:80;background:#f3f4f6;color:#111;border-radius:13px;padding:10px 12px 10px 16px;display:flex;gap:14px;align-items:center;box-shadow:0 10px 40px #0008;max-width:calc(100vw - 32px)}
.toast-undo{background:#252a33;color:#fff;padding:8px 12px}
@media(max-width:600px){
  header span{display:none}
  .toolbar h1{font-size:26px}
  .grid{grid-template-columns:1fr 1fr}
  .card .content{padding:10px}
  .card h3{font-size:15px}
  .card-actions{grid-template-columns:1fr}
  .edit{width:100%}
  .filters{gap:7px}
  .filter{font-size:13px;padding:8px 10px}
}


.service-filter{display:flex;align-items:center;gap:10px;margin:-10px 0 24px}
.service-filter label{font-size:14px;color:#9299a6;white-space:nowrap}
.service-filter select{width:auto;min-width:190px;margin:0;padding:9px 12px;background:#171a20}
@media(max-width:600px){
  .service-filter{align-items:stretch;flex-direction:column;gap:6px}
  .service-filter select{width:100%}
}

.field-help{margin:-8px 0 14px;color:#7f8794;font-size:12px}
.history-list{display:grid;gap:10px}
.history-row{display:grid;grid-template-columns:54px 1fr auto;gap:12px;align-items:center;background:#171a20;border:1px solid #292f39;border-radius:14px;padding:10px 14px}
.history-row img{width:54px;height:78px;object-fit:cover;border-radius:7px;background:#252a33}
.history-main strong{display:block;margin-bottom:4px}
.history-meta{color:#9299a6;font-size:13px}
.history-date{white-space:nowrap;text-align:right;color:#c7cbd2;font-size:13px}
@media(max-width:600px){
  .history-row{grid-template-columns:44px 1fr}
  .history-row img{width:44px;height:66px}
  .history-date{grid-column:2;text-align:left;margin-top:-6px}
}

.result-status{margin-top:5px;font-size:12px}
.result-status.registered{color:#d7f7df}
.result-status.new{color:#9299a6}
.result-check{display:inline-flex;align-items:center;gap:5px;padding:3px 7px;border-radius:999px;background:#203229}
.result-sub{margin-left:5px;color:#aab0bb}

.toolbar-actions{display:flex;gap:9px}
.library-filters{display:flex;gap:18px;align-items:flex-end;margin:-10px 0 24px}
.library-filters .service-filter{margin:0}
.watchers-fieldset{border:1px solid #343b47;border-radius:12px;padding:12px 14px;margin:7px 0 14px}
.watchers-fieldset legend{padding:0 6px;color:#c7cbd2;font-size:14px}
.watcher-choices{display:flex;flex-wrap:wrap;gap:8px}
.watcher-choice{display:flex;align-items:center;gap:7px;background:#20242c;border:1px solid #343b47;border-radius:999px;padding:7px 10px;cursor:pointer}
.watcher-choice input{width:auto;margin:0}
.profile-chips{display:flex;flex-wrap:wrap;gap:5px;margin:8px 0}
.profile-chip{display:inline-block;padding:3px 7px;border-radius:999px;background:#242b36;color:#d6dae2;font-size:11px}
.profiles-list{display:grid;gap:8px;margin:18px 0}
.profile-row{display:flex;align-items:center;justify-content:space-between;padding:11px 13px;border:1px solid #303641;border-radius:11px;background:#11151b}
.profile-row strong{font-size:15px}
.profile-me{font-size:11px;color:#9aa3b1}
.add-profile-form{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:center}
.add-profile-form input{margin:0}
.profilebox{width:min(500px,96vw)}
.result-profiles{display:block;margin-top:3px;color:#aab0bb;font-size:12px}

@media(max-width:600px){
  .toolbar-actions{gap:6px}
  .toolbar-actions button{padding:10px 11px}
  .library-filters{flex-direction:column;align-items:stretch;gap:10px}
  .add-profile-form{grid-template-columns:1fr}
}

.addbox{width:min(640px,96vw)}
.add-results{margin-top:8px;max-height:55vh;overflow:auto}
.add-results .result{border-radius:10px}
.add-results .result:first-child{border-top:0}

.profile-actions{display:flex;gap:7px}
.profile-edit{background:#292f39;color:#fff;padding:8px 11px;font-size:13px}

.profile-delete{background:#3a2024;color:#ffd8dc;padding:8px 11px;font-size:13px}
.profile-modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.profile-modal-head h2{margin-bottom:4px}
.role-badge{display:inline-block;padding:5px 9px;border-radius:999px;background:#243127;color:#d7f7df;font-size:12px;font-weight:700}
.role-note{margin:8px 0 14px;color:#9aa3b1;font-size:13px}

.profile-invite{background:#233146;color:#dbeafe;padding:8px 11px;font-size:13px}
.invite-result{margin-top:18px;padding:14px;border:1px solid #303641;border-radius:12px;background:#11151b}
.copy-row{display:grid;grid-template-columns:1fr auto;gap:8px}
.copy-row input{margin:0}
.copy-row button{white-space:nowrap}
.linked-label{display:inline-block;margin-top:4px;font-size:11px;color:#9bd6aa}

/* v0.6.1 modal stacking */
#profilesModal{z-index:60}
#inviteModal{z-index:70}
#addModal{z-index:65}
#modal{z-index:75}

.secondary{background:#292f39;color:#fff}
.wide{width:100%}
.auth-divider{display:flex;align-items:center;gap:10px;color:#737b89;margin:20px 0 14px}
.auth-divider::before,.auth-divider::after{content:"";height:1px;background:#303641;flex:1}
.auth-divider span{font-size:12px}
.auth-help{font-size:12px;color:#9299a6;margin:10px 0 0;line-height:1.45}
.signupbox{width:min(500px,96vw)}
.form-error{padding:10px 12px;border-radius:10px;background:#3a2024;color:#ffd8dc;font-size:13px;margin-top:12px}


/* v0.7.1 signup security */
.hp-field{
  position:absolute!important;
  left:-10000px!important;
  top:auto!important;
  width:1px!important;
  height:1px!important;
  overflow:hidden!important;
}
.turnstile-wrap{
  min-height:65px;
  margin:6px 0 14px;
  display:flex;
  justify-content:center;
  align-items:center;
}
.signup-success{
  padding:18px;
  border:1px solid #303844;
  background:#171c23;
  border-radius:12px;
  margin-top:12px;
}
.signup-success h3{margin:0 0 8px}
.signup-success p{line-height:1.5}
.verify-signup-status{
  margin-top:18px;
  padding:14px;
  border-radius:12px;
  background:#171c23;
  border:1px solid #303844;
  line-height:1.5;
}


/* v0.8 password reset */
.link-button{
  background:none;
  border:0;
  padding:10px 0 0;
  color:#aeb7c6;
  cursor:pointer;
  font:inherit;
  text-decoration:underline;
  text-underline-offset:3px;
}
.link-button:hover{color:#fff}

/* v0.8.1 */
#changePasswordBtn{white-space:nowrap}


/* =========================================================
   StreamHusk v0.9 UI POLISH
   Frontend only — no functional/API changes
   ========================================================= */

:root{
  --sh-bg:#0c0f14;
  --sh-panel:#131820;
  --sh-panel-2:#171d26;
  --sh-border:#252d38;
  --sh-text:#f3f5f7;
  --sh-muted:#9ba5b3;
  --sh-soft:#202733;
  --sh-accent:#f2f4f7;
  --sh-radius:16px;
  --sh-shadow:0 18px 50px rgba(0,0,0,.28);
}

html,body{
  background:
    radial-gradient(circle at 50% -10%,rgba(255,255,255,.055),transparent 34%),
    var(--sh-bg);
  color:var(--sh-text);
}

body{
  min-height:100vh;
}

header,
.app-header,
.topbar{
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
}

header{
  position:sticky;
  top:0;
  z-index:30;
  background:rgba(12,15,20,.88);
  border-bottom:1px solid rgba(255,255,255,.05);
}

.brand-lockup{
  display:flex;
  flex-direction:column;
  gap:1px;
}

.brand-lockup h1{
  margin:0;
  line-height:1.05;
  letter-spacing:-.03em;
}

.app-subtitle{
  font-size:12px;
  color:var(--sh-muted);
  letter-spacing:.01em;
}

main{
  max-width:1240px;
  margin:0 auto;
}

button,
select,
input{
  transition:border-color .18s ease,background .18s ease,transform .18s ease,box-shadow .18s ease;
}

button:active{
  transform:translateY(1px);
}

/* ---------- Account menu ---------- */

.account-menu-wrap{
  position:relative;
  margin-left:auto;
}

.account-menu-btn{
  display:flex;
  align-items:center;
  gap:8px;
  border:1px solid var(--sh-border);
  background:var(--sh-panel);
  color:var(--sh-text);
  border-radius:999px;
  padding:7px 11px 7px 7px;
}

.account-menu-btn:hover{
  background:var(--sh-panel-2);
  border-color:#374151;
}

.account-avatar{
  width:28px;
  height:28px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:#232b36;
  font-size:14px;
}

.account-label{
  font-size:13px;
  font-weight:600;
}

.account-caret{
  font-size:11px;
  color:var(--sh-muted);
}

.account-menu{
  position:absolute;
  right:0;
  top:calc(100% + 9px);
  width:190px;
  padding:7px;
  background:#151a22;
  border:1px solid var(--sh-border);
  border-radius:14px;
  box-shadow:var(--sh-shadow);
  z-index:90;
}

.account-menu button{
  width:100%;
  text-align:left;
  padding:10px 11px;
  border:0;
  border-radius:9px;
  background:transparent;
  color:var(--sh-text);
}

.account-menu button:hover{
  background:#202733;
}

.account-menu .danger-soft{
  color:#ffb7be;
}

/* ---------- Main actions / search ---------- */

#addBtn,
.add-button,
.primary-action{
  border-radius:12px;
  font-weight:700;
  box-shadow:0 8px 22px rgba(0,0,0,.22);
}

.search-wrap,
.searchbar,
#searchForm{
  position:relative;
}

input[type="search"],
input[type="text"],
input[type="email"],
input[type="password"],
select{
  background:#11161d;
  border:1px solid var(--sh-border);
  color:var(--sh-text);
  border-radius:11px;
}

input:focus,
select:focus{
  outline:none;
  border-color:#566170;
  box-shadow:0 0 0 3px rgba(255,255,255,.045);
}

/* ---------- Tabs ---------- */

.tabs,
.status-tabs,
nav.tabs{
  gap:6px;
  padding:5px;
  border:1px solid var(--sh-border);
  background:#10151c;
  border-radius:14px;
}

.tabs button,
.status-tabs button,
nav.tabs button{
  border:0;
  border-radius:10px;
  background:transparent;
  color:var(--sh-muted);
  font-weight:600;
  padding:9px 13px;
}

.tabs button:hover,
.status-tabs button:hover,
nav.tabs button:hover{
  color:var(--sh-text);
  background:#181e27;
}

.tabs button.active,
.status-tabs button.active,
nav.tabs button.active{
  color:#0c0f14;
  background:#f1f3f5;
  box-shadow:0 3px 10px rgba(0,0,0,.22);
}

/* ---------- Filter row ---------- */

.filters,
.filter-row{
  gap:10px;
}

.filters select,
.filter-row select{
  min-height:38px;
  padding:0 34px 0 12px;
}

/* ---------- Library cards ---------- */

.card,
.item-card,
.library-card{
  border:1px solid var(--sh-border);
  background:
    linear-gradient(180deg,rgba(255,255,255,.018),transparent 28%),
    var(--sh-panel);
  border-radius:var(--sh-radius);
  overflow:hidden;
  box-shadow:0 8px 26px rgba(0,0,0,.16);
}

.card:hover,
.item-card:hover,
.library-card:hover{
  transform:translateY(-2px);
  border-color:#333d49;
  box-shadow:0 16px 35px rgba(0,0,0,.24);
}

.card img,
.item-card img,
.library-card img{
  display:block;
  width:100%;
  object-fit:cover;
}

.card h3,
.item-card h3,
.library-card h3{
  letter-spacing:-.015em;
  line-height:1.2;
}

.card .muted,
.item-card .muted,
.library-card .muted{
  color:var(--sh-muted);
}

/* Make metadata chips feel app-like */
.chip,
.badge,
.profile-chip,
.service-chip{
  display:inline-flex;
  align-items:center;
  border-radius:999px;
  padding:4px 8px;
  border:1px solid #303947;
  background:#1a2029;
  color:#c9d0d9;
  font-size:11px;
  line-height:1;
}

/* Primary episode/progress readout */
.progress,
.episode,
.episode-progress,
.card-progress{
  font-weight:750;
  color:#f7f8f9;
  letter-spacing:.01em;
}

/* Card action row */
.card-actions,
.item-actions{
  display:flex;
  gap:7px;
  align-items:center;
  flex-wrap:wrap;
}

.card-actions button,
.item-actions button{
  border-radius:9px;
  min-height:34px;
}

.card-actions button:first-child,
.item-actions button:first-child{
  font-weight:700;
}

.card-actions .secondary,
.item-actions .secondary{
  opacity:.86;
}

/* ---------- Search results ---------- */

.search-result,
.tmdb-result{
  border:1px solid transparent;
  border-radius:12px;
  padding:9px;
}

.search-result:hover,
.tmdb-result:hover{
  background:#171d25;
  border-color:#252e3a;
}

/* ---------- History ---------- */

.history-list,
#historyList{
  position:relative;
}

.history-item{
  position:relative;
  border-left:2px solid #2d3541;
  padding-left:18px;
  margin-left:6px;
}

.history-item::before{
  content:"";
  position:absolute;
  left:-6px;
  top:14px;
  width:10px;
  height:10px;
  border-radius:50%;
  background:#cfd5dc;
  box-shadow:0 0 0 4px var(--sh-bg);
}

/* ---------- Empty states ---------- */

.empty,
.empty-state{
  border:1px dashed #303947;
  background:#10151b;
  border-radius:16px;
  padding:34px 22px;
  color:var(--sh-muted);
  text-align:center;
}

/* ---------- Modals ---------- */

.modal{
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
  background:rgba(3,5,8,.72);
}

.modalbox{
  border:1px solid #29323e;
  background:
    linear-gradient(180deg,rgba(255,255,255,.025),transparent 20%),
    #141920;
  border-radius:18px;
  box-shadow:0 26px 80px rgba(0,0,0,.46);
}

.modalbox h2{
  letter-spacing:-.02em;
}

.modalbox .x{
  border-radius:50%;
}

/* ---------- Login / auth ---------- */

.auth-card,
#auth{
  border-radius:20px;
}

#loginForm button,
#signupForm button,
#forgotPasswordForm button,
#resetPasswordForm button,
#changePasswordForm button{
  min-height:42px;
  border-radius:11px;
  font-weight:700;
}

/* ---------- Responsive ---------- */

@media (max-width:760px){
  .account-label{
    display:none;
  }

  .account-menu-btn{
    padding-right:8px;
  }

  .app-subtitle{
    display:none;
  }

  .tabs,
  .status-tabs,
  nav.tabs{
    overflow-x:auto;
    justify-content:flex-start;
    scrollbar-width:none;
  }

  .tabs::-webkit-scrollbar,
  .status-tabs::-webkit-scrollbar,
  nav.tabs::-webkit-scrollbar{
    display:none;
  }
}



/* =========================================================
   StreamHusk v0.9.1 — Account menu + streaming brand badges
   ========================================================= */

.account-menu-wrap{
  position:relative;
  display:inline-flex;
  align-items:center;
}

.account-menu-btn{
  display:flex;
  align-items:center;
  gap:8px;
  min-height:44px;
  padding:6px 11px 6px 6px;
  border:1px solid #2b3440;
  background:#171d25;
  color:#f4f6f8;
  border-radius:12px;
  font-weight:700;
}

.account-menu-btn:hover{
  background:#1d242e;
  border-color:#3b4654;
}

.account-avatar{
  width:30px;
  height:30px;
  display:grid;
  place-items:center;
  border-radius:9px;
  background:#252d38;
  font-size:13px;
  font-weight:800;
}

.account-caret{
  color:#8f9aa8;
  font-size:11px;
}

.account-menu{
  position:absolute;
  top:calc(100% + 8px);
  right:0;
  z-index:200;
  width:190px;
  padding:7px;
  border:1px solid #29323d;
  border-radius:13px;
  background:#141a21;
  box-shadow:0 20px 55px rgba(0,0,0,.45);
}

.account-menu button{
  display:block;
  width:100%;
  border:0;
  background:transparent;
  color:#eef1f4;
  text-align:left;
  border-radius:9px;
  padding:10px 11px;
  font-weight:600;
}

.account-menu button:hover{
  background:#202731;
}

.account-menu .danger-soft{
  color:#ffb5bd;
}

/* Streaming services */

.service-logo-badge{
  display:inline-flex;
  align-items:center;
  gap:7px;
  min-height:25px;
  padding:3px 8px 3px 5px;
  border:1px solid rgba(255,255,255,.09);
  border-radius:999px;
  background:#151b22;
  color:#dfe4e9;
  font-size:11px;
  line-height:1;
  vertical-align:middle;
  white-space:nowrap;
}

.service-logo-mark{
  min-width:22px;
  height:19px;
  display:inline-grid;
  place-items:center;
  border-radius:6px;
  padding:0 5px;
  background:#232a33;
  color:#fff;
  font-size:10px;
  font-weight:900;
  letter-spacing:-.03em;
}

.service-logo-name{
  opacity:.88;
}

/* brand identity without loud rainbow cards */
.brand-netflix .service-logo-mark{
  color:#e50914;
  background:#0c0c0c;
  font-size:16px;
  font-family:Arial,sans-serif;
}
.brand-prime .service-logo-mark{
  color:#6fc9ff;
  background:#0d1d2a;
}
.brand-disney .service-logo-mark{
  color:#fff;
  background:#102c7b;
  font-size:9px;
}
.brand-max .service-logo-mark{
  color:#fff;
  background:#5b20d6;
  text-transform:lowercase;
}
.brand-sky .service-logo-mark{
  color:#fff;
  background:linear-gradient(135deg,#ff5f6d,#7b61ff);
}
.brand-apple .service-logo-mark{
  color:#fff;
  background:#050505;
}
.brand-viaplay .service-logo-mark{
  color:#ff5a7a;
  background:#24121a;
  font-size:14px;
}
.brand-tv2 .service-logo-mark{
  color:#fff;
  background:#e31d2b;
}
.brand-dr .service-logo-mark{
  color:#fff;
  background:#0066b3;
}
.brand-generic .service-logo-mark{
  color:#dfe4e9;
}

/* slightly more visual card polish */
.card,
.item-card,
.library-card{
  position:relative;
}

.card::after,
.item-card::after,
.library-card::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  border-radius:inherit;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025);
}

@media (max-width:700px){
  .account-label{
    display:none;
  }
  .service-logo-name{
    display:none;
  }
  .service-logo-badge{
    padding-right:5px;
  }
}


/* v0.9.2 - stronger service branding */
.service-logo-badge{
  display:inline-flex!important;
  align-items:center!important;
  gap:6px!important;
  margin-left:4px;
  min-height:24px;
  padding:2px 8px 2px 4px!important;
  border-radius:999px!important;
  border:1px solid rgba(255,255,255,.10)!important;
  font-size:11px!important;
  font-weight:700;
}

.service-logo-mark{
  min-width:24px!important;
  height:20px!important;
  border-radius:6px!important;
  padding:0 5px!important;
  display:inline-grid!important;
  place-items:center!important;
}

.brand-netflix{
  background:#171010!important;
}
.brand-netflix .service-logo-mark{
  background:#000!important;
  color:#e50914!important;
  font-size:17px!important;
}

.brand-prime{
  background:#0d1820!important;
}
.brand-prime .service-logo-mark{
  background:#102737!important;
  color:#51bfff!important;
}

.brand-disney{
  background:#111a38!important;
}
.brand-disney .service-logo-mark{
  background:#173c9a!important;
  color:#fff!important;
}

.brand-max{
  background:#171129!important;
}
.brand-max .service-logo-mark{
  background:#5b20d6!important;
  color:#fff!important;
}

.brand-sky{
  background:#201625!important;
}
.brand-sky .service-logo-mark{
  background:linear-gradient(135deg,#ff5f6d,#7b61ff)!important;
  color:#fff!important;
}

.brand-apple{
  background:#111!important;
}
.brand-apple .service-logo-mark{
  background:#000!important;
  color:#fff!important;
}

.brand-viaplay{
  background:#24141a!important;
}
.brand-viaplay .service-logo-mark{
  background:#39131f!important;
  color:#ff5a7a!important;
  font-size:15px!important;
}

.brand-tv2{
  background:#211113!important;
}
.brand-tv2 .service-logo-mark{
  background:#e31d2b!important;
  color:#fff!important;
}

.brand-dr{
  background:#101a23!important;
}
.brand-dr .service-logo-mark{
  background:#0066b3!important;
  color:#fff!important;
}


/* v0.9.3 exact service badge placement */
.card .service-logo-badge{
  margin:2px 0 8px 0!important;
  width:max-content;
}

.history-meta{
  display:flex;
  align-items:center;
  gap:7px;
  flex-wrap:wrap;
}

.history-meta .service-logo-badge{
  margin-left:0!important;
}

.result-sub .service-logo-badge{
  margin-left:6px!important;
  transform:translateY(1px);
}

.muted-service{
  opacity:.55;
}


/* =========================================================
   StreamHusk v0.9.4 — REAL LOCAL STREAMING SERVICE LOGOS
   ========================================================= */

.service-logo-badge{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:28px!important;
  height:28px!important;
  max-width:128px;
  padding:4px 8px!important;
  margin:2px 0 8px 0!important;
  border-radius:8px!important;
  border:1px solid rgba(255,255,255,.11)!important;
  background:#f4f5f7!important;
  box-shadow:0 2px 7px rgba(0,0,0,.16);
  overflow:hidden;
  vertical-align:middle;
}

.service-real-logo{
  display:block!important;
  width:auto!important;
  height:18px!important;
  max-width:108px!important;
  max-height:18px!important;
  object-fit:contain!important;
}

/* Netflix N is naturally tall */
.brand-netflix{
  width:32px!important;
  padding:3px 8px!important;
  background:#050505!important;
}
.brand-netflix .service-real-logo{
  height:21px!important;
  max-height:21px!important;
}

/* Viaplay/Prime logos benefit from a wider badge */
.brand-viaplay,
.brand-prime{
  min-width:90px;
}

/* Black wordmarks need a light plate */
.brand-disney,
.brand-max,
.brand-sky,
.brand-apple,
.brand-viaplay{
  background:#f5f6f8!important;
}

/* TV 2 Play source logo already has its own purple background */
.brand-tv2{
  background:#6f00ff!important;
  padding:2px 7px!important;
}
.brand-tv2 .service-real-logo{
  height:20px!important;
  max-height:20px!important;
}

/* DR TV logo is square-ish, keep it compact */
.brand-dr{
  width:39px!important;
  height:31px!important;
  padding:2px!important;
  background:#111!important;
}
.brand-dr .service-real-logo{
  height:27px!important;
  max-height:27px!important;
}

.brand-generic{
  background:#171d25!important;
  color:#dfe5eb!important;
  border-color:#303947!important;
  padding:5px 9px!important;
  height:auto!important;
  min-height:25px!important;
}

.brand-generic .service-logo-name{
  display:inline!important;
  font-size:11px;
  font-weight:700;
}

.history-meta .service-logo-badge{
  margin:0!important;
}

.result-sub .service-logo-badge{
  margin:0 0 0 6px!important;
  transform:translateY(6px);
}

/* Hide obsolete generated mark, should not be used anymore */
.service-logo-mark{
  display:none!important;
}

@media (max-width:700px){
  .service-logo-badge{
    max-width:105px;
  }
  .service-real-logo{
    max-width:90px!important;
  }
}


/* =========================================================
   StreamHusk v0.9.5 — tighter real-logo presentation
   ========================================================= */

.service-logo-badge{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:auto!important;
  min-width:0!important;
  max-width:none!important;
  height:26px!important;
  min-height:26px!important;
  padding:3px 7px!important;
  margin:2px 0 8px 0!important;
  border-radius:7px!important;
  border:1px solid #303846!important;
  background:#171c23!important;
  box-shadow:none!important;
  overflow:visible!important;
}

.service-real-logo{
  display:block!important;
  width:auto!important;
  height:17px!important;
  max-width:88px!important;
  max-height:17px!important;
  object-fit:contain!important;
}

/* individual tuning */
.brand-netflix{
  width:30px!important;
  background:#050505!important;
  padding:2px 7px!important;
}
.brand-netflix .service-real-logo{
  height:20px!important;
  max-height:20px!important;
}

.brand-viaplay{
  min-width:0!important;
  background:#171c23!important;
}
.brand-viaplay .service-real-logo{
  height:18px!important;
  max-height:18px!important;
  max-width:84px!important;
}

.brand-prime .service-real-logo{
  height:16px!important;
  max-height:16px!important;
  max-width:82px!important;
}

.brand-disney .service-real-logo,
.brand-max .service-real-logo,
.brand-sky .service-real-logo,
.brand-apple .service-real-logo{
  height:16px!important;
  max-height:16px!important;
  max-width:88px!important;
}

.brand-tv2{
  background:#171c23!important;
  padding:3px 6px!important;
}
.brand-tv2 .service-real-logo{
  height:18px!important;
  max-height:18px!important;
}

.brand-dr{
  width:auto!important;
  height:26px!important;
  background:#171c23!important;
  padding:3px 6px!important;
}
.brand-dr .service-real-logo{
  height:18px!important;
  max-height:18px!important;
}

.history-meta .service-logo-badge{
  margin:0!important;
  height:24px!important;
  min-height:24px!important;
}

.history-meta .service-real-logo{
  height:15px!important;
  max-height:15px!important;
}

.result-sub .service-logo-badge{
  height:23px!important;
  min-height:23px!important;
  margin:0 0 0 5px!important;
}

@media (max-width:700px){
  .service-logo-badge{
    height:25px!important;
    min-height:25px!important;
  }
  .service-real-logo{
    max-width:78px!important;
  }
}


/* =========================================================
   StreamHusk v0.9.6 — CLEAN DARK-MODE SERVICE LOGOS
   ========================================================= */

/* Remove the "badge/pill" look completely */
.service-logo-badge{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  width:auto!important;
  min-width:0!important;
  max-width:120px!important;
  height:24px!important;
  min-height:24px!important;
  padding:0!important;
  margin:3px 0 9px 0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  overflow:visible!important;
}

.service-real-logo{
  display:block!important;
  width:auto!important;
  height:19px!important;
  max-width:102px!important;
  max-height:19px!important;
  object-fit:contain!important;
  filter:none!important;
}

/* Service-specific proportions */
.brand-netflix{
  width:24px!important;
  height:24px!important;
  background:transparent!important;
  padding:0!important;
}
.brand-netflix .service-real-logo{
  height:23px!important;
  max-height:23px!important;
  max-width:22px!important;
}

.brand-viaplay .service-real-logo{
  height:20px!important;
  max-height:20px!important;
  max-width:96px!important;
}

.brand-prime .service-real-logo{
  height:20px!important;
  max-height:20px!important;
  max-width:96px!important;
}

.brand-disney .service-real-logo{
  height:19px!important;
  max-height:19px!important;
  max-width:92px!important;
}

.brand-max .service-real-logo{
  height:18px!important;
  max-height:18px!important;
  max-width:94px!important;
}

.brand-sky .service-real-logo{
  height:17px!important;
  max-height:17px!important;
  max-width:102px!important;
}

.brand-apple .service-real-logo{
  height:19px!important;
  max-height:19px!important;
  max-width:82px!important;
}

.brand-tv2{
  background:transparent!important;
  padding:0!important;
}
.brand-tv2 .service-real-logo{
  height:21px!important;
  max-height:21px!important;
  max-width:86px!important;
}

.brand-dr{
  width:auto!important;
  height:23px!important;
  background:transparent!important;
  padding:0!important;
}
.brand-dr .service-real-logo{
  height:21px!important;
  max-height:21px!important;
  max-width:52px!important;
}

/* History: small clean logo beside episode */
.history-meta{
  display:flex!important;
  align-items:center!important;
  gap:9px!important;
}

.history-meta .service-logo-badge{
  height:20px!important;
  min-height:20px!important;
  margin:0!important;
}

.history-meta .service-real-logo{
  height:17px!important;
  max-height:17px!important;
  max-width:88px!important;
}

/* Search result */
.result-sub .service-logo-badge{
  display:inline-flex!important;
  height:20px!important;
  min-height:20px!important;
  margin:0 0 0 7px!important;
  transform:translateY(5px);
}

/* Unknown service remains a subtle text chip */
.brand-generic{
  height:auto!important;
  min-height:22px!important;
  padding:3px 7px!important;
  border:1px solid #303947!important;
  border-radius:999px!important;
  background:#171d25!important;
  color:#dfe5eb!important;
}

@media (max-width:700px){
  .service-real-logo{
    max-width:88px!important;
  }
}


/* =========================================================
   StreamHusk v0.9.7 — SIMPLE TMDB WATCH-PROVIDER LOGOS
   No pills, no recoloring, no local brand assets.
   ========================================================= */

.service-provider-logo-wrap{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:28px;
  height:28px;
  margin:2px 0 8px 0;
  padding:0;
  border:0;
  background:transparent;
  vertical-align:middle;
}

.service-provider-logo{
  display:block!important;
  width:28px!important;
  height:28px!important;
  min-width:28px!important;
  min-height:28px!important;
  max-width:28px!important;
  max-height:28px!important;
  object-fit:cover!important;
  border-radius:7px!important;
  border:0!important;
  padding:0!important;
  margin:0!important;
  background:transparent!important;
  box-shadow:none!important;
  filter:none!important;
}

.service-provider-fallback{
  display:none;
  align-items:center;
  width:max-content;
  padding:3px 7px;
  border:1px solid #303947;
  border-radius:999px;
  background:#171d25;
  color:#dfe5eb;
  font-size:11px;
  line-height:1;
  white-space:nowrap;
}

.service-provider-fallback.visible{
  display:inline-flex;
  margin:2px 0 8px 0;
}

.history-meta{
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  flex-wrap:wrap;
}

.history-meta .service-provider-logo-wrap{
  width:24px;
  height:24px;
  margin:0;
}

.history-meta .service-provider-logo{
  width:24px!important;
  height:24px!important;
  min-width:24px!important;
  min-height:24px!important;
  max-width:24px!important;
  max-height:24px!important;
  border-radius:6px!important;
}

.result-sub .service-provider-logo-wrap{
  width:22px;
  height:22px;
  margin:0 0 0 6px;
  transform:translateY(5px);
}

.result-sub .service-provider-logo{
  width:22px!important;
  height:22px!important;
  min-width:22px!important;
  min-height:22px!important;
  max-width:22px!important;
  max-height:22px!important;
  border-radius:5px!important;
}

/* Kill all previous experimental logo styles */
.service-logo-badge,
.service-real-logo,
.service-logo-mark{
  display:none!important;
}
