*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
:root{
  --bg:#050806;
  --panel:#0f1411;
  --panel2:#151b16;
  --card:#171d18;
  --card2:#202821;
  --text:#f8f3e7;
  --muted:#aaa292;
  --soft:#777064;
  --gold:#d8b86d;
  --gold2:#f3da91;
  --green:#1ed760;
  --line:rgba(255,255,255,.1);
}
body{
  font-family:Inter,Arial,sans-serif;
  background:
    radial-gradient(circle at 15% 0%,rgba(216,184,109,.16),transparent 28%),
    radial-gradient(circle at 90% 8%,rgba(30,215,96,.10),transparent 25%),
    linear-gradient(180deg,#050806,#080d09 58%,#030403);
  color:var(--text);
  min-height:100vh;
  padding-bottom:126px;
}
button,input,select{font-family:inherit}
button{cursor:pointer;border:none}
.app{max-width:1180px;margin:auto;padding:18px}

.topbar{
  position:sticky;top:0;z-index:50;
  display:flex;justify-content:space-between;align-items:center;
  padding:12px 0 18px;
  background:linear-gradient(180deg,rgba(5,8,6,.96),rgba(5,8,6,.68),transparent);
  backdrop-filter:blur(18px);
}
.brand{display:flex;align-items:center;gap:12px;cursor:pointer}
.logo{
  width:44px;height:44px;border-radius:16px;
  background:linear-gradient(145deg,var(--gold2),var(--gold));
  color:#121007;display:grid;place-items:center;font-weight:900;font-size:22px
}
.brand small{display:block;color:var(--muted);font-size:11px;font-weight:900;letter-spacing:1.2px;text-transform:uppercase}
.brand strong{font-size:15px}
.nav-actions{display:flex;gap:8px;align-items:center}
.btn{
  border:1px solid var(--line);
  background:rgba(255,255,255,.06);
  color:var(--text);
  border-radius:999px;
  padding:11px 15px;
  font-weight:900;
}
.btn.gold{
  border:none;
  background:linear-gradient(145deg,var(--gold2),var(--gold));
  color:#111007;
}
.btn.green{
  background:var(--green);
  color:#061008;
  border:none;
}
.btn.small{
  padding:8px 11px;
  font-size:12px;
}
.hero{
  min-height:330px;
  border-radius:36px;
  padding:32px;
  border:1px solid var(--line);
  background:
    radial-gradient(circle at 78% 20%,rgba(216,184,109,.32),transparent 28%),
    linear-gradient(135deg,#1a241d,#070a08 70%);
  box-shadow:0 32px 90px rgba(0,0,0,.48);
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  overflow:hidden;
  margin-bottom:28px;
}
.pill{
  width:max-content;
  padding:8px 13px;
  border-radius:999px;
  background:rgba(216,184,109,.13);
  border:1px solid rgba(216,184,109,.24);
  color:var(--gold2);
  font-size:12px;
  font-weight:900;
  margin-bottom:18px;
}
.hero h1{
  max-width:800px;
  font-size:clamp(42px,7vw,74px);
  line-height:.92;
  letter-spacing:-3.8px;
  margin-bottom:18px;
}
.hero p{max-width:650px;color:var(--muted);font-size:15px}
.hero-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:26px}

.view{display:none}
.view.active{display:block}
.section{margin:30px 0}
.section-head{display:flex;justify-content:space-between;align-items:end;margin-bottom:14px;gap:12px}
.section-head h2{font-size:24px;letter-spacing:-.8px}
.section-head p{color:var(--muted);font-size:13px}
.section-actions{display:flex;gap:8px;flex-wrap:wrap}

.home-layout{
  display:grid;
  grid-template-columns:1fr 340px;
  gap:18px;
  align-items:start;
}
.side-panel{
  border:1px solid var(--line);
  border-radius:30px;
  background:rgba(255,255,255,.04);
  padding:16px;
  position:sticky;
  top:86px;
}
.side-panel h3{
  font-size:20px;
  margin-bottom:8px;
}
.side-panel p{
  color:var(--muted);
  font-size:13px;
  line-height:1.45;
}
.library-tabs{
  display:flex;
  gap:8px;
  margin:14px 0;
  flex-wrap:wrap;
}
.library-tabs button{
  border-radius:999px;
  padding:8px 11px;
  background:rgba(255,255,255,.07);
  color:var(--muted);
  font-weight:900;
}
.library-tabs button.active{
  background:rgba(216,184,109,.14);
  color:var(--gold2);
}
.library-list{
  display:grid;
  gap:8px;
  max-height:360px;
  overflow:auto;
  padding-right:3px;
}
.empty-box{
  border:1px dashed rgba(255,255,255,.14);
  border-radius:22px;
  padding:18px;
  color:var(--muted);
  font-size:13px;
  line-height:1.45;
}
.rail{
  display:grid;
  grid-auto-flow:column;
  grid-auto-columns:minmax(220px,260px);
  gap:14px;
  overflow-x:auto;
  padding-bottom:8px;
  scroll-snap-type:x mandatory;
}
.rail::-webkit-scrollbar{height:6px}
.rail::-webkit-scrollbar-thumb{background:rgba(255,255,255,.15);border-radius:99px}

.card{
  border:1px solid var(--line);
  background:rgba(255,255,255,.045);
  border-radius:28px;
  padding:16px;
  transition:.2s;
  scroll-snap-align:start;
}
.card:hover{transform:translateY(-3px);background:rgba(216,184,109,.07);border-color:rgba(216,184,109,.28)}
.art{
  height:150px;
  border-radius:23px;
  background:
    radial-gradient(circle at 28% 22%,rgba(243,218,145,.9),transparent 22%),
    linear-gradient(135deg,#1b5f3c,#d8b86d);
  display:grid;place-items:center;margin-bottom:14px;color:white
}
.art svg{width:46px;height:46px}
.card h3{font-size:17px;line-height:1.15;margin-bottom:6px}
.card p{color:var(--muted);font-size:13px;line-height:1.35}
.meta{margin-top:12px;color:var(--gold2);font-size:11px;font-weight:900}

.category-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:14px;
}
.category-card{
  min-height:164px;
  border-radius:28px;
  padding:18px;
  border:1px solid rgba(255,255,255,.1);
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  transition:.2s;
  position:relative;
  overflow:hidden;
}
.category-card:hover{transform:translateY(-3px) scale(1.01);filter:saturate(1.1)}
.category-card::after{
  content:"";
  position:absolute;
  width:130px;
  height:130px;
  right:-38px;
  bottom:-42px;
  border-radius:28px;
  background:rgba(0,0,0,.16);
  transform:rotate(18deg);
}
.cat-icon{
  width:48px;height:48px;border-radius:18px;
  background:rgba(255,255,255,.18);
  color:white;display:grid;place-items:center;
  position:relative;z-index:1;
}
.cat-icon svg{width:23px;height:23px}
.category-card h3{
  font-size:20px;
  margin-top:18px;
  max-width:72%;
  position:relative;z-index:1;
}
.category-card span{
  color:rgba(255,255,255,.78);
  font-size:12px;
  position:relative;z-index:1;
}
.back-row{margin:8px 0 18px}
.page-title{margin-bottom:18px}
.page-title h1{font-size:42px;letter-spacing:-2px;line-height:1}
.page-title p{color:var(--muted);font-size:14px;margin-top:8px;max-width:680px}
.series-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px;
}
.episode-list{
  border:1px solid var(--line);
  border-radius:30px;
  background:rgba(255,255,255,.035);
  overflow:hidden;
}
.episode{
  display:grid;
  grid-template-columns:52px 1fr auto;
  gap:12px;
  align-items:center;
  padding:14px;
  border-bottom:1px solid var(--line);
}
.episode:last-child{border-bottom:none}
.episode.playable:hover,.episode.active{background:rgba(216,184,109,.08)}
.ep-art{
  width:52px;height:52px;border-radius:17px;background:linear-gradient(135deg,#245b3a,#d8b86d);
  display:grid;place-items:center;color:white
}
.ep-art svg{width:22px;height:22px}
.ep-title{font-weight:900;font-size:14px}
.ep-sub{color:var(--muted);font-size:12px;margin-top:2px}
.ep-actions{display:flex;gap:8px;align-items:center}
.icon-btn{
  width:38px;height:38px;border:none;border-radius:999px;
  background:rgba(255,255,255,.08);color:white;font-weight:900;
}
.icon-btn.play{background:var(--green);color:#061008}
.icon-btn.added{background:rgba(216,184,109,.18);color:var(--gold2)}
.status{font-size:10px;text-transform:uppercase;color:var(--soft);font-weight:900}

.search-modal{
  position:fixed;inset:0;background:rgba(0,0,0,.68);z-index:120;
  display:none;padding:18px;backdrop-filter:blur(14px)
}
.search-modal.show{display:block}
.search-panel{
  max-width:860px;margin:40px auto;background:#0d110e;border:1px solid var(--line);
  border-radius:32px;padding:18px;box-shadow:0 30px 90px rgba(0,0,0,.5)
}
.search-top{display:flex;gap:10px;margin-bottom:14px}
.search-top input{
  flex:1;border:1px solid var(--line);background:rgba(255,255,255,.07);
  color:var(--text);border-radius:20px;padding:15px 16px;font-size:15px;outline:none
}
.search-results{display:grid;gap:9px;max-height:65vh;overflow:auto}

