/* NoirPlay V35 — Theme Studio selector */
.theme-picker{isolation:isolate}
.theme-toggle{
  min-height:38px!important;
  padding:7px 10px!important;
  gap:7px!important;
  border:1px solid color-mix(in srgb,var(--line) 92%,transparent)!important;
  background:color-mix(in srgb,var(--surface-2) 84%,transparent)!important;
  box-shadow:0 7px 20px rgba(0,0,0,.08);
}
.theme-toggle:hover{
  border-color:color-mix(in srgb,var(--red) 28%,var(--line))!important;
  background:var(--surface-3)!important;
}
.theme-toggle .theme-icon{
  width:22px;height:22px;
  display:grid;place-items:center;
  border-radius:7px;
  background:color-mix(in srgb,var(--red) 10%,var(--surface-3));
}
.theme-toggle .theme-icon svg{width:14px;height:14px}

.theme-dropdown.theme-studio-panel{
  width:min(620px,calc(100vw - 24px))!important;
  padding:12px!important;
  border-radius:18px!important;
  border:1px solid color-mix(in srgb,var(--line) 88%,transparent)!important;
  background:color-mix(in srgb,var(--surface) 96%,transparent)!important;
  box-shadow:0 28px 90px rgba(0,0,0,.42)!important;
  backdrop-filter:blur(24px) saturate(120%);
  -webkit-backdrop-filter:blur(24px) saturate(120%);
}

.theme-studio-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  padding:4px 4px 11px;
  border-bottom:1px solid var(--line-soft);
}
.theme-studio-head>div{min-width:0}
.theme-studio-head span,
.theme-studio-head strong,
.theme-studio-head small{display:block}
.theme-studio-head>div>span{
  color:var(--red);
  font-size:7px;
  font-weight:950;
  letter-spacing:.13em;
}
.theme-studio-head strong{
  margin-top:3px;
  font-size:15px;
  letter-spacing:-.03em;
}
.theme-studio-head small{
  margin-top:3px;
  color:var(--muted);
  font-size:8px;
}
.theme-studio-live{
  flex:0 0 auto;
  padding:4px 7px;
  border:1px solid color-mix(in srgb,#63d98a 28%,var(--line));
  border-radius:999px;
  background:rgba(99,217,138,.08);
  color:#71d993!important;
  font-size:6px!important;
  font-weight:950!important;
  letter-spacing:.1em!important;
}

.theme-studio-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
  padding-top:10px;
}
.theme-dropdown.theme-studio-panel>button{display:none!important}
.theme-studio-grid .theme-studio-option{
  min-width:0;
  min-height:0!important;
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:7px!important;
  padding:7px!important;
  border:1px solid var(--line)!important;
  border-radius:12px!important;
  background:color-mix(in srgb,var(--surface-2) 72%,transparent)!important;
  color:var(--text)!important;
  overflow:hidden;
  transition:transform .16s ease,border-color .16s ease,background .16s ease,box-shadow .16s ease!important;
}
.theme-studio-grid .theme-studio-option:hover{
  transform:translateY(-2px);
  border-color:color-mix(in srgb,var(--red) 30%,var(--line))!important;
  background:var(--surface-2)!important;
  box-shadow:0 12px 28px rgba(0,0,0,.14);
}
.theme-studio-grid .theme-studio-option.active{
  border-color:color-mix(in srgb,var(--red) 58%,var(--line))!important;
  background:color-mix(in srgb,var(--red) 5%,var(--surface-2))!important;
  box-shadow:0 0 0 2px color-mix(in srgb,var(--red) 8%,transparent);
}
.theme-studio-preview{
  position:relative;
  display:block;
  aspect-ratio:16/7.2;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.09);
  border-radius:9px;
  background:#0b0c0f;
  box-shadow:inset 0 0 0 1px rgba(0,0,0,.14);
}
.theme-preview-chrome{
  height:22%;
  display:flex;
  align-items:center;
  gap:3px;
  padding:0 6px;
  background:rgba(255,255,255,.055);
  border-bottom:1px solid rgba(255,255,255,.055);
}
.theme-preview-chrome i{
  width:4px;height:4px;border-radius:50%;
  background:rgba(255,255,255,.28);
}
.theme-preview-chrome em{
  width:42%;height:4px;margin-left:6px;
  border-radius:99px;
  background:rgba(255,255,255,.12);
}
.theme-preview-body{
  position:absolute;inset:22% 0 0;
  padding:6px;
}
.theme-preview-brand{
  display:flex;align-items:center;gap:4px;
}
.theme-preview-brand img{
  width:13px;height:13px;object-fit:contain;border-radius:4px;
}
.theme-preview-brand b{
  width:30%;height:4px;border-radius:99px;background:rgba(255,255,255,.28);
}
.theme-preview-hero{
  display:block;
  height:36%;
  margin-top:5px;
  border-radius:5px;
  background:linear-gradient(135deg,rgba(255,255,255,.08),rgba(255,255,255,.025));
}
.theme-preview-row{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:4px;
  margin-top:4px;
}
.theme-preview-row i{
  height:12px;border-radius:3px;background:rgba(255,255,255,.07);
}
.theme-preview-check{
  position:absolute;
  top:6px;right:6px;
  width:19px;height:19px;
  display:grid;place-items:center;
  border-radius:50%;
  background:var(--red);
  color:white;
  font-size:9px;
  font-weight:950;
  opacity:0;
  transform:scale(.75);
  transition:.16s ease;
  box-shadow:0 5px 14px rgba(0,0,0,.25);
}
.theme-studio-option.active .theme-preview-check{opacity:1;transform:scale(1)}
.theme-studio-grid .theme-option-copy{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:6px;
  padding:0 2px 1px;
}
.theme-studio-grid .theme-option-copy b{font-size:9px!important}
.theme-studio-grid .theme-option-copy small{
  margin:0!important;
  font-size:7px!important;
  text-align:right;
  opacity:.82;
}

