/* =====================================================
   vLab Studio - iSLam OS 
   ===================================================== */

:root {
  --yt-red: #ff0000;
  --yt-red-hover: #cc0000;
  --yt-black: #0f0f0f;
  --yt-white: #ffffff;
  --yt-bg: #f9f9f9;
  --yt-surface: #ffffff;
  --yt-border: #e5e5e5;
  --yt-icon: #606060;
  --yt-meta: #606060;
  --yt-chip-bg: #f2f2f2;
  --yt-chip-active-bg: #0f0f0f;
  --yt-chip-active-text: #ffffff;
  --yt-topbar-h: 56px;
  --yt-bottomnav-h: 56px;
  --yt-chip-bar-h: 48px;
  --yt-font: 'Roboto', 'Arial', sans-serif;
  --yt-radius-sm: 4px;
  --yt-radius-md: 8px;
  --yt-radius-lg: 12px;
  --yt-radius-pill: 50px;
}

/* ==================== RESET & BASE ==================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--yt-font);
  background-color: var(--yt-bg);
  color: var(--yt-black);
  padding-top: var(--yt-topbar-h);
  padding-bottom: var(--yt-bottomnav-h);
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: var(--yt-font); }

/* ==================== TOP MASTHEAD ==================== */
.yt-masthead {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--yt-topbar-h);
  background: var(--yt-white);
  border-bottom: 1px solid var(--yt-border);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 8px;
  z-index: 1000;
}

/* Logo */
.yt-masthead-logo {
  display: flex;
  align-items: center;
  cursor: pointer;
  flex-shrink: 0;
  user-select: none;
  margin-right: 4px;
}

.yt-logo {
  display: flex;
  align-items: center;
  gap: 4px;
}

.yt-logo-icon { display: block; }

.yt-logo-country {
  font-size: 10px;
  font-weight: 500;
  color: var(--yt-icon);
  background: #f2f2f2;
  border-radius: 3px;
  padding: 1px 4px;
  margin-top: 2px;
  align-self: flex-end;
}

/* Search Box */
.yt-searchbox {
  flex: 1;
  max-width: 640px;
  display: flex;
  align-items: center;
  height: 40px;
  margin: 0 auto;
}

.yt-searchbox-input-wrap {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  border: 1px solid #ccc;
  border-right: none;
  border-radius: var(--yt-radius-pill) 0 0 var(--yt-radius-pill);
  overflow: visible;
  background: var(--yt-white);
  height: 100%;
  padding: 0 4px 0 16px;
}

.yt-searchbox-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 16px;
  color: var(--yt-black);
  background: transparent;
  height: 100%;
  min-width: 0;
}

.yt-searchbox-input::placeholder { color: #aaa; }

.yt-searchbox-clear {
  background: none;
  border: none;
  color: var(--yt-icon);
  font-size: 16px;
  padding: 4px 8px;
  display: none;
  align-items: center;
  justify-content: center;
}
.yt-searchbox-clear.visible { display: flex; }

.yt-searchbox-btn {
  height: 40px;
  width: 64px;
  background: #f8f8f8;
  border: 1px solid #ccc;
  border-left: none;
  border-radius: 0 var(--yt-radius-pill) var(--yt-radius-pill) 0;
  color: var(--yt-icon);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.1s;
}
.yt-searchbox-btn:hover { background: #ebebeb; }
.yt-searchbox-btn:focus { outline: none; }

/* Right icons */
.yt-masthead-buttons {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.yt-icon-btn {
  background: none;
  border: none;
  color: var(--yt-icon);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: background 0.1s;
  flex-shrink: 0;
}
.yt-icon-btn:hover { background: rgba(0,0,0,0.07); }
.yt-icon-btn:focus { outline: none; }

.yt-notification-btn { position: relative; }

.yt-notification-badge {
  position: absolute;
  top: 4px; right: 4px;
  background: var(--yt-red);
  color: white;
  font-size: 9px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  padding: 0 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  border: 2px solid white;
}

.yt-avatar-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.yt-avatar-initials {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--yt-red);
  color: white;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.yt-avatar-logo {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.yt-nav-avatar-logo {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

/* Mobile search toggle */
.mobile-search-back { display: none; }
.mobile-search-trigger { display: none; }

@media (max-width: 650px) {
  .yt-masthead-logo { margin-right: auto; }
  .yt-searchbox { display: none; }
  .mobile-search-trigger { display: flex !important; }

  .yt-masthead.search-active .yt-masthead-logo,
  .yt-masthead.search-active .yt-masthead-buttons { display: none; }
  .yt-masthead.search-active .mobile-search-back { display: flex; }
  .yt-masthead.search-active .yt-searchbox {
    display: flex;
    flex: 1;
    max-width: none;
  }
}

/* Search History Dropdown */
.yt-search-history-dropdown {
  display: none;
  position: fixed;
  top: var(--yt-topbar-h);
  left: 0;
  right: 0;
  background: var(--yt-white);
  z-index: 2000;
  overflow-y: auto;
  max-height: calc(100vh - var(--yt-topbar-h));
  border-top: 1px solid #e5e5e5;
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
}

/* On desktop, constrain dropdown to searchbox width */
@media (min-width: 657px) {
  .yt-search-history-dropdown {
    position: absolute;
    top: calc(100% + 1px);
    left: -16px;
    right: -65px;
    border-radius: 0 0 var(--yt-radius-md) var(--yt-radius-md);
    max-height: 70vh;
    border-top: none;
  }
}

.yt-history-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  cursor: pointer;
  transition: background 0.1s;
  font-size: 15px;
  color: #0f0f0f;
}
.yt-history-item:hover,
.yt-history-item:focus { background: #f2f2f2; outline: none; }

.yt-history-icon {
  color: #606060;
  font-size: 18px;
  flex-shrink: 0;
  width: 24px;
  text-align: center;
}

.yt-history-text {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.yt-history-fill-btn {
  background: none;
  border: none;
  padding: 4px 4px 4px 12px;
  cursor: pointer;
  color: #606060;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  opacity: 0.7;
  transform: rotate(45deg);
  transition: opacity 0.15s;
}
.yt-history-fill-btn:hover { opacity: 1; }

.yt-history-delete-btn {
  background: none;
  border: none;
  padding: 4px 4px 4px 4px;
  cursor: pointer;
  color: #606060;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  opacity: 0.7;
  transition: opacity 0.15s;
}
.yt-history-delete-btn:hover { opacity: 1; }

.yt-search-history-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px 4px;
  font-size: 13px;
  color: #606060;
  font-weight: 500;
}

.yt-search-clear-all {
  background: none;
  border: none;
  color: #065fd4;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  padding: 2px 0;
}
.yt-search-clear-all:hover { text-decoration: underline; }

/* Suggestion rows have no delete btn, just icon + text + fill arrow */
.yt-suggestion-item .yt-history-delete-btn { display: none; }

/* ── Channel suggestion rows ── */
.yt-suggestion-channel-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  cursor: pointer;
}
.yt-suggestion-channel-item:hover,
.yt-suggestion-channel-item:focus { background: #f2f2f2; outline: none; }

.yt-suggest-ch-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: #fff;
  background: #606060;
}
.yt-suggest-ch-avatar img { width: 100%; height: 100%; object-fit: cover; }

.yt-suggest-ch-meta {
  display: flex; flex-direction: column; gap: 2px; overflow: hidden;
}
.yt-suggest-ch-name {
  font-size: 14px; font-weight: 500; color: #0f0f0f;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.yt-suggest-ch-sub {
  font-size: 12px; color: #606060;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ── Section label (e.g. "Channels") in suggestion dropdown ── */
.yt-suggest-section-label {
  padding: 8px 16px 4px;
  font-size: 12px; font-weight: 600;
  color: #606060; text-transform: uppercase; letter-spacing: 0.5px;
  border-top: 1px solid #f2f2f2;
  margin-top: 4px;
}

/* ==================== CATEGORY CHIP BAR ==================== */
.yt-chip-bar {
  position: sticky;
  top: var(--yt-topbar-h);
  z-index: 900;
  background: var(--yt-bg);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  overflow-x: auto;
  border-bottom: 1px solid transparent;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.yt-chip-bar::-webkit-scrollbar { display: none; }

.yt-chip {
  flex-shrink: 0;
  padding: 6px 14px;
  border-radius: var(--yt-radius-pill);
  background: var(--yt-chip-bg);
  color: var(--yt-black);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  user-select: none;
  white-space: nowrap;
}
.yt-chip:hover { background: #e0e0e0; }
.yt-chip.active {
  background: var(--yt-chip-active-bg);
  color: var(--yt-chip-active-text);
}

/* Trending chip */
.yt-chip--trending {}
.yt-chip--trending:hover {}
.yt-chip--trending.active {}

/* Recently Uploaded chip */
.yt-chip--recent {}
.yt-chip--recent:hover {}
.yt-chip--recent.active {}

/* ==================== SECTION HEADER (history/bookmarks) ==================== */
.yt-section-header {
  padding: 16px 16px 8px;
}
.yt-section-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--yt-black);
}
.yt-section-subtitle {
  font-size: 13px;
  color: var(--yt-meta);
  margin-top: 4px;
}

/* ==================== VIDEO GRID (Home) ==================== */
.yt-video-grid {
  list-style: none;
  padding: 8px 0 12px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.yt-video-card {
  background: var(--yt-white);
  cursor: pointer;
  transition: background 0.1s;
  padding-bottom: 12px;
  border-radius: 0;
}
.yt-video-card:hover { background: #f0f0f0; }
.yt-video-card:active { background: #e8e8e8; }

/* Thumbnail */
.yt-thumb-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  overflow: hidden;
  background: #000;
}
.yt-thumb-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.yt-thumb-duration {
  position: absolute;
  bottom: 6px; right: 6px;
  background: rgba(0,0,0,0.85);
  color: white;
  font-size: 12px;
  font-weight: 500;
  padding: 2px 5px;
  border-radius: var(--yt-radius-sm);
  letter-spacing: 0.02em;
}

/* Card info row */
.yt-card-info {
  display: flex;
  gap: 12px;
  padding: 10px 12px 0;
  align-items: flex-start;
}

.yt-card-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--yt-red);
  color: white;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.yt-card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.yt-card-details { flex: 1; min-width: 0; }

.yt-card-title {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--yt-black);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 4px;
}

.yt-card-meta {
  font-size: 13px;
  color: var(--yt-meta);
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.yt-card-more-btn {
  background: none;
  border: none;
  color: var(--yt-icon);
  padding: 4px;
  font-size: 16px;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  align-self: center;
  transition: background 0.1s;
}
.yt-card-more-btn:hover { background: rgba(0,0,0,0.07); }

/* Desktop 2-column grid */
@media (min-width: 600px) {
  .yt-video-grid {
    flex-direction: row;
    flex-wrap: wrap;
    padding: 12px 16px;
    gap: 16px 16px;
  }
  .yt-video-card {
    width: calc(50% - 8px);
    border-radius: var(--yt-radius-md);
    overflow: hidden;
  }
}
@media (min-width: 900px) {
  .yt-video-grid { gap: 20px; }
  .yt-video-card { width: calc(33.333% - 14px); }
}

/* ==================== EMPTY STATE ==================== */
.yt-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  color: var(--yt-meta);
  text-align: center;
  font-size: 15px;
  line-height: 1.5;
}

/* ==================== PLAYER VIEW ==================== */
#player-view {
  display: none;
  background: var(--yt-white);
  min-height: 100vh;
}

/* Back button — inside player, top-left */
.yt-player-back {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 960;
  background: rgba(0,0,0,0.5);
  border: none;
  color: white;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  cursor: pointer;
}
.yt-player-back:hover { background: rgba(0,0,0,0.85); }
/* Hide back btn when minimized — mini-controls take over */
.yt-player-container.minimized-player .yt-player-back { display: none; }

/* Player container */
.yt-player-container {
  position: sticky;
  top: var(--yt-topbar-h);
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  background: #000;
  z-index: 900;
  transition: all 0.3s ease;
}
.yt-player-container iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Transparent overlay over YouTube's share button */
#yt-share-interceptor {
  position: absolute;
  bottom: 10%;
  left: 0;
  width: 15%;
  height: 12%;
  z-index: 950;
  cursor: pointer;
  background: transparent;
  -webkit-tap-highlight-color: transparent;
}
/* Shorts: share button is also bottom-left but slightly different position */
.yt-player-container.is-shorts #yt-share-interceptor {
  bottom: 8%;
  left: 0;
  width: 18%;
  height: 10%;
}

.yt-fullscreen-btn {
  position: absolute;
  bottom: 8px; right: 8px;
  z-index: 910;
  background: rgba(0,0,0,0.6);
  border: none;
  color: white;
  width: 32px; height: 32px;
  border-radius: var(--yt-radius-sm);
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.yt-fullscreen-btn:hover { background: rgba(0,0,0,0.9); }

/* Mini player controls (shown when minimized) */
.yt-mini-controls {
  position: absolute;
  top: 0; right: 0;
  display: none;
  gap: 2px;
  background: rgba(0,0,0,0.65);
  border-bottom-left-radius: var(--yt-radius-md);
  padding: 4px;
  z-index: 920;
}
.yt-mini-controls button {
  background: none;
  border: none;
  color: white;
  width: 28px; height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  border-radius: 4px;
}
.yt-mini-controls button:hover { background: rgba(255,255,255,0.15); }

/* Minimized player */
.yt-player-container.minimized-player {
  position: fixed;
  bottom: calc(var(--yt-bottomnav-h) + 12px);
  right: 16px;
  width: 240px;
  padding-bottom: 135px;
  height: 0;
  top: auto;
  z-index: 1010;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  border-radius: var(--yt-radius-md);
  overflow: hidden;
}
.yt-player-container.minimized-player .yt-fullscreen-btn { display: none; }
.yt-player-container.minimized-player .yt-mini-controls { display: flex; }
.yt-player-container.minimized-player + .yt-video-meta,
.yt-player-container.minimized-player + .yt-video-meta + .yt-section-divider,
.yt-player-container.minimized-player + .yt-video-meta + .yt-section-divider + .yt-up-next { display: none; }

/* Video Metadata Section */
.yt-video-meta {
  padding: 12px 16px;
}

.yt-video-title-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 6px;
}

.yt-video-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--yt-black);
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.yt-video-title.expanded {
  display: block;
  -webkit-line-clamp: unset;
}

.yt-expand-btn {
  background: none;
  border: none;
  color: var(--yt-icon);
  font-size: 14px;
  padding: 4px;
  margin-top: 2px;
  flex-shrink: 0;
  transition: transform 0.2s;
}
.yt-expand-btn.expanded { transform: rotate(180deg); }

.yt-video-stats {
  font-size: 13px;
  color: var(--yt-meta);
  margin-bottom: 12px;
  display: flex;
  gap: 6px;
}
.yt-video-stats span:not(:first-child)::before { content: ' · '; }

/* Action Pills row */
.yt-action-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 14px;
  scrollbar-width: none;
}
.yt-action-row::-webkit-scrollbar { display: none; }

