:root{
--cinema-bg: #0b0b0c;
--panel-bg: rgba(6,6,6,0.1);
--panel-blur: 8px;
--cinema-accent: #ff7a59;
--thumb-size: 120px;
--cinema-gap: 14px;
}


body.overflow{
overflow: hidden !important;
}

body.cinema.style{
position: fixed;
left:50%;
transform: translateX(-50%);
margin:0 auto 0;
width: 100%;
max-width: 40%;
font-family: 'Inter', sans-serif;
color: var(--color-text);
background:var(--ios-white);
background: var(--ios-white);
box-shadow: var(--deep-shadow);
border:.3rem solid var(--loud-blue-border);
border-radius: 3rem;
}

.body-class{
height:100% !important;
margin:0 !important;
background:var(--cinema-bg) !important;
font-family:Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial !important;
}


.theater {
width: 100vw;
height: 100vh;
display: flex;
align-items: center;
justify-content: center;
background: var(--cinema-bg);
overflow: hidden;
}
.theater video{
padding-bottom: 45px;
}
.stage {
position: relative;
width: 100%;
height: 100vh;
background: radial-gradient(circle at center, #000 60%, #0b0b0c 100%);
overflow: hidden;
}
.player {
width: 100%;
height: 100%;
object-fit: contain;
background: #000;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
.overlay {
width: 100%;
max-width: 100%;
position:absolute;
inset:0;
pointer-events:none;
}
.hud {
position:absolute;
left:18px;
top:55px;
pointer-events:auto;
display:flex;
gap:8px;
align-items:center;
color:#fff;
}
.hud .pill {
background: rgba(0,0,0,0.38);
padding:6px 10px;
border-radius:999px;
font-size:13px;
backdrop-filter: blur(6px);
border:1px solid rgba(255,255,255,0.04);
}
.bottom-panel {
position: absolute;
left: 0;
right: 0;
bottom: 55px;
padding: 12px 18px;
display: flex;
flex-direction: column;
gap: 10px;
pointer-events: auto;
transition: transform .28s cubic-bezier(.2,.9,.2,1), opacity .2s;
will-change: transform, opacity;
background: linear-gradient(
180deg,
rgba(0, 0, 0, 0.0) 0%,
rgba(0, 0, 0, 0.25) 35%,
rgba(0, 0, 0, 0.45) 100%
);
backdrop-filter: blur(8px);
border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.panel-film {
display:flex;
align-items:center;
gap:12px;
padding:8px;
background: var(--panel-bg);
backdrop-filter: blur(var(--panel-blur));
border-radius:10px;
border:1px solid rgba(255,255,255,0.04);
}

.cinema-controls {
display:flex;
gap:10px;
align-items:center;
color:#fff;
font-size:14px;
min-width:160px;
}
.cinema-btn {
display:inline-grid;
place-items:center;
width:36px;
height:36px;
border-radius:8px;
background:rgba(255,255,255,0.04); 
color:white; 
cursor:pointer;
border:1px solid rgba(255,255,255,0.03);
}
.cinema-btn:active{ transform:scale(.98) }
.play-icon { width:12px;height:12px; display:block; }
.cinema-carousel-wrap { overflow:hidden; flex:1; }
.cinema-carousel {
display:flex;
gap:var(--cinema-gap);
padding:6px;
align-items:center;
overflow-x:auto;
scroll-snap-type:x mandatory;
-webkit-overflow-scrolling:touch;
}
.cinema-carousel::-webkit-scrollbar{ height:10px; }
.cinema-carousel::-webkit-scrollbar-thumb{ background:rgba(255,255,255,0.06); border-radius:999px; }
.cinema-thumb {
flex: 0 0 auto;
width:var(--thumb-size);
height:calc(var(--thumb-size) * 0.56);
border-radius:8px;
overflow:hidden;
background:#111;
position:relative;
cursor:pointer;
scroll-snap-align:center;
box-shadow: 0 4px 18px rgba(0,0,0,0.5);
border:1px solid rgba(255,255,255,0.03);
}
.cinema-thumb img{ width:100%;height:100%;object-fit:cover;display:block; }
.cinema-thumb .meta {
position:absolute;
left:6px;right:6px;bottom:6px;color:#fff;font-size:12px;
text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}
.cinema-thumb.playing { outline: 2px solid var(--cinema-accent); transform:scale(1.03); }
.panel-hidden { transform: translateY(60%); opacity:0; pointer-events:none; }
.info-overlay {
position:absolute;
top:35px; left:0; right:0;
width:100%;
background: rgba(0,0,0,0.6);
backdrop-filter: blur(10px);
color: #fff;
padding: 18px;
border-top: 1px solid rgba(255,255,255,0.08);
transition: transform .3s ease, opacity .3s ease;
}
.info-overlay.panel-hidden {
transform: translateY(100%);
opacity: 0;
pointer-events: none;
}
.info-content h3{ margin:0 0 6px; font-size:16px; }
.info-content p{ margin:0; font-size:14px; line-height:1.5; opacity:0.9; }
#showPanelBtn {
    position:absolute;bottom:85px;right:18px;
background:rgba(0,0,0,0.4);border:1px solid rgba(255,255,255,0.08);
display:none; z-index:50;
}

.cinema-monetize-overlay {
  position: absolute;
  top:0; left:0; right:0; bottom:0;
  background: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
.cinema-monetize-overlay.panel-hidden { display: none; }
.monetize-content {
  background: white;
  padding: 20px 30px;
  border-radius: 10px;
  text-align: center;
  max-width: 400px;
}


.monetize-content button {
  margin: 10px 5px 0 5px;
  padding: 8px 16px;
  cursor: pointer;
  font-size: 18px;
  border-radius: .6rem;
  color:#fff;
  background: #111;
}

.theater svg{
  color:#fefefe;
  width: 28px;
  height: 28px;
}

.video-controls {
  width: 100%;
  padding: 0;
  position: absolute;
  bottom: 180px;
  left: 0;
  display: flex;
  justify-content: center;
}

#videoSlider {
  width: 100%;
  -webkit-appearance: none;
  background: rgba(255,255,255,0.3);
  height: 4px;
  border-radius: 2px;
  cursor: pointer;
}

#videoSlider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 8px;            /* tiny square */
  height: 8px;
    background: white;
   /* visible handle */
  border-radius: 2px;    /* square-ish */
  cursor: pointer;
  box-shadow: 0 0 1px rgba(0,0,0,0.6);
}

#videoSlider::-moz-range-thumb {
  width: 8px;
  height: 8px;

    background: rgba(30, 24, 208, 0.3); 
  border-radius: 2px;
  cursor: pointer;
  box-shadow: 0 0 1px rgba(0,0,0,0.6);
}

@supports (padding: max(0px)) {
.theater, .bottom-panel{
/* make sure it floats above iPhone gesture area */
padding-bottom: calc(1rem + env(safe-area-inset-bottom));
}
}

@media (max-width:700px){
:root{ --thumb-size:96px; --cinema-gap:10px; }
.theater {
height: 100vh; /* fallback */
height: 100dvh; /* for modern browsers */
box-sizing: border-box;
padding-bottom: env(safe-area-inset-bottom, 0px);
transition: height 0.2s ease; /* smooth resizing */
}
.controls{ min-width:120px; font-size:13px; }
}