/* ==========================================================================
   阿七 · IP 创作者带货工坊 — Warm Editorial Atelier Design System
   ========================================================================== */

:root {
  --bg-stage: #EAE4DA;
  --bg-stage-glow: #F6F1E7;
  --bg-app: #FAF8F4;
  --bg-card: #FFFFFF;
  --bg-soft: #F3EFE7;
  --bg-soft-2: #EBE5DA;

  --ink: #171514;
  --ink-2: #4A443E;
  --ink-muted: #867E75;

  --border: rgba(23, 21, 20, 0.075);
  --border-strong: rgba(23, 21, 20, 0.14);

  --coral: #D94E34;
  --coral-dark: #BA3E27;
  --coral-soft: #FDF0EC;

  --gold: #B3833A;
  --gold-bright: #D6A85C;
  --gold-soft: #FBF4E5;

  --sage: #1E7555;
  --sage-soft: #EAF5F0;

  --shadow-card: 0 4px 16px rgba(23, 21, 20, 0.045), 0 1px 2px rgba(23, 21, 20, 0.03);
  --shadow-card-hover: 0 10px 26px rgba(23, 21, 20, 0.09);
  --shadow-phone: 0 32px 80px rgba(32, 24, 16, 0.22), 0 8px 24px rgba(32, 24, 16, 0.12), inset 0 0 0 1px rgba(255, 255, 255, 0.65);

  --font-serif: "Noto Serif SC", "Songti SC", "STSong", Georgia, serif;
  --font-sans: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg-stage);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button, input {
  font-family: inherit;
  color: inherit;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
}

img {
  display: block;
  max-width: 100%;
}

.tabular {
  font-variant-numeric: tabular-nums;
}

/* ---------- Desktop Ambient Studio Stage ---------- */
.studio-stage {
  min-height: 100dvh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 56px;
  padding: 24px 36px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 72% 65% at 22% 18%, rgba(255, 250, 240, 0.92), transparent 65%),
    radial-gradient(ellipse 58% 58% at 84% 82%, rgba(217, 78, 52, 0.08), transparent 60%),
    radial-gradient(ellipse 50% 50% at 75% 15%, rgba(179, 131, 58, 0.12), transparent 58%),
    var(--bg-stage);
}

.studio-stage::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(23, 21, 20, 0.055) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.45;
}

/* Desktop Left Companion Panel */
.studio-companion {
  position: relative;
  z-index: 2;
  width: 340px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: fadeUp 0.65s var(--ease-out) both;
}

.companion-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.companion-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #FFFFFF;
  box-shadow: 0 6px 18px rgba(179, 131, 58, 0.25);
}

.companion-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 3px rgba(217, 78, 52, 0.2);
  animation: pulseDot 2.2s infinite;
}

.companion-title {
  font-family: var(--font-serif);
  font-size: 28px;
  line-height: 1.25;
  margin: 0;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.companion-desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.72;
  color: var(--ink-2);
}

.companion-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.companion-nav-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  transition: all 0.22s var(--ease-out);
  text-align: left;
}

.companion-nav-btn:hover {
  background: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(23, 21, 20, 0.06);
}

.companion-nav-btn.is-active {
  background: var(--ink);
  color: #FAF8F4;
  border-color: var(--ink);
  box-shadow: 0 10px 22px rgba(23, 21, 20, 0.16);
}

.companion-nav-btn svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.companion-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
}

.companion-metric-val {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}

.companion-metric-label {
  font-size: 11px;
  color: var(--ink-muted);
  margin-top: 3px;
}

.companion-footnote {
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-muted);
  padding-top: 4px;
  border-top: 1px solid rgba(23, 21, 20, 0.08);
}

/* ---------- Phone Shell ---------- */
.phone-shell {
  position: relative;
  z-index: 2;
  width: 416px;
  height: min(868px, calc(100dvh - 40px));
  background: var(--bg-app);
  border-radius: 46px;
  box-shadow: var(--shadow-phone);
  border: 7px solid #1E1C1A;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: phoneReveal 0.6s var(--ease-out) both;
}