.yt-action-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #f2f2f2;
  border: none;
  border-radius: var(--yt-radius-pill);
  font-size: 14px;
  font-weight: 500;
  color: var(--yt-black);
  flex-shrink: 0;
  transition: background 0.1s;
}
.yt-action-pill:hover { background: #e8e8e8; }
.yt-action-pill.active {
  background: var(--yt-black);
  color: white;
}
.yt-action-pill i { font-size: 16px; }
.yt-action-pill:last-child span { display: none; }

/* Channel info row */
.yt-channel-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--yt-border);
}

.yt-channel-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
  cursor: pointer;
}

.yt-channel-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: #909090;
  display: flex;
  align-items: center;
  justify-content: center;
}
.yt-channel-avatar img {
  width: 100%; height: 100%; object-fit: cover;
}
.yt-channel-avatar-fallback {
  color: white;
  font-size: 14px;
  font-weight: 700;
}

.yt-channel-details { min-width: 0; flex: 1; overflow: hidden; }

.yt-channel-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--yt-black);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.yt-subscriber-count {
  font-size: 12px;
  color: var(--yt-meta);
  margin-top: 1px;
}

.yt-subscribe-btn {
  background: var(--yt-black);
  color: white;
  border: none;
  padding: 9px 16px;
  border-radius: var(--yt-radius-pill);
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
  transition: background 0.15s, opacity 0.15s;
}
.yt-subscribe-btn:hover { background: #2d2d2d; }
.yt-subscribe-btn.subscribed {
  background: #f2f2f2;
  color: var(--yt-black);
}

.yt-section-divider {
  height: 8px;
  background: #f2f2f2;
  border-top: 1px solid var(--yt-border);
  border-bottom: 1px solid var(--yt-border);
}

/* ==================== UP NEXT / RECOMMENDED ==================== */
.yt-up-next { padding: 12px 0; }

.yt-up-next-title {
  font-size: 16px;
  font-weight: 700;
  padding: 0 16px 10px;
  color: var(--yt-black);
}

.yt-recommended-list {
  list-style: none;
  padding: 0;
}

.yt-rec-item {
  display: flex;
  gap: 8px;
  padding: 6px 16px;
  cursor: pointer;
  align-items: flex-start;
  transition: background 0.1s;
}
.yt-rec-item:hover { background: #f0f0f0; }

.yt-rec-thumb {
  width: 160px;
  min-width: 160px;
  position: relative;
  padding-bottom: 90px;
  height: 0;
  border-radius: var(--yt-radius-md);
  overflow: hidden;
  flex-shrink: 0;
  background: #000;
}
.yt-rec-thumb img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.yt-rec-duration {
  position: absolute;
  bottom: 4px; right: 4px;
  background: rgba(0,0,0,0.85);
  color: white;
  font-size: 11px;
  font-weight: 500;
  padding: 1px 4px;
  border-radius: 3px;
}

.yt-rec-details { flex: 1; min-width: 0; }

.yt-rec-title {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--yt-black);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 4px;
}

.yt-rec-meta {
  font-size: 12px;
  color: var(--yt-meta);
}

/* ==================== SIDE GUIDE PANEL ==================== */
.yt-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}
.yt-overlay.open { opacity: 1; visibility: visible; }

