/* Shared shell for the landing-page hero mockups (1480x860 design canvas).
   Content is fully synthetic: no real channel brands, teams, or personal data. */
:root {
  --bg-page: #06070A;
  --bg-window: #0C0E13;
  --bg-side: #0E1016;
  --bg-raise: #14171F;
  --bg-card: #161A23;
  --hairline: rgba(255, 255, 255, 0.08);
  --hairline-faint: rgba(255, 255, 255, 0.05);
  --text: #F2F4F8;
  --text-2: #AEB4C0;
  --text-3: #7B8291;
  --accent: #3B82F6;
  --accent-deep: #2563EB;
  --accent-soft: rgba(59, 130, 246, 0.16);
  --live: #EF4444;
  --ok: #22C55E;
  --gold: #F5C044;
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 12px;
}
* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg-page);
  font-family: 'Segoe UI Variable Text', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
.page { width: 1480px; margin: 40px auto; }
.window {
  width: 1480px; height: 860px;
  background: var(--bg-window);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
svg.ic { display: block; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* Title bar */
.titlebar {
  height: 48px; flex-shrink: 0;
  display: flex; align-items: center;
  padding: 0 6px 0 14px; gap: 12px;
  background: var(--bg-window);
}
.tb-burger { width: 30px; height: 30px; border-radius: var(--r-sm); display: grid; place-items: center; color: var(--text-2); }
.app-logo {
  width: 26px; height: 26px; border-radius: 7px;
  background: linear-gradient(135deg, #1E293B, #0F172A);
  border: 1px solid var(--hairline);
  display: grid; place-items: center;
}
.app-logo::after {
  content: ""; width: 0; height: 0;
  border-left: 7px solid var(--accent);
  border-top: 4.5px solid transparent;
  border-bottom: 4.5px solid transparent;
  margin-left: 2px;
}
.app-name { font-size: 13px; font-weight: 600; letter-spacing: 0.01em; white-space: nowrap; }
.tb-search { flex: 1; display: flex; justify-content: center; }
.tb-search-inner {
  width: 500px; height: 34px;
  display: flex; align-items: center; gap: 10px;
  padding: 0 8px 0 12px;
  background: #111420;
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  color: var(--text-3); font-size: 13px;
}
.tb-search-inner .grow { flex: 1; text-align: left; }
.kbd {
  font-size: 10.5px; color: var(--text-3);
  border: 1px solid var(--hairline);
  border-radius: 4px; padding: 2px 7px;
  background: rgba(255, 255, 255, 0.03);
}
.tb-profile {
  display: flex; align-items: center; gap: 8px;
  height: 34px; padding: 0 10px 0 5px;
  background: var(--bg-raise);
  border: 1px solid var(--hairline);
  border-radius: 17px;
  font-size: 12.5px; font-weight: 600; color: var(--text);
}
.tb-profile img { width: 25px; height: 25px; border-radius: 50%; display: block; }
.tb-profile .chev { color: var(--text-3); }
.tb-controls { display: flex; align-items: center; margin-left: 4px; }
.tb-controls span { width: 42px; height: 32px; display: grid; place-items: center; color: var(--text-2); }

/* Body layout */
.appbody { flex: 1; display: flex; min-height: 0; }
.sidebar {
  width: 218px; flex-shrink: 0;
  border-right: 1px solid var(--hairline-faint);
  background: transparent;
  padding: 12px 10px;
  display: flex; flex-direction: column; gap: 2px;
}
.nav-item {
  height: 37px; border-radius: var(--r-sm);
  display: flex; align-items: center; gap: 13px;
  padding: 0 12px;
  font-size: 13px; font-weight: 500; color: var(--text-2);
  white-space: nowrap;
}
.nav-item.active { background: var(--accent-deep); color: #fff; }
.nav-sep { height: 1px; background: var(--hairline-faint); margin: 9px 6px; flex-shrink: 0; }
.nav-spacer { flex: 1; }
.content { flex: 1; min-width: 0; padding: 22px 28px 0; overflow: hidden; position: relative; }

/* Rail headers */
.rail-head { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; }
.rail-bar { width: 3.5px; height: 20px; border-radius: 2px; background: var(--live); flex-shrink: 0; }
.rail-ic {
  width: 30px; height: 30px; border-radius: var(--r-sm);
  background: var(--bg-raise); border: 1px solid var(--hairline);
  display: grid; place-items: center; color: var(--text-2);
}
.rail-title { font-size: 17px; font-weight: 700; }
.rail-count {
  min-width: 22px; height: 20px; padding: 0 7px;
  border-radius: 5px; background: var(--bg-raise);
  border: 1px solid var(--hairline);
  display: grid; place-items: center;
  font-size: 11px; font-weight: 600; color: var(--text-2);
}
.rail-sub { font-size: 12.5px; color: var(--text-3); }
.rail-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.rail-nav {
  width: 30px; height: 30px; border-radius: var(--r-sm);
  background: var(--bg-raise); border: 1px solid var(--hairline);
  display: grid; place-items: center; color: var(--text-2);
}
.rail-seeall { font-size: 12.5px; font-weight: 600; color: var(--accent); margin-left: 4px; }

/* Shared bits */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  height: 21px; padding: 0 8px;
  border-radius: 5px;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.03em;
  color: #fff;
}
.badge.live { background: var(--live); }
.badge.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.badge.live-ok { background: var(--ok); }
.badge.live-ok::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.badge.recent { background: var(--accent-deep); }
.progress { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.18); overflow: hidden; }
.progress i { display: block; height: 100%; border-radius: 2px; background: var(--gold); }
.logo-chip {
  width: 30px; height: 30px; border-radius: 7px;
  background: rgba(255, 255, 255, 0.92);
  color: #10131A;
  display: grid; place-items: center;
  font-size: 10px; font-weight: 800; letter-spacing: 0.02em;
}

/* Photo backdrops for channel/media cards */
.card-bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
}
.card-scrim {
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(180deg, rgba(7, 9, 13, 0.30), rgba(7, 9, 13, 0.42) 45%, rgba(7, 9, 13, 0.90));
}
.card-fg { position: relative; z-index: 1; }
