:root{
  --bg:#0f0f1a;
  --bg2:#151522;
  --card:#1b1b2b;
  --card2:#232337;
  --neon:#64ff9a;
  --text:#ffffff;
  --muted:#9fa0b3;
  --danger:#ff5c7c;
  --radius:24px;
}

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family:Arial,sans-serif;
}

html{
  scroll-behavior:smooth;
  width:100%;
  max-width:100%;
}

body{
  background:var(--bg);
  color:var(--text);
  overflow-x:hidden;
  width:100%;
  max-width:100%;
}

a{
  text-decoration:none;
  color:inherit;
}

img{
  width:100%;
  display:block;
}

button,
input{
  font-family:inherit;
}

/* APP */

.app{
  display:grid;
  grid-template-columns:250px 1fr;
  min-height:100vh;
}

/* SIDEBAR */

.sidebar{
  background:#0c0c18;
  border-right:1px solid rgba(255,255,255,.06);
  padding:25px;
  display:flex;
  flex-direction:column;
  gap:25px;
}

.logo{
  font-size:28px;
  font-weight:900;
}

.logo span{
  color:var(--neon);
}

.nav{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.nav a{
  padding:14px 18px;
  border-radius:16px;
  color:var(--muted);
  transition:.25s;
}

.nav a:hover,
.nav a.active{
  background:rgba(100,255,154,.12);
  color:var(--neon);
}

.upgrade-box{
  margin-top:auto;
  background:rgba(100,255,154,.08);
  border:1px solid rgba(100,255,154,.18);
  border-radius:24px;
  padding:20px;
}

.upgrade-box h3{
  margin-bottom:10px;
}

.upgrade-box p{
  color:var(--muted);
  line-height:1.6;
  margin-bottom:18px;
}

/* BUTTONS */

.btn{
  border:none;
  background:var(--neon);
  color:#07100a;
  padding:14px 22px;
  border-radius:999px;
  cursor:pointer;
  font-weight:900;
  transition:.25s;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

.btn:hover{
  transform:translateY(-2px);
  box-shadow:0 0 25px rgba(100,255,154,.3);
}

.btn-dark{
  background:var(--card2);
  color:#fff;
}

/* MAIN */

.main{
  padding:25px;
}

/* TOPBAR */

.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  margin-bottom:25px;
}

.topbar > *{
  min-width:0;
}

.search{
  background:var(--bg2);
  border:1px solid rgba(255,255,255,.05);
  border-radius:999px;
  display:flex;
  align-items:center;
  padding:0 18px;
  width:100%;
  max-width:520px;
}

.search input{
  width:100%;
  background:none;
  border:none;
  outline:none;
  color:#fff;
  padding:16px;
}

.search input::placeholder{
  color:#77798c;
}

.index-search-ad{
  width:100%;
  min-height:50px;
  display:flex;
  justify-content:center;
  align-items:center;
  margin:-10px auto 24px;
  overflow:visible;
}

.index-search-ad ins,
.index-search-ad iframe{
  display:block !important;
  width:300px !important;
  max-width:100% !important;
  min-height:50px !important;
  border:0 !important;
}

.user-actions{
  display:flex;
  align-items:center;
  gap:10px;
}

.age-badge{
  padding:12px 15px;
  border-radius:999px;
  background:var(--card2);
  color:var(--muted);
  font-size:13px;
  font-weight:900;
}

/* USER MENU */

.user-menu{
  position:relative;
  display:none;
}

.user-icon{
  width:44px;
  height:44px;
  border:none;
  border-radius:50%;
  background:var(--card2);
  color:#fff;
  cursor:pointer;
  font-size:20px;
  overflow:hidden;
  display:grid;
  place-items:center;
}

.user-icon img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.user-dropdown{
  position:absolute;
  right:0;
  top:55px;
  width:220px;
  background:var(--card);
  border:1px solid rgba(255,255,255,.08);
  border-radius:18px;
  padding:10px;
  display:none;
  z-index:999;
  box-shadow:0 20px 50px rgba(0,0,0,.45);
}

.user-dropdown.active{
  display:block;
}

.user-dropdown a{
  display:block;
  padding:13px 14px;
  border-radius:12px;
  color:var(--muted);
  font-weight:700;
}

.user-dropdown a:hover{
  background:rgba(100,255,154,.12);
  color:var(--neon);
}

/* HERO */

.hero{
  min-height:420px;
  border-radius:32px;
  overflow:hidden;
  display:flex;
  align-items:flex-end;
  padding:45px;
  margin-bottom:30px;
  background:
    linear-gradient(90deg, rgba(0,0,0,.85), rgba(0,0,0,.15)),
    url("https://images.unsplash.com/photo-1514525253161-7a46d19cd819?q=80&w=1600&auto=format&fit=crop")
    center/cover;
}

.tag{
  display:inline-block;
  background:var(--neon);
  color:#07100a;
  padding:8px 14px;
  border-radius:999px;
  font-size:12px;
  font-weight:900;
  margin-bottom:16px;
}

.hero h1{
  font-size:62px;
  line-height:.95;
  margin-bottom:15px;
}

.hero p{
  color:#d6d6de;
  line-height:1.6;
  max-width:600px;
  margin-bottom:25px;
}

.hero-actions{
  display:flex;
  gap:12px;
}

/* CATEGORIES */

.categories{
  display:flex;
  gap:12px;
  overflow-x:auto;
  margin-bottom:25px;
  padding-bottom:4px;
  scrollbar-width:none;
}

.categories::-webkit-scrollbar{
  display:none;
}

.chip{
  border:none;
  background:var(--card);
  color:var(--muted);
  padding:13px 22px;
  border-radius:999px;
  cursor:pointer;
  transition:.25s;
  white-space:nowrap;
  font-weight:700;
}

.chip:hover,
.chip.active{
  background:var(--neon);
  color:#07100a;
}

.index-artists-title,
.index-categories-title{
  margin-bottom:14px;
  text-align:center;
}

.index-artists-title h2,
.index-categories-title h2{
  text-align:center;
}

.index-artist-chip{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
  text-align:center;
}

/* TITLE */

.section-title{
  margin-bottom:20px;
}

.section-title h2{
  font-size:30px;
}

/* GRID */

.video-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(240px,1fr));
  gap:22px;
}