/* Status Bar */
.status-bar {
  height: 44px;
  padding: 10px 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  background: rgba(250, 248, 244, 0.9);
  backdrop-filter: blur(12px);
  flex-shrink: 0;
  position: relative;
  z-index: 20;
  transition: background 0.25s ease, color 0.25s ease;
}

.status-bar.is-dark {
  background: #171514;
  color: #FAF8F4;
}

.dynamic-island {
  position: absolute;
  left: 50%;
  top: 10px;
  transform: translateX(-50%);
  width: 96px;
  height: 24px;
  border-radius: 999px;
  background: #141312;
}

.status-icons {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* App Scroll Viewport */
.app-main {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  padding-bottom: 92px;
}

.app-main::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.view-panel {
  display: none;
  animation: panelIn 0.32s var(--ease-out) both;
}

.view-panel.is-active {
  display: block;
}

/* ---------- Shared Sticky Headers & Search ---------- */
.page-header {
  padding: 14px 18px 12px;
  background: rgba(250, 248, 244, 0.92);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 15;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.page-header.is-scrolled {
  border-bottom-color: var(--border);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.brand-avatar-wrap {
  position: relative;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}

.brand-avatar-img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold-bright);
  box-shadow: 0 4px 12px rgba(179, 131, 58, 0.22);
}

.brand-avatar-badge {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gold);
  color: #FFF;
  font-size: 9px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--bg-app);
}

.page-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.2;
}

