*{box-sizing:border-box} :root{color-scheme:dark} body{margin:0;background:#0c0d12;color:#f4f5f7;font:16px/1.55 system-ui,-apple-system,"Segoe UI",sans-serif} a{color:#a99bff;text-decoration:none} a:hover{color:#d1c9ff}.topbar{height:68px;padding:0 max(20px,calc((100% - 1180px)/2));display:flex;align-items:center;justify-content:space-between;background:#14151d;border-bottom:1px solid #282936;position:sticky;top:0;z-index:5}.brand{font-size:1.2rem;font-weight:800;color:#fff}.topbar nav{display:flex;gap:18px}.container{max-width:1180px;margin:0 auto;padding:26px 20px 50px}.narrow{max-width:680px;margin:35px auto}.hero{padding:38px;border-radius:22px;background:linear-gradient(120deg,#292044,#171a2a 70%,#182b39);margin-bottom:28px}.hero h1{font-size:clamp(1.8rem,5vw,3rem);margin:5px 0}.eyebrow{letter-spacing:.15em;color:#b9aaff;font-size:.78rem;font-weight:700}.video-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:18px}.video-card{color:inherit;background:#151620;border:1px solid #292a36;border-radius:15px;overflow:hidden;transition:transform .15s}.video-card:hover{transform:translateY(-3px)}.thumb{aspect-ratio:9/13;background:#222330;display:grid;place-items:center;overflow:hidden}.thumb img{width:100%;height:100%;object-fit:cover}.thumb span{font-size:3rem;color:#b9aaff}.video-info{padding:12px;display:grid;gap:5px}.video-info strong{line-height:1.35}.video-info small,.muted{color:#a5a6b5;font-size:.88rem}.panel{padding:24px;background:#151620;border:1px solid #292a36;border-radius:16px;margin:18px 0}.panel h1,.panel h2{margin-top:0}label{display:block;margin:16px 0 6px;color:#d9d9e3;font-size:.93rem}input,textarea,select{width:100%;padding:12px;background:#0e0f16;color:#f5f5f8;border:1px solid #383948;border-radius:9px;font:inherit}input[type=file]{padding:9px}button,.button-link{display:inline-block;border:0;border-radius:9px;padding:11px 17px;margin-top:18px;background:#7865e8;color:#fff;font-weight:700;font:inherit;cursor:pointer}button:hover,.button-link:hover{background:#8c7cf3;color:white}.secondary{background:#333443}.danger{background:#a9364e}.error{padding:10px;background:#421f2a;border-radius:8px;color:#ffb8c6}.success{padding:10px;background:#193a2c;border-radius:8px;color:#a8f0c8}.footer{padding:25px;text-align:center;color:#858697;border-top:1px solid #252632}.ad-slot{margin:14px 0 25px;min-height:20px;overflow:hidden}.ad-label{font-size:.72rem;color:#77798a;text-transform:uppercase;letter-spacing:.12em}.watch-layout{display:grid;grid-template-columns:minmax(0,2fr) minmax(220px,1fr);gap:28px}.player-wrap{background:#000;border-radius:14px;overflow:hidden;max-width:780px}.player-wrap video{display:block;width:100%;max-height:78vh;background:#000}.description{white-space:normal;color:#d2d2dd}.stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.stat{background:#191a26;border:1px solid #303142;padding:20px;border-radius:13px;display:grid;gap:8px}.stat small{color:#a8a8b7}.stat strong{font-size:1.8rem}.admin-actions{display:flex;gap:12px;flex-wrap:wrap;margin:18px 0}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse}th,td{text-align:left;padding:12px;border-bottom:1px solid #303142;white-space:nowrap}th{color:#b7b7c8}@media(max-width:760px){.watch-layout{grid-template-columns:1fr}.watch-layout aside{display:none}.hero{padding:25px}.video-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.container{padding:18px 14px 35px}.topbar{padding:0 14px}.topbar nav{gap:12px}.video-info{padding:9px}.video-info strong{font-size:.92rem}}

.ad-card{position:relative;margin:22px 0;padding:20px 18px;border:1px solid #55516f;border-radius:14px;background:#211e30}
.ad-card[hidden]{display:none}.close-ad,.notification-close{position:absolute;right:8px;top:6px;margin:0;padding:2px 10px;background:#3a3948;font-size:1.25rem;line-height:1.4}
.ad-notification{position:relative;display:flex;align-items:center;gap:12px;margin:18px 0;padding:14px 42px 14px 14px;background:#252536;border:1px solid #46435c;border-radius:12px}
.ad-notification .notification-close{right:7px;top:7px}.legal h2{font-size:1.1rem;margin-top:24px}.legal p{color:#d1d1de}

.custom-ad{position:relative;margin:16px 0;padding:16px;background:#1b1c28;border:1px solid #38394b;border-radius:12px;overflow-wrap:anywhere}
.custom-ad[hidden]{display:none}.custom-ad-image{display:block;max-width:100%;max-height:260px;object-fit:contain;margin:10px auto;border-radius:8px}
.custom-ad strong{display:block;margin:8px 0}.custom-ad p{color:#d0d0dd;margin:8px 0}
.custom-ad-close{position:absolute;right:8px;top:8px;padding:1px 10px;margin:0;border-radius:7px;background:#373848;font-size:1.3rem;line-height:1.5}
.custom-ad-popup,.custom-ad-overlay{z-index:20;box-shadow:0 14px 60px #0009}
.custom-ad-overlay{position:relative;background:#252039;border-color:#6655b0}
.custom-ad-notification{display:flex;flex-direction:column;gap:5px;background:#252536;border-left:4px solid #8d7bf0}
.inline-form{display:inline-flex;gap:5px;flex-wrap:wrap}.small-btn{font-size:.78rem;padding:5px 8px;margin:4px 0}

.custom-ad{position:relative;margin:16px 0;padding:16px;border:1px solid #3b3c50;border-radius:13px;background:#171824;overflow:hidden}
.custom-ad[hidden]{display:none!important}.custom-ad-label{font-size:.7rem;color:#a9aabc;letter-spacing:.12em;text-transform:uppercase;margin-bottom:8px}
.custom-ad-image{display:block;width:100%;max-height:240px;object-fit:contain;border-radius:8px;background:#101117}
.custom-ad-copy{padding-top:10px}.custom-ad-copy p{color:#d0d0dc}.custom-ad-close{position:absolute;z-index:2;right:8px;top:8px;margin:0;padding:2px 10px;background:#333443;font-size:1.35rem}
.custom-popup{position:fixed;z-index:1000;left:50%;top:50%;transform:translate(-50%,-50%);width:min(92vw,520px);max-height:85vh;overflow:auto;box-shadow:0 18px 70px #000b;border-color:#65617d}
.check-label{display:flex;align-items:center;gap:10px}.check-label input{width:auto}
.inline-form{display:inline-block;margin:3px}.small-button{padding:5px 8px;margin:0;font-size:.82rem}.small-button.secondary{background:#3a3b4c}


/* CineBari Shorts: centered YouTube-style play overlay */
.player-wrap-custom {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 780px;
  margin-inline: auto;
  background: #000;
  overflow: hidden;
  border-radius: 14px;
}
.player-wrap-custom video {
  display: block;
  width: 100%;
  max-height: 78vh;
  height: auto;
  object-fit: contain;
  background: #000;
}
.player-wrap-custom .custom-play-button {
  position: absolute;
  z-index: 4;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  width: 92px;
  height: 92px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 50%;
  background: rgba(18,18,22,.72);
  color: #fff;
  box-shadow: 0 4px 24px rgba(0,0,0,.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, opacity .15s ease;
}
.player-wrap-custom .custom-play-button:hover {
  transform: translate(-50%, -50%) scale(1.07);
  background: rgba(120,101,232,.92);
}
.player-wrap-custom .custom-play-icon {
  display: block;
  margin-left: 5px;
  font-size: 31px;
  line-height: 1;
}
.player-wrap-custom .custom-play-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}
.player-wrap-custom .custom-play-button.is-hidden {
  display: none !important;
}
.player-wrap-custom .player-message {
  position: absolute;
  z-index: 5;
  left: 12px;
  right: 12px;
  bottom: 58px;
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(0,0,0,.82);
  color: #fff;
  text-align: center;
  font-size: 13px;
}
.player-wrap-custom .player-message[hidden] {
  display: none !important;
}
@media (max-width: 600px) {
  .player-wrap-custom {
    border-radius: 10px;
  }
  .player-wrap-custom video {
    max-height: 72vh;
  }
  .player-wrap-custom .custom-play-button {
    width: 76px;
    height: 76px;
  }
  .player-wrap-custom .custom-play-icon {
    font-size: 27px;
  }
}




/* v15 fix: force the custom play button to render above the video */
#playerWrap.player-wrap-custom {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  isolation: isolate !important;
  background: #000 !important;
}
#playerWrap.player-wrap-custom #shortVideo {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-height: 78vh !important;
  object-fit: contain !important;
  background: #000 !important;
}
#playerWrap.player-wrap-custom #customPlayButton {
  position: absolute !important;
  z-index: 9999 !important;
  top: 50% !important;
  left: 50% !important;
  right: auto !important;
  bottom: auto !important;
  transform: translate(-50%, -50%) !important;
  width: 88px !important;
  height: 88px !important;
  min-width: 88px !important;
  min-height: 88px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 2px solid #fff !important;
  border-radius: 50% !important;
  background: rgba(20, 20, 24, .82) !important;
  color: #fff !important;
  font-size: 14px !important;
  line-height: 1 !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  cursor: pointer !important;
}
#playerWrap.player-wrap-custom #customPlayButton.is-hidden {
  display: none !important;
}
#playerWrap.player-wrap-custom #customPlayButton .custom-play-icon {
  display: block !important;
  margin-left: 4px !important;
  color: #fff !important;
  font-size: 30px !important;
  line-height: 1 !important;
}
#playerWrap.player-wrap-custom #customPlayButton .custom-play-label {
  display: block !important;
  color: #fff !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
}
#playerWrap.player-wrap-custom #playerMessage {
  position: absolute !important;
  z-index: 10000 !important;
  left: 12px !important;
  right: 12px !important;
  bottom: 56px !important;
}
@media (max-width: 600px) {
  #playerWrap.player-wrap-custom #customPlayButton {
    width: 76px !important;
    height: 76px !important;
    min-width: 76px !important;
    min-height: 76px !important;
  }
}



/* v16: visible custom center-play overlay */
#playerWrap.player-wrap-custom {
  position: relative !important;
}
#playerWrap.player-wrap-custom #shortVideo {
  width: 100% !important;
  display: block !important;
}
#playerWrap.player-wrap-custom #customPlayButton {
  display: flex !important;
  position: absolute !important;
  z-index: 2147483000 !important;
  inset: 50% auto auto 50% !important;
  transform: translate(-50%, -50%) !important;
  align-items: center !important;
  justify-content: center !important;
  flex-direction: column !important;
  width: 94px !important;
  height: 94px !important;
  min-width: 94px !important;
  min-height: 94px !important;
  border-radius: 50% !important;
  border: 2px solid rgba(255,255,255,.95) !important;
  background: rgba(20,20,24,.82) !important;
  color: #fff !important;
  box-shadow: 0 4px 24px rgba(0,0,0,.55) !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  cursor: pointer !important;
}
#playerWrap.player-wrap-custom #customPlayButton .custom-play-icon {
  font-size: 34px !important;
  margin-left: 5px !important;
  line-height: 1 !important;
}
#playerWrap.player-wrap-custom #customPlayButton .custom-play-label {
  margin-top: 7px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
}
#playerWrap.player-wrap-custom #customPlayButton.is-hidden {
  display: none !important;
}
@media (max-width: 600px) {
  #playerWrap.player-wrap-custom #customPlayButton {
    width: 78px !important;
    height: 78px !important;
    min-width: 78px !important;
    min-height: 78px !important;
  }
}