/* CARD */

.video-card{
  background:var(--card);
  border-radius:24px;
  overflow:hidden;
  cursor:pointer;
  transition:.25s;
}

.video-card:hover{
  transform:translateY(-6px);
  box-shadow:0 0 30px rgba(100,255,154,.14);
}

.thumb{
  position:relative;
  aspect-ratio:16/10;
  overflow:hidden;
  background:#050509;
}

.thumb img{
  height:100%;
  object-fit:cover;
  transition:.35s;
}

.video-card:hover .thumb-img{
  transform:scale(1.08);
}

.duration{
  position:absolute;
  right:12px;
  bottom:12px;
  background:rgba(0,0,0,.75);
  padding:7px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:900;
}

.premium{
  position:absolute;
  left:12px;
  top:12px;
  background:var(--neon);
  color:#07100a;
  padding:7px 10px;
  border-radius:999px;
  font-size:11px;
  font-weight:900;
}

.play-icon{
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  opacity:0;
  transition:.25s;
  background:rgba(0,0,0,.2);
}

.play-icon span{
  width:58px;
  height:58px;
  border-radius:50%;
  background:var(--neon);
  color:#07100a;
  display:grid;
  place-items:center;
  font-size:24px;
  font-weight:900;
}

.video-card:hover .play-icon{
  opacity:1;
}

.card-body{
  padding:18px;
}

.card-body h3{
  margin-bottom:10px;
  line-height:1.4;
}

.meta{
  display:flex;
  justify-content:space-between;
  gap:10px;
  color:var(--muted);
  font-size:13px;
}

/* WATCH PAGE */

.watch-page{
  min-height:100vh;
  background:var(--bg);
}

.watch-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:22px 32px;
  background:#0c0c18;
  border-bottom:1px solid rgba(255,255,255,.06);
}

.watch-nav{
  display:flex;
  align-items:center;
  gap:18px;
  margin-left:auto;
}

.watch-nav a{
  color:var(--muted);
  font-weight:800;
}

.watch-nav a:hover{
  color:var(--neon);
}

.back-btn{
  background:var(--card2);
  color:#fff;
  padding:12px 18px;
  border-radius:999px;
  font-weight:900;
}

.watch-container{
  max-width:1200px;
  margin:0 auto;
  padding:32px;
}

.watch-player{
  width:100%;
  aspect-ratio:16/9;
  background:#000;
  border-radius:28px;
  overflow:hidden;
  position:relative;
  box-shadow:0 0 40px rgba(0,0,0,.45);
}

.watch-player iframe{
  width:100%;
  height:100%;
  border:none;
}

.empty-player{
  width:100%;
  height:100%;
  display:grid;
  place-items:center;
  color:#fff;
}

.watch-info{
  margin-top:24px;
  background:var(--card);
  border-radius:24px;
  padding:24px;
}

.watch-info h1{
  font-size:34px;
  margin-bottom:14px;
}

.watch-meta{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  color:var(--muted);
  margin-bottom:18px;
}

.watch-meta a,
.watch-tag-link{
  color:var(--neon);
  font-weight:900;
}

#watchCategory{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.watch-tag-link{
  display:inline-flex;
  align-items:center;
  min-height:30px;
  padding:6px 10px;
  border-radius:999px;
  background:rgba(100,255,154,.1);
  border:1px solid rgba(100,255,154,.18);
}

