:root {
  --bg: #07090d;
  --surface: #10141b;
  --surface-2: #151a23;
  --border: rgba(255,255,255,0.09);
  --text: #f5f7fb;
  --muted: #8f98a8;
  --accent: #7c5cff;
  --accent-2: #5b8cff;
  --success: #32d583;
  --shadow: 0 20px 60px rgba(0,0,0,0.35);
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;

  background:
    radial-gradient(
      circle at 50% -10%,
      rgba(124,92,255,0.16),
      transparent 38%
    ),
    var(--bg);

  color: var(--text);

  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}


/* ========================================
   HEADER
======================================== */

.topbar {
  width: 100%;
  max-width: 1180px;

  margin: auto;
  padding: 20px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 15px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;

  min-width: 0;
}

.brand-icon {
  width: 44px;
  height: 44px;

  flex: 0 0 44px;

  display: grid;
  place-items: center;

  border-radius: 13px;

  background:
    linear-gradient(
      135deg,
      var(--accent),
      var(--accent-2)
    );

  box-shadow:
    0 10px 30px rgba(124,92,255,0.25);

  font-size: 18px;
}

.brand h1 {
  font-size: 17px;
  line-height: 1.2;
  font-weight: 700;
}


/* Header text */

.brand span {
  display: flex;
  align-items: center;
  gap: 6px;

  margin-top: 3px;

  color: var(--muted);

  font-size: 12px;
}


/* ========================================
   ONLINE DOT
======================================== */

.online-dot {
  width: 7px;
  height: 7px;

  flex: 0 0 7px;

  border-radius: 50%;

  background: var(--success);

  box-shadow:
    0 0 10px rgba(50,213,131,0.7);
}


/* ========================================
   VISITOR COUNTER
======================================== */

.visitor-count {
  display: inline-flex !important;

  align-items: center;

  width: fit-content;

  margin-top: 5px !important;
  padding: 3px 8px;

  border: 1px solid rgba(50,213,131,0.16);
  border-radius: 999px;

  background: rgba(50,213,131,0.06);

  color: #79e8ad !important;

  font-size: 10px !important;
  line-height: 1.2;

  letter-spacing: 0.02em;
}


/* ========================================
   THEME BUTTON
======================================== */