.page-subtitle {
  margin: 3px 0 0;
  font-size: 12px;
  color: var(--ink-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.icon-pill-btn {
  height: 34px;
  padding: 0 11px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
  box-shadow: 0 2px 8px rgba(23, 21, 20, 0.04);
  transition: all 0.18s ease;
  flex-shrink: 0;
}

.icon-pill-btn:hover {
  border-color: var(--border-strong);
  color: var(--ink);
}

.icon-pill-btn .count-dot {
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--coral);
  color: #FFF;
  font-size: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Search Bar */
.search-box {
  margin-top: 12px;
  position: relative;
  display: flex;
  align-items: center;
}

.search-box svg {
  position: absolute;
  left: 13px;
  width: 15px;
  height: 15px;
  color: var(--ink-muted);
  pointer-events: none;
}

.search-input {
  width: 100%;
  height: 40px;
  padding: 0 34px 0 38px;
  border-radius: 13px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  font-size: 13px;
  color: var(--ink);
  outline: none;
  box-shadow: 0 2px 8px rgba(23, 21, 20, 0.025);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-input::placeholder {
  color: #A49B91;
}

.search-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(179, 131, 58, 0.12);
}

.search-clear {
  position: absolute;
  right: 8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--ink-muted);
  font-size: 13px;
  display: none;
  align-items: center;
  justify-content: center;
}

.search-clear.is-visible {
  display: flex;
}

/* Category Pills */
.pill-rail {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.pill-rail::-webkit-scrollbar {
  display: none;
}

.filter-pill {
  flex-shrink: 0;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  background: var(--bg-card);
  color: var(--ink-2);
  border: 1px solid var(--border);
  transition: all 0.2s var(--ease-out);
}

.filter-pill:hover {
  border-color: var(--border-strong);
}

.filter-pill.is-active {
  background: var(--ink);
  color: #FAF8F4;
  border-color: var(--ink);
  box-shadow: 0 5px 14px rgba(23, 21, 20, 0.16);
}

/* Segmented Control */
.seg-control {
  margin-top: 12px;
  padding: 4px;
  border-radius: 14px;
  background: var(--bg-soft);
  display: flex;
  gap: 4px;
}

.seg-btn {
  flex: 1;
  height: 36px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all 0.22s var(--ease-out);
}

.seg-btn.is-active {
  background: var(--bg-card);
  color: var(--ink);
  box-shadow: 0 3px 10px rgba(23, 21, 20, 0.08);
}

.seg-count {
  font-size: 11px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--ink-muted);
}

.seg-btn.is-active .seg-count {
  background: var(--gold-soft);
  color: var(--gold);
}

.seg-control-4 {
  gap: 3px;
  padding: 3px;
  overflow-x: auto;
  scrollbar-width: none;
}

.seg-control-4::-webkit-scrollbar {
  display: none;
}

.seg-control-4 .seg-btn {
  font-size: 11.5px;
  padding: 0 7px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Commission Leaderboard Banner & Cards */
.comm-rank-banner {
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at 92% 15%, rgba(214, 168, 92, 0.28), transparent 48%),
    linear-gradient(135deg, #211D1A 0%, #151311 100%);
  color: #FAF8F4;
  padding: 13px 15px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 10px 24px rgba(23, 21, 20, 0.14);
}

.comm-banner-kicker {
  font-size: 10.5px;
  font-weight: 600;
  color: #E7C278;
  letter-spacing: 0.05em;
}

.comm-banner-title {
  margin: 3px 0 0;
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  color: #FFFFFF;
}

.comm-banner-sub {
  margin: 3px 0 0;
  font-size: 11px;
  color: rgba(250, 248, 244, 0.72);
}

.comm-banner-stat {
  text-align: right;
  flex-shrink: 0;
  padding-left: 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.comm-banner-val {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 700;
  color: #F4D8A0;
  line-height: 1.15;
}

.comm-banner-lbl {
  font-size: 10px;
  color: rgba(250, 248, 244, 0.65);
  margin-top: 2px;
}

.podium-card.is-clickable {
  cursor: pointer;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s ease;
}

.podium-card.is-clickable:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
}

.podium-comm-val {
  margin-top: 5px;
  font-family: var(--font-serif);
  font-size: 16.5px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1.15;
}

.podium-card.is-first .podium-comm-val {
  font-size: 19px;
  color: var(--coral);
}

.rank-comm-row {
  background: var(--bg-card);
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  padding: 11px 13px;
  display: flex;
  align-items: center;
  gap: 11px;
  cursor: pointer;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s ease, border-color 0.2s ease;
  animation: fadeUp 0.34s var(--ease-out) both;
}

.rank-comm-row:hover {
  transform: translateY(-1.5px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(179, 131, 58, 0.28);
}

.rank-comm-sub {
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--ink-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-comm-badge {
  padding: 1px 6px;
  border-radius: 5px;
  background: var(--gold-soft);
  color: #8A6121;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
}

.rank-comm-val {
  font-family: var(--font-serif);
  font-size: 16.5px;
  font-weight: 700;
  color: var(--coral);
  line-height: 1.15;
}

.rank-comm-delta {
  font-size: 10.5px;
  color: var(--sage);
  font-weight: 600;
  margin-top: 2px;
}

/* ---------- VIEW 1: 爆款素材库 ---------- */
.content-pad {
  padding: 8px 16px 20px;
}

/* Featured Editorial Spotlight Banner */
.spotlight-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 148px;
  margin-bottom: 14px;
  box-shadow: 0 12px 28px rgba(23, 21, 20, 0.13);
  cursor: pointer;
}

.spotlight-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  transition: transform 0.6s var(--ease-out);
}

.spotlight-card:hover .spotlight-bg {
  transform: scale(1.04);
}

.spotlight-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(95deg, rgba(20, 17, 15, 0.88) 0%, rgba(20, 17, 15, 0.58) 54%, rgba(20, 17, 15, 0.18) 100%);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #FAF8F4;
}

.spotlight-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.spotlight-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(214, 168, 92, 0.24);
  border: 1px solid rgba(214, 168, 92, 0.45);
  color: #F4D8A0;
  backdrop-filter: blur(8px);
}

.spotlight-gmv {
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 700;
  color: #F8DFB0;
}

.spotlight-title {
  margin: 0;
  max-width: 78%;
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.35;
  font-weight: 700;
}

.spotlight-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: rgba(250, 248, 244, 0.8);
}

.spotlight-cta {
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--coral);
  color: #FFF;
  font-size: 11px;
  font-weight: 600;
}

/* Section meta strip */
.section-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding: 0 2px;
  font-size: 12px;
  color: var(--ink-muted);
}

.section-meta-bar strong {
  color: var(--ink);
  font-weight: 600;
}

/* Material Feed Cards */
.material-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mat-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  padding: 11px;
  display: flex;
  gap: 12px;
  cursor: pointer;
  transition: transform 0.22s var(--ease-out), box-shadow 0.22s var(--ease-out), border-color 0.22s ease;
  animation: fadeUp 0.36s var(--ease-out) both;
}

