@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:wght@300;400;500;600&display=swap');

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

:root {
  --bg: #0a0a0a;
  --surface: #111111;
  --border: #1e1e1e;
  --accent: #f5c518;
  --accent2: #e0b000;
  --text: #e8e8e8;
  --muted: #666;
  --red: #e63946;
  --player-h: min(56.25vw, 540px);
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ─── LAYOUT ─── */
.site-wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 12px 40px;
}

/* ─── AD ZONES ─── */
.ad-zone {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: #0e0e0e;
  border: 1px dashed #1f1f1f;
  border-radius: 4px;
  overflow: hidden;
}
.ad-zone--top    { height: 90px;  margin: 10px 0; }
.ad-zone--bottom { height: 250px; margin: 20px 0; }
.ad-label {
  position: absolute;
  top: 4px; left: 6px;
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #333;
}
.ad-zone iframe, .ad-zone ins, .ad-zone > div { max-width: 100%; }

/* ─── PLAYER SHELL ─── */
.player-shell {
  width: 100%;
  background: #000;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 0 60px rgba(0,0,0,.8), 0 0 0 1px #1a1a1a;
}
.player-shell video {
  width: 100%;
  height: var(--player-h);
  display: block;
  background: #000;
  cursor: pointer;
}

/* ─── CUSTOM CONTROLS ─── */
.controls {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.92));
  padding: 28px 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: opacity .25s;
}
.player-shell:not(:hover) .controls { opacity: 0; }
.player-shell:hover .controls       { opacity: 1; }

/* progress */
.progress-wrap {
  width: 100%;
  height: 4px;
  background: rgba(255,255,255,.15);
  border-radius: 99px;
  cursor: pointer;
  position: relative;
}
.progress-wrap:hover { height: 6px; }
.progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 99px;
  pointer-events: none;
  width: 0%;
  transition: width .1s linear;
}
.progress-dot {
  position: absolute;
  top: 50%; right: 0;
  transform: translate(50%, -50%);
  width: 12px; height: 12px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s;
}
.progress-wrap:hover .progress-dot { opacity: 1; }

/* buttons row */
.ctrl-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ctrl-btn {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  transition: background .15s, color .15s;
  font-size: 18px;
  line-height: 1;
}
.ctrl-btn:hover { background: rgba(255,255,255,.1); color: var(--accent); }
.ctrl-btn svg   { width: 20px; height: 20px; fill: currentColor; }

/* time */
.ctrl-time {
  font-size: 12px;
  color: rgba(255,255,255,.7);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* volume */
.volume-wrap { display: flex; align-items: center; gap: 6px; }
.volume-slider {
  -webkit-appearance: none;
  width: 70px; height: 3px;
  background: rgba(255,255,255,.2);
  border-radius: 99px;
  outline: none;
  cursor: pointer;
}
.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
}

/* spacer */
.ctrl-spacer { flex: 1; }

/* quality badge */
.quality-badge {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .06em;
  color: rgba(255,255,255,.5);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 3px;
  padding: 1px 5px;
}

/* ─── AUTOPLAY OVERLAY ─── */
.autoplay-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.7);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
}
.autoplay-overlay.hidden { display: none; }
.autoplay-btn {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  border: 2px solid rgba(255,255,255,.5);
  display: flex; align-items: center; justify-content: center;
  transition: transform .2s, background .2s;
}
.autoplay-overlay:hover .autoplay-btn {
  transform: scale(1.1);
  background: rgba(245,197,24,.2);
  border-color: var(--accent);
}
.autoplay-btn svg { width: 32px; height: 32px; fill: #fff; margin-left: 4px; }

/* ─── BELOW PLAYER ─── */
.below-player {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

/* download button */
.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: #000;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 600;
  padding: 14px 36px;
  border-radius: 4px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  letter-spacing: .02em;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 4px 20px rgba(245,197,24,.35);
  position: relative;
  overflow: hidden;
}
.btn-download::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.15) 0%, transparent 60%);
  pointer-events: none;
}
.btn-download:hover {
  background: #ffd400;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(245,197,24,.5);
}
.btn-download:active { transform: translateY(0); }
.btn-download span { font-size: 20px; }

/* more videos button */
.btn-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 28px;
  border-radius: 4px;
  text-decoration: none;
  border: 1px solid #2a2a2a;
  cursor: pointer;
  letter-spacing: .02em;
  transition: border-color .2s, color .2s, background .2s;
}
.btn-more:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(245,197,24,.05);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 600px) {
  .volume-slider { width: 50px; }
  .quality-badge { display: none; }
  .btn-download  { font-size: 14px; padding: 12px 24px; }
}
