/* ---- 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 {
      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(10, 10, 28, 0.55);
      -webkit-backdrop-filter: blur(8px);
      backdrop-filter: blur(8px);
    }

    .playback-paused-badge {
      font-size: 13px;
      font-weight: 600;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      color: #f0f0f5;
      padding: 8px 16px;
      border-radius: 8px;
      border: 1px solid rgba(255, 255, 255, 0.25);
      background: rgba(0, 0, 0, 0.45);
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
    }

    .playback-start-card {
      width: min(220px, 86%);
      padding: 14px 16px;
      border-radius: 10px;
      border: 1px solid rgba(162, 155, 254, 0.45);
      background: rgba(22, 22, 42, 0.92);
      box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
    }

    .playback-start-label {
      font-size: 11px;
      color: #c4c2e8;
      text-align: center;
      margin-bottom: 10px;
    }

    .playback-start-track {
      height: 4px;
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.08);
      overflow: hidden;
    }

    .playback-start-fill {
      width: 36%;
      height: 100%;
      border-radius: 999px;
      background: linear-gradient(90deg,
          transparent,
          #a29bfe,
          #6c5ce7,
          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, #1c1c28 0%, #18181f 100%);
      border-top: 1px solid var(--border);
      padding: 10px 16px 8px;
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    .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: 4px;
      padding: 5px 8px 5px 6px;
      border: 1px solid var(--border);
      border-radius: 12px;
      background: linear-gradient(180deg, #22222e 0%, #1a1a24 100%);
      box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 1px 3px rgba(0, 0, 0, 0.2);
    }

    .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: 10px;
      min-height: 40px;
      padding: 0 20px;
      border: 1px solid rgba(20, 255, 230, 0.18);
      border-radius: 999px;
      background: linear-gradient(180deg, var(--pb-pill-grad-0) 0%, var(--pb-pill-grad-1) 100%);
      color: #f4fffd;
      font-size: 13px;
      font-weight: 600;
      letter-spacing: 0.01em;
      cursor: pointer;
      box-shadow:
        0 3px 16px rgba(8, 120, 100, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
      transition: filter 0.18s, transform 0.12s, box-shadow 0.18s;
    }

    .pb-pill:hover {
      filter: brightness(1.05);
      box-shadow:
        0 4px 20px rgba(8, 150, 120, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    }

    .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: 7px 12px;
      font-size: 11px;
      font-weight: 600;
      letter-spacing: 0.04em;
      border-radius: 8px;
      border: 1px solid var(--border);
      background: #23232f;
      color: var(--text-dim);
      cursor: pointer;
      transition: color 0.15s, border-color 0.15s, background 0.15s, box-shadow 0.15s;
    }

    .pb-scale-btn:hover {
      color: var(--accent-hover);
      border-color: rgba(16, 220, 180, 0.45);
      background: #2a2a36;
      box-shadow: 0 0 0 1px rgba(16, 220, 180, 0.08);
    }

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