/* Showqin TV — OTT webapp */
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
:root {
  --bg: #0b0d11; --bg2: #12151c; --card: #161a22; --line: #232836;
  --text: #eceef4; --muted: #8b93a7; --red: #ef4444; --red2: #b91c3c;
  --accent: #2563eb;
}
html { color-scheme: dark; }
body {
  font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(185,28,60,.18), transparent 60%),
    radial-gradient(900px 400px at -10% 10%, rgba(37,99,235,.12), transparent 60%),
    var(--bg);
  color: var(--text); min-height: 100vh;
}
img { display: block; }
a { color: inherit; text-decoration: none; }

/* top bar */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 26px;
  padding: 12px clamp(16px, 4vw, 40px);
  background: rgba(11,13,17,.82); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(35,40,54,.6);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800;
         font-size: 18px; letter-spacing: .2px; }
.brand img { border-radius: 9px; }
.nav { display: flex; gap: 20px; flex: 1; font-size: 14.5px; font-weight: 600; }
.nav a { color: var(--muted); padding: 6px 2px; position: relative; }
.nav a.active { color: var(--text); }
.nav a.active::after { content: ""; position: absolute; left: 0; right: 0;
  bottom: -13px; height: 2px; background: var(--red); border-radius: 2px; }
.nav a.soon { cursor: default; }
.nav a sup { font-size: 9px; color: var(--red); margin-left: 3px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; cursor: pointer; border-radius: 12px; font-weight: 700;
  font-size: 15px; padding: 12px 20px; color: var(--text);
  background: #232836; transition: .15s;
}
.btn:hover { background: #2c3242; }
.btn.primary { background: linear-gradient(135deg, var(--red), var(--red2)); color: #fff; }
.btn.primary:hover { filter: brightness(1.1); }
.btn.ghost { background: rgba(35,40,54,.55); border: 1px solid var(--line); }

/* live chip */
.live-chip {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--red); color: #fff; font-size: 12px; font-weight: 800;
  letter-spacing: .8px; padding: 5px 11px; border-radius: 8px;
}
.live-chip.small { font-size: 10px; padding: 3px 8px; gap: 5px; }
.live-chip i { width: 7px; height: 7px; background: #fff; border-radius: 50%;
               animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .35; } }

/* hero */
.hero {
  display: grid; grid-template-columns: minmax(300px, 5fr) minmax(320px, 6fr);
  gap: clamp(20px, 4vw, 56px); align-items: center;
  padding: clamp(28px, 6vh, 64px) clamp(16px, 4vw, 40px);
  max-width: 1280px; margin: 0 auto;
}
.hero-info h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 800;
                margin: 14px 0 10px; letter-spacing: -.5px; }
.now-line { color: var(--text); font-size: 15px; margin-bottom: 10px; }
.now-line b { color: #fca5a5; font-weight: 700; }
.hero-sub { color: var(--muted); font-size: 15.5px; line-height: 1.65;
            max-width: 46ch; margin-bottom: 22px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-player {
  position: relative; border-radius: 18px; overflow: hidden; cursor: pointer;
  background: #000; border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0,0,0,.55);
  transition: transform .2s;
}
.hero-player:hover { transform: scale(1.012); }
.hero-player video { width: 100%; aspect-ratio: 16/9; background: #000; display: block; }
.hero-overlay { position: absolute; inset: 0; display: flex; align-items: center;
  justify-content: center; background: linear-gradient(180deg, rgba(0,0,0,.25), transparent 30%, transparent 70%, rgba(0,0,0,.35)); }
.hero-overlay .live-chip { position: absolute; top: 14px; left: 14px; }
.hero-play {
  width: 74px; height: 74px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-size: 26px; color: #fff; padding-left: 6px;
  background: rgba(239,68,68,.92); box-shadow: 0 10px 40px rgba(239,68,68,.45);
  transition: .15s;
}
.hero-player:hover .hero-play { transform: scale(1.08); }

/* rails / cards */
.rail { max-width: 1280px; margin: 0 auto; padding: 10px clamp(16px, 4vw, 40px) 40px; }
.rail h2 { font-size: 22px; font-weight: 800; margin-bottom: 16px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
         gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px;
        overflow: hidden; transition: .15s; }
.card.channel { cursor: pointer; }
.card.channel:hover { transform: translateY(-3px); border-color: #3a4256;
                      box-shadow: 0 16px 40px rgba(0,0,0,.4); }
.poster { position: relative; aspect-ratio: 16/10; display: flex; align-items: center;
          justify-content: center;
          background: radial-gradient(120% 120% at 30% 20%, #232a3a, #10131a); }
.poster img { width: 64px; height: 64px; border-radius: 14px;
              box-shadow: 0 8px 30px rgba(0,0,0,.5); }
.poster .live-chip { position: absolute; top: 10px; left: 10px; }
.meta { padding: 12px 14px 14px; }
.meta h3 { font-size: 15.5px; font-weight: 700; margin-bottom: 4px; }
.meta p { font-size: 12.5px; color: var(--muted); overflow: hidden;
          text-overflow: ellipsis; white-space: nowrap; }
.soon-card { opacity: .62; }
.soon-card .poster span { font-size: 12px; font-weight: 800; letter-spacing: 1.5px;
  text-transform: uppercase; color: rgba(236,238,244,.75);
  border: 1px solid rgba(236,238,244,.28); padding: 6px 12px; border-radius: 999px; }
.poster.g1 { background: linear-gradient(135deg, #1d2436, #0e1118); }
.poster.g2 { background: linear-gradient(135deg, #2a1a2e, #0e1118); }
.poster.g3 { background: linear-gradient(135deg, #14262a, #0e1118); }
.poster.g4 { background: linear-gradient(135deg, #2b2116, #0e1118); }

/* footer */
.foot { max-width: 1280px; margin: 0 auto; padding: 18px clamp(16px, 4vw, 40px) 34px;
        color: #566073; font-size: 13px; display: flex; gap: 10px; align-items: center;
        border-top: 1px solid rgba(35,40,54,.5); }
.foot a { color: #8b93a7; }
.foot .dot { opacity: .5; }

/* player overlay */
.player {
  position: fixed; inset: 0; z-index: 100; background: #000;
  display: flex; align-items: center; justify-content: center;
}
.player video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.player-top {
  position: absolute; top: 0; left: 0; right: 0; z-index: 5;
  display: flex; align-items: center; gap: 16px;
  padding: max(12px, env(safe-area-inset-top)) 16px 26px;
  background: linear-gradient(180deg, rgba(0,0,0,.75), transparent);
}
.player-title { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.muted-text { color: var(--muted); font-size: 13.5px; }
.unmute {
  position: absolute; left: 50%; bottom: 16%; transform: translateX(-50%); z-index: 6;
  background: rgba(17,20,27,.92); color: #fff; border: 1px solid #39415a;
  border-radius: 999px; padding: 11px 20px; font-size: 14.5px; font-weight: 700;
  cursor: pointer;
}
.player-msg {
  position: absolute; inset: 0; z-index: 4; display: flex; align-items: center;
  justify-content: center; color: var(--muted); font-size: 15px;
  background: rgba(0,0,0,.55);
}

/* mobile */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 20px; }
  .hero-player { order: -1; }
  .nav { gap: 14px; font-size: 13.5px; }
  .nav a.active::after { bottom: -10px; }
  #install-btn { display: none; }
  .cards { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
}