.watch-tag-link:hover{
  background:var(--neon);
  color:#07100a;
}

.approval-widget{
  margin:18px 0;
  padding:16px;
  border-radius:18px;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.08);
}

.approval-header{
  display:flex;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  color:#fff;
  margin-bottom:10px;
}

.approval-header span{
  color:var(--muted);
  font-weight:800;
}

.approval-bar{
  width:100%;
  height:12px;
  overflow:hidden;
  border-radius:999px;
  background:rgba(255,87,87,.28);
  margin-bottom:14px;
}

.approval-bar span{
  display:block;
  width:0;
  height:100%;
  border-radius:999px;
  background:var(--neon);
  transition:width .25s ease;
}

.approval-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.approval-btn{
  border:1px solid rgba(255,255,255,.1);
  border-radius:999px;
  padding:10px 16px;
  background:var(--card2);
  color:#fff;
  cursor:pointer;
  font-weight:900;
}

.approval-btn:hover,
.approval-btn.active{
  background:var(--neon);
  color:#07100a;
}

.approval-btn:disabled{
  cursor:not-allowed;
  opacity:.55;
}

.approval-login{
  display:none;
  margin:10px 0 0;
  color:var(--muted);
  font-weight:800;
}

.admin-preview-panel{
  margin:18px 0;
  padding:16px;
  border-radius:18px;
  background:rgba(100,255,154,.06);
  border:1px solid rgba(100,255,154,.2);
}

.admin-preview-panel[hidden]{
  display:none !important;
}

.admin-preview-panel h2{
  margin:0 0 12px;
  color:#fff;
  font-size:18px;
}

.admin-preview-row{
  display:grid;
  grid-template-columns:minmax(180px,1fr) minmax(110px,160px) auto;
  gap:10px;
  align-items:center;
}

.admin-preview-row label{
  color:#fff;
  font-weight:900;
}

.admin-preview-row input{
  width:100%;
  border:1px solid rgba(255,255,255,.1);
  border-radius:14px;
  background:var(--card2);
  color:#fff;
  padding:13px 14px;
  font-weight:900;
}

#adminPreviewStatus{
  min-height:20px;
  margin:10px 0 0;
  color:var(--muted);
  font-weight:800;
}

#adminPreviewStatus.error{
  color:#ff5c7c;
}

#watchDescription{
  color:#d6d6de;
  line-height:1.7;
}

/* VIDEO ACTIONS */

.video-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin:18px 0;
}

.action-btn{
  border:none;
  background:var(--card2);
  color:#fff;
  padding:12px 18px;
  border-radius:999px;
  cursor:pointer;
  font-weight:800;
  transition:.25s;
}

.action-btn:hover{
  transform:translateY(-2px);
  color:var(--neon);
}

.action-btn.active{
  background:var(--neon);
  color:#07100a;
}

/* RELATED */

.related-section{
  margin-top:36px;
}

.related-section h2{
  font-size:28px;
  margin-bottom:18px;
}

/* AUTH */

.auth-page{
  min-height:100vh;
  display:grid;
  place-items:center;
  background:var(--bg);
  padding:20px;
}

.auth-box{
  width:100%;
  max-width:420px;
  background:var(--card);
  padding:32px;
  border-radius:24px;
  display:flex;
  flex-direction:column;
  gap:16px;
}

.auth-box h1{
  font-size:32px;
}

.auth-subtitle{
  color:var(--muted);
  margin-bottom:6px;
}

.auth-box input{
  background:var(--bg2);
  border:1px solid rgba(255,255,255,.08);
  color:#fff;
  padding:15px;
  border-radius:14px;
  outline:none;
}

.auth-box a{
  color:var(--neon);
  text-align:center;
  font-weight:700;
}

.password-rules{
  display:flex;
  flex-direction:column;
  gap:6px;
  font-size:13px;
}

#message{
  text-align:center;
  line-height:1.5;
}

/* USER PAGES */

.user-page{
  min-height:100vh;
  background:var(--bg);
}

.user-container{
  max-width:900px;
  margin:0 auto;
  padding:32px;
}

.user-card{
  background:var(--card);
  border-radius:24px;
  padding:28px;
}

.user-card h1,
.user-container h1{
  font-size:34px;
  margin-bottom:12px;
}

#userEmail,
.muted-text{
  color:var(--muted);
  margin-bottom:24px;
}

.user-links{
  display:grid;
  gap:14px;
  margin-top:24px;
}

.user-links a{
  background:var(--card2);
  padding:16px;
  border-radius:16px;
  color:#fff;
  font-weight:800;
}

.user-links a:hover{
  color:var(--neon);
}

/* LOAD MORE */