.yt-guide-panel {
  position: fixed;
  top: 0; right: 0;
  width: 280px;
  max-width: 90vw;
  height: 100%;
  background: var(--yt-white);
  z-index: 2100;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  box-shadow: -4px 0 24px rgba(0,0,0,0.12);
}
.yt-guide-panel.open { transform: translateX(0); }

.yt-guide-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px 0 20px;
  height: var(--yt-topbar-h);
  border-bottom: 1px solid var(--yt-border);
  flex-shrink: 0;
}

.yt-guide-logo {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.yt-logo-country-sm {
  font-size: 9px;
  font-weight: 500;
  color: var(--yt-icon);
  background: #f2f2f2;
  border-radius: 3px;
  padding: 1px 3px;
  margin-top: 2px;
  align-self: flex-end;
}

.yt-guide-section {
  padding: 8px 0;
}

.yt-guide-section-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--yt-black);
  padding: 8px 20px 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.yt-guide-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 20px;
  font-size: 14px;
  color: var(--yt-black);
  cursor: pointer;
  transition: background 0.1s;
  border-radius: var(--yt-radius-sm);
  text-decoration: none;
}
.yt-guide-item:hover { background: #f2f2f2; }
.yt-guide-item i { font-size: 18px; color: var(--yt-icon); width: 20px; text-align: center; }

.yt-guide-divider {
  height: 1px;
  background: var(--yt-border);
  margin: 4px 0;
}

.yt-guide-footer {
  padding: 16px 20px;
  font-size: 12px;
  color: #aaa;
  margin-top: auto;
  border-top: 1px solid var(--yt-border);
  line-height: 1.8;
}
.yt-guide-footer a { color: #606060; text-decoration: underline; }

/* ==================== NOTIFICATION FULL PAGE ==================== */
.yt-notif-page {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--yt-white);
  z-index: 2000;
  flex-direction: column;
  animation: yt-slideInRight 0.2s ease-out;
}
.yt-notif-page.open { display: flex; }

@keyframes yt-slideInRight {
  from { transform: translateX(100%); }
  to   { transform: translateX(0); }
}

/* Header */
.yt-notif-page-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 8px 0 4px;
  height: var(--yt-topbar-h);
  border-bottom: 1px solid var(--yt-border);
  background: var(--yt-white);
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 10;
}
.yt-notif-page-back,
.yt-notif-page-markread {
  background: none;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--yt-black);
  flex-shrink: 0;
  transition: background 0.12s;
}
.yt-notif-page-back:hover,
.yt-notif-page-markread:hover { background: #f0f0f0; }
.yt-notif-page-header h2 {
  flex: 1;
  font-size: 20px;
  font-weight: 700;
  color: var(--yt-black);
}

/* Scrollable body */
.yt-notif-page-body {
  flex: 1;
  overflow-y: auto;
  padding-bottom: calc(var(--yt-bottomnav-h) + 8px);
}

/* Notification list */
.yt-notif-page-list { list-style: none; }

/* Date group header (Today / Earlier) */
.yt-notif-group-header {
  padding: 14px 16px 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--yt-black);
}

/* Each notification row */
.yt-notif-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 16px;
  cursor: pointer;
  transition: background 0.1s;
  position: relative;
}
.yt-notif-row:hover { background: #f5f5f5; }
.yt-notif-row.unread { background: #fff8f8; }

/* Unread blue dot on left edge */
.yt-notif-unread-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #065fd4;
  flex-shrink: 0;
  align-self: center;
  margin-right: -4px;
}
.yt-notif-row:not(.unread) .yt-notif-unread-dot { visibility: hidden; }

/* Channel avatar */
.yt-notif-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: #e0e0e0;
}

/* Text block */
.yt-notif-text {
  flex: 1;
  min-width: 0;
}
.yt-notif-channel {
  font-size: 13px;
  font-weight: 700;
  color: var(--yt-black);
  margin-bottom: 1px;
}
.yt-notif-desc {
  font-size: 13px;
  color: var(--yt-black);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.yt-notif-time {
  font-size: 12px;
  color: var(--yt-meta);
  margin-top: 3px;
}

/* Thumbnail */
.yt-notif-thumb-wrap {
  width: 80px;
  height: 52px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
  background: #e0e0e0;
}
.yt-notif-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Custom/non-video notification icon badge */
.yt-notif-thumb-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  background: #f3f0ff;
  border-radius: 8px;
}

/* Custom notif row — slightly different bg tint */
.yt-notif-row-custom { background: #fdfcff; }
.yt-notif-row-custom:hover { background: #f5f3ff; }
.yt-notif-row-custom.unread { background: #f0edff; }

/* Message body under title */
.yt-notif-msg {
  margin-top: 3px;
  font-size: 12px;
  color: #555;
  line-height: 1.5;
  word-break: break-word;
}
.yt-notif-msg-text { white-space: pre-wrap; }
.yt-notif-readmore {
  background: none;
  border: none;
  color: #5b21b6;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  margin-left: 2px;
}
.yt-notif-readmore:hover { text-decoration: underline; }

/* Embedded link pills */
.yt-notif-links {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 5px;
}
.yt-notif-link-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 9px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 500;
  text-decoration: none;
  color: #4c1d95;
  background: #ede9fe;
  border: 1px solid #c4b5fd;
  transition: background 0.15s;
}
.yt-notif-link-pill:hover { background: #ddd6fe; }

/* Three-dot on each row */
.yt-notif-row-menu {
  background: none;
  border: none;
  color: var(--yt-icon);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  flex-shrink: 0;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.1s;
}
.yt-notif-row-menu:hover { background: #f0f0f0; }

/* Empty state */
.yt-notif-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  gap: 12px;
  cursor: default;
}
.yt-notif-empty i { font-size: 48px; color: #ccc; }
.yt-notif-empty p  { font-size: 15px; color: #999; }

/* Player minimize button — below back button, left side */
.yt-player-minimize-btn {
  position: absolute;
  top: 50px;   /* 8px top + 34px button + 8px gap */
  left: 8px;
  z-index: 920;
  background: rgba(0,0,0,0.55);
  border: none;
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s;
}
.yt-player-minimize-btn:hover { background: rgba(0,0,0,0.85); }
/* Hide minimize btn when already minimized */
.yt-player-container.minimized-player .yt-player-minimize-btn { display: none; }

/* ── Card Context Menu ─────────────────────────────────────────────────────── */
.card-context-menu {
  position: fixed;
  z-index: 9999;
  width: 280px;
  background: var(--yt-white);
  border-radius: 12px;
  box-shadow: 0 6px 28px rgba(0,0,0,0.18);
  opacity: 0;
  transform: scale(0.95) translateY(-6px);
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.card-context-menu.open {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: all;
}
.card-menu-header {
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--yt-border);
}
.card-menu-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--yt-black);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-menu-list {
  list-style: none;
  padding: 6px 0;
}
.card-menu-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 18px;
  font-size: 14px;
  color: var(--yt-black);
  cursor: pointer;
  transition: background 0.12s;
}
.card-menu-item:hover { background: #f5f5f5; }
.card-menu-item i {
  width: 20px;
  text-align: center;
  font-size: 16px;
  color: var(--yt-icon);
  flex-shrink: 0;
}
.card-menu-item span { font-weight: 500; }

/* ==================== MODALS ==================== */
.yt-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 3000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.yt-modal-overlay[style*="display: block"] { display: flex; }

.yt-modal-dialog {
  background: var(--yt-white);
  border-radius: var(--yt-radius-lg);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  animation: yt-modalIn 0.2s ease-out;
  box-shadow: 0 8px 40px rgba(0,0,0,0.25);
}

@keyframes yt-modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.yt-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 0;
}
.yt-modal-header h2 { font-size: 18px; font-weight: 700; }

.yt-modal-body { padding: 16px 20px 24px; }

.yt-modal-desc {
  font-size: 14px;
  color: var(--yt-meta);
  margin-bottom: 20px;
  line-height: 1.5;
}
.yt-modal-desc strong { color: var(--yt-black); }

.yt-form-group {
  margin-bottom: 16px;
}
.yt-form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--yt-black);
  margin-bottom: 6px;
}
.yt-input, .yt-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #ccc;
  border-radius: var(--yt-radius-sm);
  font-size: 14px;
  font-family: var(--yt-font);
  color: var(--yt-black);
  outline: none;
  transition: border-color 0.15s;
  background: var(--yt-white);
}
.yt-input:focus, .yt-textarea:focus { border-color: #1a73e8; }
.yt-textarea { resize: vertical; min-height: 80px; }

.yt-btn-primary {
  width: 100%;
  padding: 12px;
  background: var(--yt-red);
  color: white;
  border: none;
  border-radius: var(--yt-radius-pill);
  font-size: 15px;
  font-weight: 600;
  margin-top: 8px;
  transition: background 0.15s;
}
.yt-btn-primary:hover { background: var(--yt-red-hover); }

/* ==================== SHARE MODAL (bottom sheet) ==================== */
.yt-share-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 3000;
  align-items: flex-end;
}
.yt-share-overlay.open { display: flex; }

