.flex{
  display:flex;
  gap:20px;
  align-items:flex-start;
}
.poster img{
  border-radius:6px;
  width:250px;
}
.movie-info{
  flex:1;
}
h1{
  margin:0 0 10px;
}
.badge{
  display:inline-block;
  background:#ff7a18;
  color:#fff;
  padding:4px 8px;
  border-radius:4px;
  font-size:12px;
  text-decoration: none;
  margin-right:5px;
}

/* ===== REVIEW SYSTEM ===== */
.score-row{
  display:flex;
  align-items:center;
  gap:16px;
  margin:25px 0;
}
.score-wrap{
  display:flex;
  flex-direction:column;
  align-items:center;
}

.score-circle{
  --score:0;
  width:80px;
  height:80px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:22px;
  font-weight:700;
  color:#fff;
  position:relative;
  background:conic-gradient(
    #22c55e calc(var(--score) * 1%),
    #0f172a 0
  );
}
.score-circle::before{
  content:"";
  position:absolute;
  inset:8px;
  background:#0f172a;
  border-radius:50%;
}
.score-circle span{
  position:relative;
  z-index:2;
}
.score-label{
  font-size:12px;
  font-weight:600;
  margin-top:6px;
}

.vibe-seo-note{
  position:absolute;
  left:-9999px;
  width:1px;
  height:1px;
  overflow:hidden;
}

/* ===== EMOJIS ===== */
.emoji-stack span{
  font-size:30px;
}

.vibe-right{
  background:#020617;
  color:#fff;
  padding:12px 18px;
  border-radius:999px;
  display:flex;
  align-items:center;
  gap:10px;
  cursor:pointer;
}

/* emoji container */
.vibe-emoji-strip{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
}

/* emoji */
.vibe-emoji-strip span{
  font-size:22px;
  margin-left:6px;
}

/* +N badge */
.vibe-emoji-more{
  font-size:14px;
  font-weight:600;
  background:rgba(255,255,255,0.18);
  padding:3px 8px;
  border-radius:12px;
  margin-left:6px;
  display:inline-flex;
  align-items:center;
}


/* ===== MODAL ===== */
.modal{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.65);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:99999; /* keep above iframe */
}

.modal-box{
  background:#fff;
  padding:24px;
  border-radius:16px;
  max-width:720px;
  width:100%;
  max-height:90vh;
  overflow-y:auto; /* scroll if content large */
}

.close{
  float:right;
  font-size:22px;
  cursor:pointer;
}

/* ===== SLIDER ===== */
.slider{
  width:100%;
  margin:10px 0 6px;
}

/* ===== EMOJI GRID (FULL WIDTH FIX) ===== */
.emoji-row{
  display:grid;
  grid-template-columns: repeat(5, 1fr); /* full width grid */
  gap:14px;
  width:100%;
  margin:8px 0 14px;
  text-align:center;
}

.emoji-row span{
  font-size:32px;
  cursor:pointer;
  opacity:.35;
  transition:all .2s ease;
  user-select:none;
}

/* active / already selected emoji */
.emoji-row span.active{
  opacity:1;
  transform:scale(1.25);
}

/* ===== DONE BUTTON ===== */
.done-btn{
  margin-top:20px;
  padding:12px 24px;
  background:#064e3b;
  color:#fff;
  border:none;
  border-radius:30px;
  font-size:15px;
  cursor:pointer;
}

/* ===== MOBILE TWEAK ===== */
@media (max-width:480px){
  .emoji-row{
    grid-template-columns: repeat(5, 1fr); /* better fit on mobile */
  }
}


/* ===== MOVIE META INFO ===== */
.movie-meta{
  display:flex;
  flex-wrap:wrap;
  gap:10px 16px;
  margin-top:12px;
  font-size:14px;
  color:#222;
}

/* Each meta item */
.movie-meta > div{
  background:#f5f5f5;
  border:1px solid #e6e6e6;
  padding:6px 12px;
  border-radius:6px;
  line-height:1.4;
  white-space:nowrap;
}

/* Label text */
.meta-label{
  font-weight:600;
  color:#ff0000;
  margin-right:4px;
}

/* ===== OVERVIEW TEXT ===== */
.movie-overview{
  font-size:15px;
  line-height:1.65;
  color:#333;
  margin:12px 0 8px;
}

/* ===== RESPONSIVE (MOBILE) ===== */
@media (max-width:768px){
  .movie-meta{
    font-size:13px;
  }

  .movie-meta > div{
    white-space:normal;
    text-align:center;
  }

  .movie-overview{
    text-align:center;
    font-size:14px;
  }
}


/* ===== CAST & CREW ===== */
.cast-grid{
  display:flex;
  gap:10px;
  overflow-x:auto;
  padding-bottom:5px;
}
.cast-item{
  text-align:center;
  width:110px;
  flex-shrink:0;
}
.cast-item img{
  width:100px;
  border-radius:6px;
}
.cast-item strong{
  display:block;
  font-size:13px;
  margin-top:4px;
}
.cast-item small{
  font-size:13px;
  color:#555;
}

/* ===== WATCH PROVIDERS ===== */
.provider{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  margin-top:5px;
}
.provider img{
  width:60px;
  margin-right:10px;
  margin-top:5px;
  border-radius:6px;
}
.country{
  margin-top:10px;
}
.mode{
  font-size:13px;
  color:#555;
  margin-bottom:4px;
}

/* ===== TRAILER ===== */
iframe{
  max-width:100%;
  border-radius:8px;
}

/* wrapper */
.video-wrapper{
  position:relative;
  width:100%;
  max-width:100%;
  aspect-ratio:16 / 9;   /* modern browsers */
  background:#000;
  border-radius:10px;
  overflow:hidden;
  margin:15px 0;
  z-index:1;             /* 🔑 keep video below modal */
}

/* iframe inside wrapper */
.video-wrapper iframe{
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:100%;
  border:0;
  z-index:1;             /* 🔑 important */
}

/* ===== MODAL FIX (REQUIRED) ===== */
.modal{
  position:fixed;
  inset:0;
  z-index:99999;         /* 🔥 modal always on top */
}

/* optional safety: disable iframe click when modal open */
body.modal-open iframe{
  pointer-events:none;
}


/* ===== MOBILE ===== */
@media(max-width:768px){
  .flex{
    flex-direction:column;
    align-items:center;
  }
  .poster img{
    width:160px;
  }
  .movie-info{
    width:100%;
  }
}