.theme-studio-preview[data-preview-theme="dark"]{background:#090a0c}
.theme-studio-preview[data-preview-theme="dark"] .theme-preview-hero{background:linear-gradient(135deg,#17191f,#2d0d11)}
.theme-studio-preview[data-preview-theme="dark"] .theme-preview-row i:first-child{background:#e50914}

.theme-studio-preview[data-preview-theme="light"]{
  background:#f5f6f8;border-color:#d8dce2;
}
.theme-studio-preview[data-preview-theme="light"] .theme-preview-chrome{
  background:#fff;border-color:#e2e5e9;
}
.theme-studio-preview[data-preview-theme="light"] .theme-preview-chrome i,
.theme-studio-preview[data-preview-theme="light"] .theme-preview-chrome em,
.theme-studio-preview[data-preview-theme="light"] .theme-preview-brand b{background:#c4c9d0}
.theme-studio-preview[data-preview-theme="light"] .theme-preview-hero{background:linear-gradient(135deg,#fff,#f1dadd)}
.theme-studio-preview[data-preview-theme="light"] .theme-preview-row i{background:#e2e4e8}
.theme-studio-preview[data-preview-theme="light"] .theme-preview-row i:first-child{background:#e50914}

.theme-studio-preview[data-preview-theme="hub"]{background:#050505}
.theme-studio-preview[data-preview-theme="hub"] .theme-preview-hero{background:linear-gradient(135deg,#171717,#34240b)}
.theme-studio-preview[data-preview-theme="hub"] .theme-preview-row i:first-child{background:#ff9900}

.theme-studio-preview[data-preview-theme="xvideos"]{background:#09090b}
.theme-studio-preview[data-preview-theme="xvideos"] .theme-preview-hero{background:linear-gradient(135deg,#18181b,#350b0e)}
.theme-studio-preview[data-preview-theme="xvideos"] .theme-preview-row i:first-child{background:#d71920}

.theme-studio-preview[data-preview-theme="xnxx"]{background:#070b13}
.theme-studio-preview[data-preview-theme="xnxx"] .theme-preview-hero{background:linear-gradient(135deg,#101b2e,#102b63)}
.theme-studio-preview[data-preview-theme="xnxx"] .theme-preview-row i:first-child{background:#2f6dff}
.theme-studio-preview[data-preview-theme="xnxx"] .theme-preview-row i:last-child{background:#df2028}

.theme-studio-preview[data-preview-theme="servi"]{background:#0b0709}
.theme-studio-preview[data-preview-theme="servi"] .theme-preview-hero{background:linear-gradient(135deg,#201118,#571322)}
.theme-studio-preview[data-preview-theme="servi"] .theme-preview-row i:first-child{background:#f12745}

.theme-studio-foot{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:10px 4px 1px;
  color:var(--muted-2);
  font-size:7px;
}
.theme-studio-foot b{
  color:var(--muted);
  font-size:7px;
}

@media(max-width:640px){
  .theme-dropdown.theme-studio-panel{
    position:fixed!important;
    left:8px!important;right:8px!important;
    top:auto!important;
    bottom:calc(8px + env(safe-area-inset-bottom))!important;
    width:auto!important;
    max-height:min(84vh,680px)!important;
    overflow:auto!important;
    border-radius:20px!important;
  }
  .theme-studio-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .theme-studio-head{position:sticky;top:-12px;z-index:4;background:var(--surface);padding-top:10px}
}
@media(max-width:390px){
  .theme-studio-grid{grid-template-columns:1fr}
  .theme-studio-preview{aspect-ratio:16/6.2}
}
