:root{
  --bg1:#07111f;
  --bg2:#020617;
  --bg3:#10192d;
  --text:#f8fafc;
  --muted:#a8b3c7;
  --card:rgba(255,255,255,.06);
  --border:rgba(255,255,255,.10);
  --pink:#ff2e88;
  --cyan:#2dd4bf;
  --yellow:#facc15;
  --shadow:0 18px 60px rgba(0,0,0,.35);
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family:"Inter",system-ui,sans-serif;
  color:var(--text);
  min-height:100vh;
  background:linear-gradient(135deg,var(--bg1),var(--bg2) 55%,var(--bg3));
  overflow-x:hidden;
}

a{text-decoration:none;color:inherit}
button,input,select{font:inherit}

.page-bg{
  position:fixed;
  inset:0;
  z-index:-1;
  pointer-events:none;
  background:
    radial-gradient(circle at 14% 18%, rgba(255,46,136,.18), transparent 28%),
    radial-gradient(circle at 76% 20%, rgba(45,212,191,.16), transparent 24%),
    radial-gradient(circle at 82% 78%, rgba(250,204,21,.10), transparent 22%);
  filter:blur(10px);
}

.app-shell{
  width:min(1440px,calc(100% - 28px));
  margin:0 auto;
  padding:26px 0 50px;
}

.hero{padding:20px 0 18px}
.hero-badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 14px;
  border-radius:999px;
  background:linear-gradient(135deg, rgba(255,46,136,.20), rgba(45,212,191,.18));
  border:1px solid var(--border);
  box-shadow:var(--shadow);
  font-weight:800;
  font-size:.92rem;
}
.hero h1{
  margin:18px 0 10px;
  font-size:clamp(2.2rem,5vw,4.25rem);
  line-height:1.02;
  letter-spacing:-.04em;
}
.hero-text{
  margin:0;
  max-width:860px;
  color:var(--muted);
  font-size:1.02rem;
}
.hero-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:18px;
}
.ghost-btn{
  padding:12px 16px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.05);
  font-weight:700;
  transition:.2s ease;
}
.ghost-btn:hover{
  transform:translateY(-2px);
  background:rgba(255,255,255,.08);
}

.toolbar{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:16px;
  flex-wrap:wrap;
  margin:20px 0 24px;
  padding:16px;
  background:linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.04));
  border:1px solid var(--border);
  border-radius:24px;
  box-shadow:var(--shadow);
}
.toolbar-left,.toolbar-right{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  align-items:center;
}
.input-wrap{
  min-width:260px;
  display:flex;
  align-items:center;
  gap:10px;
  padding:0 14px;
  height:50px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.05);
}
.input-wrap input{
  width:100%;
  background:transparent;
  border:none;
  outline:none;
  color:#fff;
}
select{
  height:50px;
  padding:0 14px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.05);
  color:#fff;
  outline:none;
}
select option{color:#000}

.stats-pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:12px 14px;
  border-radius:16px;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.10);
  font-weight:800;
}

.section-block{
  margin-top:8px;
  padding:18px;
  border-radius:28px;
  background:linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border:1px solid rgba(255,255,255,.10);
  box-shadow:var(--shadow);
}
.section-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
  margin-bottom:18px;
}
.section-head h2{
  margin:0;
  font-size:1.45rem;
}
.section-head p{
  margin:4px 0 0;
  color:var(--muted);
}

.video-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(240px,1fr));
  gap:18px;
}

.video-card{
  position:relative;
  overflow:hidden;
  cursor:pointer;
  border-radius:22px;
  background:linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
  border:1px solid var(--border);
  box-shadow:var(--shadow);
  transition:transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.video-card:hover{
  transform:translateY(-6px) scale(1.01);
  border-color:rgba(255,255,255,.18);
  box-shadow:0 24px 70px rgba(0,0,0,.42);
}
.video-card.is-broken{
  opacity:.45;
  filter:grayscale(1);
}

.video-thumb{
  position:relative;
  aspect-ratio:16/9;
  background:#0b1220;
  overflow:hidden;
}
.video-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transition:transform .35s ease;
}
.video-card:hover .video-thumb img{
  transform:scale(1.04);
}

