/* player.css */

/* 1. Global resets */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* 2. Base body styles */
body {
  font-family: Rubik, Helvetica, Arial, sans-serif;
  background: #fff;
}

/* 3. Responsive 16:9 embed container */
.embed-video {
  position: relative !important;
  width: 100% !important;
  max-width: 560px !important;
  aspect-ratio: 16 / 9 !important;
  margin: 40px auto !important;
  background: #000 !important;
  overflow: hidden !important;
}

/* 4. Player, iframe & overlay fill the container */
.embed-video > #player,
.embed-video > #overlay,
.embed-video > iframe {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
}

/* 5. Click‐catcher overlay */
.tv-frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  cursor: pointer;
  background: rgba(0, 0, 0, 0);
  display: none;
}

/* 6. Modal backdrop */
.modal {
  display: none;
  position: fixed;
  z-index: 10000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}
.modal[data-type] {
  display: block;
}

/* 7. Modal dialog box */
.modalDialog {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #e3e3e3;
  border-radius: 10px;
  text-align: center;
  padding-bottom: 20px;
  border-top: 3px solid #d23f07;
  border-bottom: 3px solid #d23f07;
}
.modalDialog h3 {
  margin: 0;
  padding: 25px;
  background: #fff;
  border-radius: 10px 10px 0 0;
  border-bottom: 1px solid #cecece;
}

/* 8. Modal buttons */
.grantButtons,
.rewardButtons {
  display: none;
}
.modal[data-type="grant"] .grantButtons,
.modal[data-type="reward"] .rewardButtons {
  display: block;
}
.modal input[type="button"] {
  padding: 1rem 1.5rem;
  background: #fe5b1c;
  color: #fff;
  border: none;
  border-radius: 4px;
  margin: 4px;
  font-weight: bold;
}
.modal input[type="button"]:hover {
  background: #d23f07;
  cursor: pointer;
}
.btn-no-reward {
  background: #868686;
}
.btn-no-reward:hover {
  background: #aaaaaa;
}

/* 9. Status text under the player */
#status {
  text-align: center;
  font-family: sans-serif;
  color: #333;
  margin: 12px 0;
}
