/* 蓝莓TV · 文件16（全新骨架）· EPG 电视节目单风格：频道栏 + 时间轴 + 横向节目条 */
:root{
  color-scheme: dark;
  --bg:#070914;
  --bg2:#0a0f24;
  --ink: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.72);
  --muted2: rgba(255,255,255,.56);
  --line: rgba(255,255,255,.12);
  --line2: rgba(255,255,255,.08);
  --panel: rgba(255,255,255,.05);
  --panel2: rgba(255,255,255,.07);
  --shadow: 0 26px 74px rgba(0,0,0,.55);
  --r: 18px;
  --wrap: 1220px;

  --berry:#8b5cf6;
  --cyan:#22d3ee;
  --lime:#a3e635;
  --amber:#fbbf24;
}
*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    "PingFang SC","Hiragino Sans GB","Microsoft YaHei","Noto Sans CJK SC","Noto Sans SC",sans-serif;
  color: var(--ink);
  line-height: 1.75;
  background:
    radial-gradient(1000px 560px at 12% 0%, rgba(139,92,246,.16), transparent 60%),
    radial-gradient(900px 560px at 92% 10%, rgba(34,211,238,.14), transparent 60%),
    radial-gradient(860px 560px at 55% 120%, rgba(163,230,53,.10), transparent 62%),
    linear-gradient(180deg, var(--bg), var(--bg2));
}
body:before{
  content:"";
  position: fixed;
  inset: 0;
  pointer-events:none;
  opacity: .18;
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,.05) 0, rgba(255,255,255,.05) 1px, transparent 1px, transparent 10px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0, rgba(255,255,255,.035) 1px, transparent 1px, transparent 14px);
  mix-blend-mode: overlay;
}
a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; }
.wrap{ width:100%; max-width: var(--wrap); margin:0 auto; padding:0 18px; }
.sr-only{ position:absolute!important; width:1px;height:1px; overflow:hidden; clip: rect(1px,1px,1px,1px); white-space:nowrap; }
.skip{
  position:absolute; left:-999px; top:10px;
  padding:10px 12px; border-radius: 12px;
  background: rgba(255,255,255,.10); border:1px solid var(--line); box-shadow: var(--shadow);
}
.skip:focus{ left:12px; z-index: 90; }

/* 顶部：频道条 + 搜索 */
.mast{
  position: sticky;
  top:0;
  z-index: 70;
  background: rgba(7,9,20,.62);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.10);
}
.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding: 14px 0 10px;
}
.brand{
  display:flex;
  align-items:center;
  gap: 12px;
  min-width: 260px;
}
.logo{
  width: 46px; height:46px;
  border-radius: 16px;
  border:1px solid rgba(255,255,255,.14);
  background: conic-gradient(from 230deg, rgba(139,92,246,.86), rgba(34,211,238,.78), rgba(163,230,53,.70), rgba(139,92,246,.86));
  box-shadow: 0 18px 44px rgba(139,92,246,.12);
  display:grid; place-items:center;
  font-weight: 1000;
  letter-spacing:.6px;
  color: rgba(0,0,0,.76);
}
.brand strong{ font-size: 15px; letter-spacing:.4px; }
.brand small{ display:block; margin-top:2px; font-size:12px; color: var(--muted2); letter-spacing:.3px; }

.search{
  display:flex;
  align-items:center;
  gap: 10px;
  min-width: 360px;
}
.search input{
  width:100%;
  padding: 10px 12px;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: var(--ink);
  outline:none;
}
.search input::placeholder{ color: rgba(255,255,255,.45); }
.search input:focus{
  border-color: rgba(34,211,238,.28);
  box-shadow: 0 0 0 4px rgba(34,211,238,.12);
}
.search button{
  padding: 10px 12px;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: var(--ink);
  cursor:pointer;
}
.search button:hover{ background: rgba(255,255,255,.10); }

.nav{
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
  padding: 0 0 12px;
}
.nav a{
  padding: 8px 12px;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.84);
  font-size: 13px;
}
.nav a:hover{ background: rgba(255,255,255,.08); }
.nav a.on{
  border-color: rgba(139,92,246,.22);
  background: linear-gradient(135deg, rgba(139,92,246,.14), rgba(34,211,238,.08));
}