.load-more-area{
  display:flex;
  justify-content:center;
  margin:40px 0;
}

#loadMoreBtn.hidden{
  display:none;
}

/* MOBILE */

.mobile-menu{
  display:none;
}

@media(max-width:900px){

  .app{
    grid-template-columns:1fr;
  }

  .sidebar{
    position:fixed;
    left:-290px;
    top:0;
    width:270px;
    height:100vh;
    z-index:1000;
    transition:.3s;
    box-shadow:0 0 40px rgba(0,0,0,.5);
  }

  .sidebar.open{
    left:0;
  }

  .main{
    padding:18px;
  }

  .mobile-menu{
    display:block;
    border:none;
    background:var(--card);
    color:#fff;
    padding:12px 15px;
    border-radius:14px;
    cursor:pointer;
    font-size:20px;
  }

  .topbar{
    flex-wrap:wrap;
  }

  .user-actions{
    min-width:0;
    flex-wrap:wrap;
    justify-content:flex-end;
  }

  .search{
    order:3;
    max-width:100%;
    min-width:0;
  }

  .hero{
    min-height:300px;
    padding:24px;
  }

  .hero h1{
    font-size:34px;
  }

  .hero-actions{
    flex-direction:column;
  }

  .video-grid{
    grid-template-columns:1fr;
  }

  .watch-header{
    padding:14px;
    flex-wrap:wrap;
  }

  .watch-container{
    padding:14px;
  }

  .watch-player{
    border-radius:18px;
  }

  .watch-info{
    padding:18px;
  }

  .watch-info h1{
    font-size:23px;
  }

  .admin-preview-row{
    grid-template-columns:1fr;
  }

  .video-actions{
    display:grid;
    grid-template-columns:1fr;
  }

  .action-btn{
    width:100%;
  }
}

@media(max-width:420px){

  .hero{
    min-height:260px;
    padding:20px;
  }

  .hero h1{
    font-size:30px;
  }

  .watch-header .logo{
    width:100%;
    text-align:center;
  }

  .play-icon span{
    width:48px;
    height:48px;
    font-size:20px;
  }
}
.categories-wrapper{
  margin-bottom:25px;
}

.categories{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:12px;
  max-height:58px;
  overflow:hidden;
  transition:.3s;
}

.categories.expanded{
  max-height:1000px;
}

.expand-categories-btn{
  width:100%;
  margin-top:14px;
  border:none;
  background:var(--card);
  color:var(--muted);
  padding:14px;
  border-radius:16px;
  cursor:pointer;
  font-weight:800;
  transition:.25s;
}

.expand-categories-btn:hover{
  background:var(--neon);
  color:#07100a;
}

@media(max-width:900px){

  .categories{
    grid-template-columns:repeat(4,1fr);
  }

}

@media(max-width:700px){

  .categories{
    grid-template-columns:repeat(4,minmax(0,1fr));
  }

}

/* Mobile watch page: keep related videos in two columns. */
@media(max-width:900px){
  .watch-page,
  .watch-container,
  .watch-main,
  .related-section{
    width:100%;
    max-width:100%;
    min-width:0;
  }

  .watch-container{
    padding:10px;
  }

  .watch-info,
  .comments-section,
  .related-section{
    padding-left:0;
    padding-right:0;
  }

  .related-section .video-grid,
  .related-section #relatedGrid,
  #relatedGrid.video-grid{
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:10px !important;
    width:100%;
    max-width:100%;
  }

  #relatedGrid .video-card{
    width:100%;
    min-width:0;
    border-radius:14px;
  }

  #relatedGrid .thumb{
    aspect-ratio:16/10;
  }

  #relatedGrid .card-body{
    padding:8px;
  }

  #relatedGrid .card-body h3{
    display:-webkit-box;
    min-height:32px;
    overflow:hidden;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    font-size:12px;
    line-height:1.3;
  }

  #relatedGrid .meta,
  #relatedGrid .duration{
    font-size:11px;
  }
}

/* Core Web Vitals stability fixes */
.video-grid{
  align-items:start;
}

.video-card{
  contain:layout paint;
}

.video-card-link{
  display:block;
  height:100%;
  color:inherit;
}

.thumb img{
  width:100%;
}

.watch-player{
  min-height:clamp(190px,52vw,640px);
  contain:layout paint;
  isolation:isolate;
}

.deferred-ad-slot{
  width:100%;
  min-height:1px;
  margin:20px auto;
  text-align:center;
  content-visibility:auto;
  contain:layout paint;
}

.comments-section,
.related-section{
  content-visibility:auto;
  contain-intrinsic-size:600px;
}

@media(max-width:900px){
  .watch-player{
    min-height:0 !important;
  }
}

