:root{
  --bg:#0b0f14;
  --panel:#0f1620;
  --card:#121c28;
  --text:#e8eef6;
  --muted:#a8b3c5;
  --border:rgba(255,255,255,.08);
  --accent:#6ae4ff;
  --accent2:#a78bfa;
  --shadow: 0 18px 60px rgba(0,0,0,.55);
  --r:18px;

  --bg-grad-1: rgba(106,228,255,.16);
  --bg-grad-2: rgba(167,139,250,.14);

  --header-bg: rgba(11,15,20,.76);
  --search-bg: rgba(15,22,32,.75);

  --btn-bg: rgba(18,28,40,.65);
  --btn-ghost-bg: rgba(15,22,32,.55);
  --btn-primary-border: rgba(106,228,255,.45);
  --btn-primary-grad-1: rgba(106,228,255,.22);
  --btn-primary-grad-2: rgba(167,139,250,.20);

  --filters-bg: rgba(15,22,32,.55);
  --chip-bg: rgba(18,28,40,.55);
  --chip-active-bg: rgba(106,228,255,.14);

  --modal-bg: rgba(15,22,32,.86);
  --modal-actions-bg: rgba(15,22,32,.92);

  --player-shell-bg: rgba(18,28,40,.50);
  --player-frame-bg: rgba(0,0,0,.35);

  --scene-mode-bg: rgba(0,0,0,.18);
  --scene-hint-bg: rgba(255,255,255,.04);

  --card-bg: rgba(18,28,40,.55);
  --badge-bg: rgba(15,22,32,.55);
  --tag-bg: rgba(18,28,40,.55);

}

html { transition: background-color .22s ease, color .22s ease; }
body, .header, .search, .btn, .filters, .card, .modal, .player-shell {
  transition: background .22s ease, color .22s ease, border-color .22s ease;
}

html[data-theme="dawn"]{
  --bg:#f6f3ff;
  --panel:#ffffff;
  --card:#ffffff;
  --text: rgba(18,20,28,.92);
  --muted: rgba(18,20,28,.60);
  --border: rgba(18,20,28,.12);
  --accent:#7b5cff;
  --accent2:#2b7cff;
  --shadow: 0 18px 60px rgba(18,20,28,.14);

  --bg-grad-1: rgba(123,92,255,.12);
  --bg-grad-2: rgba(43,124,255,.10);

  --header-bg: rgba(255,255,255,.78);
  --search-bg: rgba(18,20,28,.05);

  --btn-bg: rgba(18,20,28,.06);
  --btn-ghost-bg: rgba(18,20,28,.04);
  --btn-primary-border: rgba(123,92,255,.28);
  --btn-primary-grad-1: rgba(123,92,255,.14);
  --btn-primary-grad-2: rgba(43,124,255,.12);

  --filters-bg: rgba(18,20,28,.04);
  --chip-bg: rgba(123,92,255,.10);
  --chip-active-bg: rgba(123,92,255,.18);

  --modal-bg: rgba(255,255,255,.92);
  --modal-actions-bg: rgba(255,255,255,.92);

  --player-shell-bg: rgba(18,20,28,.04);
  --player-frame-bg: rgba(0,0,0,.10);

  --scene-mode-bg: rgba(18,20,28,.05);
  --scene-hint-bg: rgba(18,20,28,.04);

  --card-bg: rgba(18,20,28,.04);
  --badge-bg: rgba(123,92,255,.10);
  --tag-bg: rgba(43,124,255,.08);
}

