
/* ==========================================================
   DARK VIDEO UI — BLACK / ORANGE PREMIUM LAYOUT
   Inspired by the supplied reference screenshot.
   ========================================================== */

:root{
  --black:#050505;
  --header:#111111;
  --panel:#171717;
  --panel2:#202020;
  --line:#2b2b2b;
  --orange:#ffa000;
  --orange2:#ffb300;
  --white:#f5f5f5;
  --gray:#a6a6a6;
}

*{box-sizing:border-box}

html,body{
  margin:0;
  padding:0;
  background:#050505;
  color:var(--white);
  font-family:Arial,Helvetica,sans-serif;
}

body{
  min-height:100vh;
}

/* HEADER */
.site-header{
  background:#111;
  border-bottom:1px solid #252525;
  box-shadow:0 3px 18px rgba(0,0,0,.6);
}

.header-inner{
  width:min(1180px,calc(100% - 28px));
  margin:auto;
  min-height:108px;
  padding:15px 0 13px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  gap:12px;
}

.brand-logo{
  text-decoration:none;
  line-height:1;
  text-align:center;
}

.brand-name{
  color:#fff;
  font-size:27px;
  font-weight:900;
  letter-spacing:-1.3px;
}

.brand-tagline{
  color:var(--orange);
  font-size:10px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:1px;
  margin-left:9px;
}

.header-ad{
  color:#d2d2d2;
  font-size:14px;
}

/* MAIN */
.container{
  width:min(1180px,calc(100% - 28px));
  margin:auto;
  padding:28px 0 70px;
}

.status{
  text-align:center;
  color:#aaa;
  margin:5px 0 18px;
}