.mat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(179, 131, 58, 0.26);
}

.mat-thumb-wrap {
  position: relative;
  width: 100px;
  height: 134px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-soft);
}

.mat-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transition: transform 0.45s var(--ease-out);
}

.mat-card:hover .mat-thumb {
  transform: scale(1.06);
}

.mat-thumb-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 16, 14, 0.28) 0%, transparent 42%, rgba(18, 16, 14, 0.62) 100%);
  pointer-events: none;
}

.mat-hot-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 9.5px;
  font-weight: 600;
  color: #FFF;
  background: rgba(217, 78, 52, 0.88);
  backdrop-filter: blur(6px);
}

.mat-play-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFF;
  transition: transform 0.22s ease, background 0.22s ease;
}

.mat-card:hover .mat-play-icon {
  transform: translate(-50%, -50%) scale(1.09);
  background: rgba(217, 78, 52, 0.88);
  border-color: transparent;
}

.mat-duration {
  position: absolute;
  right: 6px;
  bottom: 6px;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(18, 16, 14, 0.68);
  color: #FAF8F4;
  font-size: 10px;
  font-weight: 600;
  backdrop-filter: blur(4px);
}

.mat-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mat-title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.38;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mat-creator-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 5px;
  font-size: 11.5px;
  color: var(--ink-muted);
}

.mini-avatar {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.mat-creator-name {
  color: var(--ink-2);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mat-metrics-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
}

.mat-gmv {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--coral);
  line-height: 1.1;
}

.mat-sales {
  font-size: 11px;
  color: var(--ink-muted);
  margin-top: 3px;
}

.sparkline-svg {
  width: 68px;
  height: 28px;
  flex-shrink: 0;
  overflow: visible;
}

.mat-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed rgba(23, 21, 20, 0.08);
}

.product-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 7px;
  background: var(--gold-soft);
  color: #8A6121;
  font-size: 11px;
  font-weight: 600;
  max-width: 158px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mat-save-btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-muted);
  background: var(--bg-soft);
  transition: all 0.18s ease;
  flex-shrink: 0;
}

.mat-save-btn.is-saved {
  color: var(--coral);
  background: var(--coral-soft);
}

/* ---------- VIEW 2: 选品带货 ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 11px;
}

.cat-tile {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 1.08 / 1;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
  transition: transform 0.24s var(--ease-out), box-shadow 0.24s ease;
  animation: fadeUp 0.36s var(--ease-out) both;
}

.cat-tile:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
}

.cat-tile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}

.cat-tile:hover .cat-tile-img {
  transform: scale(1.07);
}

.cat-tile-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 17, 15, 0.12) 0%, rgba(20, 17, 15, 0.22) 48%, rgba(20, 17, 15, 0.84) 100%);
  padding: 11px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cat-subsidy-pill {
  align-self: flex-start;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  font-size: 10px;
  font-weight: 700;
  backdrop-filter: blur(6px);
}

.cat-tile-name {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.25;
}

.cat-tile-sub {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: 3px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.85);
}

.cat-tile-sub span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cat-tile-sub span:last-child {
  flex-shrink: 0;
  white-space: nowrap;
  font-weight: 600;
}

/* Drilldown Back Bar */
.drill-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.back-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  box-shadow: 0 2px 6px rgba(23, 21, 20, 0.04);
}

.drill-cat-label {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

/* Product Cards */
.goods-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.goods-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  padding: 11px;
  display: flex;
  gap: 12px;
  align-items: center;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s ease;
  animation: fadeUp 0.34s var(--ease-out) both;
}

.goods-card:hover {
  transform: translateY(-1.5px);
  box-shadow: var(--shadow-card-hover);
}

.goods-img-wrap {
  position: relative;
  width: 86px;
  height: 86px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-soft);
}

.goods-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease-out);
}

.goods-card:hover .goods-img {
  transform: scale(1.06);
}

.goods-badge-corner {
  position: absolute;
  left: 5px;
  top: 5px;
  padding: 2px 5px;
  border-radius: 5px;
  background: rgba(23, 21, 20, 0.78);
  color: #F4D8A0;
  font-size: 9px;
  font-weight: 600;
  backdrop-filter: blur(4px);
}

