
:root{
  --bg: #0b1220;
  --bg2:#0f1a30;
  --card:#101b33;
  --card2:#0f1930;
  --text:#e6e9f2;
  --muted:#aeb6cf;
  --border: rgba(255,255,255,.08);
  --shadow: 0 12px 40px rgba(0,0,0,.35);
  --accent:#7dd3fc;
  --accent2:#a78bfa;
  --chip: rgba(125, 211, 252, .12);
  --btn: rgba(125, 211, 252, .18);
  --btn2: rgba(167, 139, 250, .18);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Inter, Helvetica, Arial, sans-serif;
  color:var(--text);
  background:
    radial-gradient(1200px 600px at 10% 0%, rgba(125,211,252,.16), transparent 60%),
    radial-gradient(900px 500px at 90% 10%, rgba(167,139,250,.14), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg2));
}

.container{
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar{
  padding: 22px 0 14px;
  border-bottom: 1px solid var(--border);
  background: rgba(8, 13, 26, .55);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand{
  display:flex;
  gap:14px;
  align-items:center;
}
.logo{
  width:48px;
  height:48px;
  display:grid;
  place-items:center;
  border-radius:14px;
  background:
    radial-gradient(16px 16px at 30% 30%, rgba(255,255,255,.18), transparent 60%),
    linear-gradient(135deg, rgba(125,211,252,.34), rgba(167,139,250,.25));
  border:1px solid var(--border);
  box-shadow: var(--shadow);
  font-weight: 800;
  letter-spacing: .6px;
}
.brand-text h1{
  margin:0;
  font-size: 18px;
  line-height: 1.1;
}
.brand-text p{
  margin:6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.badges{
  margin-top: 10px;
  display:flex;
  gap:8px;
  flex-wrap: wrap;
}
.badge{
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.04);
  color: var(--text);
}
.badge.subtle{
  color: var(--muted);
  background: rgba(255,255,255,.03);
}

.grid{
  display:grid;
  gap: 18px;
  grid-template-columns: 1.2fr .9fr;
  margin: 22px 0 18px;
}

@media (max-width: 980px){
  .grid{ grid-template-columns: 1fr; }
  .topbar{ position: relative; }
}

.card{
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card-head{
  padding: 16px 16px 10px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.02);
}
.card-head h2{
  margin: 0;
  font-size: 15px;
  letter-spacing: .2px;
}
.hint{
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.card-body{
  padding: 12px 16px 16px;
}
.card-foot{
  padding: 10px 16px 14px;
  border-top: 1px solid var(--border);
  background: rgba(255,255,255,.01);
}

.micro{
  font-size: 12px;
  color: var(--muted);
}

.tv-widget{
  height: 420px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.06);
}

.news{
  margin:0;
  padding-left: 18px;
}
.news-item{
  margin: 10px 0 12px;
}
.news-item a{
  color: var(--text);
  text-decoration: none;
}
.news-item a:hover{ text-decoration: underline; }

.news-meta{
  margin-top: 6px;
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.chip{
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(125, 211, 252, .22);
  background: var(--chip);
  color: var(--accent);
}
.dim{
  font-size: 11px;
  color: var(--muted);
}

.empty{
  color: var(--muted);
  font-size: 13px;
  padding: 14px 2px;
}

.callout{
  display:flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 18px;
}
.callout h3{
  margin:0 0 6px;
  font-size: 14px;
}
.callout p{
  margin:0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.callout-right{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content:flex-end;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(125,211,252,.26);
  background: var(--btn);
  color: var(--text);
  text-decoration:none;
  font-size: 13px;
  white-space: nowrap;
}
.btn:hover{ filter: brightness(1.08); }
.btn.ghost{
  border-color: rgba(167,139,250,.26);
  background: var(--btn2);
}

.footer{
  margin-top: 18px;
  padding: 24px 0 34px;
  color: var(--muted);
}
.footer-inner{
  display:flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

@media (max-width: 520px){
  .tv-widget{ height: 360px; }
}

.tv-fallback{
  margin-top:10px;
  font-size:12px;
  color: var(--muted);
  opacity: .9;
}