.status.error{color:#ff5b5b}

/* TOP CTA CARDS */
.top-buttons{
  width:100%;
  max-width:900px;
  margin:0 auto 24px;
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:14px;
}

.top-button-wrap{min-width:0}

.top-ad-button{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:54px;
  border-radius:5px;
  border:1px solid #555;
  text-decoration:none!important;
  color:#fff!important;
  font-size:15px;
  font-weight:900;
  background:linear-gradient(#262626,#191919);
  box-shadow:0 5px 18px rgba(0,0,0,.45);
  overflow:hidden;
  transition:.18s ease;
}

.onlyfans-button{
  background:linear-gradient(180deg,#ffb21a,#ed8200);
  border-color:#ffb72c;
}

.telegram-button{
  background:linear-gradient(180deg,#1b9be0,#1479b2);
  border-color:#43b6ed;
}

.top-ad-button:after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(105deg,transparent 35%,rgba(255,255,255,.16) 50%,transparent 65%);
  transform:translateX(-120%);
  animation:shine 3.8s ease-in-out infinite;
}

.top-ad-button span{
  position:relative;
  z-index:2;
}

.top-ad-button:hover{
  transform:translateY(-2px);
  filter:brightness(1.08);
  box-shadow:0 8px 25px rgba(0,0,0,.6);
}

@keyframes shine{
  0%,45%{transform:translateX(-120%)}
  70%,100%{transform:translateX(120%)}
}

/* VIDEO GRID */
.video-list{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
}

.video-card{
  position:relative;
  min-width:0;
  padding:9px;
  background:#151515;
  border:1px solid #2d2d2d;
  border-radius:6px;
  box-shadow:0 7px 25px rgba(0,0,0,.48);
}

.video-card:hover{
  border-color:#3b3b3b;
}

.video-title{
  color:#fff;
  font-size:15px;
  font-weight:800;
  padding:4px 4px 10px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.video-wrap{
  position:relative;
  width:100%;
  aspect-ratio:16/9;
  overflow:hidden;
  border-radius:4px;
  background:#000;
}

.video-player{
  display:block;
  width:100%;
  height:100%;
  background:#000;
  object-fit:cover;
}

/* CENTER PLAY */
.center-play{
  position:absolute;
  left:50%;
  top:50%;
  width:64px;
  height:64px;
  transform:translate(-50%,-50%);
  border-radius:50%;
  border:2px solid rgba(255,255,255,.8);
  background:rgba(255,145,0,.92);
  box-shadow:0 0 0 7px rgba(255,160,0,.13),0 8px 25px rgba(0,0,0,.5);
  cursor:pointer;
  transition:.18s ease;
}

.center-play:hover{
  transform:translate(-50%,-50%) scale(1.08);
  background:var(--orange2);
}

.play-triangle{
  display:block;
  width:0;
  height:0;
  margin-left:5px;
  border-top:10px solid transparent;
  border-bottom:10px solid transparent;
  border-left:15px solid #fff;
}

.center-play.is-hidden{
  opacity:0;
  pointer-events:none;
}

/* DOWNLOAD BUTTON — CENTER */
.actions{
  display:flex;
  justify-content:center!important;
  align-items:center!important;
  width:100%;
  padding:12px 0 3px;
}

.download-now-centered{
  display:flex!important;
  width:260px!important;
  max-width:92%;
  min-height:43px;
  margin:0 auto!important;
  align-items:center!important;
  justify-content:center!important;
  border-radius:4px;
  border:1px solid #ffb02b;
  background:linear-gradient(180deg,#ffad16,#f27d00);
  color:#fff!important;
  text-decoration:none!important;
  font-size:14px;
  font-weight:900;
  box-shadow:0 4px 16px rgba(255,145,0,.25),inset 0 1px rgba(255,255,255,.22);
  transition:.18s ease;
}

.download-now-centered:before{
  content:"⇩";
  font-size:17px;
  margin-right:8px;
}

.download-now-centered:hover{
  transform:translateY(-1px);
  filter:brightness(1.08);
  box-shadow:0 7px 24px rgba(255,145,0,.4);
}

/* PAGINATION */
.pagination{
  display:flex;
  justify-content:center;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;
  margin-top:22px;
}

.page-btn{
  min-width:40px;
  height:38px;
  border:1px solid #3b3b3b;
  border-radius:5px;
  background:#191919;
  color:#ddd;
  font-size:14px;
  font-weight:800;
  cursor:pointer;
}

.page-btn:hover:not(:disabled){
  border-color:var(--orange);
  color:#fff;
}

.page-btn.active,
.page-btn:disabled{
  background:var(--orange);
  border-color:var(--orange);
  color:#111;
}

/* FOOTER */
.site-footer{
  min-height:70px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-top:1px solid #242424;
  background:#101010;
}

.footer-brand{
  color:#999;
  font-size:11px;
  font-weight:700;
}

/* MOBILE */
@media(max-width:800px){
  .video-list{
    grid-template-columns:1fr;
  }
}

@media(max-width:520px){
  .container{
    width:calc(100% - 16px);
    padding-top:16px;
  }

  .header-inner{
    width:calc(100% - 20px);
    min-height:100px;
  }

  .brand-name{font-size:24px}
  .brand-tagline{font-size:9px}

  .top-buttons{
    gap:9px;
    margin-bottom:18px;
  }

  .top-ad-button{
    min-height:48px;
    padding:8px 5px;
    font-size:12px;
  }

  .video-card{
    padding:7px;
  }

  .video-title{
    font-size:14px;
  }

  .center-play{
    width:57px;
    height:57px;
  }

  .download-now-centered{
    width:94%!important;
  }
}


/* ===== Reference-style logo + download button ===== */

.brand-logo{
  display:inline-flex !important;
  align-items:center;
  justify-content:center;
  gap:0 !important;
  text-decoration:none !important;
  line-height:1 !important;
}

.brand-name{
  display:inline-block;
  color:#fff !important;
  font-size:30px !important;
  font-weight:900 !important;
  letter-spacing:-1.5px !important;
  text-shadow:none !important;
}

.brand-name::first-letter{
  color:#fff;
}

.brand-tagline{
  display:inline-flex !important;
  align-items:center;
  margin-left:0 !important;
  padding:6px 8px 7px;
  background:#f5a000;
  color:#111 !important;
  border-radius:2px;
  font-size:22px !important;
  line-height:1 !important;
  font-weight:900 !important;
  letter-spacing:-1px !important;
  text-transform:none !important;
}

/* Keep the tagline visually as an orange logo block */
.download-now-centered{
  position:relative !important;
  width:230px !important;
  max-width:90% !important;
  min-height:46px !important;
  margin:12px auto 3px !important;
  padding:0 22px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  border:0 !important;
  border-radius:24px !important;
  background:linear-gradient(180deg,#ffb000 0%,#f38a00 100%) !important;
  color:#111 !important;
  text-decoration:none !important;
  font-size:15px !important;
  font-weight:900 !important;
  letter-spacing:.1px;
  box-shadow:0 4px 16px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.28) !important;
  transition:transform .18s ease,filter .18s ease,box-shadow .18s ease !important;
}

.download-now-centered:before{
  content:"⇩" !important;
  color:#111 !important;
  font-size:18px !important;
  font-weight:900 !important;
  margin-right:8px !important;
}

.download-now-centered:hover{
  transform:translateY(-2px) !important;
  filter:brightness(1.08) !important;
  box-shadow:0 7px 22px rgba(255,160,0,.28), inset 0 1px 0 rgba(255,255,255,.3) !important;
}

@media(max-width:520px){
  .brand-name{
    font-size:25px !important;
  }
  .brand-tagline{
    font-size:18px !important;
    padding:5px 7px 6px;
  }
  .download-now-centered{
    width:220px !important;
    min-height:44px !important;
  }
}

/* ==========================================================
   ADMIN PANEL — PREMIUM DARK / ORANGE UI
   ========================================================== */

.admin-container{
  width:min(980px,calc(100% - 24px));
  padding:28px 0 70px;
}

.site-header .brand{
  color:#fff;
  font-size:24px;
  font-weight:900;
  letter-spacing:-.5px;
}

.site-header .admin-link{
  color:#ffab16;
  font-size:13px;
  font-weight:800;
  text-decoration:none;
}

.site-header .admin-link:hover{color:#ffc04d}

.panel{
  background:linear-gradient(180deg,#191919 0%,#121212 100%);
  border:1px solid #303030;
  border-radius:10px;
  padding:22px;
  margin:0 auto 20px;
  box-shadow:0 12px 35px rgba(0,0,0,.5),inset 0 1px 0 rgba(255,255,255,.025);
}

.panel h1{
  margin:0 0 18px;
  font-size:25px;
  line-height:1.2;
  color:#fff;
}

#login-card{
  max-width:620px;
  margin-top:35px;
}

#login-form{
  display:flex;
  gap:10px;
}

#login-form input,
#video-form input{
  min-height:46px;
  border:1px solid #3b3b3b;
  border-radius:6px;
  outline:none;
  background:#0d0d0d;
  color:#fff;
  padding:0 14px;
  font-size:14px;
  transition:border-color .18s,box-shadow .18s;
}

#login-form input{
  flex:1;
}

#login-form input:focus,
#video-form input:focus{
  border-color:#ff9f00;
  box-shadow:0 0 0 3px rgba(255,159,0,.10);
}

#login-form button,
#video-form button,
button.small{
  min-height:46px;
  border:1px solid #ffb02b;
  border-radius:6px;
  background:linear-gradient(180deg,#ffad17,#ee7f00);
  color:#111;
  font-weight:900;
  padding:0 20px;
  cursor:pointer;
  transition:.18s ease;
}

#login-form button:hover,
#video-form button:hover,
button.small:hover{
  filter:brightness(1.08);
  transform:translateY(-1px);
  box-shadow:0 6px 18px rgba(255,145,0,.22);
}

.panel-title-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px;
  margin-bottom:18px;
}

.panel-title-row h1{margin:0}

#logout.secondary{
  background:#242424;
  border-color:#454545;
  color:#ddd;
}

#video-form{
  display:grid;
  grid-template-columns:minmax(180px,.8fr) minmax(280px,1.7fr) auto;
  gap:10px;
  align-items:stretch;
}