html[data-theme="light"]{
  --bg:#ffffff;
  --panel:#ffffff;
  --card:#ffffff;
  --text: rgba(18,20,28,.92);
  --muted: rgba(18,20,28,.58);
  --border: rgba(18,20,28,.14);
  --accent:#2b7cff;
  --accent2:#7b5cff;
  --shadow: 0 18px 60px rgba(18,20,28,.12);

  --bg-grad-1: rgba(43,124,255,.10);
  --bg-grad-2: rgba(123,92,255,.08);

  --header-bg: rgba(255,255,255,.82);
  --search-bg: rgba(18,20,28,.05);

  --btn-bg: rgba(18,20,28,.06);
  --btn-ghost-bg: rgba(18,20,28,.04);
  --btn-primary-border: rgba(43,124,255,.26);
  --btn-primary-grad-1: rgba(43,124,255,.14);
  --btn-primary-grad-2: rgba(123,92,255,.10);

  --filters-bg: rgba(18,20,28,.04);
  --chip-bg: rgba(43,124,255,.10);
  --chip-active-bg: rgba(43,124,255,.18);

  --modal-bg: rgba(255,255,255,.94);
  --modal-actions-bg: rgba(255,255,255,.94);

  --player-shell-bg: rgba(18,20,28,.04);
  --player-frame-bg: rgba(0,0,0,.10);

  --scene-mode-bg: rgba(18,20,28,.05);
  --scene-hint-bg: rgba(18,20,28,.04);

  --card-bg: rgba(18,20,28,.04);
  --badge-bg: rgba(43,124,255,.10);
  --tag-bg: rgba(123,92,255,.08);
}

html[data-theme="sunset"]{
  --bg:#120f17;
  --panel:#17121f;
  --card:#1b1526;
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.66);
  --border: rgba(255,184,130,.18);
  --accent:#ff8a4c;
  --accent2:#a78bfa;
  --shadow: 0 18px 60px rgba(0,0,0,.46);

  --bg-grad-1: rgba(255,138,76,.14);
  --bg-grad-2: rgba(167,139,250,.12);

  --header-bg: rgba(18,15,23,.78);
  --search-bg: rgba(27,21,38,.72);

  --btn-bg: rgba(27,21,38,.58);
  --btn-ghost-bg: rgba(23,18,31,.54);
  --btn-primary-border: rgba(255,138,76,.35);
  --btn-primary-grad-1: rgba(255,138,76,.20);
  --btn-primary-grad-2: rgba(167,139,250,.16);

  --filters-bg: rgba(23,18,31,.55);
  --chip-bg: rgba(27,21,38,.55);
  --chip-active-bg: rgba(255,138,76,.14);

  --modal-bg: rgba(23,18,31,.88);
  --modal-actions-bg: rgba(23,18,31,.92);

  --player-shell-bg: rgba(27,21,38,.50);
  --player-frame-bg: rgba(0,0,0,.30);

  --scene-mode-bg: rgba(0,0,0,.22);
  --scene-hint-bg: rgba(255,255,255,.04);

  --card-bg: rgba(27,21,38,.55);
  --badge-bg: rgba(23,18,31,.55);
  --tag-bg: rgba(27,21,38,.55);
}

html[data-theme="dark"] {
  --_noop: 1;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color:var(--text);
  background:
    radial-gradient(1200px 600px at 30% -10%, var(--bg-grad-1), transparent 55%),
    radial-gradient(900px 500px at 95% 0%,  var(--bg-grad-2), transparent 55%),
    var(--bg);

}

.header{
  position:sticky; top:0; z-index:10;
  display:flex; align-items:center; justify-content:space-between;
  gap:14px;
  padding:18px 20px;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--border);
}

.brand{ display:flex; align-items:center; gap:12px; }
.logo{
  width:44px; height:44px;
  display:grid; place-items:center;
  background: linear-gradient(135deg, rgba(106,228,255,.18), rgba(167,139,250,.18));
  border:1px solid var(--border);
  border-radius:14px;
  box-shadow: var(--shadow);
}
.brand-title{ font-weight:800; letter-spacing:.3px; }
.brand-sub{ font-size:12px; color:var(--muted); margin-top:2px; }

.header-actions{ display:flex; align-items:center; gap:10px; }

.search{
  display:flex; align-items:center; gap:10px;
  padding:10px 12px;
  background: var(--search-bg);
  border:1px solid var(--border);
  border-radius:14px;
  min-width: 320px;
}
.search-ico{ color:var(--muted); }
.search input{
  width:100%;
  border:0; outline:0;
  background:transparent;
  color:var(--text);
  font-size:14px;
}

