:root {
  --bg: #08090A;
  --surface: #0F1012;
  --surface-2: #15171A;
  --surface-hover: #1B1E23;
  --border: rgba(255, 255, 255, 0.075);
  --border-strong: rgba(255, 255, 255, 0.15);
  --text: #F7F8F8;
  --text-2: #9499A3;
  --text-3: #717782;
  --blue: #4C9AD6;
  --blue-soft: rgba(76, 154, 214, 0.14);
  --amber: #D9A55B;
  --amber-soft: rgba(217, 165, 91, 0.14);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --max-w: 1240px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

body.modal-open { overflow: hidden; }
.hidden { display: none !important; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

/* Auth Gate */
.auth-gate {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--bg);
}

.auth-card {
  width: 100%;
  max-width: 380px;
  padding: 40px 30px 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.55);
}

.brand-mark-lg {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
}

.auth-title {
  margin: 0;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.auth-sub {
  margin: 8px 0 26px;
  color: var(--text-2);
  font-size: 13px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-form input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: #0B0C0E;
  font-size: 15px;
  outline: none;
  transition: border-color 0.15s ease;
}

.auth-form input:focus { border-color: var(--blue); }

.auth-error {
  min-height: 20px;
  margin: 12px 0 0;
  color: #F08A8A;
  font-size: 13px;
}

.auth-foot {
  margin: 14px 0 0;
  font-size: 12px;
  color: var(--text-3);
  letter-spacing: 0.04em;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border: none;
  border-radius: 999px;
  background: var(--text);
  color: #08090A;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.1s ease;
}

.btn-primary.compact {
  height: 38px;
  padding: 0 16px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.btn-primary:hover { opacity: 0.9; }
.btn-primary:active { transform: scale(0.985); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-ghost:hover {
  color: var(--text);
  background: var(--surface-2);
  border-color: var(--border-strong);
}

.btn-val-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 34px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-2);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-val-link:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: var(--surface-2);
}

.btn-subtle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-2);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-subtle:hover {
  color: var(--text);
  background: var(--surface-2);
  border-color: var(--border-strong);
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.btn-icon svg { width: 16px; height: 16px; }
.btn-icon:hover { color: var(--text); border-color: var(--border-strong); }

/* Topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  padding-top: env(safe-area-inset-top);
  background: rgba(8, 9, 10, 0.86);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.topbar-row {
  max-width: var(--max-w);
  margin: 0 auto;
  height: 60px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
}

.brand-icon { width: 22px; height: 22px; }

.brand-name {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--text);
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-tab {
  border: none;
  background: transparent;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 400;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s ease, background 0.15s ease;
}

.nav-tab:hover { color: var(--text); }

.nav-tab.active {
  color: var(--text);
  font-weight: 500;
  background: var(--surface-2);
}

.mobile-nav {
  display: none;
  overflow-x: auto;
  padding: 0 16px 10px;
  gap: 6px;
  scrollbar-width: none;
}

.mobile-nav::-webkit-scrollbar { display: none; }

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.daily-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 12px;
  color: var(--text-2);
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.daily-pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
}

.daily-pill.done {
  border-color: rgba(76, 154, 214, 0.45);
  color: #8FC4EC;
}

.daily-pill.done .dot { background: var(--blue); }

.mini-count {
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 11px;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

/* Main Workspace */
.main-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 36px 28px 72px;
}

.view-panel {
  animation: viewIn 0.22s ease;
}

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

@media (prefers-reduced-motion: reduce) {
  .view-panel { animation: none; }
}

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-3);
  margin-bottom: 6px;
  text-transform: uppercase;
}

.page-title {
  margin: 0;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.count-muted {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 400;
  color: var(--text-3);
  margin-left: 6px;
  font-variant-numeric: tabular-nums;
}

.head-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.meta-chip {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-2);
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  font-variant-numeric: tabular-nums;
}

/* Complete Banner */
.complete-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  margin-bottom: 28px;
  border-radius: var(--radius-md);
  background: var(--blue-soft);
  border: 1px solid rgba(76, 154, 214, 0.35);
}

.complete-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
}

.complete-copy {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
}

.complete-copy strong { font-size: 14px; font-weight: 600; color: var(--text); }
.complete-copy span { font-size: 13px; color: var(--text-2); }