.theme-btn {
  width: 42px;
  height: 42px;

  flex: 0 0 42px;

  border: 1px solid var(--border);
  border-radius: 12px;

  background: var(--surface);
  color: var(--text);

  cursor: pointer;

  font-size: 16px;

  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.theme-btn:active {
  transform: scale(0.95);
}


/* ========================================
   MAIN
======================================== */

.container {
  width: min(100% - 32px, 900px);

  margin: auto;
}


/* ========================================
   ADS
======================================== */

.ad-box {
  min-height: 72px;

  margin: 18px 0;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px dashed rgba(255,255,255,0.12);
  border-radius: 14px;

  background: rgba(255,255,255,0.015);

  color: #5f6877;

  font-size: 11px;

  letter-spacing: 0.08em;

  text-transform: uppercase;
}

.middle-ad {
  margin: 18px 0 14px;
}

.bottom-ad {
  margin-top: 22px;
}


/* ========================================
   HERO
======================================== */

.hero {
  padding: 45px 0 25px;

  text-align: center;
}

.hero-badge {
  display: inline-flex;

  padding: 7px 12px;

  border: 1px solid rgba(124,92,255,0.25);
  border-radius: 999px;

  background: rgba(124,92,255,0.08);

  color: #a99aff;

  font-size: 10px;
  font-weight: 700;

  letter-spacing: 0.12em;
}

.hero h2 {
  max-width: 700px;

  margin: 20px auto 12px;

  font-size: clamp(34px, 7vw, 62px);

  line-height: 1.04;

  letter-spacing: -0.04em;
}

.hero h2 span {
  background:
    linear-gradient(
      90deg,
      #9d8aff,
      #6fa1ff
    );

  -webkit-background-clip: text;
  background-clip: text;

  color: transparent;
}

.hero p {
  max-width: 550px;

  margin: auto;

  color: var(--muted);

  font-size: 15px;

  line-height: 1.6;
}


/* ========================================
   URL BOX
======================================== */

.url-box {
  max-width: 720px;

  margin: 28px auto 0;

  padding: 7px;

  display: flex;

  gap: 7px;

  border: 1px solid var(--border);

  border-radius: 18px;

  background: rgba(255,255,255,0.035);

  box-shadow: var(--shadow);
}

.url-box input {
  min-width: 0;

  flex: 1;

  padding: 16px;

  border: none;

  outline: none;

  background: transparent;

  color: var(--text);

  font-size: 14px;
}

.url-box input::placeholder {
  color: #687181;
}

.url-box button {
  padding: 0 24px;

  border: none;

  border-radius: 13px;

  background:
    linear-gradient(
      135deg,
      var(--accent),
      var(--accent-2)
    );

  color: white;

  font-weight: 700;

  cursor: pointer;

  box-shadow:
    0 8px 25px rgba(92,90,255,0.25);

  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.url-box button:disabled {
  opacity: 0.65;

  cursor: not-allowed;
}

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


/* ========================================
   STATUS
======================================== */

.status-message {
  min-height: 22px;

  margin-top: 12px;

  color: var(--muted);

  font-size: 13px;
}


/* ========================================
   PLAYER
======================================== */

.player-section {
  margin-top: 25px;
}

.player-wrapper {
  overflow: hidden;

  border: 1px solid var(--border);

  border-radius: 18px;

  background: #000;

  box-shadow: var(--shadow);
}

.player-wrapper video {
  display: block;

  width: 100%;

  aspect-ratio: 16 / 9;

  background: #000;
}


/* ========================================
   VIDEO INFORMATION
======================================== */

.video-info {
  margin-top: 12px;

  padding: 18px;

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 15px;

  border: 1px solid var(--border);

  border-radius: 16px;

  background: var(--surface);
}

.label {
  color: var(--muted);

  font-size: 9px;

  font-weight: 700;

  letter-spacing: 0.12em;
}

.video-info h2 {
  margin-top: 5px;

  font-size: 17px;

  overflow-wrap: anywhere;
}

.share-btn {
  padding: 10px 15px;

  border: 1px solid var(--border);

  border-radius: 10px;

  background: var(--surface-2);

  color: var(--text);

  cursor: pointer;

  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

.share-btn:active {
  transform: scale(0.97);
}


/* ========================================
   UTILITY
======================================== */

.hidden {
  display: none !important;
}


/* ========================================
   FOOTER
======================================== */

footer {
  padding: 35px 20px;

  text-align: center;

  color: #555e6d;

  font-size: 12px;
}


/* ========================================
   MOBILE
======================================== */

@media (max-width: 600px) {

  .topbar {
    padding: 15px;
  }

  .container {
    width: min(100% - 20px, 900px);
  }

  .hero {
    padding-top: 35px;
  }

  .hero h2 {
    font-size: 38px;
  }

  .url-box {
    flex-direction: column;

    border-radius: 15px;
  }

  .url-box input {
    width: 100%;

    padding: 15px;
  }

  .url-box button {
    min-height: 50px;
  }

  .video-info {
    align-items: flex-start;

    flex-direction: column;
  }

  .share-btn {
    width: 100%;
  }

  .ad-box {
    min-height: 60px;

    margin: 14px 0;
  }

  .middle-ad {
    margin: 14px 0 12px;
  }

}


/* ========================================
   VERY SMALL SCREENS
======================================== */

@media (max-width: 380px) {

  .brand-icon {
    width: 40px;
    height: 40px;

    flex-basis: 40px;
  }

  .brand h1 {
    font-size: 15px;
  }

  .brand span {
    font-size: 10px;
  }

  .visitor-count {
    font-size: 9px !important;
  }

  .theme-btn {
    width: 38px;
    height: 38px;

    flex-basis: 38px;
  }

}

.visitor-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;

  margin-top: 6px;
  padding: 5px 10px;

  border: 1px solid rgba(50,213,131,0.22);
  border-radius: 999px;

  background: rgba(50,213,131,0.06);

  color: #32d583;
  font-size: 11px;
}

.visitor-badge strong {
  font-weight: 700;
}