.goods-info {
  flex: 1;
  min-width: 0;
}

.goods-name {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.goods-price-row {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-top: 5px;
  flex-wrap: wrap;
}

.goods-price {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}

.goods-earn {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--sage-soft);
  color: var(--sage);
}

.goods-tags-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.comm-pill {
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--gold-soft);
  color: #8C6120;
  font-size: 11px;
  font-weight: 600;
}

.goods-sales {
  font-size: 11px;
  color: var(--ink-muted);
}

.promote-btn {
  flex-shrink: 0;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: #FAF8F4;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.2s var(--ease-out);
  box-shadow: 0 4px 12px rgba(23, 21, 20, 0.14);
}

.promote-btn:hover {
  background: var(--coral);
  box-shadow: 0 6px 16px rgba(217, 78, 52, 0.28);
}

.promote-btn.is-added {
  background: var(--sage-soft);
  color: var(--sage);
  box-shadow: none;
  border: 1px solid rgba(30, 117, 85, 0.22);
}

/* ---------- VIEW 3: 排行榜 ---------- */
.podium-wrap {
  display: grid;
  grid-template-columns: 1fr 1.12fr 1fr;
  align-items: end;
  gap: 9px;
  margin: 6px 0 16px;
}

.podium-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  padding: 14px 8px 12px;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeUp 0.4s var(--ease-out) both;
}

.podium-card.is-first {
  background: linear-gradient(180deg, #FFFBF2 0%, #FFFFFF 100%);
  border-color: rgba(179, 131, 58, 0.38);
  padding-top: 18px;
  padding-bottom: 16px;
  box-shadow: 0 12px 26px rgba(179, 131, 58, 0.16);
}

.podium-crown {
  position: absolute;
  top: -10px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #FFF;
  background: linear-gradient(135deg, #CFA04E, #A37228);
  box-shadow: 0 3px 8px rgba(163, 114, 40, 0.35);
}

.podium-rank-pill {
  position: absolute;
  top: -9px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  color: #FFF;
  background: #8B857C;
}

.podium-rank-pill.is-third {
  background: #B47E59;
}

.podium-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #FFF;
  box-shadow: 0 4px 12px rgba(23, 21, 20, 0.12);
}

.podium-card.is-first .podium-avatar {
  width: 58px;
  height: 58px;
  border-color: var(--gold-bright);
}

.podium-name {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.podium-count {
  margin-top: 4px;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1.1;
}

.podium-card.is-first .podium-count {
  font-size: 23px;
  color: var(--coral);
}

.podium-unit {
  font-size: 10px;
  color: var(--ink-muted);
  margin-top: 2px;
}

/* Rank List Rows */
.rank-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rank-creator-row {
  background: var(--bg-card);
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  padding: 11px 14px;
  display: flex;
  align-items: center;
  gap: 11px;
  animation: fadeUp 0.34s var(--ease-out) both;
}

.rank-num {
  width: 24px;
  text-align: center;
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-muted);
  flex-shrink: 0;
}

.rank-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.rank-creator-mid {
  flex: 1;
  min-width: 0;
}

.rank-creator-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
}

.rank-bar-track {
  margin-top: 6px;
  height: 5px;
  border-radius: 999px;
  background: var(--bg-soft);
  overflow: hidden;
}

.rank-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold-bright), var(--coral));
}

.rank-count-col {
  text-align: right;
  flex-shrink: 0;
}

.rank-count-val {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}

.rank-count-sub {
  font-size: 10.5px;
  color: var(--sage);
  font-weight: 600;
}

/* Rank Video Cards */
.rank-video-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  padding: 10px;
  display: flex;
  gap: 11px;
  cursor: pointer;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s ease;
  animation: fadeUp 0.34s var(--ease-out) both;
}

.rank-video-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
}

.rank-video-thumb-wrap {
  position: relative;
  width: 78px;
  height: 104px;
  border-radius: 11px;
  overflow: hidden;
  flex-shrink: 0;
}

