*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #3f1b8a 0, #05030b 60%);
  color: #f5f5f7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

.app {
  min-height: 100vh;
  max-width: 1320px;
  margin: 0 auto;
  padding: 20px 16px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* HEADER */

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo-block {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 20px rgba(174, 86, 255, 0.7);
}

.brand-name {
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 15px;
}

.brand-tag {
  font-size: 12px;
  color: #b8b8cc;
}

.nav {
  display: flex;
  gap: 16px;
  font-size: 14px;
}

.nav-link {
  color: #d6d6ff;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: 0.18s ease;
}

.nav-link:hover {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.nav-link.active {
  background: linear-gradient(135deg, #a855f7, #ec4899);
  color: #fff;
  box-shadow: 0 0 18px rgba(168, 85, 247, 0.55);
}

/* LAYOUT */

.main {
  display: grid;
  gap: 20px;
}

.side-info {
  display: grid;
  gap: 12px;
}

.card,
.side-card {
  background: radial-gradient(
    circle at top left,
    rgba(255, 255, 255, 0.08),
    rgba(9, 5, 20, 0.96)
  );
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 18px 40px rgba(2, 2, 16, 0.9);
  padding: 18px;
  backdrop-filter: blur(16px);
}

/* HERO */

.live-hero {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(620px, 1.4fr);
  gap: 28px;
  align-items: stretch;
}

.live-left {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.live-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #f97373;
}

.live-label::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 8px #ef4444;
}

.live-title {
  margin-top: 10px;
  font-size: clamp(24px, 2.3vw, 32px);
  font-weight: 800;
  line-height: 1.08;
}

.live-subtitle {
  margin-top: 10px;
  max-width: 420px;
  font-size: 14px;
  line-height: 1.55;
  color: #c8c8e6;
}

/* NEW TELEGRAM NOTICE */

.telegram-notice {
  margin-top: 14px;
  max-width: 440px;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 800;
  color: #ff8bd4;
}

.telegram-notice > span {
  display: block;
  margin-top: 2px;
  color: #55c7ff;
  font-weight: 900;
}

.telegram-main-btn {
  margin-top: 11px;
  width: fit-content;
  min-height: 44px;
  padding-left: 20px;
  padding-right: 20px;
  box-shadow:
    0 10px 28px rgba(34, 158, 217, 0.45),
    0 0 20px rgba(34, 158, 217, 0.18);
}


/* CURRENT TELEGRAM ALERT FROM YOUR INDEX */

.telegram-alert {
  margin-top: 16px;
  max-width: 440px;
}

.telegram-alert-top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.telegram-alert-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(236, 72, 153, 0.16);
  border: 1px solid rgba(236, 72, 153, 0.38);
  color: #ff80c8;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.telegram-alert-title {
  color: #ff8bd0;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 900;
}

.telegram-alert-text {
  margin-top: 4px;
  color: #55c7ff;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 800;
}

.telegram-alert-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 10px;
  padding: 0 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, #229ed9, #1c8ec2);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  box-shadow:
    0 10px 28px rgba(34, 158, 217, 0.45),
    0 0 20px rgba(34, 158, 217, 0.18);
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
}

.telegram-alert-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
  box-shadow: 0 14px 30px rgba(34, 158, 217, 0.5);
}

/* Hide the duplicate Telegram button in the general action row. */
.hero-actions .telegram-btn {
  display: none;
}

/* LIVE COUNTER */

.live-counter {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.35);
  font-size: 14px;
  font-weight: 600;
  color: #e5e7eb;
  line-height: 1;
}

.live-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 8px #ef4444;
  animation: livePulse 1.6s infinite;
}

@keyframes livePulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  70% {
    transform: scale(1.8);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 0;
  }
}

#live-site-count {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
}

.live-unit {
  font-weight: 500;
  color: #cbd5f5;
}

/* BUTTONS */

.hero-actions {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.primary-btn,
.secondary-btn,
.donate-btn,
.side-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  transition:
    transform 0.15s ease,
    filter 0.15s ease,
    background 0.15s ease,
    box-shadow 0.15s ease;
}

