/* ---- Playback View ---- */
    .playback-view {
      flex: 1;
      display: none;
      flex-direction: column;
      position: relative;
      min-height: 0;
    }

    .playback-view.visible {
      display: flex;
    }

    .playback-view .stream-cell.playback-tile {
      min-height: 0;
    }

    .playback-view .stream-cell.playback-tile img,
    .playback-view .stream-cell.playback-tile video {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: contain;
      object-position: center;
      z-index: 1;
    }

    .playback-tile-shade {
      position: absolute;
      inset: 0;
      z-index: 5;
      display: none;
      align-items: center;
      justify-content: center;
      pointer-events: none;
      background: rgba(0, 0, 0, 0.42);
      -webkit-backdrop-filter: blur(6px);
      backdrop-filter: blur(6px);
    }

    .playback-tile-shade.visible {
      display: flex;
    }

    .playback-tile-shade.mode-loading {
      background: rgba(8, 8, 16, 0.58);
      -webkit-backdrop-filter: blur(8px);
      backdrop-filter: blur(8px);
    }

    .playback-paused-badge {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      font-size: var(--font-label);
      font-weight: 600;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      color: #e0e0e8;
      padding: 8px 14px;
      border-radius: var(--radius-md);
      border: 1px solid var(--border);
      background: rgba(20, 20, 28, 0.88);
      box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
    }

    @keyframes playbackSpin {
      to { transform: rotate(360deg); }
    }

    .playback-start-card {
      width: min(220px, 86%);
      padding: 14px 16px;
      border-radius: var(--radius-lg);
      border: 1px solid var(--border);
      background: rgba(20, 20, 28, 0.92);
      box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
    }

    .playback-start-label {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      font-size: var(--font-label);
      font-weight: 600;
      letter-spacing: 0.04em;
      color: var(--text-dim);
      text-align: center;
      margin-bottom: 12px;
    }

    .playback-start-label::before {
      content: '';
      width: 14px;
      height: 14px;
      border: 2px solid rgba(255, 255, 255, 0.15);
      border-top-color: rgba(180, 190, 210, 0.9);
      border-radius: 50%;
      animation: playbackSpin 0.7s linear infinite;
      flex-shrink: 0;
    }

    .playback-start-track {
      height: 3px;
      border-radius: var(--radius-sm);
      background: rgba(255, 255, 255, 0.06);
      overflow: hidden;
    }

    .playback-start-fill {
      width: 36%;
      height: 100%;
      border-radius: var(--radius-sm);
      background: linear-gradient(90deg,
          transparent,
          rgba(160, 170, 190, 0.6),
          rgba(200, 210, 225, 0.8),
          transparent);
      animation: playbackStartSlide 0.95s ease-in-out infinite;
    }

    @keyframes playbackStartSlide {
      0% {
        transform: translateX(-140%);
      }

      100% {
        transform: translateX(320%);
      }
    }

    .playback-tile-btn.secondary {
      border-color: rgba(162, 155, 254, 0.65);
      color: #dcd6ff;
      background: rgba(162, 155, 254, 0.12);
    }

    .playback-tile-btn:disabled {
      opacity: 0.45;
      cursor: not-allowed;
    }

    .playback-stream {
      flex: 1;
      background: #000;
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
    }

    .playback-stream img {
      max-width: 100%;
      max-height: 100%;
      object-fit: contain;
    }

    .playback-title {
      position: absolute;
      top: 10px;
      left: 14px;
      font-size: 13px;
      color: #ccc;
      text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    }

    .playback-close {
      position: absolute;
      top: 8px;
      right: 10px;
      width: 28px;
      height: 28px;
      background: rgba(0, 0, 0, 0.6);
      border: none;
      border-radius: 4px;
      color: #ccc;
      font-size: 18px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 10;
      transition: background 0.15s;
    }

    .playback-close:hover {
      background: rgba(231, 76, 60, 0.8);
      color: #fff;
    }

    .playback-controls {
      background: linear-gradient(180deg, #141a28 0%, #10141e 100%);
      border-top: 1px solid var(--border-subtle);
      padding: 8px 14px 6px;
      display: flex;
      flex-direction: column;
      gap: 6px;
    }

    .playback-toolbar {
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .pb-btn {
      padding: 5px 12px;
      background: var(--accent-dim);
      border: 1px solid var(--accent);
      border-radius: 4px;
      color: var(--accent);
      font-size: 12px;
      cursor: pointer;
      transition: background 0.15s;
    }

    .pb-btn:hover {
      background: var(--accent);
      color: #fff;
    }

    .pb-status {
      color: var(--text-dim);
      font-size: 11px;
    }

    .playback-chrome-row {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
      align-items: center;
      gap: 10px 16px;
      margin-bottom: 0;
    }

    .playback-chrome-slot--left {
      justify-self: start;
      display: flex;
      align-items: center;
    }

    .playback-chrome-slot--center {
      justify-self: center;
    }

    .playback-chrome-slot--right {
      justify-self: end;
      display: flex;
      align-items: center;
    }

    .pb-chrome-action-group {
      display: inline-flex;
      align-items: center;
      gap: 7px;
    }

    .playback-chrome-row .pb-pill {
      flex-shrink: 0;
    }

    .playback-chrome-row .pb-scale-btn,
    .playback-chrome-row .pb-icon-btn {
      flex-shrink: 0;
    }

    .pb-pill {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      min-height: 36px;
      padding: 0 16px;
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: 999px;
      background: linear-gradient(180deg, var(--pb-pill-grad-0) 0%, var(--pb-pill-grad-1) 100%);
      color: #f0faf6;
      font-size: var(--font-body);
      font-weight: 600;
      letter-spacing: 0.015em;
      cursor: pointer;
      box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 0 14px rgba(18, 201, 160, 0.25);
      transition: filter var(--transition-ui), transform 0.12s;
    }

    .pb-pill:hover {
      filter: brightness(1.06);
    }

    .pb-pill:active {
      transform: scale(0.99);
    }

    .pb-pill-icon {
      font-size: 14px;
      line-height: 1;
      opacity: 0.95;
    }

    .pb-pill-datetime {
      font-variant-numeric: tabular-nums;
      letter-spacing: 0.02em;
    }

    .pb-scale-btn {
      padding: 5px 10px;
      font-size: var(--font-caption);
      font-weight: 600;
      letter-spacing: 0.05em;
      border-radius: var(--radius-md);
      border: 1px solid var(--border-subtle);
      background: rgba(255, 255, 255, 0.03);
      color: var(--text-muted);
      cursor: pointer;
      transition: color var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
    }

    .pb-scale-btn:hover {
      color: var(--text);
      border-color: var(--border-strong);
      background: rgba(255, 255, 255, 0.06);
    }

    .playback-empty {
      flex: 1;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      color: var(--text-dim);
      gap: 12px;
      text-align: center;
      padding: 24px;
    }

    .playback-empty .empty-state-steps {
      margin: 4px 0 0;
      padding-left: 1.25em;
      text-align: left;
      font-size: 13px;
      line-height: 1.55;
      max-width: 400px;
    }

    .pb-icon-btn--labeled {
      width: auto;
      min-width: 0;
      height: 32px;
      padding: 0 10px 0 8px;
      gap: 6px;
      border-radius: var(--radius-md);
      border: 1px solid rgba(255, 255, 255, 0.22);
      background: rgba(255, 255, 255, 0.04);
      box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
    }

    .pb-icon-btn--labeled:hover {
      border-color: rgba(18, 201, 160, 0.5);
      background: rgba(255, 255, 255, 0.08);
      box-shadow: 0 0 0 1px rgba(18, 201, 160, 0.18);
    }

    .pb-icon-btn-label {
      font-size: var(--font-caption);
      font-weight: 600;
      letter-spacing: 0.03em;
      color: var(--text-dim);
      white-space: nowrap;
    }

    .pb-icon-btn--labeled:hover .pb-icon-btn-label {
      color: var(--text);
    }

    /* Go to / Now beside day nav — filled teal-outline secondary buttons */
    .playback-chrome-row .pb-icon-btn.pb-icon-btn--nav {
      width: auto !important;
      height: 32px !important;
      min-height: 32px !important;
      min-width: 62px !important;
      padding: 0 10px 0 8px !important;
      margin-left: 4px;
      gap: 6px;
      border: 1px solid rgba(18, 201, 160, 0.7) !important;
      background: rgba(30, 40, 55, 0.95) !important;
      color: rgba(255, 255, 255, 0.92);
      box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 2px 6px rgba(0, 0, 0, 0.35);
      transition:
        background var(--transition-ui),
        border-color var(--transition-ui),
        box-shadow var(--transition-ui),
        transform 0.1s,
        color var(--transition-ui);
    }

    .playback-chrome-row .pb-icon-btn.pb-icon-btn--nav svg {
      width: 15px;
      height: 15px;
      color: rgba(18, 201, 160, 0.95);
      flex-shrink: 0;
    }

    .playback-chrome-row .pb-icon-btn.pb-icon-btn--nav .pb-icon-btn-label {
      font-size: 12px;
      font-weight: 700;
      letter-spacing: 0.04em;
      color: rgba(255, 255, 255, 0.92);
    }

    .playback-chrome-row .pb-icon-btn.pb-icon-btn--nav:hover {
      color: #fff;
      border-color: rgba(18, 201, 160, 1);
      background: rgba(35, 52, 70, 0.98);
      box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.14),
        0 0 16px rgba(18, 201, 160, 0.35),
        0 3px 8px rgba(0, 0, 0, 0.4);
    }

    .playback-chrome-row .pb-icon-btn.pb-icon-btn--nav:hover .pb-icon-btn-label {
      color: #fff;
    }

    .playback-chrome-row .pb-icon-btn.pb-icon-btn--nav:hover svg {
      color: rgba(18, 201, 160, 1);
    }

    .playback-chrome-row .pb-icon-btn.pb-icon-btn--nav:active {
      transform: scale(0.98);
      background: rgba(25, 35, 48, 0.98);
    }

    .playback-chrome-row .pb-icon-btn.pb-icon-btn--nav:focus-visible {
      outline: none;
      box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 0 2px rgba(18, 201, 160, 0.45),
        0 2px 6px rgba(0, 0, 0, 0.35);
    }

    /* Export alone in the right corner */
    .pb-icon-btn--corner {
      height: 36px;
      min-height: 36px;
      padding: 0 12px 0 10px;
      gap: 7px;
      border: 1.5px solid rgba(255, 255, 255, 0.28);
      background: rgba(255, 255, 255, 0.06);
    }

    .pb-icon-btn--corner svg {
      width: 17px;
      height: 17px;
    }

    .pb-icon-btn--corner .pb-icon-btn-label {
      font-size: 12px;
      color: var(--text);
    }

    .pb-icon-btn--corner:hover {
      border-color: rgba(18, 201, 160, 0.55);
      background: rgba(255, 255, 255, 0.1);
    }