.btn{
  border:1px solid var(--border);
  background: var(--btn-bg);
  color: var(--text);
  padding:10px 12px;
  border-radius:14px;
  cursor:pointer;
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
}
.btn:hover{ transform: translateY(-1px); border-color: rgba(255,255,255,.16); }
.btn:active{ transform: translateY(0px); }
.btn.ghost{ background: var(--btn-ghost-bg); }
.btn.primary{
  border-color: var(--btn-primary-border);
  background: linear-gradient(135deg, var(--btn-primary-grad-1), var(--btn-primary-grad-2));
}

.btn.primary:hover{ border-color: rgba(106,228,255,.8); }

.main{
  max-width: 1500px;   
  margin: 0 auto;
  padding: 20px;
}
.filters{
  width:100%;
  padding:16px;
  border:1px solid var(--border);
  background: var(--filters-bg);
  border-radius: var(--r);
  box-shadow: var(--shadow);
}

.filters-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  min-width:0;
}

.chip-group{
  display:flex;
  align-items:center;
  gap:10px;
  flex:1 1 100%;
  min-width:0;            
}

.chip-group > .chip{
  flex:0 0 auto;
}

.chip-scroll{
  flex:1 1 auto;          
  min-width:0;            
  display:flex;
  gap:8px;
  padding-bottom:6px;

  overflow-x:auto;
  overflow-y:hidden;
  white-space:nowrap;
  cursor: grab;
}

.chip-scroll.is-dragging{
  cursor: grabbing;
}

.chip-scroll.is-dragging .chip{
  pointer-events: none; 
}

.chip{
  white-space:nowrap;
  border:1px solid var(--border);
  background: var(--chip-bg);
  color:var(--text);
  padding:8px 10px;
  border-radius:999px;
  cursor:pointer;
  font-size:13px;
}
.chip:hover{
  border-color: rgba(255,255,255,.16);
}
.chip.is-active{
  border-color: rgba(106,228,255,.6);
  background: var(--chip-active-bg);
}

.selects{
  display:flex;
  gap:10px;

  margin-left:auto;     
  flex:0 0 auto;        
  flex-wrap:nowrap;
}

.select{
  flex:0 0 auto;
  border:1px solid var(--border);
  background: var(--chip-bg);          
  color:var(--text);
  padding:10px 12px;
  border-radius:14px;
  outline:none;
}

.meta{ margin-top:10px; color:var(--muted); font-size:13px; }
.dot{ margin:0 8px; opacity:.6; }
.muted{ color:var(--muted); }

.grid{
  margin-top:18px;
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap:14px;
}

.card{
  position:relative;
  border:1px solid var(--border);
  background: var(--card-bg);
  border-radius: var(--r);
  overflow:hidden;
  cursor:pointer;
  box-shadow: var(--shadow);
  transition: transform .12s ease, border-color .12s ease;
}
.card:hover{ transform: translateY(-2px); border-color: rgba(255,255,255,.16); }

.poster{
  width:100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  display:block;
  filter: saturate(1.05) contrast(1.02);
}
.card-body{ padding:12px; }
.card-title{ font-weight:800; line-height:1.15; }
.card-sub{ margin-top:6px; font-size:13px; color:var(--muted); display:flex; gap:8px; flex-wrap:wrap; }

.badge{
  display:inline-flex; align-items:center; gap:6px;
  padding:6px 8px;
  border-radius:999px;
  border:1px solid var(--border);
  background: var(--badge-bg);     
  font-size:12px;
}

.empty{
  margin:22px auto;
  padding:28px;
  max-width:540px;
  text-align:center;
  border:1px dashed rgba(255,255,255,.18);
  border-radius: var(--r);
  color:var(--muted);
}
.empty-title{ color:var(--text); font-weight:800; font-size:18px; }
.empty-sub{ margin-top:8px; }

.hidden{ display:none !important; }

