/* 看看TV 2026 interface refresh */
body { background: radial-gradient(circle at 70% -10%, #fff3bf 0, transparent 34%), var(--bg); }
.secure-text { -webkit-text-security: disc; }

.layout {
  grid-template-columns: minmax(310px, .72fr) minmax(0, 1.65fr);
  align-items: start;
}

.layout > section { grid-column: 2; grid-row: 1; }
.layout > .channels { grid-column: 1; grid-row: 1; position: sticky; top: 88px; }
.drawer-close, .drawer-shade { display: none; }
.player-card { border-radius: 32px; }
.video-wrap { min-height: 320px; }

.ad-card {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid #f0d6c7;
  border-radius: 22px;
  background: linear-gradient(110deg, #fffdf5, #fff0e7);
  color: var(--text);
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(103, 55, 24, .07);
  transition: transform .2s ease, box-shadow .2s ease;
}

.ad-card:hover { transform: translateY(-2px); box-shadow: 0 15px 35px rgba(103, 55, 24, .12); }
.ad-label { padding: 5px 8px; border-radius: 8px; background: #f05b2a; color: white; font-size: 10px; font-weight: 900; }
.ad-copy { display: flex; flex: 1; flex-direction: column; }
.ad-copy b { font-size: 15px; }
.ad-copy small { margin-top: 3px; color: var(--muted); }
.ad-action { color: #d64b20; font-size: 12px; font-weight: 900; }

.analytics-block { margin-bottom: 24px; }
.dashboard-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 16px; }
.dashboard-heading small { color: var(--muted); font-size: 10px; font-weight: 900; letter-spacing: .16em; }
.dashboard-heading h1 { margin: 5px 0 0; font-size: 32px; letter-spacing: -.05em; }
.refresh-stats { padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); font-weight: 900; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat-grid article { display: flex; min-height: 140px; flex-direction: column; padding: 20px; border: 1px solid var(--line); border-radius: 24px; background: var(--card); box-shadow: 0 10px 28px rgba(70,53,10,.05); }
.stat-grid article:first-child { background: var(--text); color: white; }
.stat-grid small { font-size: 11px; font-weight: 900; color: var(--muted); }
.stat-grid article:first-child small { color: #c9c2b5; }
.stat-grid b { margin: auto 0 4px; font-size: 36px; letter-spacing: -.06em; }
.stat-grid span { font-size: 11px; color: var(--muted); }
.chart-card { margin-top: 12px; padding: 20px; border: 1px solid var(--line); border-radius: 24px; background: var(--card); }
.chart-title { display: flex; justify-content: space-between; }
.chart-title small { color: var(--muted); }
.traffic-chart { display: grid; height: 180px; grid-template-columns: repeat(7, 1fr); gap: 12px; margin-top: 20px; }
.chart-day { display: grid; grid-template-rows: 1fr auto auto; gap: 4px; text-align: center; }
.bar-wrap { display: flex; align-items: end; justify-content: center; min-height: 110px; }
.bar-wrap i { display: block; width: min(32px, 65%); border-radius: 9px 9px 4px 4px; background: var(--yellow); }
.chart-day b { font-size: 12px; }.chart-day small { color: var(--muted); font-size: 10px; }

@media (max-width: 850px) {
  .layout { grid-template-columns: 1fr; }
  .layout > section { grid-column: 1; grid-row: 1; }
  .layout > .channels {
    position: fixed; inset: 0 auto 0 0; z-index: 80;
    display: flex; width: min(88vw, 380px); min-height: 100dvh;
    grid-column: auto; grid-row: auto; flex-direction: column;
    border-width: 0 1px 0 0; border-radius: 0 26px 26px 0;
    transform: translateX(-105%); transition: transform .24s ease;
    box-shadow: 18px 0 50px rgba(32,29,24,.22);
  }
  .channels-open .layout > .channels { transform: translateX(0); }
  .channels .aside-head { padding-top: max(22px, env(safe-area-inset-top)); }
  .channels .list { flex: 1; max-height: none; padding-bottom: max(24px, env(safe-area-inset-bottom)); }
  .drawer-close { display: grid; position: absolute; top: 14px; right: 14px; z-index: 2; width: 38px; height: 38px; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--bg); font-size: 24px; line-height: 1; }
  .drawer-shade { display: block; position: fixed; inset: 0; z-index: 70; visibility: hidden; border: 0; background: rgba(18,16,12,.42); opacity: 0; transition: opacity .24s ease, visibility .24s; }
  .channels-open .drawer-shade { visibility: visible; opacity: 1; }
  body.channels-open { overflow: hidden; }
  .video-wrap { min-height: 0; }
  .ad-card { padding: 12px 14px; border-radius: 18px; }
  .ad-copy small { display: none; }
  .ad-action { font-size: 0; }.ad-action::after { content: '查看 ↗'; font-size: 11px; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .stat-grid article { min-height: 120px; padding: 16px; }
  .stat-grid b { font-size: 30px; }
}
