/**
 * Video Detail - Studio Workspace Design System
 *
 * Dark-mode-first creator workspace.
 * Typography: Instrument Serif (display), Geist Sans (body), Geist Mono (mono)
 * Palette: Near-black backgrounds, warm amber-orange accent
 */

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  /* Typography */
  --ws-font-display: 'Instrument Serif', Georgia, serif;
  --ws-font-body: 'Geist Sans', 'Inter', system-ui, -apple-system, sans-serif;
  --ws-font-mono: 'Geist Mono', 'IBM Plex Mono', 'Courier New', monospace;

  /* Colors - Studio Workspace (dark-mode first) */
  --ws-bg: #0a0a0a;
  --ws-surface: #141414;
  --ws-surface-raised: #1c1c1c;
  --ws-border: #262626;
  --ws-border-light: #1e1e1e;
  --ws-text: #fafafa;
  --ws-text-secondary: #a1a1a1;
  --ws-text-muted: #666;
  --ws-accent: #e85d04;
  --ws-accent-muted: rgba(232, 93, 4, 0.2);
  --ws-accent-hover: #f97316;
  --ws-success: #22c55e;
  --ws-danger: #ef4444;

  /* Spacing */
  --ws-xs: 0.25rem;
  --ws-sm: 0.5rem;
  --ws-md: 1rem;
  --ws-lg: 1.5rem;
  --ws-xl: 2rem;
  --ws-2xl: 3rem;
  --ws-3xl: 4rem;

  /* Borders */
  --ws-radius-sm: 4px;
  --ws-radius-md: 8px;
  --ws-radius-lg: 12px;
  --ws-radius-pill: 100px;

  /* Transitions */
  --ws-ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ws-fast: 150ms var(--ws-ease);
  --ws-base: 250ms var(--ws-ease);
}

/* ============================================================
   BASE / RESET for video detail page
   ============================================================ */
body.video-detail-page {
  overflow-x: hidden;
  background: var(--ws-bg) !important;
}

body.video-detail-page .main-content {
  overflow: visible;
  padding: 0;
}

body.video-detail-page .main-content > .container {
  max-width: none;
  width: 100%;
  padding: 0;
  margin: 0;
}

/* Hide base navbar on this page — immersive mode */
body.video-detail-page .creative-navbar {
  background: var(--ws-bg) !important;
  border-bottom: 1px solid var(--ws-border);
  margin-bottom: 0 !important;
}

.ws-container {
  background: var(--ws-bg);
  min-height: 100vh;
  width: 100%;
  position: relative;
  padding-bottom: 80px; /* space for sticky actions */
}

/* Noise texture mixin */
.ws-hero::before,
.ws-tabs-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.025;
  pointer-events: none;
  z-index: 0;
}

/* ============================================================
   STICKY MINI-PLAYER
   ============================================================ */