/* Zones on Today Page */
.zone { margin-bottom: 48px; }
.zone:last-child { margin-bottom: 0; }

.zone-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.zone-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.zone-links { display: flex; gap: 14px; }

.link-more {
  border: none;
  background: transparent;
  color: var(--text-2);
  font-size: 13px;
  cursor: pointer;
  padding: 0;
  transition: color 0.15s ease;
}

.link-more:hover { color: var(--blue); }

/* Filters & Search */
.segmented {
  display: inline-flex;
  padding: 3px;
  border-radius: 9px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.seg-btn {
  border: none;
  background: transparent;
  color: var(--text-2);
  font-size: 13px;
  padding: 4px 11px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.seg-btn.active {
  background: var(--surface-hover);
  color: var(--text);
  font-weight: 500;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 11px;
  border-radius: 9px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-3);
  min-width: 210px;
}

.search-box svg { width: 14px; height: 14px; flex-shrink: 0; }

.search-box input {
  width: 100%;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 13px;
  outline: none;
}

.filter-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 22px;
}

.filter-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  margin-bottom: 20px;
  scrollbar-width: none;
}

.filter-stack .filter-bar { margin-bottom: 0; }
.filter-bar::-webkit-scrollbar { display: none; }

.pill-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s ease;
}

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

.pill-tab.active {
  background: var(--text);
  color: #08090A;
  border-color: var(--text);
  font-weight: 600;
}

.pill-tab.active .tier-dot { box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25); }

.tier-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.tier-dot.blue { background: var(--blue); }
.tier-dot.amber { background: var(--amber); }
.tier-dot.muted { background: var(--text-3); }

.platform-bar {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.platform-bar::-webkit-scrollbar { display: none; }

.plat-pill {
  white-space: nowrap;
  height: 28px;
  padding: 0 10px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-3);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.plat-pill:hover { color: var(--text-2); background: var(--surface); }

.plat-pill.active {
  color: var(--text);
  background: var(--surface-2);
  border-color: var(--border-strong);
}

/* Gallery Grid (Aesthetics — artwork breathes first, zero noisy image overlays) */
.gallery-grid {
  display: grid;
  gap: 22px;
}

.gallery-grid.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gallery-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.gallery-card:hover {
  border-color: var(--border-strong);
  background: var(--surface-2);
  transform: translateY(-2px);
}

.gallery-frame {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #0B0D10;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.gallery-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.35s ease;
}

.gallery-card:hover .gallery-frame img { transform: scale(1.02); }

.gallery-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.meta-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: var(--text-3);
}

.meta-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.tag-kicker {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--amber);
  letter-spacing: 0.02em;
}

.tag-kicker.blue { color: var(--blue); }
.tag-kicker.neutral { color: var(--text-2); }

.gallery-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.38;
  color: var(--text);
}