.rank-ribbon {
  position: absolute;
  left: 0;
  top: 0;
  padding: 3px 7px;
  border-bottom-right-radius: 9px;
  font-family: var(--font-serif);
  font-size: 11px;
  font-weight: 700;
  color: #FFF;
  background: rgba(23, 21, 20, 0.78);
}

.rank-ribbon.r-1 { background: linear-gradient(135deg, #D94E34, #B83A22); }
.rank-ribbon.r-2 { background: linear-gradient(135deg, #C79545, #9C6F29); }
.rank-ribbon.r-3 { background: linear-gradient(135deg, #6E655D, #4C453F); }

.rank-video-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.rank-video-title {
  margin: 0;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.38;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rank-stat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 7px;
}

.stat-chip {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--bg-soft);
  color: var(--ink-2);
}

.stat-chip.is-coral {
  background: var(--coral-soft);
  color: var(--coral);
}

.stat-chip.is-sage {
  background: var(--sage-soft);
  color: var(--sage);
}

.stat-chip.is-gold {
  background: var(--gold-soft);
  color: #8A6121;
}

/* ---------- VIEW 4: 我的 ---------- */
.me-hero {
  background:
    radial-gradient(circle at 86% 18%, rgba(214, 168, 92, 0.24), transparent 46%),
    radial-gradient(circle at 12% 92%, rgba(217, 78, 52, 0.16), transparent 48%),
    linear-gradient(155deg, #1E1B19 0%, #141211 100%);
  color: #FAF8F4;
  padding: 18px 18px 26px;
  position: relative;
}

.me-hero-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.me-avatar-ring {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  padding: 2.5px;
  background: linear-gradient(135deg, #E8C57B, #A7742B);
  flex-shrink: 0;
}

.me-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #181614;
}

.me-name {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.me-id {
  margin-top: 4px;
  font-size: 11.5px;
  color: rgba(250, 248, 244, 0.68);
  display: flex;
  align-items: center;
  gap: 5px;
}

.me-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.me-tag {
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #EFEAE1;
}

.me-tag.is-gold {
  background: rgba(214, 168, 92, 0.2);
  border-color: rgba(214, 168, 92, 0.42);
  color: #F4D8A0;
}

.me-ip-strip {
  margin-top: 16px;
  padding: 10px 12px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(214, 168, 92, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.me-ip-left {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  color: #F4E6CA;
}

.me-ip-left img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--gold-bright);
}

.me-ip-pill {
  font-size: 10.5px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(30, 117, 85, 0.3);
  color: #9EE8CB;
  border: 1px solid rgba(158, 232, 203, 0.28);
}

.me-body {
  padding: 0 16px 24px;
  margin-top: -12px;
  position: relative;
  z-index: 2;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.kpi-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  padding: 13px 14px;
  cursor: pointer;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s ease;
}

.kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
}

.kpi-label {
  font-size: 11.5px;
  color: var(--ink-muted);
}

.kpi-val {
  margin-top: 5px;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.15;
}

.kpi-card[data-accent="coral"] .kpi-val { color: var(--coral); }
.kpi-card[data-accent="gold"] .kpi-val { color: var(--gold); }

.kpi-delta {
  margin-top: 6px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--sage);
}

.menu-group {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.menu-row {
  width: 100%;
  padding: 14px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  transition: background 0.16s ease;
}

.menu-row:last-child {
  border-bottom: none;
}

.menu-row:hover {
  background: #FCFBF8;
}

.menu-left {
  display: flex;
  align-items: center;
  gap: 11px;
}

.menu-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--bg-soft);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-icon.is-coral { background: var(--coral-soft); color: var(--coral); }
.menu-icon.is-gold { background: var(--gold-soft); color: var(--gold); }
.menu-icon.is-sage { background: var(--sage-soft); color: var(--sage); }

.menu-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.menu-right {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--ink-muted);
  font-weight: 600;
}

.menu-right.is-highlight {
  color: var(--coral);
}

.me-disclaimer {
  margin-top: 16px;
  text-align: center;
  font-size: 11px;
  color: #A29A90;
}

/* ---------- Bottom Navigation ---------- */
.bottom-nav {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 76px;
  padding: 6px 10px 16px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  z-index: 30;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--ink-muted);
  font-size: 11px;
  font-weight: 600;
  position: relative;
  transition: color 0.18s ease;
}

.nav-item svg {
  width: 22px;
  height: 22px;
  transition: transform 0.22s var(--ease-out);
}

.nav-item.is-active {
  color: var(--ink);
}

.nav-item.is-active svg {
  color: var(--coral);
  transform: translateY(-1px) scale(1.06);
}

.nav-indicator {
  width: 16px;
  height: 3px;
  border-radius: 999px;
  background: transparent;
  position: absolute;
  top: -6px;
  transition: background 0.2s ease;
}

.nav-item.is-active .nav-indicator {
  background: var(--coral);
}

/* ---------- Empty State ---------- */
.empty-state {
  text-align: center;
  padding: 44px 20px;
  color: var(--ink-muted);
  font-size: 13px;
}

.empty-state strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
  margin-bottom: 6px;
}

/* ---------- Bottom Sheet Modal (Inside Phone) ---------- */
.sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 17, 15, 0.5);
  backdrop-filter: blur(4px);
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.26s ease;
  display: flex;
  align-items: flex-end;
}