.ws-miniplayer {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 52px;
  background: var(--ws-surface);
  border-bottom: 1px solid var(--ws-border);
  display: flex;
  align-items: center;
  gap: var(--ws-md);
  padding: 0 var(--ws-lg);
  z-index: 1050;
  transform: translateY(-100%);
  transition: transform 0.3s var(--ws-ease);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.ws-miniplayer.visible {
  transform: translateY(0);
}

.mp-play {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--ws-accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background var(--ws-fast);
  font-size: 0.85rem;
}

.mp-play:hover {
  background: var(--ws-accent-hover);
}

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

.mp-title {
  display: block;
  font-family: var(--ws-font-body);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ws-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mp-progress {
  height: 2px;
  background: var(--ws-border);
  border-radius: 1px;
  margin-top: 4px;
  overflow: hidden;
}

.mp-progress-bar {
  height: 100%;
  background: var(--ws-accent);
  width: 0%;
  transition: width 0.3s linear;
}

.mp-scroll-top {
  width: 32px;
  height: 32px;
  border-radius: var(--ws-radius-sm);
  border: 1px solid var(--ws-border);
  background: transparent;
  color: var(--ws-text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all var(--ws-fast);
}

.mp-scroll-top:hover {
  background: var(--ws-surface-raised);
  color: var(--ws-text);
}

/* ============================================================
   HERO ZONE
   ============================================================ */
.ws-hero {
  background: var(--ws-bg);
  position: relative;
  padding-bottom: var(--ws-xl);
}

/* Floating Nav */
.ws-hero-nav {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--ws-md) var(--ws-lg);
  z-index: 100;
  background: linear-gradient(to bottom, rgba(10,10,10,0.8) 0%, transparent 100%);
}

.ws-nav-back {
  display: flex;
  align-items: center;
  gap: var(--ws-sm);
  color: var(--ws-text-secondary);
  text-decoration: none;
  font-family: var(--ws-font-body);
  font-size: 0.85rem;
  font-weight: 500;
  padding: var(--ws-sm) var(--ws-md);
  border-radius: var(--ws-radius-md);
  transition: all var(--ws-fast);
}

.ws-nav-back:hover {
  background: rgba(255,255,255,0.08);
  color: var(--ws-text);
}

.ws-nav-actions {
  display: flex;
  gap: var(--ws-sm);
}

.ws-nav-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--ws-radius-md);
  border: 1px solid var(--ws-border);
  background: rgba(255,255,255,0.05);
  color: var(--ws-text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--ws-fast);
}

.ws-nav-btn:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--ws-text-muted);
  color: var(--ws-text);
}

/* Player */
.ws-player-wrap {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: var(--ws-3xl) var(--ws-lg) 0;
  z-index: 2;
}

.ws-player {
  width: 100%;
  max-height: 70vh;
  border-radius: var(--ws-radius-lg);
  background: black;
  display: block;
}

/* Player States */
.ws-player-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--ws-2xl);
  min-height: 350px;
  border-radius: var(--ws-radius-lg);
  background: var(--ws-surface);
  border: 1px solid var(--ws-border);
}

.ws-state-thumb {
  max-width: 100%;
  max-height: 250px;
  object-fit: contain;
  border-radius: var(--ws-radius-md);
  margin-bottom: var(--ws-lg);
}

.ws-state-thumb--dim {
  opacity: 0.5;
}

.ws-state-body {
  color: var(--ws-text);
}

.ws-state-body i {
  font-size: 2rem;
  color: var(--ws-text-muted);
  margin-bottom: var(--ws-md);
  display: block;
}

.ws-state-body h3 {
  font-family: var(--ws-font-body);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 var(--ws-sm);
}

.ws-state-body p {
  font-size: 0.85rem;
  color: var(--ws-text-secondary);
  margin: 0 0 var(--ws-lg);
}

.ws-state-label {
  display: inline-block;
  font-family: var(--ws-font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ws-text-muted);
  margin-bottom: var(--ws-md);
}

.ws-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: var(--ws-sm);
  padding: var(--ws-sm) var(--ws-lg);
  border: 1px solid var(--ws-border);
  border-radius: var(--ws-radius-md);
  color: var(--ws-text);
  text-decoration: none;
  font-family: var(--ws-font-body);
  font-size: 0.85rem;
  font-weight: 500;
  background: transparent;
  cursor: pointer;
  transition: all var(--ws-fast);
}

.ws-btn-outline:hover {
  background: var(--ws-surface-raised);
  border-color: var(--ws-text-muted);
  color: var(--ws-text);
}

.ws-btn-platform {
  display: inline-flex;
  align-items: center;
  gap: var(--ws-sm);
  padding: var(--ws-sm) var(--ws-xl);
  background: var(--ws-text);
  border: none;
  border-radius: var(--ws-radius-md);
  color: var(--ws-bg);
  text-decoration: none;
  font-family: var(--ws-font-body);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all var(--ws-fast);
}

.ws-btn-platform:hover {
  background: var(--ws-accent);
  color: white;
}

/* Processing State */
.ws-processing-ring-wrap {
  position: relative;
  width: 72px;
  height: 72px;
  margin: 0 auto var(--ws-lg);
}