.modal-overlay{
  position:fixed; inset:0;
  background: rgba(0,0,0,.65);
  display:grid; place-items:center;
  padding:18px;
}
.modal{
  width:min(980px, 100%);
  border:1px solid var(--border);
  background: var(--modal-bg);
  border-radius: 22px;
  box-shadow: var(--shadow);
  position:relative;
  overflow:hidden;
}
.modal-close{
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  border-radius: 14px;

  border: 1px solid rgba(255, 0, 0, .18);
  background: rgba(255, 0, 0, .08);
  color: rgba(255, 0, 0, .55);

  display: grid;
  place-items: center;

  cursor: pointer;
  transition:
    background .12s ease,
    color .12s ease,
    border-color .12s ease,
    transform .12s ease,
    box-shadow .12s ease;
}

.modal-close:hover{
  background: rgba(255, 59, 59, .95);
  color: #fff;
  border-color: rgba(255, 59, 59, .95);
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 12px 28px rgba(255, 59, 59, .28);
}

.modal-close:active{
  transform: translateY(0) scale(.99);
}

.modal-body{
  display:grid;
  grid-template-columns: 320px 1fr;
  gap:16px;
  padding:18px;
}
.modal-poster-wrap{ position:relative; }
.modal-poster{
  width:100%;
  border-radius: 18px;
  border:1px solid var(--border);
  display:block;
}
.poster-glow{
  position:absolute; inset:40% -30% -30% -30%;
  background: radial-gradient(closest-side, rgba(106,228,255,.25), transparent 70%);
  filter: blur(20px);
  pointer-events:none;
}
.modal-title{ margin:0; font-size:26px; letter-spacing:.2px; }
.modal-meta{ margin-top:8px; color:var(--muted); display:flex; gap:8px; flex-wrap:wrap; }

.tags{ margin-top:12px; display:flex; flex-wrap:wrap; gap:8px; }
.tag{
  border:1px solid var(--border);
  background: var(--tag-bg);      /* ✅ */
  padding:6px 8px;
  border-radius:999px;
  font-size:12px;
  color:var(--text);
}

.modal-overview{ margin:14px 0 0; color:var(--text); opacity:.95; line-height:1.5; }

.modal-actions{
  background: var(--modal-actions-bg) !important;   
  border-top: 1px solid var(--border) !important;
}

html[data-theme="dawn"] .modal-actions,
html[data-theme="light"] .modal-actions{
  background: rgba(255,255,255,.94) !important;
}


.hint{ margin-top:14px; color:var(--muted); font-size:12px; }

@media (max-width: 980px){
  .grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  .search{ min-width: 220px; }
  .modal-body{ grid-template-columns: 1fr; }
}
@media (max-width: 560px){
  .grid{ grid-template-columns: 1fr; }
}

@keyframes popIn {
  from { transform: translateY(14px) scale(.98); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.modal-overlay{
  animation: fadeIn .14s ease-out;
}

.modal{
  animation: popIn .18s ease-out;
}

.card::after{
  content:"";
  position:absolute; inset:-1px;
  background: radial-gradient(420px 240px at 20% 0%,
    rgba(106,228,255,.14), transparent 55%);
  opacity:0;
  transition: opacity .14s ease;
  pointer-events:none;
}
.card:hover::after{ opacity:1; }

.card .poster{
  transition: transform .18s ease, filter .18s ease;
}
.card:hover .poster{
  transform: scale(1.03);
  filter: saturate(1.15) contrast(1.05);
}

.modal-poster-wrap{
  border-radius:18px;
  overflow:hidden;
}

.backdrop-blur{
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,.10), rgba(0,0,0,.72));
  backdrop-filter: blur(10px);
  pointer-events:none;
}

.player-shell{
  margin-top:16px;
  border:1px solid var(--border);
  background: var(--player-shell-bg);
  border-radius: 18px;
  overflow:hidden;
}

.player-head{
  padding:12px 12px 10px;
  border-bottom:1px solid var(--border);
  display:flex; align-items:baseline; justify-content:space-between;
  gap:12px;
}
.player-title{ font-weight:800; }
.player-sub{ font-size:12px; color:var(--muted); }