.yt-share-sheet {
  width: 100%;
  background: var(--yt-white);
  border-radius: var(--yt-radius-lg) var(--yt-radius-lg) 0 0;
  padding-bottom: calc(env(safe-area-inset-bottom) + 8px);
  animation: yt-slideUp 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  max-height: 80vh;
  overflow-y: auto;
}

@keyframes yt-slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.yt-share-handle {
  width: 40px;
  height: 4px;
  background: #ddd;
  border-radius: 2px;
  margin: 12px auto 0;
}

.yt-share-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 8px 20px;
  border-bottom: 1px solid var(--yt-border);
}
.yt-share-header h3 { font-size: 16px; font-weight: 700; }

/* ---- Share Video Preview Card ---- */
.yt-share-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #f9f9f9;
  border-bottom: 1px solid var(--yt-border);
}
.yt-share-preview-thumb-wrap {
  position: relative;
  flex-shrink: 0;
  width: 120px;
  height: 68px;
  border-radius: 8px;
  overflow: hidden;
  background: #111;
}
.yt-share-preview-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.yt-share-preview-duration {
  position: absolute;
  bottom: 4px;
  right: 4px;
  background: rgba(0,0,0,0.8);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 1px 5px;
  border-radius: 3px;
  letter-spacing: 0.3px;
}
.yt-share-preview-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.yt-share-preview-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--yt-black);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.yt-share-preview-meta {
  font-size: 11px;
  color: var(--yt-icon);
}
.yt-share-preview-url {
  font-size: 11px;
  color: #065fd4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.yt-share-apps {
  display: flex;
  gap: 4px;
  padding: 16px 12px;
  overflow-x: auto;
  scrollbar-width: none;
}
.yt-share-apps::-webkit-scrollbar { display: none; }

.yt-share-app-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px;
  text-decoration: none;
  color: var(--yt-black);
  border-radius: var(--yt-radius-md);
  transition: background 0.1s;
  flex-shrink: 0;
  width: 72px;
}
.yt-share-app-item:hover { background: #f2f2f2; }
.yt-share-app-icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: white;
}
.yt-share-app-item span { font-size: 12px; color: var(--yt-black); text-align: center; }

