:root {
  --botv-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  --botv-border: rgba(255, 255, 255, 0.09);
}

body {
  background:
    radial-gradient(circle at top right, rgba(61, 165, 255, 0.15), transparent 25%),
    radial-gradient(circle at top left, rgba(248, 193, 42, 0.08), transparent 18%),
    #07111f;
}

.wp-site-blocks {
  overflow-x: clip;
}

.botv-site-shell {
  position: relative;
}

.botv-site-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(circle at center, black, transparent 85%);
}

.botv-glass,
.botv-card,
.botv-rail-item,
.botv-live-box,
.botv-editor-card {
  background: linear-gradient(180deg, rgba(19,36,61,0.96), rgba(10,21,37,0.96));
  border: 1px solid var(--botv-border);
  box-shadow: var(--botv-shadow);
  backdrop-filter: blur(10px);
}

.botv-topbar {
  border-bottom: 1px solid rgba(255,255,255,0.07);
  background: rgba(5, 12, 22, 0.85);
  backdrop-filter: blur(14px);
}

.botv-topbar .custom-logo-link,
.botv-topbar .wp-block-site-logo a {
  display: inline-flex;
  align-items: center;
}

.botv-topbar .custom-logo,
.botv-topbar .wp-block-site-logo img {
  width: auto;
  max-height: 56px;
  object-fit: contain;
}

.wp-custom-logo .botv-topbar .wp-block-site-title {
  display: none;
}

.botv-breaking {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  overflow: hidden;
}

.botv-breaking-label {
  flex: 0 0 auto;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: #ff4d5f;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.botv-breaking-track {
  display: flex;
  gap: 2rem;
  white-space: nowrap;
  will-change: transform;
  animation: botvTicker 26s linear infinite;
}

.botv-breaking:hover .botv-breaking-track {
  animation-play-state: paused;
}

.botv-breaking-item {
  opacity: 0.95;
}

@keyframes botvTicker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.botv-hero {
  position: relative;
  overflow: hidden;
}

.botv-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255,255,255,0.08), transparent 35%, rgba(61,165,255,0.06));
  pointer-events: none;
}

.botv-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.8rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.botv-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #ff4d5f;
  box-shadow: 0 0 0 0 rgba(255,77,95,0.6);
  animation: botvPulse 1.8s infinite;
}

@keyframes botvPulse {
  0% { box-shadow: 0 0 0 0 rgba(255,77,95,0.55); }
  70% { box-shadow: 0 0 0 12px rgba(255,77,95,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,77,95,0); }
}

.botv-live-box {
  overflow: visible;
}

.botv-tv-stage {
  position: relative;
  margin: 0 auto;
  padding-bottom: 3.35rem;
}

.botv-tv-shell {
  position: relative;
}

.botv-tv-chassis {
  position: relative;
  padding: 18px;
  border-radius: 38px;
  background:
    linear-gradient(145deg, #4d5966 0%, #232c35 20%, #121920 58%, #091017 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.13),
    inset 0 -18px 34px rgba(0,0,0,0.5),
    0 30px 60px rgba(0,0,0,0.4);
}

.botv-tv-chassis::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 30px;
  border: 1px solid rgba(255,255,255,0.08);
  pointer-events: none;
}

.botv-tv-toolbar,
.botv-tv-console {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.botv-tv-toolbar {
  padding: 0.35rem 0.2rem 0.95rem;
}

.botv-tv-toolbar-left,
.botv-tv-toolbar-right,
.botv-tv-console-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.botv-tv-badge,
.botv-tv-source,
.botv-tv-link,
.botv-tv-osd-live {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.botv-tv-badge,
.botv-tv-source {
  padding: 0.46rem 0.78rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.09);
  color: rgba(255,255,255,0.86);
}

.botv-tv-title {
  font-size: 1rem;
  font-weight: 800;
  color: #f5fbff;
}

.botv-tv-bezel {
  position: relative;
  padding: 14px;
  border-radius: 28px;
  background: linear-gradient(180deg, #05080d, #1a212a 48%, #0b1015 100%);
  box-shadow:
    inset 0 16px 26px rgba(255,255,255,0.05),
    inset 0 -18px 28px rgba(0,0,0,0.68),
    0 18px 30px rgba(0,0,0,0.4);
}

.botv-tv-screen-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 22px;
  background:
    radial-gradient(circle at center, rgba(66,124,191,0.18), rgba(0,0,0,0) 45%),
    #02060a;
  box-shadow:
    inset 0 0 0 2px rgba(255,255,255,0.03),
    inset 0 0 60px rgba(0,0,0,0.7);
}

.botv-tv-screen {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.botv-tv-screen iframe,
.botv-tv-screen video,
.botv-tv-screen .botv-manual-embed,
.botv-tv-screen .botv-generic-embed,
.botv-tv-screen .botv-responsive-embed,
.botv-tv-screen .botv-responsive-embed iframe,
.botv-tv-screen .wp-video,
.botv-tv-screen .wp-video-shortcode,
.botv-tv-screen .mejs-container,
.botv-tv-screen .mejs-inner,
.botv-tv-screen .mejs-mediaelement,
.botv-tv-screen .mejs-overlay {
  width: 100% !important;
  height: 100% !important;
  min-height: 100%;
  border: 0;
  display: block;
}

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

.botv-responsive-embed,
.botv-manual-embed,
.botv-generic-embed,
.botv-native-video {
  width: 100%;
  height: 100%;
}

.botv-tv-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 2rem;
  text-align: center;
  color: #f4f8ff;
  background:
    radial-gradient(circle at center, rgba(61, 165, 255, 0.16), transparent 38%),
    linear-gradient(135deg, rgba(10, 27, 47, 0.98), rgba(19, 36, 61, 0.95));
}

.botv-tv-placeholder strong {
  display: block;
  margin-bottom: 0.8rem;
  font-size: clamp(1.1rem, 2vw, 1.8rem);
}

.botv-tv-placeholder p {
  max-width: 640px;
  margin: 0 auto;
  color: rgba(255,255,255,0.82);
}

.botv-tv-reflection {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(118deg, rgba(255,255,255,0.16) 0%, rgba(255,255,255,0.03) 16%, transparent 34%),
    linear-gradient(180deg, transparent 68%, rgba(255,255,255,0.05) 100%);
  pointer-events: none;
}

.botv-tv-osd {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  pointer-events: none;
}

.botv-tv-osd-live {
  padding: 0.55rem 0.9rem;
  color: #fff;
  background: rgba(255, 77, 95, 0.96);
  box-shadow: 0 10px 30px rgba(255,77,95,0.25);
}

.botv-tv-channel-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  max-width: min(34vw, 220px);
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(8, 14, 22, 0.72);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.92);
  font-weight: 800;
  letter-spacing: 0.04em;
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.22);
}

