*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background: #000000;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #000000;
}

.page {
  max-width: 480px;
  margin: 0 auto;
  padding: 16px 8px 32px;
}

/* TOP ADS */
.top-ads-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.ad-box {
  background: #f4f4f4;
  border-radius: 8px;
  padding: 4px;
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.ad-rect {
  min-height: 140px;
}

.ad-banner {
  min-height: 72px;
  border-radius: 12px;
  margin-bottom: 8px;
}

.ad-bottom {
  min-height: 72px;
  border-radius: 12px;
  margin-top: 16px;
}

/* Placeholder text when no ad */
.ad-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: #000000;
  pointer-events: none;
}

/* Force injected creatives to stay in box */
.ad-box iframe,
.ad-box ins,
.ad-box div[data-ht-zone] {
  width: 100% !important;
  max-width: 100% !important;
}

/* Player */
.player-wrapper {
  margin: 12px 0 8px;
}

.player-frame {
  background: #111111;
  border-radius: 20px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* 16:9 area untuk iframe Filemoon */
.video-embed {
  position: relative;
  width: 100%;
  border-radius: 16px;
  background: #000000;
  overflow: hidden;
}

.video-embed::before {
  content: "";
  display: block;
  padding-top: 56.25%;
}

.video-embed > iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Loading text di belakang player */
.video-loading-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: #f4f4f4;
  opacity: 0.8;
}

/* CTA buttons */
.cta-row {
  margin-top: 8px;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.cta-button {
  flex: 1;
  border: none;
  border-radius: 999px;
  padding: 8px 4px;
  font-size: 14px;
  font-weight: 600;
  background: #ffffff;
  color: #000000;
  cursor: pointer;
}

.cta-button:active {
  transform: scale(0.98);
}

/* Responsive tweaks */
@media (min-width: 600px) {
  .page {
    max-width: 560px;
    padding-inline: 16px;
  }
}
