/* Glitch Effect YouTube Live mini-app + dock chip */
.ge-yt {
  --yt-bg: rgba(17, 17, 20, 0.92);
  --yt-border: rgba(201, 168, 76, 0.28);
  --yt-gold: #c9a84c;
  --yt-gold-soft: #e5c878;
  --yt-red: #e2554a;
  --yt-text: #f0ece4;
  --yt-muted: #a8a49c;
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 14px;
  border: 1px solid var(--yt-border);
  background: var(--yt-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--yt-text);
  font-family: var(--font-body, "Montserrat", sans-serif);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.03) inset,
    0 12px 40px rgba(0,0,0,0.45);
}

.ge-yt--dock {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9988;
  width: min(280px, calc(100vw - 24px));
  border-radius: 14px;
  clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px), 0 8px);
}

body.has-bts-radio-dock .ge-yt--dock {
  bottom: 96px;
}

.ge-yt--card {
  border-radius: 12px;
  margin: 1.5rem 0;
}

.ge-yt__live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #f0a8a0;
}

.ge-yt__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--yt-red);
  box-shadow: 0 0 10px var(--yt-red);
  animation: geYtPulse 1.4s ease-in-out infinite;
}

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

.ge-yt__brand {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--yt-gold);
}

.ge-yt__label {
  font-size: 13px;
  color: var(--yt-text);
}

.ge-yt__actions {
  display: flex;
  gap: 6px;
}

.ge-yt__btn {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
  color: var(--yt-muted);
  cursor: pointer;
  text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.ge-yt__btn:hover {
  color: var(--yt-gold-soft);
  border-color: rgba(201,168,76,0.35);
  background: rgba(201,168,76,0.08);
}

/* ── Pop-out TV app ──────────────────────────────────────── */
.ge-tv-body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: #070709;
  overflow: hidden;
  font-family: "DM Sans", system-ui, sans-serif;
  color: #f3efe6;
  display: grid;
  place-items: center;
}

.ge-tv {
  --ge-w: 560;
  --ge-h: 420;
  position: relative;
  width: min(100vw, calc(100vh * (var(--ge-w) / var(--ge-h))));
  height: min(100vh, calc(100vw * (var(--ge-h) / var(--ge-w))));
  max-width: 100vw;
  max-height: 100dvh;
  aspect-ratio: var(--ge-w) / var(--ge-h);
  display: flex;
  flex-direction: column;
  padding: clamp(10px, 2.2vmin, 16px);
  box-sizing: border-box;
  overflow: hidden;
  isolation: isolate;
}

.ge-tv > *:not(.ge-tv__bg):not(.ge-tv__noise):not(.ge-tv__menu) {
  position: relative;
  z-index: 1;
}

.ge-tv__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(226, 85, 74, 0.18), transparent 55%),
    radial-gradient(ellipse 70% 45% at 100% 100%, rgba(26, 92, 107, 0.28), transparent 55%),
    linear-gradient(180deg, #121218 0%, #070709 55%, #050507 100%);
}

.ge-tv__noise {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}

.ge-tv__top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  margin-bottom: clamp(8px, 1.8vmin, 12px);
  flex-shrink: 0;
}

.ge-tv__live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: clamp(8px, 1.6vmin, 10px);
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #f0a8a0;
  justify-self: start;
}

.ge-tv__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e2554a;
  box-shadow: 0 0 10px #e2554a;
  animation: geYtPulse 1.4s ease-in-out infinite;
}

.ge-tv__station {
  font-size: clamp(8px, 1.6vmin, 10px);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #c9a84c;
  text-align: center;
}

.ge-tv__menu-btn {
  justify-self: end;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(201, 168, 76, 0.28);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: #e5c878;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.ge-tv__menu-btn:hover,
.ge-tv.is-menu-open .ge-tv__menu-btn {
  background: rgba(201, 168, 76, 0.12);
  border-color: rgba(201, 168, 76, 0.5);
}

.ge-tv__stage {
  flex: 1;
  min-height: 0;
  display: grid;
  place-items: center;
}

.ge-tv__frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(201, 168, 76, 0.28);
  background: #000;
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset;
}

.ge-tv__player {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #000;
}

.ge-tv__meta {
  text-align: center;
  margin: clamp(8px, 1.8vmin, 12px) 0 clamp(6px, 1.4vmin, 10px);
  flex-shrink: 0;
}

.ge-tv__title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(16px, 3.2vmin, 22px);
  font-weight: 600;
}

.ge-tv__sub {
  margin-top: 4px;
  font-size: clamp(10px, 1.8vmin, 12px);
  color: #a8a49c;
}

.ge-tv__actions {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: clamp(6px, 1.4vmin, 10px);
  flex-shrink: 0;
}

.ge-tv__btn {
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 9px 14px;
  background: rgba(255,255,255,0.03);
  color: #a8a49c;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.ge-tv__btn:hover {
  color: #e5c878;
  border-color: rgba(201, 168, 76, 0.35);
}
.ge-tv__btn--primary {
  color: #0a0a0b;
  background: linear-gradient(145deg, #e5c878, #c9a84c);
  border-color: transparent;
}
.ge-tv__btn--primary:hover {
  color: #0a0a0b;
  filter: brightness(1.05);
}

.ge-tv__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: #6b6760;
  flex-shrink: 0;
}
.ge-tv__foot a {
  color: #c9a84c;
  text-decoration: none;
}
.ge-tv__foot a:hover { color: #e5c878; }

.ge-tv__menu {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(14px, 3vmin, 20px);
  box-sizing: border-box;
  background: linear-gradient(180deg, rgba(14, 14, 18, 0.97), rgba(7, 7, 9, 0.98));
  overflow-y: auto;
}
.ge-tv__menu[hidden] { display: none !important; }

.ge-tv__menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ge-tv__menu-title {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 24px;
  font-weight: 600;
}
.ge-tv__menu-close {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  color: #a8a49c;
  font-size: 22px;
  cursor: pointer;
}

.ge-tv__menu-links {
  display: grid;
  gap: 8px;
}
.ge-tv__menu-link {
  display: grid;
  gap: 2px;
  padding: 12px 14px;
  border: 1px solid rgba(201, 168, 76, 0.22);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.08), rgba(255,255,255,0.02));
  color: inherit;
  text-decoration: none;
}
.ge-tv__menu-link:hover {
  border-color: rgba(201, 168, 76, 0.5);
}
.ge-tv__menu-link-kicker {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #c9a84c;
}
.ge-tv__menu-link-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 18px;
  font-weight: 600;
}
.ge-tv__menu-link-sub {
  font-size: 11px;
  color: #7a756c;
}

@media (max-width: 640px) {
  .ge-yt--dock {
    right: 10px;
    left: 10px;
    width: auto;
  }
  body.has-bts-radio-dock .ge-yt--dock {
    bottom: 88px;
  }
}