.video-badge{
  position:absolute;
  top:12px;
  left:12px;
  z-index:2;
  display:inline-flex;
  align-items:center;
  padding:7px 11px;
  border-radius:999px;
  background:rgba(6,10,18,.72);
  border:1px solid rgba(255,255,255,.12);
  font-size:.76rem;
  font-weight:800;
}
.video-fav{
  position:absolute;
  top:12px;
  right:12px;
  z-index:2;
  width:42px;
  height:42px;
  border:none;
  border-radius:999px;
  background:rgba(6,10,18,.72);
  color:#fff;
  font-size:1.15rem;
  cursor:pointer;
  border:1px solid rgba(255,255,255,.12);
}
.video-fav.is-favorite{
  color:var(--yellow);
}
.video-play{
  position:absolute;
  inset:auto auto 14px 14px;
  width:54px;
  height:54px;
  border:none;
  border-radius:50%;
  background:rgba(0,0,0,.62);
  color:#fff;
  font-size:1.2rem;
  cursor:pointer;
  box-shadow:0 10px 25px rgba(0,0,0,.35);
}
.video-content{
  padding:14px 14px 16px;
}
.video-title{
  margin:0 0 8px;
  font-size:1rem;
  font-weight:800;
  line-height:1.25;
}
.video-desc{
  margin:0 0 10px;
  color:var(--muted);
  font-size:.93rem;
  line-height:1.45;
  min-height:40px;
}
.video-meta{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.meta-pill{
  padding:7px 10px;
  border-radius:999px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.08);
  color:#dbe7ff;
  font-size:.77rem;
  font-weight:700;
}

.catalog-actions{
  display:flex;
  justify-content:center;
  margin:28px 0 18px;
}
.load-more-btn{
  width:78px;
  height:78px;
  border:none;
  border-radius:999px;
  cursor:pointer;
  color:#fff;
  font-size:2rem;
  font-weight:900;
  background:linear-gradient(135deg, rgba(255,46,136,.95), rgba(45,212,191,.85));
  box-shadow:0 18px 40px rgba(0,0,0,.28),0 0 0 8px rgba(255,255,255,.04);
  transition:transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}
.load-more-btn:hover{
  transform:translateY(-4px) scale(1.06);
}
.load-more-btn.hidden{display:none}
.load-more-plus{
  display:block;
  line-height:1;
  transform:translateY(-1px);
}

.pagination{
  display:flex;
  justify-content:center;
  align-items:center;
  flex-wrap:wrap;
  gap:10px;
  margin:18px 0 8px;
}
.pagination.hidden{display:none}
.page-btn{
  min-width:44px;
  height:44px;
  padding:0 14px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.05);
  color:#fff;
  cursor:pointer;
  font-weight:800;
}
.page-btn.active{
  background:linear-gradient(135deg, rgba(255,46,136,.22), rgba(45,212,191,.18));
  border-color:rgba(255,255,255,.18);
}

.video-modal{
  position:fixed;
  inset:0;
  display:none;
  z-index:999;
}
.video-modal.is-open{display:block}
.video-modal__backdrop{
  position:absolute;
  inset:0;
  background:rgba(2,6,23,.82);
  backdrop-filter:blur(10px);
}
.video-modal__dialog{
  position:relative;
  width:min(1200px,calc(100% - 26px));
  margin:24px auto;
  padding:18px;
  border-radius:26px;
  background:linear-gradient(180deg, rgba(13,19,33,.95), rgba(5,10,20,.96));
  border:1px solid rgba(255,255,255,.10);
  box-shadow:0 30px 90px rgba(0,0,0,.55);
}
.modal-close{
  position:absolute;
  top:12px;
  right:12px;
  width:42px;
  height:42px;
  border:none;
  border-radius:999px;
  cursor:pointer;
  background:rgba(255,255,255,.08);
  color:#fff;
  font-size:1rem;
}
.modal-top{
  display:flex;
  justify-content:space-between;
  gap:18px;
  align-items:flex-start;
  padding:10px 52px 16px 4px;
  flex-wrap:wrap;
}
.modal-badge{
  display:inline-flex;
  padding:8px 12px;
  border-radius:999px;
  font-size:.8rem;
  font-weight:800;
  background:linear-gradient(135deg, rgba(255,46,136,.18), rgba(45,212,191,.16));
  border:1px solid rgba(255,255,255,.10);
}
.modal-top h3{
  margin:10px 0 6px;
  font-size:1.55rem;
  line-height:1.15;
}
.modal-meta{
  margin:0;
  color:var(--muted);
}
.modal-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.action-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:0 16px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  background:linear-gradient(135deg, rgba(255,46,136,.18), rgba(255,46,136,.10));
  color:#fff;
  cursor:pointer;
  font-weight:800;
}
.action-btn--alt{
  background:rgba(255,255,255,.06);
}
.action-btn--favorite.is-favorite{
  color:var(--yellow);
  border-color:rgba(250,204,21,.45);
  box-shadow:0 0 0 1px rgba(250,204,21,.15) inset;
}

.player-wrap{
  overflow:hidden;
  border-radius:20px;
  border:1px solid rgba(255,255,255,.10);
  background:#000;
  aspect-ratio:16/9;
  min-height:200px;
}
.player-wrap iframe{
  width:100%;
  height:100%;
  border:none;
  display:block;
}

.embed-fallback{
  min-height:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:32px;
  background:linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  color:#fff;
}
.embed-fallback__icon{
  font-size:42px;
  margin-bottom:10px;
}
.embed-fallback h4{
  margin:0 0 8px;
  font-size:1.2rem;
}
.embed-fallback p{
  margin:0 0 16px;
  color:var(--muted);
}