.sheet-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.sheet-panel {
  width: 100%;
  max-height: 84%;
  background: var(--bg-app);
  border-top-left-radius: 26px;
  border-top-right-radius: 26px;
  padding: 10px 18px 34px;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.34s var(--ease-out);
  box-shadow: 0 -14px 40px rgba(20, 17, 15, 0.2);
}

.sheet-backdrop.is-open .sheet-panel {
  transform: translateY(0);
}

.sheet-grabber {
  width: 38px;
  height: 4px;
  border-radius: 999px;
  background: rgba(23, 21, 20, 0.16);
  margin: 0 auto 14px;
}

.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.sheet-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}

.sheet-close {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--ink-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.sheet-hero-media {
  position: relative;
  width: 100%;
  height: 210px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 14px;
}

.sheet-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
}

.sheet-media-bar {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(18, 16, 14, 0.72);
  backdrop-filter: blur(8px);
  color: #FFF;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
}

.play-progress {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  overflow: hidden;
}

.play-progress-fill {
  height: 100%;
  width: 34%;
  background: var(--gold-bright);
  border-radius: 999px;
  transition: width 0.3s ease;
}

.sheet-box {
  background: var(--bg-card);
  border-radius: 14px;
  border: 1px solid var(--border);
  padding: 13px 14px;
  margin-bottom: 12px;
}

.sheet-box-title {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.sheet-box-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink-2);
}

.link-code-box {
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--bg-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  line-height: 1.55;
  color: var(--ink);
  overflow-wrap: anywhere;
  word-break: normal;
}

.sheet-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.btn-primary {
  flex: 1;
  height: 44px;
  border-radius: 13px;
  background: var(--ink);
  color: #FAF8F4;
  font-size: 13.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.18s ease;
}

.btn-primary:hover {
  background: var(--coral);
}

.btn-secondary {
  height: 44px;
  padding: 0 16px;
  border-radius: 13px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* Toast Notification */
.toast {
  position: absolute;
  left: 50%;
  bottom: 92px;
  transform: translateX(-50%) translateY(16px);
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(23, 21, 20, 0.92);
  color: #FAF8F4;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  z-index: 80;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 10px 26px rgba(23, 21, 20, 0.25);
  transition: all 0.26s var(--ease-out);
}

.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---------- Animations ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes panelIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes phoneReveal {
  from { opacity: 0; transform: translateY(16px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.65; transform: scale(1.22); }
}

/* ---------- Responsive Rules ---------- */
@media (max-width: 1040px) {
  .studio-companion {
    display: none;
  }
  .studio-stage {
    padding: 16px;
  }
}

@media (max-width: 540px) {
  .studio-stage {
    padding: 0;
    background: var(--bg-app);
  }
  .studio-stage::before {
    display: none;
  }
  .phone-shell {
    width: 100%;
    height: 100dvh;
    border-radius: 0;
    border: none;
    box-shadow: none;
  }
  .dynamic-island {
    display: none;
  }
  .status-bar {
    height: 14px;
    padding: 0;
    visibility: hidden;
  }
}