.yt-share-app-item.email .yt-share-app-icon { background: #ea4335; }
.yt-share-app-item.whatsapp .yt-share-app-icon { background: #25d366; }
.yt-share-app-item.telegram .yt-share-app-icon { background: #229ed9; }
.yt-share-app-item.facebook .yt-share-app-icon { background: #1877f2; }
.yt-share-app-item.messages .yt-share-app-icon { background: #34b7f1; }
.yt-share-app-item.more .yt-share-app-icon { background: #f2f2f2; color: var(--yt-black); }

.yt-share-actions {
  list-style: none;
  border-top: 1px solid var(--yt-border);
}

.yt-share-action-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  cursor: pointer;
  transition: background 0.1s;
  font-size: 15px;
}
.yt-share-action-item:hover { background: #f2f2f2; }
.yt-share-action-item i {
  width: 24px;
  text-align: center;
  font-size: 18px;
  color: var(--yt-icon);
}

/* ==================== BOTTOM NAV ==================== */
.yt-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--yt-bottomnav-h);
  background: var(--yt-white);
  border-top: 1px solid var(--yt-border);
  display: flex;
  align-items: stretch;
  z-index: 1500;
}

.yt-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  text-decoration: none;
  color: var(--yt-icon);
  font-size: 10px;
  font-weight: 500;
  padding: 6px 0;
  transition: color 0.15s;
  position: relative;
}
.yt-nav-item:hover { color: var(--yt-black); }
.yt-nav-item.active { color: var(--yt-black); }

.yt-nav-icon {
  font-size: 22px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.yt-nav-label { font-size: 10px; line-height: 1; }

/* Active underline indicator */
.yt-nav-item.active::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 24px; height: 2px;
  background: var(--yt-black);
  border-radius: 0 0 2px 2px;
}

.yt-nav-avatar {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: transparent;
  color: white;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.yt-nav-item.active .yt-nav-avatar { box-shadow: 0 0 0 2px var(--yt-black); }

.yt-nav-create .yt-nav-icon { font-size: 26px; }
.yt-nav-create .yt-nav-label { display: none; }

/* ==================== TOOLTIP ==================== */
.yt-tooltip-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  color: #1a73e8;
  margin-left: 6px;
}

.yt-tooltip-box {
  position: absolute;
  bottom: 130%;
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: white;
  font-size: 13px;
  padding: 8px 12px;
  border-radius: var(--yt-radius-sm);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
  z-index: 5000;
  pointer-events: none;
}
.yt-tooltip-box::after {
  content: '';
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #333;
}
.yt-tooltip-wrap.show-tooltip .yt-tooltip-box,
.yt-tooltip-wrap:hover .yt-tooltip-box {
  opacity: 1;
  visibility: visible;
}

/* ==================== ARTICLE/WEBVIEW ==================== */
#article-view {
  position: fixed;
  top: var(--yt-topbar-h);
  bottom: var(--yt-bottomnav-h);
  left: 0; right: 0;
  z-index: 800;
  display: none;
}
#article-iframe { width: 100%; height: 100%; border: none; }

/* ==================== SCROLLBAR ==================== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #999; }

/* ==================== ANIMATIONS ==================== */
@keyframes yt-fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ==================== DESKTOP ADJUSTMENTS ==================== */
@media (min-width: 900px) {
  .yt-bottom-nav { display: none; }
  body {
    padding-bottom: 0;
    padding-left: 72px;
  }

  /* Permanent sidebar on desktop */
  .yt-guide-panel {
    position: fixed;
    left: 0; right: auto;
    width: 240px;
    transform: translateX(-100%);
    box-shadow: none;
    border-right: 1px solid var(--yt-border);
  }
  .yt-guide-panel.open {
    transform: translateX(0);
  }
}

/* ===================== MARK-ALL-READ CELEBRATION ALERT ===================== */
.notif-markread-alert {
  position: absolute;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.notif-markread-alert.show {
  opacity: 1;
  pointer-events: auto;
}
.notif-markread-alert-box {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  background: #fff;
  border-radius: 28px;
  padding: 44px 48px 36px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.14), 0 4px 16px rgba(0,0,0,0.08);
  overflow: hidden;
  transform: scale(0.82) translateY(20px);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.notif-markread-alert.show .notif-markread-alert-box {
  transform: scale(1) translateY(0);
}

/* Rings burst */
.notif-markread-burst {
  position: relative;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.notif-markread-rings {
  position: absolute;
  inset: 0;
}
.notif-markread-rings span {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid #065fd4;
  opacity: 0;
  animation: none;
}
.notif-markread-alert.show .notif-markread-rings span:nth-child(1) {
  animation: notifRingPulse 1.2s ease-out 0.1s both;
}
.notif-markread-alert.show .notif-markread-rings span:nth-child(2) {
  animation: notifRingPulse 1.2s ease-out 0.3s both;
}
.notif-markread-alert.show .notif-markread-rings span:nth-child(3) {
  animation: notifRingPulse 1.2s ease-out 0.5s both;
}
@keyframes notifRingPulse {
  0%   { transform: scale(0.6); opacity: 0.9; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* Icon circle */
.notif-markread-icon-wrap {
  position: relative;
  z-index: 2;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #065fd4 0%, #0ea5e9 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 30px;
  box-shadow: 0 8px 24px rgba(6,95,212,0.35);
  transform: scale(0);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.05s;
}
.notif-markread-alert.show .notif-markread-icon-wrap {
  transform: scale(1);
}

/* Text */
.notif-markread-title {
  font-size: 22px;
  font-weight: 700;
  color: #0f0f0f;
  margin: 0;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease 0.25s, transform 0.3s ease 0.25s;
}
.notif-markread-alert.show .notif-markread-title {
  opacity: 1;
  transform: translateY(0);
}
.notif-markread-sub {
  font-size: 14px;
  color: #606060;
  margin: 0;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease 0.35s, transform 0.3s ease 0.35s;
}
.notif-markread-alert.show .notif-markread-sub {
  opacity: 1;
  transform: translateY(0);
}

/* Confetti particles */
.notif-markread-confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  border-radius: 28px;
}
.notif-confetti-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  opacity: 0;
}
.notif-markread-alert.show .notif-confetti-dot {
  animation: notifConfettiFall linear both;
}
@keyframes notifConfettiFall {
  0%   { transform: translateY(-10px) rotate(0deg);   opacity: 1; }
  80%  { opacity: 1; }
  100% { transform: translateY(220px) rotate(540deg); opacity: 0; }
}

/* ===================== MARK-ALL-READ CONFIRMATION DIALOG ===================== */
.notif-confirm-overlay {
  position: absolute;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(15, 15, 15, 0);
  pointer-events: none;
  transition: background 0.3s ease;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.notif-confirm-overlay.show {
  background: rgba(15, 15, 15, 0.55);
  pointer-events: auto;
}

/* Sheet slides up from bottom */
.notif-confirm-box {
  width: 100%;
  max-width: 480px;
  background: #fff;
  border-radius: 28px 28px 0 0;
  padding: 12px 24px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transform: translateY(110%);
  transition: transform 0.38s cubic-bezier(0.34, 1.30, 0.64, 1);
  will-change: transform;
  position: relative;
  overflow: hidden;
}
.notif-confirm-overlay.show .notif-confirm-box {
  transform: translateY(0);
}

/* Drag handle pill */
.notif-confirm-box::before {
  content: '';
  display: block;
  width: 40px;
  height: 4px;
  border-radius: 2px;
  background: #e0e0e0;
  margin-bottom: 6px;
  flex-shrink: 0;
}

/* Animated background gradient sweep */
.notif-confirm-box::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(234,88,12,0.05) 0%, rgba(251,146,60,0.04) 50%, transparent 70%);
  pointer-events: none;
}

/* Icon */
.notif-confirm-icon-wrap {
  position: relative;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
}
.notif-confirm-icon-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(234,88,12,0.25);
  opacity: 0;
}
.notif-confirm-overlay.show .notif-confirm-icon-ring {
  animation: confirmRingExpand 1.6s ease-out 0.2s infinite;
}
.notif-confirm-overlay.show .notif-confirm-icon-ring--2 {
  animation: confirmRingExpand 1.6s ease-out 0.7s infinite;
}
@keyframes confirmRingExpand {
  0%   { transform: scale(0.7); opacity: 0.7; }
  100% { transform: scale(1.9); opacity: 0; }
}
.notif-confirm-icon {
  position: relative;
  z-index: 2;
  font-size: 28px;
  color: #fff;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ea580c, #fb923c);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(234,88,12,0.35);
  transform: scale(0);
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1) 0.1s;
}
.notif-confirm-overlay.show .notif-confirm-icon {
  transform: scale(1);
}

/* Title */
.notif-confirm-title {
  font-size: 20px;
  font-weight: 700;
  color: #0f0f0f;
  margin: 0;
  text-align: center;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.28s ease 0.18s, transform 0.28s ease 0.18s;
}
.notif-confirm-overlay.show .notif-confirm-title {
  opacity: 1;
  transform: translateY(0);
}

/* Description */
.notif-confirm-desc {
  font-size: 14px;
  color: #606060;
  text-align: center;
  line-height: 1.6;
  margin: 0;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.28s ease 0.24s, transform 0.28s ease 0.24s;
}
.notif-confirm-overlay.show .notif-confirm-desc {
  opacity: 1;
  transform: translateY(0);
}
.notif-confirm-desc strong {
  color: #ea580c;
  font-weight: 700;
}

/* Warning strip */
.notif-confirm-warning {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 12.5px;
  color: #9a3412;
  width: 100%;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.28s ease 0.30s, transform 0.28s ease 0.30s;
}
.notif-confirm-overlay.show .notif-confirm-warning {
  opacity: 1;
  transform: translateY(0);
}
.notif-confirm-warning i {
  color: #ea580c;
  font-size: 14px;
  flex-shrink: 0;
}

/* Buttons */
.notif-confirm-actions {
  display: flex;
  gap: 10px;
  width: 100%;
  margin-top: 4px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.28s ease 0.36s, transform 0.28s ease 0.36s;
}
.notif-confirm-overlay.show .notif-confirm-actions {
  opacity: 1;
  transform: translateY(0);
}
.notif-confirm-btn {
  flex: 1;
  padding: 14px 10px;
  border-radius: 14px;
  border: none;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: transform 0.12s ease, opacity 0.12s ease;
  -webkit-tap-highlight-color: transparent;
}
.notif-confirm-btn:active { transform: scale(0.96); opacity: 0.85; }
.notif-confirm-cancel {
  background: #f2f2f2;
  color: #0f0f0f;
}
.notif-confirm-cancel:hover { background: #e8e8e8; }
.notif-confirm-ok {
  background: linear-gradient(135deg, #ea580c, #f97316);
  color: #fff;
  box-shadow: 0 4px 16px rgba(234,88,12,0.30);
}
.notif-confirm-ok:hover { opacity: 0.9; }

#playlist-items label:hover { outline: 1px solid var(--accent); }
#playlist-items::-webkit-scrollbar { width: 4px; }
#playlist-items::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

/* =====================================================
   vLab Studio — MySQL Edition additions
   ===================================================== */

/* Skeleton loading animation */
.skeleton {
  background: linear-gradient(90deg, #e8e8e8 25%, #f5f5f5 50%, #e8e8e8 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.3s infinite ease-in-out;
  border-radius: 4px;
}
@media (prefers-color-scheme: dark) {
  .skeleton {
    background: linear-gradient(90deg, #2a2a2a 25%, #3a3a3a 50%, #2a2a2a 75%);
    background-size: 200% 100%;
  }
}
@keyframes skeleton-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Skeleton card sizing */
.yt-video-card .yt-thumb-wrap.skeleton {
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  width: 100%;
  height: auto;
}

/* Infinite scroll load spinner */
#home-load-spinner {
  text-align: center;
  padding: 20px;
  color: #606060;
  font-size: 13px;
}

/* Search history divider */
.sh-divider {
  height: 1px;
  background: #e0e0e0;
  margin: 4px 0;
}

/* =====================================================================
   RESTORED FROM V1: sh-* search history aliases + missing notification
   styles, confetti animation, and share modal preview card fixes
   ===================================================================== */

/* sh-* classes alias the yt-history-* styles for the new dropdown markup */
.sh-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px 4px;
  font-size: 12px;
  color: #606060;
  font-weight: 500;
}
.sh-clear-all {
  background: none;
  border: none;
  color: #065fd4;
  font-size: 12px;
  cursor: pointer;
  padding: 2px 4px;
}
.sh-clear-all:hover { text-decoration: underline; }

.sh-item {
  display: flex;
  align-items: center;
  padding: 0 4px 0 0;
}
.sh-fill {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  background: none;
  border: none;
  padding: 10px 12px;
  text-align: left;
  cursor: pointer;
  font-size: 14px;
  color: #0f0f0f;
  min-width: 0;
}
.sh-fill:hover { background: #f2f2f2; }
.sh-icon {
  color: #606060;
  font-size: 13px;
  flex-shrink: 0;
  width: 16px;
  text-align: center;
}
.sh-text {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sh-del {
  background: none;
  border: none;
  color: #606060;
  padding: 8px 10px;
  cursor: pointer;
  border-radius: 50%;
  font-size: 12px;
  flex-shrink: 0;
}
.sh-del:hover { background: #f0f0f0; color: #333; }

/* Notification confetti dot animation (restored from V1) */
.notif-confetti-dot {
  position: absolute;
  pointer-events: none;
  animation: confetti-fall linear forwards;
}
@keyframes confetti-fall {
  0%   { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(80px) rotate(360deg); opacity: 0; }
}

/* Notification confirm overlay show state (V2 uses display:flex, V1 uses .show class) */
.notif-confirm-overlay.show {
  display: flex !important;
}

/* yt-notif-item styles (V2 JS renders these — keep alongside yt-notif-row) */
.yt-notif-item {
  display: flex;
  align-items: flex-start;
  padding: 12px 16px;
  gap: 12px;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
  position: relative;
}
.yt-notif-item:hover { background: #f5f5f5; }
.yt-notif-item.read { opacity: 0.65; }
.yt-notif-item.system-notif { cursor: default; }
.yt-notif-item .yt-notif-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ff0000;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 14px;
}
.yt-notif-item .yt-notif-thumb {
  width: 80px;
  height: 45px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
}
.yt-notif-item .yt-notif-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.yt-notif-item .yt-notif-body { flex: 1; min-width: 0; }
.yt-notif-item .yt-notif-text { font-size: 13px; color: #0f0f0f; line-height: 1.4; margin: 0 0 4px; }
.yt-notif-item .yt-notif-time { font-size: 11px; color: #606060; }
.yt-notif-dot {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #065fd4;
  flex-shrink: 0;
}

/* ── AI Summary Block ───────────────────────────────────────────────── */
.yt-ai-summary {
  margin: 12px 12px 0;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border: 1px solid rgba(255, 107, 53, 0.25);
  border-radius: 12px;
  overflow: hidden;
}
.yt-ai-summary-header {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px 8px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.yt-ai-icon { flex-shrink: 0; }
.yt-ai-summary-label {
  font-size: 12px;
  font-weight: 700;
  color: #ff6b35;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  flex: 1;
}
.yt-ai-summary-badge {
  font-size: 10px;
  font-weight: 600;
  color: #fff;
  background: rgba(255,107,53,0.3);
  border: 1px solid rgba(255,107,53,0.5);
  border-radius: 4px;
  padding: 1px 6px;
  letter-spacing: 0.3px;
}
.yt-ai-summary-body {
  padding: 10px 14px 14px;
}
.yt-ai-summary-content {
  font-size: 13px;
  line-height: 1.6;
  color: #d0d0d0;
  margin: 0;
}
.yt-ai-summary-error {
  font-size: 12px;
  color: #888;
  margin: 0;
  font-style: italic;
}
/* Skeleton loader */
.yt-ai-summary-skeleton {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.yt-skeleton-line {
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(255,255,255,0.06) 25%, rgba(255,255,255,0.12) 50%, rgba(255,255,255,0.06) 75%);
  background-size: 200% 100%;
  animation: yt-skeleton-shimmer 1.4s infinite;
}
@keyframes yt-skeleton-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}


/* ============================================================
   vLab Ask Panel — YouTube-style summary (no chat)
   ============================================================ */

/* ══ ASK PANEL — matches YouTube exactly ══ */
.vl-ask-panel {
  margin: 10px 12px 4px;
}

/* The card wrapper */
.vl-ask-bar {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 12px 14px 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  cursor: pointer;
  user-select: none;
}
.vl-ask-bar:active { background: #f5f5f5; }

/* Row 1: "Ask" label left, ···● dots right */
.vl-ask-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.vl-ask-top-label {
  font-size: 14px;
  font-weight: 400;
  color: #0f0f0f;
  font-family: var(--yt-font);
}
.vl-ask-dots-indicator {
  display: flex;
  align-items: center;
  gap: 4px;
}
.vl-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #c8c8c8;
  display: inline-block;
}
.vl-dot-active { background: #0f0f0f; }

/* Row 2: icon+text on left, chip on right — single flex row */
.vl-ask-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.vl-ask-bottom-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}
.vl-ask-spark-icon {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
  color: #0f0f0f;
}
.vl-ask-bar-sub {
  font-size: 13px;
  font-weight: 400;
  color: #606060;
  font-family: var(--yt-font);
  line-height: 1.4;
}
/* ⚝ icon inside the bottom sheet body */
.vl-sheet-spark-icon {
  display: inline-block;
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
  color: #0f0f0f;
  margin-bottom: 8px;
}
.vl-ask-bar-sub {
  font-size: 13.5px;
  font-weight: 400;
  color: #0f0f0f;
  font-family: var(--yt-font);
  line-height: 1.4;
  word-break: keep-all;
  overflow-wrap: normal;
  white-space: normal;
}
.vl-ask-chip {
  flex-shrink: 0;
  background: #e8e8e8;
  border: none;
  color: #0f0f0f;
  border-radius: 50px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 400;
  cursor: pointer;
  white-space: nowrap;
  font-family: var(--yt-font);
  transition: background 0.13s;
}
.vl-ask-chip:active { background: #d0d0d0; }

/* hide legacy elements */
.vl-ask-bar-text,
.vl-ask-bar-label-wrap,
.vl-ask-bar-divider,
.vl-ask-bar-left,
.vl-ask-bar-chips { display: none; }

/* ── Overlay ── */
.vl-ask-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 8000;
}
.vl-ask-overlay.open { display: block; }

/* ── Bottom sheet ── */
.vl-ask-sheet {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 8001;
  background: #fff;
  border-radius: 16px 16px 0 0;
  max-height: 82vh;
  flex-direction: column;
  box-shadow: 0 -2px 20px rgba(0,0,0,0.15);
  overflow: hidden;
}
.vl-ask-sheet.open { display: flex; }

.vl-ask-drag-handle {
  width: 36px; height: 4px;
  background: #e0e0e0;
  border-radius: 2px;
  margin: 10px auto 0;
  flex-shrink: 0;
}

/* Sheet header */
.vl-ask-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 10px;
  border-bottom: 1px solid #f0f0f0;
  flex-shrink: 0;
}
.vl-ask-sheet-title {
  font-size: 16px;
  font-weight: 700;
  color: #0f0f0f;
  font-family: var(--yt-font);
}
.vl-ask-close-btn {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: #f2f2f2;
  border: none;
  color: #606060;
  font-size: 14px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.13s;
}
.vl-ask-close-btn:hover { background: #e5e5e5; }

/* Scrollable body */
.vl-ask-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 18px;
  scrollbar-width: thin;
}

/* Spark icon row inside body */
.vl-ask-spark-row {
  margin-bottom: 12px;
}

/* Skeleton */
.vl-ask-skeleton { display: flex; flex-direction: column; gap: 10px; }
.vl-skel-line {
  height: 13px;
  border-radius: 6px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: vl-shimmer 1.4s infinite;
}
@keyframes vl-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Summary text */
.vl-ask-text {
  font-size: 15px;
  line-height: 1.65;
  color: #0f0f0f;
  font-family: var(--yt-font);
}
.vl-ask-text p { margin: 0 0 12px; }
.vl-ask-text p:last-child { margin-bottom: 0; }
.vl-ask-text strong { font-weight: 700; }
.vl-ask-text h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 14px 0 8px;
  color: #0f0f0f;
}
.vl-ask-text ul {
  list-style: none;
  padding: 0; margin: 8px 0 12px;
  display: flex; flex-direction: column; gap: 10px;
}
.vl-ask-text ul li {
  display: flex;
  gap: 8px;
  font-size: 15px;
  line-height: 1.6;
}
.vl-ask-text ul li::before {
  content: "•";
  flex-shrink: 0;
  font-size: 18px;
  line-height: 1.4;
}

/* Error */
.vl-ask-error {
  font-size: 13px;
  color: #909090;
  font-style: italic;
  font-family: var(--yt-font);
  padding: 8px 0;
}

/* Disclaimer */
.vl-ask-disclaimer {
  text-align: center;
  font-size: 11px;
  color: #aaa;
  padding: 6px 16px 12px;
  flex-shrink: 0;
  font-family: var(--yt-font);
  border-top: 1px solid #f5f5f5;
}

/* ── Ask bar label + subtitle (legacy, kept for compat) ── */
.vl-ask-bar-label-wrap { display: none; }

/* ── Larger close button ── */
.vl-ask-close-btn {
  width: 40px !important;
  height: 40px !important;
  font-size: 17px !important;
}

/* ══════════════════════════════════════════════════════════════════════
   TRANSCRIPT PANEL — YouTube-style
   ══════════════════════════════════════════════════════════════════════ */

/* Overlay */
.vl-transcript-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 8100;
}
.vl-transcript-overlay.open { display: block; }

/* Bottom sheet */
.vl-transcript-sheet {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 8101;
  background: #fff;
  border-radius: 16px 16px 0 0;
  max-height: 88vh;
  flex-direction: column;
  box-shadow: 0 -3px 24px rgba(0,0,0,0.18);
  overflow: hidden;
  transition: transform 0.28s cubic-bezier(.4,0,.2,1);
}
.vl-transcript-sheet.open { display: flex; }

/* Drag handle */
.vl-transcript-drag-handle {
  width: 36px; height: 4px;
  background: #e0e0e0;
  border-radius: 2px;
  margin: 10px auto 0;
  flex-shrink: 0;
}

/* Header */
.vl-transcript-header {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 12px 10px 8px;
  border-bottom: 1px solid #f0f0f0;
  flex-shrink: 0;
}
.vl-transcript-back-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: none;
  border: none;
  color: #0f0f0f;
  font-size: 16px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background 0.13s;
}
.vl-transcript-back-btn:hover { background: #f2f2f2; }
.vl-transcript-title {
  flex: 1;
  font-size: 18px;
  font-weight: 700;
  color: #0f0f0f;
  font-family: var(--yt-font);
}
.vl-transcript-header-actions {
  display: flex; gap: 2px;
}
.vl-transcript-icon-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: none;
  border: none;
  color: #606060;
  font-size: 16px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.13s;
}
.vl-transcript-icon-btn:hover { background: #f2f2f2; }

/* Context dropdown menu */
.vl-transcript-menu {
  position: absolute;
  top: 62px;
  right: 16px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.18);
  z-index: 8200;
  min-width: 200px;
  padding: 4px 0;
  animation: vl-menu-in 0.15s ease;
}
@keyframes vl-menu-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.vl-transcript-menu-item {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 13px 18px;
  background: none;
  border: none;
  font-size: 14px;
  color: #0f0f0f;
  font-family: var(--yt-font);
  cursor: pointer;
  text-align: left;
  transition: background 0.1s;
}
.vl-transcript-menu-item:hover { background: #f5f5f5; }
.vl-transcript-menu-item i { width: 18px; color: #606060; }

/* Search bar */
.vl-transcript-search-wrap {
  display: flex;
  align-items: center;
  margin: 10px 16px;
  background: #f2f2f2;
  border-radius: 24px;
  padding: 0 14px;
  flex-shrink: 0;
  border: 1.5px solid transparent;
  transition: border-color 0.15s, background 0.15s;
}
.vl-transcript-search-wrap:focus-within {
  background: #fff;
  border-color: #065fd4;
}
.vl-transcript-search-icon {
  color: #606060;
  font-size: 14px;
  flex-shrink: 0;
  margin-right: 10px;
}
.vl-transcript-search {
  flex: 1;
  border: none;
  background: none;
  outline: none;
  font-size: 15px;
  color: #0f0f0f;
  font-family: var(--yt-font);
  padding: 11px 0;
}
.vl-transcript-search::placeholder { color: #909090; }
.vl-transcript-search-clear {
  background: none;
  border: none;
  color: #606060;
  font-size: 14px;
  cursor: pointer;
  padding: 4px 0 4px 8px;
  display: flex; align-items: center;
  transition: color 0.13s;
}
.vl-transcript-search-clear:hover { color: #0f0f0f; }

/* Scrollable body */
.vl-transcript-body {
  flex: 1;
  overflow-y: auto;
  padding: 4px 0 8px;
  scrollbar-width: thin;
}

/* Loading skeleton */
.vl-transcript-skeleton {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0 16px;
}
.vl-tc-skel-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid #f5f5f5;
}
.vl-tc-skel-ts {
  width: 38px; height: 13px;
  border-radius: 6px;
  flex-shrink: 0;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: vl-shimmer 1.4s infinite;
}
.vl-tc-skel-text {
  height: 13px;
  border-radius: 6px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: vl-shimmer 1.4s infinite;
}

/* Cue list */
.vl-transcript-cues { padding: 0; }

/* Chapter heading inside cues */
.vl-transcript-chapter {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 16px 8px;
  font-size: 14px;
  font-weight: 700;
  color: #0f0f0f;
  font-family: var(--yt-font);
  letter-spacing: 0.01em;
  border-top: 1px solid #f0f0f0;
  margin-top: 4px;
}
.vl-transcript-chapter:first-child { border-top: none; margin-top: 0; }
.vl-transcript-chapter i {
  font-size: 13px;
  color: #606060;
}

/* Single cue row */
.vl-tc-cue {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 10px 16px;
  cursor: pointer;
  border-radius: 8px;
  margin: 0 4px;
  transition: background 0.12s;
  -webkit-tap-highlight-color: transparent;
}
.vl-tc-cue:hover  { background: #f5f5f5; }
.vl-tc-cue:active { background: #ebebeb; }
.vl-tc-cue.active {
  background: #e8f0fe;
}
.vl-tc-cue.active .vl-tc-ts {
  color: #065fd4;
  font-weight: 700;
}
.vl-tc-cue.hidden { display: none; }

/* Timestamp chip */
.vl-tc-ts {
  font-size: 13px;
  font-weight: 600;
  color: #606060;
  background: #f2f2f2;
  border-radius: 20px;
  padding: 2px 8px;
  flex-shrink: 0;
  min-width: 42px;
  text-align: center;
  font-family: var(--yt-font);
  transition: background 0.12s;
  line-height: 1.6;
}
.vl-tc-cue.hide-ts .vl-tc-ts { display: none; }

/* Cue text */
.vl-tc-text {
  font-size: 15px;
  line-height: 1.6;
  color: #0f0f0f;
  font-family: var(--yt-font);
  flex: 1;
  word-break: break-word;
}
.vl-tc-text mark {
  background: #fff176;
  color: #0f0f0f;
  border-radius: 2px;
  padding: 0 1px;
}

/* No results / error */
.vl-transcript-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 56px 24px;
  color: #909090;
  font-family: var(--yt-font);
}
.vl-tc-err-icon {
  font-size: 48px;
  color: #d0d0d0;
}
.vl-transcript-error p {
  font-size: 15px;
  text-align: center;
  margin: 0;
}

/* No search results inline */
.vl-tc-no-results {
  text-align: center;
  color: #909090;
  font-size: 14px;
  font-family: var(--yt-font);
  padding: 40px 24px;
}

/* Footer sync button */
.vl-transcript-footer {
  flex-shrink: 0;
  padding: 10px 16px 16px;
  display: flex;
  justify-content: center;
  border-top: 1px solid #f0f0f0;
}
.vl-transcript-sync-btn {
  background: #0f0f0f;
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 10px 28px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--yt-font);
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  letter-spacing: 0.01em;
}
.vl-transcript-sync-btn:hover  { background: #2d2d2d; }
.vl-transcript-sync-btn:active { transform: scale(0.97); }
.vl-transcript-sync-btn.sync-on {
  background: #065fd4;
}

/* ══════════════════════════════════════════════════════════════════════
   CHANNEL PAGE
   ══════════════════════════════════════════════════════════════════════ */
#channel-view {
  min-height: calc(100vh - 56px - 56px);
  background: #fff;
  padding-bottom: 80px;
}

/* Banner */
/* ═══════════════════════════════════════════════
   CHANNEL PAGE — YouTube-style
═══════════════════════════════════════════════ */

/* Banner */
.ch-banner {
  width: 100%;
  height: 120px;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  background-size: 100% auto;
  background-position: center center;
  background-repeat: no-repeat;
  overflow: hidden;
}

/* Sub-header (sticky top bar with back + title) */
.ch-subheader {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 8px 0 4px;
  height: 52px;
  background: #fff;
  position: sticky;
  top: 56px;
  z-index: 11;
  border-bottom: 1px solid #f0f0f0;
}

.ch-subheader-title {
  font-size: 16px;
  font-weight: 600;
  font-family: var(--yt-font);
  color: #0f0f0f;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.ch-subheader-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

.ch-subheader-icon-btn {
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  color: #0f0f0f;
  font-size: 17px;
  transition: background 0.15s;
}
.ch-subheader-icon-btn:hover { background: #f2f2f2; }
.ch-subheader-icon-btn:active { background: #e5e5e5; }

.ch-back-btn {
  background: none;
  border: none;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  color: #0f0f0f;
  font-size: 18px;
  flex-shrink: 0;
  transition: background 0.15s;
}
.ch-back-btn:hover { background: #f2f2f2; }
.ch-back-btn:active { background: #e5e5e5; }

/* YouTube-style info block below banner */
.ch-yt-info-block {
  padding: 0 16px 12px;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
}

/* Large avatar overlapping banner */
.ch-yt-avatar-wrap {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  margin-top: -36px;
  margin-bottom: 10px;
  border: 3px solid #fff;
  box-shadow: 0 1px 6px rgba(0,0,0,0.18);
  background: #eee;
  position: relative;
}

#ch-page-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.ch-page-avatar-fb {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #cc0000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  font-family: var(--yt-font);
}

/* Name row */
.ch-yt-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 3px;
}

.ch-page-name {
  font-size: 20px;
  font-weight: 700;
  color: #0f0f0f;
  font-family: var(--yt-font);
  line-height: 1.25;
}

/* Handle + stats row */
.ch-yt-meta-row {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.ch-page-handle {
  font-size: 13px;
  color: #606060;
  font-family: var(--yt-font);
}

.ch-yt-dot {
  font-size: 13px;
  color: #909090;
}

.ch-page-stats {
  font-size: 13px;
  color: #606060;
  font-family: var(--yt-font);
}

/* Description preview (1 line, truncated) */
.ch-yt-desc-preview {
  display: flex;
  align-items: baseline;
  gap: 2px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.ch-description-text {
  font-size: 13px;
  line-height: 1.5;
  color: #606060;
  font-family: var(--yt-font);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: calc(100% - 60px);
  display: inline;
}

.ch-description-more {
  background: none;
  border: none;
  padding: 0;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--yt-font);
  color: #0f0f0f;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Tab bar */
.ch-tab-bar {
  display: flex;
  gap: 0;
  border-bottom: 1px solid #e5e5e5;
  padding: 0 8px;
  background: #fff;
  position: sticky;
  top: 108px; /* 56px masthead + 52px sub-header */
  z-index: 10;
  overflow-x: auto;
  scrollbar-width: none;
}
.ch-tab-bar::-webkit-scrollbar { display: none; }

.ch-tab {
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 12px 16px 10px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--yt-font);
  color: #606060;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ch-tab.active {
  color: #0f0f0f;
  border-bottom-color: #0f0f0f;
}

/* Videos section */
.ch-videos-section { padding: 8px 0 0; }

/* Loading */
.ch-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 60px 24px;
  color: #606060;
  font-family: var(--yt-font);
  font-size: 14px;
}

.ch-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #e5e5e5;
  border-top-color: #cc0000;
  border-radius: 50%;
  animation: chSpin 0.7s linear infinite;
}

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

/* Empty */
.ch-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 60px 24px;
  color: #909090;
  font-family: var(--yt-font);
  text-align: center;
}
.ch-empty i { font-size: 48px; color: #d0d0d0; }
.ch-empty p { font-size: 14px; margin: 0; }

#ch-video-list { padding: 0; margin: 0; list-style: none; }

/* Clickable channel elements in home cards */
.yt-card-avatar-link { display: block; cursor: pointer; border-radius: 50%; flex-shrink: 0; }
.yt-card-channel-link { cursor: pointer; color: inherit; }
.yt-card-channel-link:hover { color: #0f0f0f; }

/* ═══════════════════════════════════════════════
   CHANNEL DESCRIPTION FULL PAGE (like YouTube)
═══════════════════════════════════════════════ */
#ch-desc-page {
  position: fixed;
  top: 56px;                        /* below vLab masthead */
  left: 0;
  right: 0;
  bottom: var(--yt-bottomnav-h, 60px); /* above vLab footer */
  background: #fff;
  z-index: 1200;                    /* above channel-view content, below masthead (1500) */
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(.4,0,.2,1);
}

#ch-desc-page.ch-desc-page--open {
  transform: translateX(0);
}

.ch-desc-page-header {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 8px 0 4px;
  height: 56px;
  flex-shrink: 0;
  border-bottom: 1px solid #f0f0f0;
}

.ch-desc-page-title {
  font-size: 16px;
  font-weight: 600;
  font-family: var(--yt-font);
  color: #0f0f0f;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ch-desc-page-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 16px 40px;
  -webkit-overflow-scrolling: touch;
}

.ch-desc-page-heading {
  font-size: 20px;
  font-weight: 700;
  font-family: var(--yt-font);
  color: #0f0f0f;
  margin: 0 0 16px;
}

.ch-desc-page-text {
  font-size: 14px;
  line-height: 1.7;
  color: #0f0f0f;
  font-family: var(--yt-font);
  white-space: pre-wrap;
  word-break: break-word;
}

/* ═══════════════════════════════════════════════
   CHANNEL BOTTOM SHEET (⋮ menu)
═══════════════════════════════════════════════ */
.ch-sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1300;
  animation: chFadeIn 0.2s ease;
}

@keyframes chFadeIn { from { opacity:0; } to { opacity:1; } }

.ch-bottom-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  border-radius: 14px 14px 0 0;
  z-index: 1301;
  padding-bottom: env(safe-area-inset-bottom, 12px);
  animation: chSlideUp 0.25s cubic-bezier(.4,0,.2,1);
}

@keyframes chSlideUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

.ch-sheet-handle {
  width: 36px;
  height: 4px;
  background: #d0d0d0;
  border-radius: 2px;
  margin: 10px auto 6px;
}

.ch-sheet-list {
  list-style: none;
  margin: 0;
  padding: 4px 0 8px;
}

.ch-sheet-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 15px 20px;
  font-size: 15px;
  font-family: var(--yt-font);
  color: #0f0f0f;
  cursor: pointer;
  transition: background 0.12s;
}
.ch-sheet-item:active { background: #f5f5f5; }

.ch-sheet-icon {
  width: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #0f0f0f;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════
   CHANNEL PAGE — PLAYLISTS TAB
═══════════════════════════════════════════════════════════════ */
.ch-playlist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  padding: 12px 12px 24px;
}

.ch-pl-card {
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
  background: #fff;
}
.ch-pl-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.12); }
.ch-pl-card:active { transform: scale(.97); }

.ch-pl-card-thumb-wrap {
  position: relative;
  aspect-ratio: 16/9;
  background: #111;
  overflow: hidden;
}
.ch-pl-card-thumb {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.ch-pl-card-overlay {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 36%;
  background: rgba(0,0,0,.75);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.ch-pl-card-count {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}
.ch-pl-card-count-label {
  color: rgba(255,255,255,.7);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.ch-pl-card-info {
  padding: 8px 8px 10px;
}
.ch-pl-card-title {
  font-size: 12.5px;
  font-weight: 600;
  color: #0f0f0f;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  line-height: 1.4;
  min-height: 34px;
}
.ch-pl-card-meta {
  font-size: 10.5px;
  color: #606060;
  margin-top: 4px;
}

/* ═══════════════════════════════════════════════════════════════
   PLAYLIST DETAIL VIEW
═══════════════════════════════════════════════════════════════ */
#playlist-view {
  min-height: 100vh;
  background: #f9f9f9;
  padding-bottom: 80px;
}

.plv-hero {
  background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
  padding: 14px 14px 18px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.plv-hero-thumb-wrap {
  position: relative;
  width: 130px;
  flex-shrink: 0;
}
.plv-hero-thumb {
  width: 130px;
  height: 73px;
  border-radius: 8px;
  object-fit: cover;
  display: block;
  background: #333;
}
.plv-hero-count {
  position: absolute;
  bottom: 0; right: 0;
  background: rgba(0,0,0,.75);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 6px;
  border-radius: 4px 0 8px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 36px;
  text-align: center;
}

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

.plv-hero-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
  margin-bottom: 5px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.plv-hero-channel {
  font-size: 12px;
  color: rgba(255,255,255,.65);
  margin-bottom: 8px;
  cursor: pointer;
}
.plv-hero-channel:hover { color: #fff; text-decoration: underline; }

.plv-hero-desc {
  font-size: 11.5px;
  color: rgba(255,255,255,.55);
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  line-height: 1.5;
}

.plv-hero-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 4px;
}

.plv-play-all-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 20px;
  border: none;
  background: #fff;
  color: #0f0f0f;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
}
.plv-play-all-btn:hover { background: #e0e0e0; }

.plv-shuffle-btn, .plv-dl-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.3);
  background: transparent;
  color: rgba(255,255,255,.7);
  font-size: 14px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s;
}
.plv-shuffle-btn:hover, .plv-dl-btn:hover { background: rgba(255,255,255,.15); color: #fff; }

/* Playlist video list */
.plv-video-list {
  list-style: none;
  margin: 0; padding: 0;
  background: #fff;
}

.plv-video-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  transition: background .15s;
  position: relative;
}
.plv-video-item:hover { background: #f8f8f8; }
.plv-video-item.plv-playing {
  background: #e8f0fe;
  border-left: 3px solid #1967d2;
}

.plv-video-num {
  width: 20px;
  text-align: center;
  font-size: 11px;
  color: #999;
  flex-shrink: 0;
}
.plv-video-item.plv-playing .plv-video-num {
  color: #1967d2;
  font-weight: 700;
}

.plv-video-thumb {
  width: 80px;
  height: 45px;
  border-radius: 5px;
  object-fit: cover;
  flex-shrink: 0;
  background: #eee;
}

.plv-video-info {
  flex: 1;
  min-width: 0;
}
.plv-video-title {
  font-size: 12.5px;
  font-weight: 600;
  color: #0f0f0f;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  line-height: 1.4;
}
.plv-video-item.plv-playing .plv-video-title { color: #1967d2; }
.plv-video-meta {
  font-size: 11px;
  color: #606060;
  margin-top: 3px;
}

.plv-video-more {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: #666;
  font-size: 14px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background .15s;
}
.plv-video-more:hover { background: #e8e8e8; }

/* ═══════════════════════════════════════════════════════════════
   PLAYLIST QUEUE PANEL (player overlay)
═══════════════════════════════════════════════════════════════ */
.plq-panel {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  max-height: 55vh;
  background: #fff;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -4px 24px rgba(0,0,0,.15);
  z-index: 1500;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: plq-slide-in .28s cubic-bezier(.4,0,.2,1);
}
@keyframes plq-slide-in {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.plq-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 10px;
  border-bottom: 1px solid #f0f0f0;
  flex-shrink: 0;
}
.plq-header-left { display: flex; flex-direction: column; gap: 2px; }
.plq-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #0f0f0f;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 240px;
}
.plq-progress { font-size: 11px; color: #606060; }
.plq-close-btn {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: none;
  background: #f5f5f5;
  color: #444;
  font-size: 14px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background .15s;
}
.plq-close-btn:hover { background: #e0e0e0; }

.plq-list {
  list-style: none;
  margin: 0; padding: 0;
  overflow-y: auto;
  flex: 1;
}

.plq-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-bottom: 1px solid #f5f5f5;
  cursor: pointer;
  transition: background .12s;
}
.plq-item:hover { background: #f5f5f5; }
.plq-item.plq-active {
  background: #e8f0fe;
  border-left: 3px solid #1967d2;
}
.plq-item-num {
  font-size: 11px;
  color: #999;
  min-width: 20px;
  text-align: center;
  flex-shrink: 0;
}
.plq-item.plq-active .plq-item-num {
  color: #1967d2;
  font-weight: 700;
}
.plq-item-thumb {
  width: 56px; height: 32px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
  background: #eee;
}
.plq-item-info { flex: 1; min-width: 0; }
.plq-item-title {
  font-size: 11.5px;
  font-weight: 600;
  color: #0f0f0f;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.plq-item.plq-active .plq-item-title { color: #1967d2; }
.plq-item-ch {
  font-size: 10px;
  color: #606060;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Playlist loading state */
.plv-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 40px;
  font-size: 13px;
  color: #888;
}
