:root {
  color-scheme: dark;
  --bg-1: #0e1325;
  --bg-2: #131b33;
  --card: #1a2342;
  --text: #f5f7ff;
  --muted: #b9c2e2;
  --accent: #4f8cff;
}

* {
  box-sizing: border-box;
}

img {
  max-width: 100%;
  height: auto;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top, #273b7d 0%, var(--bg-1) 45%, #090e1e 100%);
  min-height: 100vh;
}

.page {
  width: min(980px, 94%);
  margin: 0 auto;
  padding: 24px 0 56px;
}

.logo-wrap {
  display: flex;
  justify-content: center;
  margin: 0 0 18px;
}

.logo-link {
  display: inline-block;
}

.site-logo {
  width: min(240px, 54vw);
  display: block;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.3));
}

.hero {
  text-align: center;
  margin-bottom: 26px;
}

.badge {
  display: inline-block;
  margin: 0 0 10px;
  background: rgba(79, 140, 255, 0.2);
  color: #cddbff;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 0.6px;
}

h1 {
  margin: 0;
  font-size: clamp(30px, 5vw, 46px);
}

.subtitle {
  color: #dce8ff;
  max-width: 100%;
  margin: 4px auto 0;
  line-height: 1.35;
  font-size: clamp(16px, 1.7vw, 22px);
  font-weight: 600;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
  white-space: nowrap;
}

.player-card,
.downloads {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 18px;
  backdrop-filter: blur(6px);
}

.player-card {
  margin-bottom: 20px;
}

.player-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  gap: 10px;
}

h2,
h3 {
  margin: 0;
}

.cast-button {
  border: 0;
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  color: #081027;
  background: #ecf1ff;
  font-weight: 700;
}

.video {
  width: 100%;
  border-radius: 12px;
}

.downloads h3 {
  margin-bottom: 14px;
}

.downloads-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}

.downloads-col h3 {
  margin: 0 0 12px;
}

.download-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  background: #263356;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 11px 15px;
  font-weight: 600;
}

.store-btn img {
  width: 20px;
  height: 20px;
  display: block;
}

.download-btn.android {
  background: linear-gradient(135deg, #2e8d46, #39ae57);
}

.download-btn.ios {
  background: linear-gradient(135deg, #0f172a, #334155);
}

.download-btn.is-disabled {
  opacity: 0.55;
  filter: grayscale(0.3);
  cursor: not-allowed;
  pointer-events: none;
}

.download-btn.web {
  background: linear-gradient(135deg, #2354b4, #4f8cff);
}

.socials-col {
  border-left: 1px solid rgba(255, 255, 255, 0.15);
  padding-left: 18px;
}

.social-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #fff;
  border-radius: 10px;
  padding: 11px 15px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.social-btn img {
  width: 18px;
  height: 18px;
  display: block;
}

.social-btn.fb {
  background: linear-gradient(135deg, #1877f2, #145bd1);
}

.social-btn.ig {
  background: linear-gradient(135deg, #833ab4, #fd1d1d 55%, #fcb045);
}

.social-btn.x {
  background: linear-gradient(135deg, #111111, #2f2f2f);
}

.player-wrapper {
  position: relative;
  width: 100%;
}

.player-wrapper video {
  width: 100%;
  border-radius: 12px;
}

.live-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #e10600;
  color: white;
  font-weight: bold;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 13px;
  z-index: 20;
}

.channel-logo {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 20;
}

.channel-logo img {
  height: 36px;
}

.player-info {
  position: absolute;
  bottom: 10px;
  left: 12px;
  font-size: 12px;
  color: white;
  background: rgba(0,0,0,0.6);
  padding: 6px 10px;
  border-radius: 6px;
  z-index: 20;
}

.player-stats {
  margin-top: 6px;
  font-size: 12px;
  color: #dce8ff;
  display: flex;
  gap: 12px;
  align-items: center;
}

.player-stats span {
  background: rgba(0,0,0,0.4);
  padding: 4px 8px;
  border-radius: 6px;
}

.reconnect-message {
  position: absolute;

  top: 0;
  left: 0;
  right: 0;
  bottom: 0;

  display: none;

  align-items: center;
  justify-content: center;

  background: rgba(0,0,0,0.65);

  color: white;

  font-size: 18px;
  font-weight: 600;

  border-radius: 12px;

  z-index: 50;

  pointer-events: none;
}

.reconnect-message.show {
  display: flex;
}

@media (max-width: 1024px) {
  .page {
    width: min(980px, 95%);
    padding: 20px 0 44px;
  }

  .player-card,
  .downloads {
    padding: 16px;
  }
}

@media (max-width: 860px) {
  .hero {
    margin-bottom: 20px;
  }

  .subtitle {
    max-width: 100%;
    white-space: normal;
  }

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

  .socials-col {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 14px;
  }

  .download-links,
  .social-links {
    width: 100%;
  }

  .download-btn,
  .social-btn {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .page {
    width: 94%;
    padding-top: 12px;
    padding-bottom: 34px;
  }

  .logo-wrap {
    margin-bottom: 14px;
  }

  h1 {
    font-size: clamp(26px, 8vw, 34px);
  }

  .subtitle {
    font-size: clamp(16px, 4.8vw, 20px);
    line-height: 1.35;
  }

  .player-header {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 12px;
  }

  h2,
  h3 {
    font-size: 20px;
  }

  .cast-button {
    width: 100%;
    min-height: 44px;
  }

  .download-links,
  .social-links {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .download-btn,
  .social-btn {
    width: 100%;
    min-height: 44px;
    font-size: 15px;
  }
}

@media (max-width: 420px) {
  .badge {
    font-size: 12px;
    padding: 7px 12px;
  }

  .player-card,
  .downloads {
    border-radius: 14px;
    padding: 14px;
  }

  .store-btn img,
  .social-btn img {
    width: 16px;
    height: 16px;
  }
}