/* ==================================================================
   LEGEND TOWN  —  LIVE (Kick)
   ------------------------------------------------------------------
   Rebuilt from scratch. The old page was Tailwind fragments left over
   from a Next.js export sitting on top of half a stylesheet, with a
   broken section nesting that pushed the player out of the layout.

   One stylesheet, one grid, one blue.
   ================================================================== */

.lt-lv-page {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  padding: 120px 20px 90px;
  direction: rtl;
  font-family: 'Cairo', 'Rajdhani', system-ui, sans-serif;
  color: #e8eefc;
}

.lt-lv-glow {
  position: absolute;
  top: -120px;
  left: 50%;
  width: 760px;
  height: 520px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(34, 211, 238, .14), transparent 72%);
  pointer-events: none;
  z-index: 0;
}

/* ---------------------------------------------------------------- */
/*  HERO                                                             */
/* ---------------------------------------------------------------- */

.lt-lv-hero {
  position: relative;
  z-index: 1;
  text-align: center;
  margin-bottom: 40px;
}

.lt-lv-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 20px;
  border-radius: 99px;
  border: 1px solid rgba(34, 211, 238, .28);
  background: rgba(34, 211, 238, .07);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .38em;
  color: #67e8f9;
}
.lt-lv-kicker i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #22d3ee;
  animation: lt-lv-pulse 2s infinite;
}

@keyframes lt-lv-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(34, 211, 238, .5); }
  70%  { box-shadow: 0 0 0 10px rgba(34, 211, 238, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0); }
}

.lt-lv-hero h1 {
  margin: 18px 0 10px;
  font-size: 46px;
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1.2;
}
.lt-lv-hero > p {
  margin: 0 auto;
  max-width: 620px;
  font-size: 15px;
  line-height: 2;
  color: #8fa0bd;
}

.lt-lv-stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.lt-lv-stat {
  min-width: 168px;
  padding: 18px 24px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(13, 20, 33, .6);
  backdrop-filter: blur(12px);
}
.lt-lv-stat b {
  display: block;
  font-size: 34px;
  font-weight: 900;
  line-height: 1.1;
  color: #22d3ee;
}
.lt-lv-stat span {
  display: block;
  margin-top: 6px;
  font-size: 12.5px;
  color: #8fa0bd;
}

/* ---------------------------------------------------------------- */
/*  ROOT                                                             */
/* ---------------------------------------------------------------- */

.lt-lv-root { position: relative; z-index: 1; }

.lt-lv-loading {
  text-align: center;
  padding: 80px 20px;
  color: #8fa0bd;
  font-size: 14px;
}
.lt-lv-spin {
  width: 34px; height: 34px;
  margin: 0 auto 18px;
  border-radius: 50%;
  border: 3px solid rgba(34, 211, 238, .18);
  border-top-color: #22d3ee;
  animation: lt-lv-rot .8s linear infinite;
}
@keyframes lt-lv-rot { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------- */
/*  THE ROOM  —  player on one side, channel list on the other       */
/* ---------------------------------------------------------------- */

.lt-lv-room {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 18px;
  align-items: start;
}

.lt-lv-stage {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .09);
  background: #070c15;
}

.lt-lv-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}
.lt-lv-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.lt-lv-meta {
  padding: 16px 18px;
  border-top: 1px solid rgba(255, 255, 255, .07);
}
.lt-lv-meta-top {
  display: flex;
  align-items: center;
  gap: 12px;
}
.lt-lv-meta img {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(34, 211, 238, .5);
  flex: none;
}
.lt-lv-meta-who { min-width: 0; flex: 1; }
.lt-lv-meta-who h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lt-lv-meta-who p {
  margin: 3px 0 0;
  font-size: 13px;
  color: #8fa0bd;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lt-lv-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 99px;
  font-size: 11.5px;
  font-weight: 800;
  background: rgba(239, 68, 68, .14);
  border: 1px solid rgba(239, 68, 68, .38);
  color: #fca5a5;
  flex: none;
}
.lt-lv-pill i { width: 7px; height: 7px; border-radius: 50%; background: #ef4444; }

.lt-lv-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 14px;
}
.lt-lv-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 18px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .04);
  color: #e8eefc;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  transition: background .12s ease, border-color .12s ease;
  -webkit-tap-highlight-color: transparent;
}
.lt-lv-btn:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .18); }
.lt-lv-btn.is-primary {
  background: linear-gradient(135deg, #0ea5e9, #22d3ee);
  border-color: transparent;
  color: #04121a;
}
.lt-lv-btn.is-on {
  border-color: rgba(34, 211, 238, .5);
  background: rgba(34, 211, 238, .12);
  color: #67e8f9;
}

/* ---- chat ---- */

.lt-lv-chat {
  border-top: 1px solid rgba(255, 255, 255, .07);
  background: #0a1018;
}
.lt-lv-chat iframe {
  display: block;
  width: 100%;
  height: 420px;
  border: 0;
}
.lt-lv-chat-note {
  padding: 10px 16px 14px;
  font-size: 12px;
  color: #70849a;
  line-height: 1.9;
}

/* ---------------------------------------------------------------- */
/*  CHANNEL LIST                                                     */
/* ---------------------------------------------------------------- */

.lt-lv-side {
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, .09);
  background: rgba(13, 20, 33, .6);
  padding: 14px;
  backdrop-filter: blur(12px);
}
.lt-lv-side-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 6px 12px;
  font-size: 13px;
  font-weight: 900;
}
.lt-lv-side-h span { font-size: 11px; font-weight: 700; color: #70849a; }

.lt-lv-item {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 10px;
  margin-bottom: 7px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, .03);
  color: inherit;
  font-family: inherit;
  text-align: right;
  cursor: pointer;
  transition: background .12s ease, border-color .12s ease;
  -webkit-tap-highlight-color: transparent;
}
.lt-lv-item:hover { background: rgba(255, 255, 255, .07); }
.lt-lv-item.is-active {
  border-color: rgba(34, 211, 238, .5);
  background: linear-gradient(135deg, rgba(14, 165, 233, .16), rgba(34, 211, 238, .06));
}
.lt-lv-item:last-child { margin-bottom: 0; }

