:root {
  --orange: #FF8C00;
  --bg: #0b0c0e;
  --text: #f2f2f0;
  --muted: #9a9ba3;
  --muted-2: #65666e;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  animation: pageFade .25s ease;
}

@keyframes pageFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* TOP AD */
.ad-slot-top {
  width: 100%;
  min-height: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #0e0f12;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.ad-label {
  font-size: 9px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 6px;
}

/* PAGE HEADER */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
}

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 16px;
}

.hamburger span {
  height: 2px;
  background: var(--muted);
  border-radius: 1px;
}

.logo {
  font-size: 16px;
  font-weight: 800;
}

.logo .now { color: var(--orange); }
.logo .playing { color: var(--text); }

.favorite {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--orange);
}

.favorite svg {
  width: 12px;
  height: 12px;
  stroke: var(--orange);
}

/* TEASER */
.teaser {
  text-align: center;
  padding: 0 16px 10px;
}

.teaser-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--orange);
  margin-bottom: 3px;
}

.teaser-sub {
  font-size: 11px;
  color: rgba(255,140,0,0.65);
}

/* FRAME (background image or video) */
.frame {
  position: relative;
  border-top: 3px solid var(--orange);
  border-bottom: 3px solid var(--orange);
  background: #000;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.frame img,
.frame video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-dim {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(6,7,9,0.35) 0%, rgba(6,7,9,0.55) 35%, rgba(6,7,9,0.88) 75%);
}

.stage {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}

.wrap {
  width: 100%;
  max-width: 340px;
}

.modal {
  width: 100%;
  background: rgba(10,11,13,0.96);
  border: 3px solid var(--orange);
  border-radius: 16px;
  padding: 20px 18px 18px;
}

.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* BADGE ICON */
.badge {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  position: relative;
  background: #141517;
}

.badge.restricted { border: 2.5px solid #e5342c; }

.badge.restricted::after {
  content: '';
  position: absolute;
  width: 2px;
  height: 44px;
  background: #e5342c;
  transform: rotate(45deg);
}

.badge.plain { border: 2.5px solid var(--orange); }

.badge span {
  font-size: 11px;
  font-weight: 800;
  color: #fff;
}

.badge.plain span { font-size: 16px; }

h1 {
  font-size: 15.5px;
  font-weight: 700;
  margin-bottom: 8px;
}

p.desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 8px;
  max-width: 300px;
}

p.desc b { color: var(--text); font-weight: 600; }

.legal-link {
  font-size: 11px;
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 12px;
  cursor: pointer;
}

.divider {
  width: 100%;
  height: 1px;
  background: rgba(255,255,255,0.1);
  margin-bottom: 12px;
}

.verify-visual {
  width: 100%;
  height: 3px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 12px;
  display: none;
}

.verify-visual.show { display: block; }

.verify-visual .bar {
  height: 100%;
  width: 0%;
  background: var(--orange);
  border-radius: 2px;
  transition: width 1.1s linear;
}

.gate-btn {
  width: 100%;
  padding: 11px 16px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  background: transparent;
  border: 2px solid var(--orange);
  border-radius: 10px;
  cursor: pointer;
  margin-bottom: 8px;
}

.gate-btn:last-child { margin-bottom: 0; }

/* LOADING STATE (skeleton) */
.loading-state {
  display: none;
  flex-direction: column;
  align-items: center;
}

.loading-state.active { display: flex; }

.skeleton {
  background: #202126;
  border-radius: 6px;
}

.sk-badge { width: 38px; height: 38px; border-radius: 50%; margin-bottom: 14px; }
.sk-line { height: 11px; }
.sk-title { width: 72%; height: 14px; margin-bottom: 10px; }
.sk-desc1 { width: 92%; margin-bottom: 6px; }
.sk-desc2 { width: 84%; margin-bottom: 6px; }
.sk-desc3 { width: 60%; margin-bottom: 14px; }
.sk-link { width: 44%; height: 10px; margin-bottom: 14px; }
.sk-divider { width: 100%; height: 1px; background: rgba(255,255,255,0.08); margin-bottom: 14px; }
.sk-btn { width: 100%; height: 44px; border-radius: 10px; margin-bottom: 8px; }

/* REVEAL LOADING OVERLAY (video-playing page only) */
.reveal-loading {
  display: flex;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  background-size: cover;
  background-position: center;
  align-items: center;
  justify-content: center;
}

.reveal-loading.hide { display: none; }

.reveal-loading::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(6,7,9,0.55);
}

.reveal-spinner {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid rgba(255,140,0,0.25);
  border-top-color: var(--orange);
  animation: spin 0.7s linear infinite;
  z-index: 1;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* VIDEO META (title block, video-playing page only) */
.video-meta {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.video-meta-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), #a35800);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: #0b0c0e;
  flex-shrink: 0;
}

.video-meta-body { flex: 1; min-width: 0; }

.video-meta-title {
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 4px;
}

.video-meta-sub { font-size: 12px; color: var(--muted); }

.video-meta-dots {
  font-size: 18px;
  color: var(--muted);
  line-height: 1;
  padding: 2px 4px;
  flex-shrink: 0;
}

/* CONTENT ARTICLE (high-CPC keyword section) */
.content-article {
  padding: 8px 20px 32px;
  max-width: 600px;
  margin: 0 auto;
}

.content-article h2 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}

.content-article p {
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 12px;
}

.topic-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.topic-tags span {
  font-size: 10.5px;
  color: var(--muted);
  background: #16171b;
  border: 1px solid rgba(255,255,255,0.08);
  padding: 4px 10px;
  border-radius: 20px;
}

/* BOTTOM AD */
.ad-slot-bottom {
  margin: 16px auto 24px;
  width: calc(100% - 32px);
  max-width: 340px;
  min-height: 250px;
  background: #0e0f12;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* REWARDED AD MODAL */
#rewardModal {
  display: none;
  position: fixed;
  z-index: 999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.75);
  align-items: center;
  justify-content: center;
}

#rewardModal.block { display: flex; }
#rewardModal.hidden { display: none; }

#rewardModal .modal-content {
  background: #17181c;
  border: 2px solid var(--orange);
  border-radius: 14px;
  padding: 20px 16px;
  text-align: center;
  max-width: 94vw;
  max-height: 90vh;
  overflow: auto;
}

#rewardModal .modal-content p {
  color: var(--text);
  font-size: 13.5px;
  margin-bottom: 14px;
}

#rewardModal .btn {
  padding: 10px 20px;
  background: var(--orange);
  color: #0b0c0e;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: none;
}

.version-tag {
  position: fixed;
  bottom: 4px;
  right: 6px;
  font-size: 10px;
  color: #3a3a3a;
  z-index: 99;
}