.ws-processing-ring {
  position: absolute;
  inset: 0;
  border: 3px solid var(--ws-border);
  border-top-color: var(--ws-accent);
  border-radius: 50%;
  animation: ws-spin 1s linear infinite;
}

@keyframes ws-spin {
  to { transform: rotate(360deg); }
}

.ws-processing-pct {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ws-font-mono);
  font-size: 0.8rem;
  color: var(--ws-text);
}

.ws-processing-label {
  font-family: var(--ws-font-body);
  font-size: 0.9rem;
  color: var(--ws-text);
  margin: 0 0 var(--ws-sm);
}

.ws-processing-hint {
  font-size: 0.75rem;
  color: var(--ws-text-muted);
  margin: 0;
}

/* Player Badge */
.ws-player-badge {
  position: absolute;
  top: calc(var(--ws-3xl) + var(--ws-md));
  right: calc(var(--ws-lg) + var(--ws-md));
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(10,10,10,0.8);
  backdrop-filter: blur(8px);
  border-radius: var(--ws-radius-pill);
  font-family: var(--ws-font-mono);
  font-size: 0.7rem;
  color: var(--ws-text);
  z-index: 10;
}

.ws-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--ws-success);
  border-radius: 50%;
  animation: ws-pulse 2s ease-in-out infinite;
}

@keyframes ws-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Hero Metadata */
.ws-hero-meta {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--ws-xl) var(--ws-lg) 0;
  position: relative;
  z-index: 2;
}

.ws-platform-pill {
  display: inline-block;
  font-family: var(--ws-font-mono);
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--ws-accent);
  background: var(--ws-accent-muted);
  padding: 3px 10px;
  border-radius: var(--ws-radius-pill);
  margin-bottom: var(--ws-md);
}

.ws-title {
  font-family: var(--ws-font-display);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--ws-text);
  margin: 0 0 var(--ws-md);
}

.ws-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ws-md);
  align-items: center;
  margin-bottom: var(--ws-sm);
}

.ws-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--ws-font-mono);
  font-size: 0.75rem;
  color: var(--ws-text-muted);
}

.ws-meta-item i {
  font-size: 0.7rem;
}

.ws-privacy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--ws-border);
  border-radius: var(--ws-radius-sm);
  color: var(--ws-text-muted);
  cursor: pointer;
  transition: all var(--ws-fast);
}

.ws-privacy-btn:hover {
  background: rgba(255,255,255,0.12);
  color: var(--ws-text);
}

.ws-privacy-btn i {
  font-size: 0.75rem;
}

.ws-creator-link {
  font-family: var(--ws-font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ws-text-secondary);
  text-decoration: none;
  transition: color var(--ws-fast);
}

.ws-creator-link:hover {
  color: var(--ws-accent);
}

/* ============================================================
   TABBED CONTENT SECTION
   ============================================================ */
.ws-tabs-section {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: var(--ws-xl) var(--ws-lg) var(--ws-2xl);
}

/* Tab Bar */
.ws-tab-bar {
  display: flex;
  gap: 2px;
  border-bottom: 1px solid var(--ws-border);
  position: relative;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.ws-tab-bar::-webkit-scrollbar {
  display: none;
}

.ws-tab {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: var(--ws-md) var(--ws-lg);
  background: none;
  border: none;
  font-family: var(--ws-font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ws-text-muted);
  cursor: pointer;
  position: relative;
  transition: color var(--ws-fast);
  white-space: nowrap;
}

.ws-tab i {
  font-size: 0.9rem;
}

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

.ws-tab--active {
  color: var(--ws-text);
}

/* Tab indicator line */
.ws-tab-indicator {
  position: absolute;
  bottom: -1px;
  height: 2px;
  background: var(--ws-accent);
  transition: left 0.3s var(--ws-ease), width 0.3s var(--ws-ease);
  border-radius: 1px 1px 0 0;
}

/* Tab Panels */
.ws-tab-panels {
  min-height: 300px;
}

.ws-tab-panel {
  display: none;
  padding: var(--ws-xl) 0;
  animation: ws-fadeIn 0.25s ease;
}

.ws-tab-panel--active {
  display: block;
}

@keyframes ws-fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Panel Header */
.ws-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--ws-lg);
  padding-bottom: var(--ws-md);
  border-bottom: 1px solid var(--ws-border-light);
}