@media(max-width:700px){

  .main{
    padding:14px;
  }

  .topbar{
    display:grid;
    grid-template-columns:48px minmax(0,1fr);
    align-items:center;
    gap:12px;
    margin-bottom:18px;
  }

  .mobile-menu{
    width:48px;
    height:48px;
    padding:0;
    border-radius:14px;
  }

  .topbar .user-actions{
    grid-column:2;
  }

  .user-actions{
    gap:8px;
  }

  .user-actions .btn{
    min-width:0;
    padding:12px 14px;
    font-size:14px;
    line-height:1.15;
    text-align:center;
  }

  .age-badge{
    padding:10px 12px;
    flex:0 0 auto;
  }

  .search{
    grid-column:1 / -1;
    order:0;
    padding:0 14px;
    width:100%;
    max-width:none;
  }

  .search input{
    min-width:0;
    padding:14px 8px;
  }

  .index-search-ad{
    margin:0 auto 18px;
  }

  .hero{
    min-height:250px;
    border-radius:22px;
    padding:22px 18px;
    margin-bottom:22px;
  }

  .hero h1{
    font-size:30px;
    line-height:1.05;
  }

  .hero p{
    line-height:1.45;
    margin-bottom:18px;
  }

  .categories-wrapper{
    margin-bottom:20px;
  }

  .categories{
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:9px;
    max-height:52px;
  }

  .chip{
    width:100%;
    min-width:0;
    padding:11px 9px;
    font-size:12px;
    overflow:hidden;
    text-overflow:ellipsis;
    text-align:center;
  }

  .expand-categories-btn{
    padding:13px 10px;
    border-radius:14px;
  }

  .section-title h2{
    font-size:24px;
  }

  .video-grid{
    gap:16px;
  }

  .video-card{
    border-radius:18px;
  }

}

@media(max-width:420px){

  .main{
    padding:12px;
  }

  .topbar{
    grid-template-columns:44px minmax(0,1fr);
    gap:10px;
  }

  .mobile-menu{
    width:44px;
    height:44px;
  }

  .topbar .user-actions{
    grid-column:1 / -1;
    justify-content:flex-start;
    width:100%;
  }

  .user-actions .btn{
    flex:1 1 118px;
    min-height:44px;
    padding:10px 8px;
    font-size:13px;
    white-space:normal;
  }

  .auth-login{
    flex-basis:82px;
  }

  .auth-register{
    flex-basis:142px;
  }

  .age-badge{
    min-height:44px;
    display:flex;
    align-items:center;
  }

  .user-dropdown{
    right:auto;
    left:0;
    width:min(220px, calc(100vw - 24px));
  }

  .hero{
    min-height:230px;
    padding:18px 14px;
    border-radius:18px;
  }

  .hero h1{
    font-size:28px;
  }

  .hero-actions .btn{
    width:100%;
    padding:12px 10px;
  }

}

@media(max-width:700px){

  html,
  body{
    overflow-x:hidden;
  }

  .app,
  .main,
  .topbar,
  .index-search-ad,
  .hero,
  .categories-wrapper,
  .section-title,
  .video-grid,
  .load-more-area{
    width:100%;
    max-width:100vw;
    min-width:0;
  }

  .main{
    overflow-x:hidden;
  }

  .hero > div,
  .video-card,
  .card-body,
  .meta{
    min-width:0;
    max-width:100%;
  }

  .video-grid{
    grid-template-columns:minmax(0,1fr);
  }

  .card-body h3,
  .meta span,
  .hero h1,
  .hero p,
  .btn,
  .chip{
    overflow-wrap:anywhere;
  }

  .meta{
    flex-wrap:wrap;
  }

  .index-search-ad iframe,
  .index-search-ad ins{
    width:min(300px, 100%) !important;
  }

}
/* Corrige menu do usuário no mobile */
@media(max-width:900px){

  .watch-header{
    justify-content:space-between;
  }

  .watch-header .user-actions{
    margin-left:auto;
    justify-content:flex-end;
  }

  .watch-header .user-menu{
    margin-left:auto;
  }

  .watch-header .user-dropdown{
    right:0;
    left:auto;
    max-width:calc(100vw - 24px);
  }

}

/* Espaço extra no fim da página para o anúncio não cobrir botões */
body{
  padding-bottom:120px;
}

.main,
.watch-container,
.user-container{
  padding-bottom:130px;
}

.load-more-area{
  margin-bottom:130px;
}
.category-page-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:14px;
}

.category-page-grid a{
  background:var(--card);
  color:#fff;
  padding:18px;
  border-radius:18px;
  font-weight:900;
  text-align:center;
}

.category-page-grid a:hover{
  background:var(--neon);
  color:#07100a;
}

@media(max-width:800px){
  .category-page-grid{
    grid-template-columns:repeat(3,1fr);
  }
}
.profile-form{
  display:flex;
  flex-direction:column;
  gap:12px;
  margin-top:20px;
}