.botv-tv-channel-brand--logo {
  padding: 0.45rem 0.7rem;
}

.botv-tv-channel-logo {
  display: block;
  width: auto;
  height: auto;
  max-width: min(28vw, 180px);
  max-height: 28px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.34));
}

.botv-tv-channel-brand--text {
  text-transform: uppercase;
  white-space: nowrap;
}

.botv-tv-console {
  padding: 1rem 0.4rem 0.3rem;
}

.botv-tv-console-copy {
  display: grid;
  gap: 0.25rem;
}

.botv-tv-console-copy strong {
  font-size: 1.05rem;
  color: #f6fbff;
}

.botv-tv-console-copy span {
  color: rgba(233,242,255,0.68);
  font-size: 0.92rem;
}

.botv-tv-link {
  padding: 0.72rem 1rem;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(23, 115, 255, 0.28), rgba(8, 64, 168, 0.28));
  color: #fff;
  text-decoration: none;
}

.botv-tv-link:hover {
  background: linear-gradient(180deg, rgba(34, 124, 255, 0.35), rgba(11, 74, 190, 0.35));
}

.botv-tv-power-dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: radial-gradient(circle at 35% 35%, #93ffbd, #18c96b 55%, #0d5f36);
  box-shadow: 0 0 0 3px rgba(0,0,0,0.24), 0 0 16px rgba(24,201,107,0.32);
}

.botv-tv-stand {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(280px, 34%);
  display: grid;
  justify-items: center;
  pointer-events: none;
}

.botv-tv-stand-neck {
  width: 22%;
  min-width: 48px;
  height: 36px;
  border-radius: 0 0 18px 18px;
  background: linear-gradient(180deg, #3c4650, #121820);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
}

.botv-tv-stand-base {
  width: 100%;
  height: 16px;
  margin-top: 6px;
  border-radius: 999px;
  background: linear-gradient(180deg, #1f2730, #070b10);
  box-shadow: 0 16px 32px rgba(0,0,0,0.45);
}

.botv-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.botv-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.botv-stat {
  padding: 1.25rem;
  border-radius: 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}

.botv-stat strong {
  display: block;
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 0.45rem;
}

.botv-rail-item .wp-block-post-featured-image img,
.botv-card .wp-block-post-featured-image img {
  aspect-ratio: 16/9;
  object-fit: cover;
}

.botv-card .wp-block-post-title,
.botv-rail-item .wp-block-post-title,
.botv-schedule-title {
  min-height: 2.6em;
}

.botv-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.botv-section-kicker {
  color: var(--wp--preset--color--brand);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
}

.botv-footer {
  border-top: 1px solid rgba(255,255,255,0.08);
}

.botv-ad-strip {
  position: relative;
  overflow: hidden;
}

.botv-ad-strip::before {
  content: "AD SPACE";
  position: absolute;
  top: 14px;
  right: 16px;
  letter-spacing: 0.2em;
  font-size: 0.72rem;
  opacity: 0.55;
}

.botv-editor-card {
  border-radius: 24px;
  padding: 1.5rem;
}

.botv-empty-state {
  padding: 2rem;
  border-radius: 22px;
  text-align: center;
  background: rgba(255,255,255,0.03);
  border: 1px dashed rgba(255,255,255,0.18);
}

@media (prefers-reduced-motion: reduce) {
  .botv-breaking-track,
  .botv-dot {
    animation: none !important;
  }
}

@media (max-width: 1024px) {
  .botv-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .botv-grid-3 {
    grid-template-columns: 1fr;
  }

  .botv-tv-toolbar,
  .botv-tv-console,
  .botv-tv-osd {
    flex-direction: column;
    align-items: flex-start;
  }

  .botv-tv-osd {
    right: auto;
  }
}

@media (max-width: 781px) {
  .botv-breaking {
    align-items: flex-start;
    flex-direction: column;
  }

  .botv-breaking-track {
    animation-duration: 34s;
  }

  .botv-tv-chassis {
    padding: 12px;
    border-radius: 26px;
  }

  .botv-tv-bezel {
    padding: 9px;
    border-radius: 20px;
  }

  .botv-tv-screen-wrap {
    border-radius: 14px;
  }

  .botv-tv-toolbar,
  .botv-tv-console {
    padding-left: 0;
    padding-right: 0;
  }

  .botv-tv-link {
    width: 100%;
    justify-content: center;
  }

  .botv-tv-stand {
    width: 52%;
  }
}


@media (max-width: 782px) {
  .botv-tv-channel-brand {
    min-height: 40px;
    max-width: 48vw;
    padding: 0.38rem 0.7rem;
  }

  .botv-tv-channel-logo {
    max-width: 140px;
    max-height: 22px;
  }
}