.ws-panel-meta {
  display: flex;
  align-items: center;
  gap: var(--ws-md);
}

.ws-panel-footer {
  margin-top: var(--ws-xl);
  padding-top: var(--ws-lg);
  border-top: 1px solid var(--ws-border-light);
}

/* Mono label */
.ws-mono-label {
  font-family: var(--ws-font-mono);
  font-size: 0.7rem;
  color: var(--ws-text-muted);
  letter-spacing: 0.05em;
}

/* Confidence pill */
.ws-confidence-pill {
  font-family: var(--ws-font-mono);
  font-size: 0.65rem;
  color: var(--ws-success);
  background: rgba(34, 197, 94, 0.1);
  padding: 2px 8px;
  border-radius: var(--ws-radius-pill);
}

/* Copy button */
.ws-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--ws-surface-raised);
  border: 1px solid var(--ws-border);
  border-radius: var(--ws-radius-md);
  font-family: var(--ws-font-body);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ws-text-secondary);
  cursor: pointer;
  transition: all var(--ws-fast);
}

.ws-copy-btn:hover {
  background: var(--ws-surface);
  border-color: var(--ws-text-muted);
  color: var(--ws-text);
}

.ws-copy-btn.copied {
  color: var(--ws-success);
  border-color: var(--ws-success);
}

/* Transcript */
.ws-transcript {
  font-family: var(--ws-font-body);
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--ws-text-secondary);
  white-space: pre-wrap;
  word-break: break-word;
}

/* Empty State */
.ws-empty-state {
  text-align: center;
  padding: var(--ws-3xl) var(--ws-xl);
}

.ws-empty-state i {
  font-size: 2rem;
  color: var(--ws-text-muted);
  margin-bottom: var(--ws-md);
  display: block;
}

.ws-empty-state p {
  font-family: var(--ws-font-body);
  font-size: 0.9rem;
  color: var(--ws-text-secondary);
  margin: 0 0 var(--ws-md);
}

.ws-empty-hint {
  display: block;
  font-family: var(--ws-font-body);
  font-size: 0.8rem;
  color: var(--ws-text-muted);
  max-width: 360px;
  margin: 0 auto;
}

.ws-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(34,197,94,0.1);
  border-radius: var(--ws-radius-pill);
  font-family: var(--ws-font-mono);
  font-size: 0.7rem;
  color: var(--ws-success);
}

/* ============================================================
   INSIGHTS TAB
   ============================================================ */
.ws-hook-block {
  margin: 0 0 var(--ws-xl);
  padding: var(--ws-lg);
  background: var(--ws-accent-muted);
  border-left: 3px solid var(--ws-accent);
  border-radius: 0 var(--ws-radius-md) var(--ws-radius-md) 0;
}

.ws-hook-strength {
  display: block;
  font-family: var(--ws-font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ws-accent);
  margin-bottom: var(--ws-sm);
}

.ws-hook-block p {
  font-family: var(--ws-font-display);
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.4;
  color: var(--ws-text);
  margin: 0 0 var(--ws-sm);
}

.ws-hook-block cite {
  font-family: var(--ws-font-mono);
  font-size: 0.7rem;
  font-style: normal;
  color: var(--ws-text-muted);
}

.ws-insight-section {
  margin-bottom: var(--ws-xl);
  padding-bottom: var(--ws-lg);
  border-bottom: 1px solid var(--ws-border-light);
}

.ws-insight-section:last-of-type {
  border-bottom: none;
}