.player-frame{
  position:relative;
  background: var(--player-frame-bg);
  aspect-ratio: 16 / 9;
}

.player{
  width:100%;
  height:100%;
  display:block;
  background:#000;
}

.player-mask{
  position:absolute; inset:0;
  display:grid;
  place-items:center;
  text-align:center;
  padding:18px;
  background: radial-gradient(600px 260px at 50% 40%,
    rgba(106,228,255,.16), rgba(0,0,0,.72));
  border-top:1px solid rgba(255,255,255,.06);
}
.mask-title{
  font-weight:900;
  font-size:18px;
  letter-spacing:.2px;
}
.mask-sub{
  margin-top:8px;
  color:var(--muted);
  font-size:13px;
  max-width: 420px;
}
.player-mask .btn{ margin-top:14px; }

.modal-actions{
  position: sticky;
  bottom: 0;
  background: linear-gradient(180deg, transparent, rgba(15,22,32,.92) 22%);
  padding-top: 12px;
}

@media (max-width: 980px){
  .player-frame{ aspect-ratio: 16 / 10; }
}

.embed-wrap{ width:100%; height:100%; }
.embed{ width:100%; height:100%; display:block; background:#000; border:0; }

.filters {
  display: grid;
  gap: 10px;
}

.filters-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.chip-group {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.chip-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  padding: 4px 2px;
  min-width: 0;
  max-width: 100%;
  scroll-behavior: smooth;
}

.chip-scroll::-webkit-scrollbar {
  height: 6px;
}
.chip-scroll::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.12);
  border-radius: 999px;
}
.chip-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.selects {
  margin-left: auto;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.active-filters{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  padding:6px 2px;
}

.af-chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  border:1px solid rgba(106,228,255,.45);
  background: rgba(106,228,255,.10);
  padding:8px 10px;
  border-radius:999px;
  font-size:13px;
}

.af-x{
  border:0;
  background: transparent;
  color: var(--text);
  opacity:.75;
  cursor:pointer;
  font-size:14px;
  line-height:1;
  padding:0 2px;
}
.af-x:hover{ opacity:1; }

.scene-hint{
  margin-top: 10px;
  font-size: 12px;
  opacity: .85;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.10);
  background: var(--scene-hint-bg);
}
.scene-hint.hidden{ display:none; }

.empty{ text-align:center; padding:18px 10px; }
.empty-title{ font-weight:700; margin-bottom:6px; }
.empty-text{ opacity:.75; font-size:13px; margin-bottom:12px; }
.empty-actions{ display:flex; gap:10px; justify-content:center; flex-wrap:wrap; }

.scene-mode{
  margin-top:10px;
  font-size:12px;
  opacity:.85;
  padding:8px 10px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.10);
  background: var(--scene-mode-bg);
}
.scene-mode.hidden{ display:none; }

.welcome-overlay{
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,.55);
  display: grid;
  place-items: center;
  padding: 18px;
}

.welcome-modal{
  width: min(1100px, 96vw);  
  max-height: 85vh;          
  overflow-y: auto;          

  border: 1px solid var(--border);
  background: var(--modal-bg);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 28px 32px 26px;   
  position: relative;
  animation: welcomePop .22s ease-out;
}

.welcome-title{
  margin: 0 56px 14px 0;   
  font-size: 26px;        
  line-height: 1.25;
  font-weight: 800;
}

.welcome-text{
  color: var(--text);
  opacity: .95;
  line-height: 1.65;      
  font-size: 15px;        
}

.welcome-text ul{ margin: 10px 0 0 18px; padding: 0; }
.welcome-text li{ margin: 6px 0; }

.welcome-close{
  position: absolute;
  top: 12px;
  right: 12px;

  z-index: 99999;
  pointer-events: auto;
  transform: translateZ(0);
  isolation: isolate;

  width: 44px;
  height: 44px;
  border-radius: 14px;

  border: 1px solid rgba(255, 0, 0, .18);
  background: rgba(255, 0, 0, .08);
  color: rgba(255, 0, 0, .55);

  display: grid;
  place-items: center;

  cursor: pointer;
  transition: background .12s ease, color .12s ease, border-color .12s ease,
              transform .12s ease, box-shadow .12s ease;
}