.gallery-why {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.52;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-foot {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: var(--text-3);
}

.card-author {
  color: var(--text-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.state-dot-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: var(--text-2);
  flex-shrink: 0;
}

.state-dot-label.saved { color: var(--amber); }
.state-dot-label.seen { color: var(--blue); }

/* Today Radar Grid (3 compact intelligence cards) */
.radar-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.radar-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.radar-card:hover {
  border-color: var(--border-strong);
  background: var(--surface-2);
  transform: translateY(-2px);
}

.radar-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.44;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.radar-why {
  margin: 0;
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.54;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Editorial List (Industry & AI full views) */
.editorial-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.editorial-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 216px;
  gap: 20px;
  align-items: center;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.editorial-row:hover {
  border-color: var(--border-strong);
  background: var(--surface-2);
}

.editorial-copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.editorial-title {
  margin: 0;
  font-size: 16.5px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
}

.editorial-why {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.editorial-action-preview {
  margin: 2px 0 0;
  padding-left: 10px;
  border-left: 2px solid var(--blue);
  font-size: 12.5px;
  color: var(--text-2);
  line-height: 1.48;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.editorial-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #0B0D10;
  border: 1px solid var(--border);
}

.editorial-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* Featured Cinema Card on Today Page */
.featured-cinema {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.featured-cinema:hover {
  border-color: var(--border-strong);
  background: var(--surface-2);
}

.featured-cinema-copy {
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.featured-cinema-title {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.38;
}

/* Cinema Grid */
.cinema-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.cinema-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.cinema-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  background: var(--surface-2);
}

.thumb-16x9 {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0B0D10;
  overflow: hidden;
}

.thumb-16x9 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.cinema-card:hover .thumb-16x9 img,
.featured-cinema:hover .thumb-16x9 img { transform: scale(1.025); }

.duration-tag {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 2px 7px;
  border-radius: 5px;
  background: rgba(8, 9, 10, 0.86);
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.playable-dot {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 2px 8px;
  border-radius: 5px;
  background: rgba(8, 9, 10, 0.84);
  border: 1px solid rgba(76, 154, 214, 0.4);
  color: #9ACBF0;
  font-size: 11px;
}

.card-progress-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.12);
}

.card-progress-fill {
  height: 100%;
  background: var(--blue);
}

.cinema-body {
  padding: 15px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.platform-chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 5px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 11px;
  font-family: var(--mono);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 500;
  background: var(--blue-soft);
  border: 1px solid rgba(76, 154, 214, 0.35);
  color: #95C9F0;
}

.badge.subtle {
  background: var(--surface-2);
  border-color: var(--border);
  color: var(--text-2);
}

.score-badge {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--amber-soft);
  color: var(--amber);
  border: 1px solid rgba(217, 165, 91, 0.32);
  font-variant-numeric: tabular-nums;
}

.empty-state {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-3);
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  font-size: 14px;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 22px 20px calc(22px + env(safe-area-inset-bottom));
  text-align: center;
  font-size: 12px;
  color: var(--text-3);
}

/* Modals & Sheets */
.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 5, 7, 0.84);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.detail-sheet {
  position: relative;
  z-index: 1;
  width: min(1040px, 96vw);
  height: min(94dvh, 920px);
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.7);
}

.sheet-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  padding-top: max(12px, env(safe-area-inset-top));
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  flex-shrink: 0;
}

.sheet-top-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 4px 6px;
}

.btn-back svg { width: 17px; height: 17px; }

.sheet-scroll {
  overflow-y: auto;
  flex: 1;
  padding-bottom: calc(36px + env(safe-area-inset-bottom));
}

.video-stage {
  position: relative;
  background: #000;
  aspect-ratio: 16 / 9;
  width: 100%;
  max-height: 58dvh;
}

.video-stage video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
}

.visual-stage {
  position: relative;
  background: #050608;
  border-bottom: 1px solid var(--border);
  cursor: zoom-in;
  max-height: 58dvh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.visual-stage img {
  width: 100%;
  max-height: 58dvh;
  object-fit: contain;
  display: block;
}

.zoom-chip {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(8, 9, 10, 0.85);
  color: var(--text);
  font-size: 12px;
  cursor: pointer;
}

.playback-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 22px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.speed-group, .seek-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pb-label { font-size: 12px; color: var(--text-3); margin-right: 4px; }

.speed-btn {
  height: 28px;
  padding: 0 9px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-2);
  font-family: var(--mono);
  font-size: 12px;
  cursor: pointer;
}

.speed-btn.active {
  background: var(--text);
  color: #08090A;
  border-color: var(--text);
  font-weight: 600;
}

.resume-hint {
  padding: 8px 22px;
  font-size: 12px;
  color: #95C9F0;
  background: rgba(76, 154, 214, 0.1);
  border-bottom: 1px solid rgba(76, 154, 214, 0.22);
}

.detail-header {
  padding: 22px 24px 16px;
  border-bottom: 1px solid var(--border);
}

.detail-title {
  margin: 0 0 10px;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.38;
  letter-spacing: -0.01em;
}

.attribution-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
}

.author-info {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--text-2);
}

.author-label {
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--surface-2);
  color: var(--text-3);
}

.author-name { color: var(--text); font-weight: 500; }
.author-name:hover { color: var(--blue); }
.sep { color: var(--text-3); }
.meta-muted { color: var(--text-3); font-family: var(--mono); font-size: 12px; }

.source-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font-size: 12.5px;
  font-weight: 500;
  transition: all 0.15s ease;
}

.source-link:hover { border-color: var(--blue); color: #95C9F0; }

.study-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 20px;
  padding: 22px 24px;
}

.study-main, .note-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
}

.study-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.card-kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-3);
  margin-bottom: 10px;
  text-transform: uppercase;
}

.card-kicker.accent { color: var(--blue); }
.mt-lg { margin-top: 22px; }