.ws-section-label {
  font-family: var(--ws-font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ws-text-muted);
  margin: 0 0 var(--ws-md);
}

.ws-insight-text {
  font-family: var(--ws-font-body);
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--ws-text-secondary);
  margin: 0;
}

.ws-key-points {
  margin: 0;
  padding-left: 0;
  list-style: none;
  counter-reset: kp;
}

.ws-key-points li {
  position: relative;
  padding-left: var(--ws-2xl);
  margin-bottom: var(--ws-md);
  font-family: var(--ws-font-body);
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ws-text-secondary);
  counter-increment: kp;
}

.ws-key-points li::before {
  content: counter(kp);
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--ws-font-display);
  font-size: 1.2rem;
  color: var(--ws-accent);
}

.ws-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ws-sm);
}

.ws-tag-pill {
  font-family: var(--ws-font-body);
  font-size: 0.78rem;
  color: var(--ws-text-secondary);
  background: var(--ws-surface-raised);
  border: 1px solid var(--ws-border);
  padding: 4px 12px;
  border-radius: var(--ws-radius-pill);
  text-decoration: none;
  transition: all var(--ws-fast);
}

.ws-tag-pill:hover {
  background: var(--ws-accent-muted);
  border-color: var(--ws-accent);
  color: var(--ws-accent);
}

.ws-ideas-list {
  margin: 0;
  padding-left: var(--ws-lg);
  list-style: disc;
}

.ws-ideas-list li {
  margin-bottom: var(--ws-sm);
  font-family: var(--ws-font-body);
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--ws-text-secondary);
}

.ws-ideas-list li::marker {
  color: var(--ws-text-muted);
}

/* ============================================================
   CREATOR KIT TAB
   ============================================================ */
.ws-kit-section {
  margin-bottom: var(--ws-xl);
}

.ws-kit-cards {
  display: flex;
  flex-direction: column;
  gap: var(--ws-sm);
}

.ws-kit-card {
  background: var(--ws-surface);
  border: 1px solid var(--ws-border);
  border-radius: var(--ws-radius-md);
  padding: var(--ws-md) var(--ws-lg);
  position: relative;
  transition: all var(--ws-fast);
}

.ws-kit-card--copyable {
  cursor: pointer;
  padding-right: var(--ws-2xl);
}

.ws-kit-card--copyable:hover {
  border-color: var(--ws-accent);
  background: var(--ws-surface-raised);
}

.ws-kit-card-text {
  font-family: var(--ws-font-body);
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ws-text-secondary);
}

.ws-kit-card-icon {
  position: absolute;
  right: var(--ws-md);
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.85rem;
  color: var(--ws-text-muted);
  opacity: 0;
  transition: opacity var(--ws-fast);
}

.ws-kit-card--copyable:hover .ws-kit-card-icon {
  opacity: 1;
}

.ws-kit-card.copied .ws-kit-card-icon {
  opacity: 1;
  color: var(--ws-success);
}

.ws-kit-card.copied .ws-kit-card-icon::before {
  content: "\F26E"; /* bi-check */
}

/* Hook type pill */
.ws-hook-type-pill {
  display: inline-block;
  font-family: var(--ws-font-mono);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ws-accent);
  background: var(--ws-accent-muted);
  padding: 2px 8px;
  border-radius: var(--ws-radius-pill);
  margin-bottom: 6px;
}

/* Social draft platform tag */
.ws-draft-platform {
  display: inline-block;
  font-family: var(--ws-font-mono);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ws-text-muted);
  background: var(--ws-surface-raised);
  padding: 2px 8px;
  border-radius: var(--ws-radius-pill);
  margin-bottom: 6px;
}

/* Show notes */
.ws-show-notes {
  font-family: var(--ws-font-body);
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--ws-text-secondary);
  white-space: pre-wrap;
}

/* Key moments */
.ws-moments {
  display: flex;
  flex-direction: column;
  gap: var(--ws-sm);
}

.ws-moment-item {
  display: flex;
  gap: var(--ws-md);
  align-items: flex-start;
  padding: var(--ws-sm) 0;
}