.profile-form label{
  color:var(--muted);
  font-weight:800;
}

.profile-form input{
  background:var(--bg2);
  color:#fff;
  border:1px solid rgba(255,255,255,.08);
  padding:14px;
  border-radius:14px;
  outline:none;
}

#profileMessage{
  text-align:center;
}

.comments-section{
  margin-top:28px;
  background:var(--card);
  border-radius:24px;
  padding:24px;
}

.comments-section h2{
  font-size:26px;
  margin-bottom:18px;
}

.comment-box{
  display:flex;
  flex-direction:column;
  gap:12px;
  margin-bottom:20px;
}

.comment-box textarea{
  min-height:110px;
  resize:vertical;
  background:var(--bg2);
  color:#fff;
  border:1px solid rgba(255,255,255,.08);
  border-radius:16px;
  padding:16px;
  outline:none;
}

.comments-list{
  display:flex;
  flex-direction:column;
  gap:14px;
}

.comment-item{
  background:var(--bg2);
  border-radius:16px;
  padding:16px;
}

.comment-item strong{
  color:var(--neon);
  display:block;
  margin-bottom:4px;
}

.comment-item span{
  color:var(--muted);
  font-size:12px;
}

.comment-item p{
  margin-top:10px;
  color:#fff;
  line-height:1.5;
}
.avatar-area{
  display:flex;
  align-items:center;
  gap:18px;
  margin:20px 0;
  flex-wrap:wrap;
}

.avatar-area img{
  width:90px;
  height:90px;
  border-radius:50%;
  object-fit:cover;
  background:var(--card2);
  border:2px solid rgba(255,255,255,.08);
}

#avatarForm{
  display:flex;
  flex-direction:column;
  gap:10px;
}

#avatarForm input{
  color:var(--muted);
}

.comment-head{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:10px;
}

.comment-head img{
  width:42px;
  height:42px;
  border-radius:50%;
  object-fit:cover;
  background:var(--card2);
}

.reply-btn{
  border:none;
  background:transparent;
  color:var(--neon);
  cursor:pointer;
  font-weight:800;
  margin-top:8px;
}

.reply-box{
  display:none;
  margin-top:12px;
  gap:10px;
  flex-direction:column;
}

.reply-box.active{
  display:flex;
}

.reply-box textarea{
  min-height:90px;
  resize:vertical;
  background:var(--bg2);
  color:#fff;
  border:1px solid rgba(255,255,255,.08);
  border-radius:14px;
  padding:14px;
  outline:none;
}

.replies-list{
  margin-top:14px;
  padding-left:28px;
  border-left:2px solid rgba(100,255,154,.25);
  display:flex;
  flex-direction:column;
  gap:12px;
}

.reply-item{
  background:rgba(255,255,255,.03);
  border-radius:14px;
  padding:14px;
}
.pending-grid{
  display:grid;
  grid-template-columns:
  repeat(auto-fit,minmax(320px,1fr));
  gap:20px;
}

.pending-card{
  background:var(--card);
  border-radius:24px;
  padding:18px;
}

.pending-card iframe{
  width:100%;
  aspect-ratio:16/9;
  border:none;
  border-radius:16px;
  margin-bottom:14px;
}

.pending-card h3{
  margin-bottom:10px;
}

.pending-actions{
  display:flex;
  gap:12px;
  margin-top:16px;
}

.pending-schedule{
  display:grid;
  gap:7px;
  margin-top:14px;
  color:#fff;
  font-weight:900;
}

.pending-schedule input{
  width:100%;
  border:none;
  border-radius:12px;
  background:var(--card2);
  color:#fff;
  padding:12px 14px;
  font-weight:800;
}

.pending-schedule small{
  color:var(--muted);
  font-weight:700;
}
.upload-categories{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:12px;
}

.upload-chip{
  position:relative;
  cursor:pointer;
}

.upload-chip input{
  display:none;
}

.upload-chip span{
  display:flex;
  align-items:center;
  justify-content:center;

  padding:10px 16px;

  border-radius:999px;

  background:#1f2230;

  border:1px solid #2f3448;

  color:#fff;

  font-size:14px;

  transition:.2s;
}

.upload-chip input:checked + span{
  background:#ff2f6d;
  border-color:#ff2f6d;
}

.field-help{
  color:var(--muted);
  font-size:13px;
  line-height:1.5;
  margin-top:-4px;
}

.artist-autocomplete{
  position:relative;
}

.artist-autocomplete input{
  width:100%;
}

.artist-suggestions{
  position:absolute;
  left:0;
  right:0;
  top:calc(100% + 8px);
  z-index:50;
  background:var(--card2);
  border:1px solid rgba(255,255,255,.1);
  border-radius:16px;
  padding:8px;
  box-shadow:0 20px 50px rgba(0,0,0,.45);
}