.welcome-close:hover{
  background: rgba(255, 59, 59, .95);
  color: #fff;
  border-color: rgba(255, 59, 59, .95);
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 12px 28px rgba(255, 59, 59, .28);
}

.welcome-close:active{
  transform: translateY(0) scale(.99);
}

html:not(.app-ready) body { opacity: 0; }
html.app-ready body { opacity: 1; transition: opacity .12s ease; }

.stats-row{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:12px;
}

.stat-pill{
  padding:8px 12px;
  border-radius:999px;
  border:1px solid var(--border);
  background: var(--chip-bg);
  font-size:13px;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
}

.brand-info{ display:flex; flex-direction:column; }

.brand-actions{
  display:flex;
  align-items:center;
  gap:8px;
  margin-left: 6px;
}

.brand-icon{
  width:34px;
  height:34px;
  border-radius:12px;

  border:1px solid var(--border);
  background: var(--btn-ghost-bg);   
  color: var(--text);

  display:grid;
  place-items:center;
  cursor:pointer;
  padding:0;
  line-height:1;

  transition: transform .12s ease, border-color .12s ease, background .12s ease;
}

.brand-icon:hover{
  transform: translateY(-1px);
  border-color: rgba(106,228,255,.45);    
  background: var(--chip-active-bg);      
}

.brand-icon:active{
  transform: translateY(0);
}

.eco-modal{
  width: min(980px, 100%);
  padding: 18px 18px 16px;
  position: relative;
  z-index: 1;   
  isolation: isolate; 
  overflow: hidden;
}

.eco-modal::before{
  content:"";
  position:absolute;
  inset:-1px;
  background:
    radial-gradient(520px 240px at 12% 0%,
      rgba(106,228,255,.18), transparent 60%),
    radial-gradient(520px 260px at 92% 0%,
      rgba(167,139,250,.16), transparent 62%);
  z-index: 0;        
  pointer-events:none;
  opacity:.95;
}
.eco-modal .welcome-close{
  z-index: 2;
}
.eco-head{ position:relative; z-index:1; margin-bottom: 12px; }
.eco-kicker{
  font-size: 12px;
  color: var(--muted);
  opacity: .9;
  letter-spacing: .2px;
  margin-bottom: 6px;
}
.eco-title{ margin:0 56px 6px 0; }
.eco-sub{
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  max-width: 760px;
}

.eco-grid{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 14px;
  margin-top: 14px;
}

.eco-left{
  border:1px solid var(--border);
  background: var(--card-bg);
  border-radius: 18px;
  padding: 14px;
}

.eco-note{
  color: var(--text);
  opacity: .95;
  line-height: 1.5;
  font-size: 14px;
}

.eco-badges{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top: 12px;
}

.eco-pill{
  border: 1px solid var(--border);
  background: var(--chip-bg);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 10px;
  font-size: 12px;
  opacity: .95;
}

.eco-card{
  border:1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,.04), transparent);
  border-radius: 18px;
  padding: 14px;
  box-shadow: var(--shadow);
}

.eco-card-top{
  display:flex;
  gap:12px;
  align-items:center;
}

.eco-app-ico{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display:grid;
  place-items:center;
  border:1px solid var(--border);
  background: linear-gradient(135deg, rgba(106,228,255,.16), rgba(167,139,250,.14));
}

.eco-app-title{
  font-weight: 900;
  letter-spacing: .2px;
}