.ws-moment-time {
  font-family: var(--ws-font-mono);
  font-size: 0.75rem;
  color: var(--ws-accent);
  flex-shrink: 0;
  min-width: 50px;
}

.ws-moment-text {
  font-family: var(--ws-font-body);
  font-size: 0.85rem;
  color: var(--ws-text-secondary);
  line-height: 1.4;
}

/* ============================================================
   NOTES TAB
   ============================================================ */
.ws-notes-wrap {
  background: var(--ws-surface);
  border: 1px solid var(--ws-border);
  border-radius: var(--ws-radius-lg);
  overflow: hidden;
}

.ws-notes-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--ws-md) var(--ws-lg);
  border-bottom: 1px solid var(--ws-border-light);
}

.ws-save-status {
  font-family: var(--ws-font-mono);
  font-size: 0.65rem;
  color: var(--ws-success);
  opacity: 0;
  transition: opacity var(--ws-fast);
}

.ws-save-status.visible {
  opacity: 1;
}

.ws-notes-editor {
  display: block;
  width: 100%;
  min-height: 200px;
  padding: var(--ws-lg);
  border: none;
  resize: vertical;
  font-family: var(--ws-font-body);
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--ws-text);
  background: transparent;
}

.ws-notes-editor:focus {
  outline: none;
}

.ws-notes-editor::placeholder {
  color: var(--ws-text-muted);
}

.ws-notes-hint {
  display: flex;
  align-items: center;
  gap: var(--ws-sm);
  padding: var(--ws-sm) var(--ws-lg);
  background: var(--ws-surface-raised);
  font-family: var(--ws-font-mono);
  font-size: 0.7rem;
  color: var(--ws-text-muted);
  margin: 0;
}

/* ============================================================
   CTA (Anonymous Users)
   ============================================================ */
.ws-cta-block {
  text-align: center;
  padding: var(--ws-2xl);
  background: var(--ws-surface);
  border: 1px solid var(--ws-border);
  border-radius: var(--ws-radius-lg);
}

.ws-cta-block h2 {
  font-family: var(--ws-font-display);
  font-size: 1.6rem;
  color: var(--ws-text);
  margin: 0 0 var(--ws-sm);
}

.ws-cta-block p {
  font-family: var(--ws-font-body);
  font-size: 0.95rem;
  color: var(--ws-text-secondary);
  margin: 0 0 var(--ws-xl);
}

.ws-cta-hint {
  display: block;
  margin-top: var(--ws-md);
  font-family: var(--ws-font-body);
  font-size: 0.75rem;
  color: var(--ws-text-muted);
}

/* Accent button */
.ws-btn-accent {
  display: inline-flex;
  align-items: center;
  gap: var(--ws-sm);
  padding: 10px 24px;
  background: var(--ws-accent);
  border: none;
  border-radius: var(--ws-radius-md);
  font-family: var(--ws-font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: white;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--ws-fast);
}

.ws-btn-accent:hover {
  background: var(--ws-accent-hover);
  color: white;
  transform: translateY(-1px);
}

.ws-btn-accent--lg {
  padding: 14px 32px;
  font-size: 1rem;
}

/* ============================================================
   QUICK ACTIONS BAR
   ============================================================ */
.ws-actions-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--ws-surface);
  border-top: 1px solid var(--ws-border);
  z-index: 1040;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.ws-actions-inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--ws-xs);
  padding: var(--ws-sm) var(--ws-md);
}

.ws-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 14px;
  background: none;
  border: none;
  border-radius: var(--ws-radius-md);
  font-family: var(--ws-font-body);
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--ws-text-secondary);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--ws-fast);
}

.ws-action-btn i {
  font-size: 1.1rem;
}

.ws-action-btn:hover {
  background: var(--ws-surface-raised);
  color: var(--ws-text);
}

.ws-action-btn:active {
  transform: scale(0.95);
}

/* Overflow menu */
.ws-action-overflow {
  position: relative;
}