.primary-btn:hover,
.secondary-btn:hover,
.donate-btn:hover,
.side-link:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.primary-btn {
  border: none;
  color: #fff;
  background: linear-gradient(135deg, #a855f7, #6366f1);
  box-shadow: 0 16px 40px rgba(88, 28, 135, 0.8);
}

.secondary-btn,
.side-link {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.donate-btn {
  color: #fff;
  background: linear-gradient(135deg, #ff7a18, #ff3d2e);
  border: none;
  box-shadow: 0 10px 25px rgba(255, 80, 40, 0.45);
  position: relative;
  overflow: hidden;
  gap: 8px;
  font-weight: 700;
}

.donate-btn:hover {
  transform: translateY(-1px) scale(1.04);
  box-shadow: 0 16px 40px rgba(255, 80, 40, 0.65);
}

.donate-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
  position: relative;
  top: 1px;
}

.telegram-btn {
  background: linear-gradient(135deg, #229ed9, #1c8ec2);
  border: none;
  box-shadow: 0 10px 25px rgba(34, 158, 217, 0.35);
  gap: 8px;
}

.telegram-btn:hover {
  filter: brightness(1.08);
  box-shadow: 0 14px 30px rgba(34, 158, 217, 0.5);
}

.telegram-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.telegram-icon svg {
  width: 18px;
  height: 18px;
  fill: #ffffff;
  display: block;
  position: relative;
  top: 2px;
  transition: transform 0.2s ease;
}

.telegram-btn:hover .telegram-icon svg {
  transform: translateX(2px) translateY(-1px);
}

.hint {
  margin-top: 10px;
  max-width: 430px;
  font-size: 12px;
  line-height: 1.5;
  color: #9ca3af;
}

/* PLAYER */

.live-right {
  min-width: 0;
  display: flex;
  align-items: stretch;
}

.player-shell {
  position: relative;
  width: 100%;
  min-height: 320px;
  border-radius: 20px;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.9);
}

.player-shell iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #000;
}

/* CONTENT GRID UNDER PLAYER */

.content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.content-left {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.content-chat {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.content-chat .row-title {
  margin-bottom: 6px;
  font-weight: 800;
}

.chat-note {
  margin-bottom: 12px;
  font-size: 12px;
  line-height: 1.4;
  color: #a9abc7;
}

/* ROWS */

.row {
  margin-top: 0;
}

.row-title {
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: 700;
}

.card-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.card-row::-webkit-scrollbar {
  height: 5px;
}

.card-row::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.5);
  border-radius: 999px;
}

.show-card {
  min-width: 200px;
  background: radial-gradient(
    circle at top,
    rgba(129, 140, 248, 0.35),
    rgba(15, 23, 42, 0.98)
  );
  border-radius: 16px;
  padding: 12px 12px 14px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.75);
  flex-shrink: 0;
}

.show-card.muted {
  opacity: 0.68;
  background: radial-gradient(
    circle at top,
    rgba(148, 163, 184, 0.22),
    rgba(15, 23, 42, 0.98)
  );
}

.show-tag {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #a5b4fc;
}

.show-title {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 700;
}

.show-time {
  margin-top: 6px;
  font-size: 12px;
  color: #d1d5db;
}

/* SCHEDULE */

.schedule-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.schedule-list .show-card {
  min-width: unset;
  width: 100%;
  border: 1px solid rgba(0, 132, 255, 0.45);
  box-shadow: 0 0 20px rgba(0, 132, 255, 0.15);
}

/* CHAT */

.chat-side {
  width: 100%;
  min-height: 420px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: radial-gradient(
    circle at top left,
    rgba(255, 255, 255, 0.06),
    rgba(9, 5, 20, 0.96)
  );
  box-shadow: 0 18px 40px rgba(2, 2, 16, 0.9);
  padding: 8px;
}

.chat-side iframe {
  display: block;
  width: 100%;
  height: 420px;
  border: none;
  background: transparent;
}

/* SIDE */

.side-card h3 {
  margin-bottom: 8px;
  font-size: 14px;
}

.side-card p,
.side-card ol {
  font-size: 13px;
  line-height: 1.55;
  color: #e5e7eb;
}

.side-card ol {
  padding-left: 18px;
  margin-top: 4px;
}

.side-card li + li {
  margin-top: 4px;
}

/* FOOTER */

.footer {
  font-size: 11px;
  color: #9ca3af;
  text-align: center;
  padding-top: 4px;
}

/* RESPONSIVE */

@media (max-width: 1100px) {
  .live-hero {
    grid-template-columns: 1fr;
  }

  .live-right {
    height: auto;
  }

  .player-shell {
    min-height: 360px;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  .chat-side iframe {
    height: 380px;
  }
}

@media (max-width: 960px) {
  .app {
    padding-inline: 14px;
  }

  .header {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 900px) {
  .schedule-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nav {
    width: 100%;
    overflow-x: auto;
  }

  .card,
  .side-card {
    padding: 14px 14px 16px;
  }

  .logo {
    width: 38px;
    height: 38px;
  }

  .telegram-notice,
  .telegram-alert {
    max-width: 100%;
  }

  .telegram-alert-btn {
    width: 100%;
  }

  .telegram-main-btn {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .primary-btn,
  .secondary-btn,
  .donate-btn {
    width: 100%;
  }

  .live-counter {
    flex-wrap: wrap;
    row-gap: 6px;
  }

  .player-shell {
    min-height: 240px;
  }

  .chat-side {
    min-height: 340px;
  }

  .chat-side iframe {
    height: 340px;
  }
}