#video-form button{
  white-space:nowrap;
}

.message{
  min-height:0;
  margin-top:12px;
  font-size:13px;
  font-weight:700;
}

.message:empty{display:none}

.message.success{
  color:#7ee2a8;
  padding:10px 12px;
  background:rgba(34,170,95,.08);
  border:1px solid rgba(34,170,95,.25);
  border-radius:6px;
}

.message.error{
  color:#ff8585;
  padding:10px 12px;
  background:rgba(220,50,50,.08);
  border:1px solid rgba(220,50,50,.25);
  border-radius:6px;
}

.admin-video-list{
  display:flex;
  flex-direction:column;
  gap:9px;
  margin-top:18px;
}

.admin-video-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:13px 14px;
  background:#0f0f0f;
  border:1px solid #2c2c2c;
  border-radius:7px;
}

.admin-video-info{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:4px;
}

.admin-video-info strong{
  color:#fff;
  font-size:14px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.admin-video-info span{
  color:#888;
  font-size:11px;
}

.admin-video-row .danger{
  flex:0 0 auto;
  min-height:38px;
  padding:0 15px;
  background:#241313;
  border-color:#713434;
  color:#ff8e8e;
}

.admin-video-row .danger:hover{
  background:#321515;
  border-color:#a33d3d;
  box-shadow:none;
}

.empty-state{
  padding:28px 15px;
  text-align:center;
  color:#888;
  border:1px dashed #363636;
  border-radius:7px;
  background:#0e0e0e;
}

.hidden{display:none!important}

@media(max-width:700px){
  .admin-container{width:calc(100% - 18px);padding-top:18px}
  .panel{padding:16px;border-radius:8px}
  #login-card{margin-top:18px}
  #login-form{flex-direction:column}
  #login-form button{width:100%}
  #video-form{grid-template-columns:1fr;gap:9px}
  #video-form button{width:100%}
  .panel-title-row{align-items:flex-start}
  .panel-title-row h1{font-size:22px}
  #logout{min-height:40px}
  .admin-video-row{align-items:flex-start}
}

@media(max-width:420px){
  .site-header .brand{font-size:21px}
  .panel h1{font-size:22px}
  .admin-video-row{flex-direction:column}
  .admin-video-row .danger{width:100%}
}

/* Player page compatibility */
.player-video-wrap{background:#000}
.player-video{display:block;width:100%;max-height:70vh;background:#000}

/* Home page videos are navigation previews; playback happens only on player.html. */
.video-player{cursor:pointer;pointer-events:auto;}