.ws-overflow-menu {
  display: none;
  position: absolute;
  bottom: 100%;
  right: 0;
  min-width: 200px;
  background: var(--ws-surface-raised);
  border: 1px solid var(--ws-border);
  border-radius: var(--ws-radius-md);
  padding: var(--ws-sm) 0;
  margin-bottom: var(--ws-sm);
  z-index: 1060;
}

.ws-overflow-menu.open {
  display: block;
  animation: ws-fadeIn 0.15s ease;
}

.ws-overflow-item {
  display: flex;
  align-items: center;
  gap: var(--ws-sm);
  width: 100%;
  padding: var(--ws-sm) var(--ws-lg);
  background: none;
  border: none;
  font-family: var(--ws-font-body);
  font-size: 0.85rem;
  color: var(--ws-text-secondary);
  cursor: pointer;
  text-decoration: none;
  text-align: left;
  transition: all var(--ws-fast);
}

.ws-overflow-item:hover {
  background: var(--ws-surface);
  color: var(--ws-text);
}

.ws-overflow-item--danger {
  color: var(--ws-danger);
}

.ws-overflow-item--danger:hover {
  background: rgba(239, 68, 68, 0.1);
  color: var(--ws-danger);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
.ws-hero {
  animation: ws-slideUp 0.5s ease-out;
}

.ws-tabs-section {
  animation: ws-slideUp 0.5s ease-out 0.1s both;
}

@keyframes ws-slideUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .ws-hero-nav {
    padding: var(--ws-sm) var(--ws-md);
  }

  .ws-player-wrap {
    padding: var(--ws-2xl) var(--ws-sm) 0;
  }

  .ws-hero-meta {
    padding: var(--ws-lg) var(--ws-md) 0;
  }

  .ws-title {
    font-size: 1.4rem;
  }

  .ws-tabs-section {
    padding: var(--ws-lg) var(--ws-md) var(--ws-2xl);
  }

  .ws-tab {
    padding: var(--ws-sm) var(--ws-md);
    font-size: 0.8rem;
  }

  .ws-tab span {
    /* On very small screens hide label, show only icon */
  }

  .ws-actions-inner {
    gap: 0;
  }

  .ws-action-btn {
    padding: 8px 10px;
    font-size: 0.6rem;
  }
}

@media (max-width: 480px) {
  .ws-meta-row {
    gap: var(--ws-sm);
  }

  .ws-meta-item {
    font-size: 0.7rem;
  }

  .ws-tab span {
    display: none;
  }

  .ws-tab i {
    font-size: 1.1rem;
  }

  .ws-tab {
    padding: var(--ws-md);
  }
}

/* Desktop: convert bottom bar to inline bar */
@media (min-width: 900px) {
  .ws-actions-bar {
    position: static;
    background: transparent;
    border-top: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--ws-lg);
  }

  .ws-actions-inner {
    border: 1px solid var(--ws-border);
    border-radius: var(--ws-radius-lg);
    background: var(--ws-surface);
    padding: var(--ws-sm) var(--ws-md);
  }

  .ws-container {
    padding-bottom: var(--ws-2xl);
  }

  .ws-action-btn {
    flex-direction: row;
    gap: 6px;
    font-size: 0.8rem;
  }
}

/* ============================================================
   TOAST
   ============================================================ */
.ws-toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ws-surface-raised);
  color: var(--ws-text);
  border: 1px solid var(--ws-border);
  padding: 10px 20px;
  border-radius: var(--ws-radius-md);
  font-family: var(--ws-font-body);
  font-size: 0.85rem;
  z-index: 9999;
  animation: ws-toastIn 0.25s ease;
}

@keyframes ws-toastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(12px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes ws-toastOut {
  from { opacity: 1; transform: translateX(-50%) translateY(0); }
  to { opacity: 0; transform: translateX(-50%) translateY(12px); }
}

@media (min-width: 900px) {
  .ws-toast {
    bottom: 40px;
  }
}
