:root {
  --bg-1: #06121c;
  --bg-2: #0b2235;
  --glass: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.18);
  --text: #eaf7ff;
  --muted: #9fc2d6;
  --accent-1: #00c6ff;
  --accent-2: #0072ff;
  --success: #38e0a1;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: radial-gradient(1200px 800px at 10% -10%, #0c2b46 0%, var(--bg-1) 40%), linear-gradient(180deg, var(--bg-1) 0%, var(--bg-2) 100%);
  min-height: 100vh;
}

.bg-gloss {
  position: fixed; inset: 0; pointer-events: none;
  background: radial-gradient(600px 300px at 80% 0%, rgba(0, 198, 255, 0.25) 0%, transparent 60%),
              radial-gradient(500px 400px at 0% 100%, rgba(0, 114, 255, 0.25) 0%, transparent 60%);
}

.site-header {
  display: flex; align-items: center; justify-content: center;
  padding: 20px 24px; position: sticky; top: 0; z-index: 10;
  background: linear-gradient(180deg, rgba(6,18,28,0.9) 0%, rgba(6,18,28,0.5) 100%);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.brand { text-align: center; }
.logo { font-weight: 800; font-size: 28px; letter-spacing: 0.8px; background: linear-gradient(90deg, var(--accent-1), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.byline { margin-top: 4px; font-size: 12px; color: var(--muted); }

.layout {
  display: grid; gap: 24px; padding: 24px; max-width: 1400px; margin: 0 auto;
  grid-template-columns: 1.5fr 1fr;
}

.player-section { width: 100%; }
.player-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  border: 1px solid var(--border); border-radius: 20px; overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.2);
}
.player-aspect { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #0b1b2a; }
.player { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: none; }
.player-toolbar { display: flex; gap: 16px; align-items: center; justify-content: space-between; padding: 14px 16px; }
.source-switch { display: inline-flex; gap: 10px; background: var(--glass); border: 1px solid var(--border); border-radius: 999px; padding: 6px; }
.switch-btn { appearance: none; border: 0; border-radius: 999px; padding: 8px 14px; font-weight: 600; color: var(--muted); background: transparent; cursor: pointer; }
.switch-btn.active { color: #03131e; background: linear-gradient(180deg, #b7e4ff, #7ec4ff); box-shadow: 0 8px 20px rgba(0, 114, 255, 0.32); }
.now-playing { font-size: 13px; color: var(--muted); }

.channels-section {}
.section-title { margin: 0 0 10px; font-size: 18px; color: #cde9fb; font-weight: 700; }
.channels-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.channel-card { background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03)); border: 1px solid var(--border); border-radius: 16px; padding: 14px; box-shadow: inset 0 1px 0 rgba(255,255,255,0.15); display: grid; gap: 10px; }
.channel-top { display: flex; align-items: center; justify-content: space-between; }
.channel-name { font-weight: 700; }
.channel-sport { font-size: 12px; color: var(--muted); }
.channel-actions { display: flex; gap: 10px; }
.play-btn { appearance: none; border: 0; padding: 8px 12px; border-radius: 12px; font-weight: 600; cursor: pointer; color: #03131e; background: linear-gradient(180deg, #b7e4ff, #7ec4ff); box-shadow: 0 8px 20px rgba(0, 114, 255, 0.32); }
.play-btn.alt { color: #062b3f; background: linear-gradient(180deg, #b5ffd9, #76f0bb); box-shadow: 0 8px 20px rgba(56, 224, 161, 0.35); }
.play-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.custom-card { margin-top: 18px; background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03)); border: 1px solid var(--border); border-radius: 16px; padding: 14px; box-shadow: inset 0 1px 0 rgba(255,255,255,0.15); }
.section-subtitle { margin: 0 0 12px; font-size: 16px; color: #cde9fb; font-weight: 700; }
.custom-form { display: grid; gap: 10px; }
.form-row { display: grid; }
.input { width: 100%; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border); background: rgba(2, 10, 16, 0.6); color: var(--text); }
.input::placeholder { color: #85a9bc; }
.form-actions { display: flex; justify-content: flex-end; }
.primary-btn { appearance: none; border: 0; padding: 10px 14px; border-radius: 12px; font-weight: 700; cursor: pointer; color: #03131e; background: linear-gradient(180deg, #b7e4ff, #7ec4ff); box-shadow: 0 8px 20px rgba(0, 114, 255, 0.32); }

.site-footer { margin: 24px 0; display: flex; justify-content: center; }
.foot-inner { padding: 10px 14px; color: var(--muted); border: 1px solid var(--border); border-radius: 999px; background: var(--glass); backdrop-filter: blur(6px); }

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

@media (max-width: 640px) {
  .channels-grid { grid-template-columns: 1fr; }
  .logo { font-size: 24px; }
}