.artist-suggestions button{
  width:100%;
  border:none;
  background:transparent;
  color:#fff;
  padding:12px;
  border-radius:12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  cursor:pointer;
  text-align:left;
}

.artist-suggestions button:hover{
  background:rgba(100,255,154,.12);
}

.artist-suggestions small,
.artist-suggestion-empty{
  color:var(--muted);
  font-size:12px;
}

.artist-suggestion-empty{
  padding:12px;
}

.artist-search{
  max-width:100%;
  margin:22px 0;
  border-radius:16px;
}

.artist-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
  gap:14px;
}

.artist-card{
  background:var(--bg2);
  border:1px solid rgba(255,255,255,.08);
  border-radius:16px;
  padding:18px;
  display:flex;
  flex-direction:column;
  gap:8px;
}

.artist-card strong{
  color:#fff;
  line-height:1.35;
}

.artist-card span{
  color:var(--muted);
  font-size:13px;
}

.artist-card:hover{
  border-color:rgba(100,255,154,.45);
  color:var(--neon);
}
#changePasswordForm{
  margin-top:28px;
  padding-top:24px;
  border-top:1px solid rgba(255,255,255,.08);
}

#changePasswordForm h2{
  font-size:24px;
  margin-bottom:6px;
}

#changePasswordMessage{
  text-align:center;
  line-height:1.5;
}

.auth-link{
  color:var(--neon);
  text-align:center;
  font-weight:700;
}

.profile-form h2{
  color:#fff;
}
#watchUploader a{
  color:var(--neon);
  font-weight:900;
}

#watchUploader a:hover{
  text-decoration:underline;
}
.user-section-title{
  margin:30px 0 16px;
  font-size:26px;
}

.empty-player{
  min-height:160px;
  display:grid;
  place-items:center;
  color:var(--muted);
  background:var(--bg2);
}
#watchCategory a{
  color:var(--neon);
  font-weight:900;
}

#watchCategory a:hover{
  text-decoration:underline;
}

#watchArtist a{
  color:var(--neon);
  font-weight:900;
}

#watchArtist a:hover{
  text-decoration:underline;
}
.delete-video-btn{
  width:100%;
  margin-top:14px;
  border:none;
  border-radius:14px;
  padding:12px;
  background:#ff3b3b;
  color:#fff;
  font-weight:900;
  cursor:pointer;
}

.delete-video-btn:hover{
  opacity:.85;
}
.creator-wide{
  max-width:1100px;
}

.creator-stats-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(150px,1fr));
  gap:16px;
  margin:26px 0;
}

.creator-stats-grid div,
.creator-money-card div{
  background:var(--card);
  border-radius:20px;
  padding:20px;
  text-align:center;
}

.creator-stats-grid span,
.creator-money-card span{
  display:block;
  color:var(--muted);
  margin-bottom:10px;
  font-weight:800;
}

.creator-stats-grid strong,
.creator-money-card strong{
  font-size:28px;
}

.creator-money-card{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:16px;
  margin-bottom:26px;
}

.chart-card{
  background:var(--card);
  border-radius:24px;
  padding:24px;
}

.chart-card h2{
  margin-bottom:16px;
}

.admin-creators-list{
  display:grid;
  gap:18px;
  margin-top:24px;
}

.creator-payment-card{
  background:var(--card);
  border-radius:24px;
  padding:22px;
}

.creator-payment-card p{
  color:var(--muted);
  margin:6px 0 18px;
}

.creator-payment-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(150px,1fr));
  gap:12px;
  margin-bottom:18px;
}

.creator-payment-grid span{
  background:var(--bg2);
  border-radius:14px;
  padding:14px;
}

.pay-area{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}

.pay-area input{
  flex:1;
  min-width:200px;
  background:var(--bg2);
  border:1px solid rgba(255,255,255,.08);
  color:#fff;
  border-radius:14px;
  padding:14px;
}
.video-ad-banner{
  width:100%;
  max-width:100%;
  min-height:0;
  display:flex;
  justify-content:center;
  align-items:flex-start;
  margin:22px auto;
  overflow:visible;
  text-align:center;
}

.video-ad-banner ins,
.video-ad-banner iframe{
  display:block !important;
  max-width:100% !important;
  border:0 !important;
}

@media(max-width:480px){

  .video-ad-banner{
    min-height:0;
  }

  .video-ad-banner iframe,
  .video-ad-banner ins{
    transform:none;
    transform-origin:center;
  }

}

.thumb{
  position:relative;
  overflow:hidden;
}

.thumb-img{
  position:absolute !important;
  inset:0 !important;
  z-index:0 !important;
  display:block;
  width:100% !important;
  height:100% !important;
  object-fit:cover;
  transition:opacity .18s ease, transform .35s ease;
}