.eco-app-desc{
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.eco-btn{
  margin-top: 12px;
  display:inline-flex;
  justify-content:center;
  align-items:center;
  gap:10px;

  width:100%;
  padding: 12px 14px;
  border-radius: 14px;

  border: 1px solid var(--btn-primary-border);
  color: var(--text);
  text-decoration:none;

  background: linear-gradient(135deg, var(--btn-primary-grad-1), var(--btn-primary-grad-2));
  transition: transform .12s ease, border-color .12s ease, filter .12s ease;
}

.eco-btn:hover{
  transform: translateY(-1px);
  border-color: rgba(106,228,255,.8);
  filter: saturate(1.1) contrast(1.03);
}

.eco-btn:active{ transform: translateY(0); }

.eco-foot{
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
  opacity: .9;
  text-align: center;
}

@media (max-width: 860px){
  .eco-grid{ grid-template-columns: 1fr; }
}

.brand-24{
  background: linear-gradient(
    135deg,
    #ffd54f 0%,   
    #ffb300 40%,  
    #ff8f00 70%,  
    #ff6f00 100%  
  );

  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;

  font-weight: 900;
  letter-spacing: .3px;

  text-shadow:
    0 0 0 rgba(255, 193, 7, .0),
    0 6px 18px rgba(255, 193, 7, .25);
}

@media (max-width: 860px){
  body{ font-size: 14px; }
  .main{ padding: 14px; }

  .header{
    position: sticky;
    top: 0;
    padding: 12px 12px;
    gap: 10px;
    flex-direction: column;
    align-items: stretch;
  }

  .brand{
    width: 100%;
    justify-content: space-between;
  }

  .logo{ width: 40px; height: 40px; border-radius: 12px; }
  .brand-title{ font-size: 16px; }

  .header-actions{
    width: 100%;
    flex-wrap: wrap;
    gap: 8px;
  }

  .search{
    min-width: 0;
    width: 100%;
    border-radius: 14px;
  }

  .header-actions .btn{
    padding: 10px 10px;
    border-radius: 14px;
    white-space: nowrap;
  }

  .header-actions{
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
  }
  .header-actions::-webkit-scrollbar{ height: 6px; }
  .header-actions::-webkit-scrollbar-thumb{
    background: rgba(255,255,255,.12);
    border-radius: 999px;
  }
  .header-actions::-webkit-scrollbar-track{ background: transparent; }

  .filters{
    padding: 12px;
    border-radius: 16px;
  }

  .filters-row{
    gap: 10px;
  }

  .selects{
    width: 100%;
    margin-left: 0;
    flex-wrap: wrap;
  }
  .select{
    flex: 1 1 160px;
    width: 100%;
  }

  .chip{
    padding: 7px 10px;
    font-size: 12.5px;
  }

  .grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .card-body{ padding: 10px; }
  .card-title{ font-size: 14px; }
  .card-sub{ font-size: 12px; gap: 6px; }
  .badge{ padding: 5px 7px; font-size: 11.5px; }

  .modal-overlay{
    padding: 10px;
  }
  .modal{
    width: 100%;
    max-height: 92vh;
    border-radius: 18px;
    overflow: hidden;
  }
  .modal-body{
    grid-template-columns: 1fr;
    padding: 12px;
    gap: 12px;
  }

  .modal-poster{
    border-radius: 16px;
  }

  .player-frame{
    aspect-ratio: 16 / 10;
  }

  .modal-actions{
    position: sticky;
    bottom: 0;
    padding: 12px 0 0;
  }
  .modal-actions .btn{
    width: 100%;
  }
  .modal-actions{
    display: grid;
    gap: 10px;
  }

  .welcome-overlay{
    padding: 10px;
  }

  .welcome-modal{
    width: 100%;
    max-height: 92vh;
    overflow-y: auto;
    border-radius: 18px;
    padding: 18px 16px 16px;
  }

  .welcome-title{
    font-size: 20px;
    margin: 0 54px 10px 0;
  }

  .welcome-text{
    font-size: 14px;
    line-height: 1.6;
  }

  .eco-grid{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px){
  .grid{
    grid-template-columns: 1fr;
  }

  .brand-title{ font-size: 15px; }
  .brand-icon{ width: 32px; height: 32px; border-radius: 11px; }

  .chip-scroll{ gap: 6px; }
  .chip{ padding: 7px 9px; font-size: 12px; }

  .modal-title{ font-size: 20px; }
  .mask-title{ font-size: 16px; }
}
