:root {
  --bg: #0a0a0e;
  --bg-soft: #14141a;
  --red: #d6293e;
  --red-dark: #a01d2c;
  --yellow: #fdd835;
  --ink: #ffffff;
  --muted: #c8c8d2;
  --rule: rgba(255, 255, 255, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

/* ---- broadcast frame ---- */
.broadcast {
  display: grid;
  grid-template-rows: auto 1fr auto;
  grid-template-columns: minmax(0, 1fr);
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
}

/* ---- top bar ---- */
.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem clamp(1rem, 3vw, 2.4rem);
  background: linear-gradient(180deg, #000 0%, #0a0a0e 100%);
  border-bottom: 1px solid var(--rule);
  letter-spacing: 0.02em;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.logo__mark {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: var(--red);
  color: #fff;
  font-family: 'Anton', 'Inter', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  border-radius: 4px;
  letter-spacing: 0;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.4);
}

.logo__text {
  font-family: 'Anton', 'Inter', sans-serif;
  font-size: 1.45rem;
  letter-spacing: 0.04em;
  text-transform: lowercase;
}

.bar__meta {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.18em;
}

.live {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
}

.live i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 3px rgba(214, 41, 62, 0.25);
  animation: livepulse 1.6s ease-in-out infinite;
}

@keyframes livepulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.55; transform: scale(0.85); }
}

.clock {
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

/* ---- image frame + lower-third ---- */
.frame {
  margin: 0;
  position: relative;
  display: grid;
  place-items: center;
  background: #000;
  overflow: hidden;
}

.frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  max-height: calc(100vh - 68px);
  max-height: calc(100dvh - 68px);
}

.bug {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  gap: 6px;
  font-family: 'Anton', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.bug span {
  display: inline-block;
  padding: 3px 8px 2px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  border-radius: 3px;
  backdrop-filter: blur(4px);
}

.bug__hd {
  background: var(--red) !important;
}

.lower-third {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.4rem clamp(1rem, 4vw, 3rem) 1.6rem;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(0, 0, 0, 0.55) 38%,
    rgba(0, 0, 0, 0.92) 100%
  );
  color: #fff;
  display: grid;
  gap: 0.45rem;
  border-bottom: 4px solid var(--red);
}

.lt__tag {
  display: inline-block;
  align-self: start;
  background: var(--red);
  color: #fff;
  font-family: 'Anton', 'Inter', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  padding: 0.3rem 0.75rem 0.22rem;
  border-radius: 2px;
  margin-bottom: 0.15rem;
}

.lt__head {
  font-family: 'Anton', 'Inter', sans-serif;
  font-weight: 400;
  font-size: clamp(1.6rem, 4.4vw, 3.4rem);
  line-height: 1;
  margin: 0;
  letter-spacing: 0.005em;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.6);
}

.lt__sub {
  margin: 0.2rem 0 0;
  max-width: 70ch;
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  line-height: 1.4;
  color: #e8e8ee;
  font-weight: 500;
}

@media (prefers-reduced-motion: reduce) {
  .live i { animation: none; }
}

/* ---- responsive ---- */
@media (max-width: 700px) {
  .frame img {
    max-height: calc(100vh - 80px);
    max-height: calc(100dvh - 80px);
  }
  .lower-third {
    padding: 1rem 1rem 1.2rem;
  }
}

@media (max-width: 480px) {
  .logo__text { display: none; }
  .bar__meta { gap: 0.7rem; font-size: 0.78rem; }
}