.hot-preview-video{
  position:absolute !important;
  inset:0 !important;
  z-index:5 !important;
  display:block !important;
  width:100% !important;
  height:100% !important;
  object-fit:cover;
  opacity:0 !important;
  pointer-events:none !important;
  transition:opacity .18s ease;
  background:#050509;
}

.hot-preview-video.active,
.thumb:hover .hot-preview-video,
.thumb.hot-preview-active .hot-preview-video{
  opacity:1 !important;
}

.thumb:hover .thumb-img,
.thumb.hot-preview-active .thumb-img{
  opacity:0 !important;
}

.thumb:hover .play-icon,
.thumb.hot-preview-active .play-icon{
  opacity:0 !important;
}

.thumb .premium,
.thumb .duration,
.thumb .play-icon{
  position:absolute;
  z-index:6;
}
.stats-video-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;

  background:var(--card);

  border-radius:16px;

  padding:12px 14px;

  margin-bottom:10px;

  color:#fff;

  transition:.2s;
}

.stats-video-row:hover{
  transform:translateY(-2px);
}

.stats-video-row p{
  color:var(--muted);
  margin-top:4px;
  font-size:13px;
}

.stats-video-row img{
  width:90px;
  height:52px;
  object-fit:cover;
  border-radius:10px;
  flex-shrink:0;
}
.video-frame{
  width:100%;
  height:100%;
  min-height:0;
  border:none;
  border-radius:12px;
  display:block;
}

.watch-player iframe{
  width:100%;
  height:100%;
  min-height:0;
  border:none;
  display:block;
}

@media(max-width:700px){
  .watch-player{
    width:100%;
    aspect-ratio:16/9;
    height:auto;
    min-height:0;
    border-radius:18px;
  }

  .video-frame{
    height:100%;
    min-height:0;
  }
}

/* Final override: related videos stay two-up on phones. */
@media(max-width:900px){
  body .related-section #relatedGrid.video-grid,
  body .related-section #relatedGrid{
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:10px !important;
  }

  body .related-section #relatedGrid .video-card{
    min-width:0;
    width:100%;
  }

  body .related-section #relatedGrid .card-body h3{
    font-size:12px;
    line-height:1.3;
  }
}

/* Final mobile watch fixes: stable player and responsive ad banners. */
@media(max-width:900px){
  .watch-container{
    width:100%;
    max-width:100%;
    padding:10px;
  }

  .watch-player{
    width:100%;
    max-width:100%;
    aspect-ratio:16/9;
    height:auto !important;
    min-height:0 !important;
    border-radius:12px;
    overflow:hidden;
    position:relative;
  }

  .watch-player iframe,
  .video-frame{
    display:block;
    width:100% !important;
    height:100% !important;
    min-height:0 !important;
    border:0 !important;
    border-radius:0;
  }

  body .related-section #relatedGrid .thumb{
    aspect-ratio:16/9;
    background:#050509;
  }

  body .related-section #relatedGrid .thumb img{
    width:100%;
    height:100%;
    object-fit:contain;
    background:#050509;
  }

  .video-ad-banner{
    display:flex !important;
    align-items:flex-start !important;
    justify-content:center !important;
    position:static !important;
    width:100% !important;
    max-width:100% !important;
    height:auto !important;
    min-height:0 !important;
    max-height:none !important;
    margin:14px auto !important;
    padding:0 !important;
    overflow:visible !important;
    text-align:center !important;
  }

  .video-ad-banner > ins,
  .video-ad-banner > iframe{
    display:block !important;
    position:static !important;
    width:auto !important;
    max-width:100% !important;
    height:auto !important;
    min-height:0 !important;
    margin:0 auto !important;
    transform:none !important;
    transform-origin:top center !important;
    border:0 !important;
  }

  .video-ad-banner > ins iframe{
    display:block !important;
    position:static !important;
    width:auto !important;
    max-width:100% !important;
    height:auto !important;
    min-height:0 !important;
    margin:0 auto !important;
    transform:none !important;
    transform-origin:top center !important;
    border:0 !important;
  }

  .video-ad-top-extra,
  .video-ad-middle-extra,
  .video-ad-page-bottom{
    display:none !important;
  }

}
.turnstile-gate {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.74);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

body.turnstile-gate-locked {
  overflow: hidden;
}

body.turnstile-gate-locked .app {
  filter: blur(8px);
  pointer-events: none;
  user-select: none;
}

.turnstile-gate-box {
  display: grid;
  gap: 12px;
  place-items: center;
  min-width: min(340px, calc(100vw - 40px));
}

.turnstile-widget {
  min-height: 70px;
}

.turnstile-gate-status {
  min-height: 20px;
  color: #fff;
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
}