.lt-lv-item img {
  width: 40px; height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
  background: rgba(255, 255, 255, .06);
}
.lt-lv-item-b { min-width: 0; flex: 1; }
.lt-lv-item-b b {
  display: block;
  font-size: 13.5px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lt-lv-item-b span {
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  color: #8fa0bd;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lt-lv-item-v {
  flex: none;
  font-size: 12px;
  font-weight: 800;
  color: #f87171;
  display: flex;
  align-items: center;
  gap: 5px;
}
.lt-lv-item-v i { width: 6px; height: 6px; border-radius: 50%; background: #ef4444; }

.lt-lv-item.is-off { opacity: .55; }
.lt-lv-item.is-off .lt-lv-item-v { color: #70849a; }
.lt-lv-item.is-off .lt-lv-item-v i { background: #4b5563; }

/* ---------------------------------------------------------------- */
/*  NOBODY LIVE                                                      */
/* ---------------------------------------------------------------- */

.lt-lv-empty {
  text-align: center;
  padding: 64px 24px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(13, 20, 33, .6);
}
.lt-lv-empty h2 { margin: 0 0 10px; font-size: 21px; font-weight: 900; }
.lt-lv-empty p { margin: 0 auto; max-width: 460px; font-size: 14px; line-height: 2; color: #8fa0bd; }

.lt-lv-err {
  margin-top: 18px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(251, 191, 36, .3);
  background: rgba(251, 191, 36, .07);
  font-size: 12.5px;
  color: #fbbf24;
  line-height: 1.9;
}

/* ---------------------------------------------------------------- */
/*  ROSTER                                                           */
/* ---------------------------------------------------------------- */

.lt-lv-roster { margin-top: 34px; }
.lt-lv-roster-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.lt-lv-roster-h b { font-size: 17px; font-weight: 900; }
.lt-lv-roster-h span { font-size: 12px; color: #70849a; }

.lt-lv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 12px;
}
.lt-lv-card {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(13, 20, 33, .55);
  text-decoration: none;
  color: inherit;
  transition: border-color .12s ease, transform .12s ease;
}
.lt-lv-card:hover { border-color: rgba(34, 211, 238, .4); transform: translateY(-2px); }
.lt-lv-card img {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
  background: rgba(255, 255, 255, .06);
}
.lt-lv-card.is-live img { border: 2px solid #ef4444; }
.lt-lv-card-b { min-width: 0; }
.lt-lv-card-b b {
  display: block;
  font-size: 13.5px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lt-lv-card-b span { display: block; margin-top: 3px; font-size: 11.5px; color: #70849a; }
.lt-lv-card.is-live .lt-lv-card-b span { color: #f87171; font-weight: 800; }

/* ---------------------------------------------------------------- */
/*  MOBILE                                                           */
/* ---------------------------------------------------------------- */

@media (max-width: 980px) {
  .lt-lv-room { grid-template-columns: minmax(0, 1fr); }
  .lt-lv-side { order: 2; }
}

@media (max-width: 640px) {
  .lt-lv-page { padding: 96px 14px 70px; }
  .lt-lv-hero h1 { font-size: 31px; }
  .lt-lv-stat { flex: 1 1 140px; min-width: 0; padding: 14px 16px; }
  .lt-lv-stat b { font-size: 26px; }
  .lt-lv-chat iframe { height: 340px; }
  .lt-lv-btn { flex: 1 1 auto; justify-content: center; }
}
