:root {
  color-scheme: dark;
  --forest: #042f2b;
  --pine: #075548;
  --moss: #8fbf7a;
  --mist: #dce7dc;
  --ember: #f1b24a;
  --shade: rgba(0, 0, 0, 0.58);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #010908;
}

.player-shell {
  position: relative;
  width: 100vw;
  height: 100dvh;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 15%, rgba(143, 191, 122, 0.18), transparent 24%),
    linear-gradient(135deg, #021815, #04100f 52%, #000);
  color: white;
}

.video,
.ad-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.video {
  object-fit: cover;
  background: #000;
}

.ad-container {
  z-index: 12;
  pointer-events: none;
}

.topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.64), transparent);
}

.brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-logo {
  width: clamp(7rem, 12vw, 11rem);
  max-width: 34vw;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.45));
}

.brand p,
.now-card span {
  margin: 0;
  color: var(--ember);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand h1 {
  margin: 0.12rem 0 0;
  color: var(--mist);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2.4vw, 2.45rem);
  line-height: 1.05;
  letter-spacing: 0;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.7);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.5rem;
  padding: 0 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
  backdrop-filter: blur(14px);
}

.live-badge span {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #f24b3d;
  box-shadow: 0 0 18px rgba(242, 75, 61, 0.95);
}

.control-button {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(4, 47, 43, 0.72);
  color: white;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  backdrop-filter: blur(14px);
}

.control-button {
  min-height: 2.5rem;
  padding: 0 1rem;
}

.channel-bug {
  position: absolute;
  right: max(1rem, env(safe-area-inset-right));
  bottom: calc(2rem + env(safe-area-inset-bottom));
  z-index: 7;
  width: clamp(8rem, 16vw, 13rem);
  opacity: 0.72;
  filter: drop-shadow(0 10px 26px rgba(0, 0, 0, 0.5));
  pointer-events: none;
}

.now-card {
  position: absolute;
  left: max(1rem, env(safe-area-inset-left));
  bottom: calc(2rem + env(safe-area-inset-bottom));
  z-index: 8;
  display: grid;
  gap: 0.18rem;
  max-width: min(34rem, calc(100vw - 2rem));
  padding: 0.9rem 1rem;
  border-left: 4px solid var(--ember);
  border-radius: 8px;
  background: var(--shade);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px);
}

.now-card strong {
  color: white;
  font-size: clamp(1.15rem, 2vw, 1.7rem);
  line-height: 1.15;
}

.now-card small {
  color: rgba(255, 255, 255, 0.76);
  font-weight: 700;
}

.control-button:hover {
  border-color: rgba(241, 178, 74, 0.8);
  background: rgba(7, 85, 72, 0.88);
}

@media (max-width: 700px) {
  .topbar {
    align-items: flex-start;
  }

  .top-actions {
    flex-direction: column;
    align-items: flex-end;
  }

  .brand h1 {
    max-width: 13rem;
  }

  .channel-bug {
    top: calc(6rem + env(safe-area-inset-top));
    right: max(0.75rem, env(safe-area-inset-right));
    bottom: auto;
    width: clamp(7rem, 36vw, 10rem);
  }

  .now-card {
    right: 1rem;
    bottom: calc(1rem + env(safe-area-inset-bottom));
  }
}