.queue-bar{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:14px;
}
.queue-pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 14px;
  border-radius:14px;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.10);
  font-weight:700;
}

body.modal-open{overflow:hidden}

@media (max-width:560px){
  .app-shell{width:min(100% - 18px,1440px)}
  .video-grid{grid-template-columns:1fr 1fr;gap:12px}
  .video-content{padding:12px}
  .video-desc{min-height:auto;font-size:.86rem}
  .video-play{width:46px;height:46px}
  .video-modal__dialog{width:min(100% - 10px,1200px);margin:8px auto;padding:12px;border-radius:20px}
  .toolbar-left,.toolbar-right{width:100%}
  .input-wrap{min-width:unset;width:100%}
  select{width:100%}
}

.catalog-actions{
  display:flex;
  justify-content:center;
  align-items:center;
  margin:30px 0 18px;
}

.load-more-btn{
  position:relative;
}

.load-more-btn::before{
  content:"";
  position:absolute;
  inset:-8px;
  border-radius:999px;
  background:linear-gradient(135deg, rgba(255,46,136,.18), rgba(45,212,191,.18));
  filter:blur(10px);
  z-index:-1;
}

.load-more-btn:active{
  transform:translateY(-1px) scale(.98);
}

.action-btn--series{
  background:linear-gradient(135deg, rgba(45,212,191,.18), rgba(45,212,191,.08));
}

.queue-pill.is-clickable{
  cursor:pointer;
  transition:.2s ease;
}
.queue-pill.is-clickable:hover{
  transform:translateY(-2px);
  background:rgba(255,255,255,.08);
}

/* TOPBAR SLIMJAH */
/* TOPBAR COMPLETE */
.topbar{
  position:sticky;
  top:0;
  z-index:1200;
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  gap:14px;
  padding:12px 18px;
  background:rgba(7,12,24,.72);
  backdrop-filter:blur(14px);
  border-bottom:1px solid rgba(255,255,255,.08);
}

.topbar-group{
  display:flex;
  align-items:center;
  gap:10px;
}

.topbar-center{
  justify-content:center;
}

.topbar-right{
  justify-content:flex-end;
}

.topbar-btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 16px;
  border:none;
  border-radius:14px;
  cursor:pointer;
  color:#fff;
  font-weight:700;
  font-size:.92rem;
  background:linear-gradient(135deg, rgba(255,46,136,.22), rgba(45,212,191,.18));
  border:1px solid rgba(255,255,255,.14);
  transition:transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.topbar-btn:hover{
  transform:translateY(-2px);
  box-shadow:0 12px 28px rgba(0,0,0,.28);
}

.topbar-btn.home{
  box-shadow:0 0 0 1px rgba(255,255,255,.04), 0 0 18px rgba(255,46,136,.18);
}

.topbar-btn.back{
  background:rgba(255,255,255,.06);
}

.topbar-btn.fav{
  background:linear-gradient(135deg, rgba(250,204,21,.20), rgba(255,46,136,.18));
}

.topbar-search{
  width:min(620px, 100%);
  display:flex;
  align-items:center;
  gap:10px;
  padding:0 14px;
  height:48px;
  border-radius:16px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
  box-shadow:0 10px 24px rgba(0,0,0,.16);
}

.topbar-search-icon{
  flex:0 0 auto;
  opacity:.9;
}

.topbar-search input{
  width:100%;
  border:none;
  outline:none;
  background:transparent;
  color:#fff;
  font-size:.95rem;
}

.topbar-search input::placeholder{
  color:rgba(255,255,255,.55);
}

.topbar-clear{
  flex:0 0 auto;
  width:30px;
  height:30px;
  border:none;
  border-radius:999px;
  cursor:pointer;
  color:#fff;
  background:rgba(255,255,255,.08);
  transition:background .2s ease, transform .2s ease;
}

.topbar-clear:hover{
  background:rgba(255,255,255,.14);
  transform:scale(1.05);
}

@media (max-width: 900px){
  .topbar{
    grid-template-columns:1fr;
  }

  .topbar-left,
  .topbar-center,
  .topbar-right{
    justify-content:center;
  }

  .topbar-search{
    width:100%;
  }
}

@media (max-width: 560px){
  .topbar{
    padding:10px 12px;
  }

  .topbar-group{
    width:100%;
    flex-wrap:wrap;
    justify-content:center;
  }

  .topbar-btn{
    flex:1 1 auto;
    justify-content:center;
  }
}

.video-badge-wrap{
  position:absolute;
  top:12px;
  left:12px;
  z-index:3;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

.video-badge-new{
  display:inline-flex;
  align-items:center;
  padding:7px 11px;
  border-radius:999px;
  background:linear-gradient(135deg, #ff2e88, #ff7a18);
  color:#fff;
  border:1px solid rgba(255,255,255,.14);
  font-size:.76rem;
  font-weight:900;
  box-shadow:0 8px 22px rgba(0,0,0,.25);
}