.why-text {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text);
}

.takeaway-list {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.62;
}

.action-callout {
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 2px solid var(--blue);
  border-radius: var(--radius-md);
}

.action-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
}

.action-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.btn-toggle {
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-toggle:hover { background: var(--surface-2); }

.btn-toggle.active {
  background: var(--blue-soft);
  border-color: rgba(76, 154, 214, 0.55);
  color: #9AD0F7;
}

.btn-toggle.saved.active {
  background: var(--amber-soft);
  border-color: rgba(217, 165, 91, 0.55);
  color: #F0C47F;
}

.note-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.note-head .card-kicker { margin-bottom: 0; }
.save-status { font-size: 11.5px; color: var(--blue); }

.note-box textarea {
  width: 100%;
  resize: vertical;
  min-height: 92px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #0A0B0D;
  color: var(--text);
  font-size: 13.5px;
  line-height: 1.55;
  outline: none;
}

.note-box textarea:focus { border-color: var(--blue); }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(4, 5, 7, 0.94);
  display: grid;
  place-items: center;
  padding: 24px;
  cursor: zoom-out;
}

.lightbox img {
  max-width: 96vw;
  max-height: 92dvh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.75);
}

.lightbox-close {
  position: fixed;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

/* Drawers (Notes & Inbox) */
.drawer-sheet {
  position: relative;
  z-index: 1;
  width: min(640px, 94vw);
  max-height: 86dvh;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 32px 84px rgba(0, 0, 0, 0.7);
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
}

.drawer-actions { display: flex; align-items: center; gap: 8px; }

.drawer-stats {
  display: flex;
  gap: 12px;
  padding: 12px 22px;
  font-size: 13px;
  color: var(--text-2);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.015);
}

.drawer-stats strong { color: var(--text); font-family: var(--mono); }

.drawer-list {
  overflow-y: auto;
  padding: 16px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.note-item {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--bg);
  border: 1px solid var(--border);
}

.note-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.note-item-title {
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  color: var(--text);
}

.note-item-title:hover { color: var(--blue); }

.note-item-body {
  margin: 0;
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.55;
}

/* Inbox Form */
.inbox-form {
  padding: 16px 22px;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #0B0C0E;
}

.inbox-form input, .inbox-form select {
  height: 38px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font-size: 13.5px;
  outline: none;
}

.inbox-form input:focus, .inbox-form select:focus { border-color: var(--blue); }

.inbox-row {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr) auto;
  gap: 8px;
}

.inbox-entry {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid var(--border);
}

.inbox-url-text {
  font-size: 13px;
  color: var(--text);
  word-break: break-all;
}

.inbox-note-text {
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-2);
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 100;
  padding: 10px 18px;
  border-radius: 999px;
  background: #1C2026;
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-size: 13px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
}

/* Responsive */
@media (max-width: 1040px) {
  .desktop-only { display: none; }
  .mobile-nav { display: flex; }
  .topbar-row { padding: 0 20px; }
  .main-wrap { padding: 26px 20px 64px; }
  .radar-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cinema-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 780px) {
  .topbar-row { padding: 0 14px; height: 54px; gap: 8px; }
  .brand-name { font-size: 13px; letter-spacing: 0.1em; }
  .topbar-actions { gap: 6px; }
  .btn-ghost { height: 32px; padding: 0 9px; font-size: 12px; gap: 5px; }
  .btn-val-link { height: 32px; padding: 0 8px; font-size: 11.5px; }
  .btn-icon { width: 32px; height: 32px; }
  .hide-sm { display: none; }
  .main-wrap { padding: 20px 16px 56px; }
  .page-title { font-size: 23px; }
  .daily-pill { display: none; }
  .gallery-grid.two-col,
  .radar-grid,
  .cinema-grid,
  .featured-cinema,
  .study-grid { grid-template-columns: 1fr; }
  .editorial-row { grid-template-columns: 1fr; gap: 12px; padding: 15px; }
  .editorial-thumb { order: -1; }
  .search-box { min-width: 0; width: 100%; }
  .head-controls { width: 100%; }
  .detail-sheet { width: 100%; height: 100dvh; border-radius: 0; border: none; }
  .detail-header, .study-grid { padding: 16px; }
  .playback-bar { padding: 10px 16px; }
  .inbox-row { grid-template-columns: 1fr; }
}