main{ padding: 18px 0 56px; }
.panel{
  border-radius: var(--r);
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  box-shadow: var(--shadow);
}

/* 首页：上方“台前导语” + 右侧海报 */
.hero{
  display:grid;
  grid-template-columns: minmax(0, 1.25fr) 420px;
  gap: 12px;
  align-items:start;
}
.hero-main{ padding: 16px; position: relative; overflow:hidden; }
.hero-main:before{
  content:"";
  position:absolute; inset:-2px;
  background:
    radial-gradient(760px 340px at 16% 0%, rgba(139,92,246,.20), transparent 60%),
    radial-gradient(760px 360px at 92% 18%, rgba(34,211,238,.14), transparent 60%),
    radial-gradient(760px 360px at 58% 120%, rgba(163,230,53,.12), transparent 60%);
  opacity:.95;
  pointer-events:none;
}
.hero-main > *{ position: relative; }
.kicker{
  display:flex;
  align-items:center;
  gap: 10px;
  flex-wrap:wrap;
  color: var(--muted2);
  font-size: 12px;
  letter-spacing:.3px;
}
.dot{
  width: 8px; height:8px; border-radius: 999px;
  background: rgba(139,92,246,.92);
  box-shadow: 0 0 0 4px rgba(139,92,246,.16);
}
.hero h1{
  margin: 10px 0 10px;
  font-size: 34px;
  line-height: 1.10;
  letter-spacing: .6px;
}
.lede{
  margin:0;
  color: var(--muted);
  max-width: 80ch;
}
.cta{
  display:flex; flex-wrap:wrap; gap: 10px;
  margin-top: 14px;
}
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding: 10px 12px;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  font-weight: 950;
  color: rgba(255,255,255,.88);
}
.btn.primary{
  border-color: rgba(139,92,246,.22);
  background: linear-gradient(135deg, rgba(139,92,246,.14), rgba(34,211,238,.10));
}
.btn.ghost{ background: rgba(255,255,255,.04); }
.btn:hover{ background: rgba(255,255,255,.10); }
.poster{ padding: 14px; }
.frame{
  border-radius: 18px;
  border:1px solid rgba(255,255,255,.12);
  overflow:hidden;
  background: rgba(255,255,255,.04);
}
.frame img{ width:100%; height: 360px; object-fit: cover; }
.cap{ margin: 10px 0 0; font-size: 12px; color: var(--muted2); }

/* EPG：时间轴 + 频道栏 + 节目条 */
.epg{
  margin-top: 12px;
  padding: 14px;
}
.epg-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 12px;
  flex-wrap:wrap;
}
.epg-head h2{ margin:0; font-size: 14px; letter-spacing:.3px; }
.epg-head p{ margin:0; font-size: 12px; color: var(--muted2); }
.rule{
  height:1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.16), transparent);
  margin: 10px 0 12px;
}
.timeline{
  display:flex;
  gap: 8px;
  overflow:auto;
  padding-bottom: 8px;
}
.tick{
  flex: 0 0 auto;
  padding: 8px 10px;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  font-size: 12px;
  color: rgba(255,255,255,.78);
}
.grid{
  margin-top: 10px;
  border-radius: 16px;
  border:1px solid rgba(255,255,255,.12);
  overflow:hidden;
}
.row{
  display:grid;
  grid-template-columns: 160px 1fr;
  border-top: 1px solid rgba(255,255,255,.10);
}
.row:first-child{ border-top:none; }
.chan{
  padding: 12px;
  background: rgba(255,255,255,.04);
  border-right: 1px solid rgba(255,255,255,.10);
}
.chan b{ display:block; font-size: 13px; }
.chan span{ display:block; margin-top:4px; font-size: 12px; color: var(--muted2); }
.lane{
  padding: 12px;
  overflow:auto;
}
.strip{
  display:flex;
  gap: 10px;
  min-width: 860px; /* 形成横向节目条 */
}
.prog{
  flex: 0 0 260px;
  border-radius: 16px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  overflow:hidden;
}
.prog img{ width:100%; height: 120px; object-fit: cover; }
.prog .meta{ padding: 10px; }
.prog h3{ margin:0 0 6px; font-size: 13px; line-height: 1.25; }
.prog p{ margin:0; font-size: 12px; color: var(--muted2); }
.tags{ margin-top: 10px; display:flex; flex-wrap:wrap; gap: 8px; }
.tag{
  display:inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.82);
  font-size: 12px;
  font-weight: 900;
}
.tag.p{ border-color: rgba(139,92,246,.22); background: rgba(139,92,246,.10); color: rgba(232,221,255,.95); }
.tag.c{ border-color: rgba(34,211,238,.22); background: rgba(34,211,238,.10); color: rgba(210,245,255,.95); }
.tag.l{ border-color: rgba(163,230,53,.22); background: rgba(163,230,53,.10); color: rgba(240,255,210,.95); }

/* 列表页：频道索引（双列清单 + 右侧预览） */
.list{
  display:grid;
  grid-template-columns: minmax(0,1fr) 360px;
  gap: 12px;
  align-items:start;
}
.stack{ padding: 14px; }
.stack h2{ margin:0; font-size: 14px; letter-spacing:.3px; }
.items{ margin-top: 10px; display:grid; gap: 10px; }
.item{
  padding: 12px;
  border-radius: 16px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
}
.item b{ display:block; font-size: 14px; }
.item span{ display:block; margin-top: 4px; font-size: 12px; color: var(--muted2); }
.preview{ padding: 14px; }
.preview h3{ margin:0 0 10px; font-size: 14px; }
.preview .shot{
  border-radius: 16px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
}
.preview .shot img{ width:100%; height: 180px; object-fit: cover; }

/* 内容页：详情 + 侧栏“播放规格/追更卡” */
.crumb{
  display:flex; flex-wrap:wrap; gap: 8px;
  font-size: 12px;
  color: var(--muted2);
}
.doc{
  display:grid;
  grid-template-columns: minmax(0,1fr) 360px;
  gap: 12px;
  align-items:start;
}
.paper{ padding: 16px; }
.paper h1{ margin: 8px 0 10px; font-size: 22px; line-height: 1.25; }
.paper h2{ margin: 16px 0 8px; font-size: 16px; }
.paper p{ margin: 10px 0; color: var(--muted); }
.paper ul{ margin: 10px 0 10px 18px; color: var(--muted); }
.callout{
  padding: 12px;
  border-radius: 16px;
  border:1px solid rgba(251,191,36,.22);
  background: rgba(251,191,36,.10);
  color: rgba(255,240,220,.95);
  font-weight: 950;
  letter-spacing:.2px;
  margin: 12px 0;
}
.side{ padding: 14px; }
.side h3{ margin:0 0 10px; font-size: 14px; }
.kv{ display:grid; gap: 10px; }
.kv div{
  padding: 10px;
  border-radius: 16px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  font-size: 12px;
  color: rgba(255,255,255,.78);
}
.side .img{
  margin-top: 10px;
  border-radius: 16px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
}

/* 页脚 + 移动端底部栏 */
.foot{
  margin-top: 22px;
  border-top: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
}
.footrow{
  padding: 18px 0;
  display:flex; align-items:center; justify-content:space-between;
  gap: 12px; flex-wrap:wrap;
  color: rgba(255,255,255,.70);
}
.bottom{
  display:none;
  position: fixed;
  left: 12px; right: 12px; bottom: 12px;
  z-index: 80;
  border-radius: 16px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(7,9,20,.70);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  padding: 10px;
  gap: 10px;
}
.bottom a{
  flex:1 1 0;
  display:flex; align-items:center; justify-content:center;
  padding: 10px;
  border-radius: 14px;
  border:1px solid transparent;
  font-size: 12px;
  font-weight: 950;
  color: rgba(255,255,255,.76);
}
.bottom a.on{
  border-color: rgba(139,92,246,.22);
  background: rgba(139,92,246,.10);
  color: rgba(232,221,255,.95);
}

@media (max-width: 1120px){
  .hero{ grid-template-columns: 1fr; }
  .list{ grid-template-columns: 1fr; }
  .doc{ grid-template-columns: 1fr; }
}
@media (max-width: 720px){
  .search{ display:none; }
  main{ padding-bottom: 92px; }
  .row{ grid-template-columns: 1fr; }
  .chan{ border-right:none; border-bottom: 1px solid rgba(255,255,255,.10); }
  .strip{ min-width: 720px; }
  .bottom{ display:flex; }
}

