/* ══════════════════════════════════════════════════════
   HIGHLIGHTS PAGE  —  highlights.css
   Desktop: 3-column (queue | player | info)
   Mobile:  full-screen TikTok snap feed
══════════════════════════════════════════════════════ */

/* ── Page root with creative background ── */
.hl-page {
  height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  background: var(--surface);
}

.hl-page::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: 
    radial-gradient(circle at 15% 20%, rgba(232, 184, 75, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(224, 48, 48, 0.03) 0%, transparent 40%);
  pointer-events: none;
  z-index: 0;
}

/* ── Video card action icons ── */
.video-card .actions button svg {
  width:  16px;
  height: 16px;
  display: block;
}

/* ── Highlights page icons ── */
.hl-section-icon {
  width:  16px;
  height: 16px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 6px;
}

.yt-section-icon {
  width:  16px;
  height: 16px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 6px;
}

.yt-player-empty-icon svg {
  width:  32px;
  height: 32px;
  display: block;
}

.yt-comments-avatar svg {
  width:  20px;
  height: 20px;
  display: block;
}

/* ── Page root ── */
.hl-page {
  height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Desktop grid ── */
.hl-desktop {
  display: grid;
  grid-template-columns: 220px auto minmax(0, 40%);
  gap: 0;
  height: 100vh;
}

/* ── Mobile feed (hidden on desktop) ── */
.yt-mobile-feed {
  display: none;
}

/* ══════════════════════════════════════════════════════
   LEFT COLUMN — SHORT-FORM VIDEO QUEUE
══════════════════════════════════════════════════════ */
.hl-queue {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border-right: 1px solid var(--border);
  position: relative;
  z-index: 1;
}

.hl-queue::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(232, 184, 75, 0.02) 0%, transparent 100%);
  pointer-events: none;
}

.hl-queue-header {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  padding:         16px 16px 12px;
  flex-shrink:     0;
  border-bottom:   1px solid var(--border);
  background:      linear-gradient(180deg, var(--surface) 0%, rgba(232, 184, 75, 0.03) 100%);
}

.hl-queue-title {
  font-family: var(--font-display);
  font-size:   14px;
  font-weight: 800;
  font-style:  italic;
  color:       var(--text);
  letter-spacing: 0.5px;
}

.hl-queue-count {
  font-size:  10px;
  color:      var(--muted);
  font-weight: 700;
  background: rgba(232, 184, 75, 0.1);
  padding: 2px 8px;
  border-radius: 10px;
  color: var(--gold);
}

/* Scrollable card list */
.hl-queue-list {
  flex:        1;
  overflow-y:  auto;
  min-height:  0;
  padding:     8px 0;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.hl-queue-list::-webkit-scrollbar { width: 4px; }
.hl-queue-list::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

/* ── Skeleton rows ── */
.hl-queue-skel {
  height:        72px;
  border-radius: var(--r-sm);
  margin:        6px 10px;
}

/* ── Empty state ── */
.hl-queue-empty {
  display:         flex;
  flex-direction:  column;
  align-items:     center;
  justify-content: center;
  padding:         48px 16px;
  text-align:      center;
  gap:             8px;
}
.hl-queue-empty-icon { font-size: 40px; }
.hl-queue-empty-text { font-size: 13px; font-weight: 700; color: var(--text); }
.hl-queue-empty-sub  { font-size: 11px; color: var(--muted); }

/* ── Short-form video card ── */
.hl-queue-card {
  display:     flex;
  gap:         12px;
  padding:     10px 12px;
  cursor:      pointer;
  border-radius: 12px;
  margin:      4px 8px;
  transition:  all .25s cubic-bezier(.4, 0, .2, 1);
  position:    relative;
  outline:     none;
  -webkit-tap-highlight-color: transparent;
  background: transparent;
}
.hl-queue-card:hover { 
  background: var(--panel);
  transform: translateX(4px);
}
.hl-queue-card:focus-visible {
  box-shadow: 0 0 0 2px var(--gold);
  transform: translateX(4px);
}

/* Active / now-playing card */
.hl-queue-card--active {
  background: linear-gradient(135deg, rgba(232,184,75,.12) 0%, rgba(232,184,75,.06) 100%);
  border-left: 3px solid var(--gold);
  padding-left: 9px;
  box-shadow: 0 4px 12px rgba(232, 184, 75, 0.15);
}
.hl-queue-card--active:hover { 
  background: linear-gradient(135deg, rgba(232,184,75,.18) 0%, rgba(232,184,75,.1) 100%);
  transform: translateX(6px);
}

/* ── Thumbnail ── */
.hl-queue-thumb {
  position:      relative;
  width:         60px;
  height:        82px;       /* ~9:12 portrait aspect */
  flex-shrink:   0;
  border-radius: 7px;
  overflow:      hidden;
  background:    var(--panel);
}

.hl-queue-vid {
  width:       100%;
  height:      100%;
  object-fit:  cover;
  display:     block;
  border-radius: 7px;
}

/* Play icon overlay — hidden while playing */
.hl-queue-thumb-overlay {
  position:        absolute;
  inset:           0;
  display:         flex;
  align-items:     center;
  justify-content: center;
  background:      rgba(0,0,0,.28);
  border-radius:   7px;
  transition:      opacity .18s;
}
.hl-queue-thumb-overlay--hidden { opacity: 0; pointer-events: none; }
.hl-queue-play-icon {
  width:   22px;
  height:  22px;
  color:   #fff;
  opacity: .9;
  filter:  drop-shadow(0 1px 3px rgba(0,0,0,.6));
}

/* "▶ Playing" badge */
.hl-queue-now-playing {
  position:      absolute;
  bottom:        4px;
  left:          0;
  right:         0;
  text-align:    center;
  font-size:     9px;
  font-weight:   800;
  color:         var(--gold);
  background:    rgba(0,0,0,.7);
  padding:       2px 4px;
  border-radius: 0 0 7px 7px;
  letter-spacing: .3px;
}

/* ── Meta ── */
.hl-queue-meta {
  flex:       1;
  min-width:  0;
  display:    flex;
  flex-direction: column;
  justify-content: center;
  gap:        4px;
}

.hl-queue-card-title {
  font-size:   12px;
  font-weight: 700;
  color:       var(--text);
  line-height: 1.3;
  display:     -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow:    hidden;
}
.hl-queue-card--active .hl-queue-card-title { color: var(--gold); }

.hl-queue-card-desc {
  font-size:  11px;
  color:      var(--muted);
  line-height: 1.3;
  display:    -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow:   hidden;
}

.hl-queue-card-stats {
  display:     flex;
  align-items: center;
  gap:         8px;
}
.hl-queue-likes {
  display:     flex;
  align-items: center;
  gap:         3px;
  font-size:   11px;
  color:       var(--muted);
}

/* ══════════════════════════════════════════════════════
   CENTRE COLUMN — PORTRAIT VIDEO PLAYER
══════════════════════════════════════════════════════ */
.hl-center {
  display:         flex;
  align-items:     center;
  justify-content: center;
  overflow:        hidden;
  background:      #000;
  position:        relative;
  height:          100%;
  z-index: 1;
}

.hl-center::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at center, rgba(232, 184, 75, 0.03) 0%, transparent 60%);
  pointer-events: none;
}

.yt-player-wrap {
  position:        relative;
  height:          calc(100vh - 68px - 12px);
  width:           calc((100vh - 80px) * 9 / 16);
  min-width:       320px;
  max-height:      calc(100vh - 68px - 12px);
  flex-shrink:     0;
  display:         flex;
  align-items:     center;
  justify-content: center;
  border-radius:  16px;
  overflow:        hidden;
  box-shadow:      0 20px 60px rgba(0, 0, 0, 0.5);
  transition:      transform .3s cubic-bezier(.4, 0, .2, 1);
}

/* Up / Down nav buttons — minimal design */
.yt-nav-btn {
  position:      absolute;
  right:         -52px;
  width:         36px;
  height:        36px;
  border-radius: 50%;
  background:    var(--surface);
  border:        1px solid var(--border);
  color:         var(--text);
  display:       grid;
  place-items:   center;
  cursor:        pointer;
  flex-shrink:   0;
  transition:    all .2s cubic-bezier(.4, 0, .2, 1);
  -webkit-tap-highlight-color: transparent;
  box-shadow:    0 2px 8px var(--shadow-sm);
}
.yt-nav-btn--prev { top: calc(50% - 44px); }
.yt-nav-btn--next { top: calc(50% + 8px); }
.yt-nav-btn svg { width: 18px; height: 18px; }
.yt-nav-btn:hover:not(:disabled) {
  background:  var(--gold);
  color:       #000;
  transform:   scale(1.1);
  box-shadow:  0 4px 16px rgba(232, 184, 75, 0.4);
}
.yt-nav-btn:active:not(:disabled) { transform: scale(.95); }
.yt-nav-btn--disabled,
.yt-nav-btn:disabled {
  opacity:        0.25;
  cursor:         default;
  pointer-events: none;
}

.yt-player-card {
  position:      relative;
  width:         100%;
  height:        100%;
  border-radius: 16px;
  overflow:      hidden;
  background:    #111;
  display:       flex;
  align-items:   center;
  justify-content: center;
}

.yt-player-media {
  width:       100%;
  height:      100%;
  object-fit:  cover;
  display:     block;
}

.yt-player-empty {
  display:         flex;
  flex-direction:  column;
  align-items:     center;
  justify-content: center;
  gap:             12px;
  color:           rgba(255,255,255,.6);
  padding:         24px;
  text-align:      center;
}
.yt-player-empty-icon { font-size: 56px; }
.yt-player-empty-text { font-size: 16px; font-weight: 700; color: #fff; }
.yt-player-empty-sub  { font-size: 13px; opacity: .7; }

/* Seekbar */
.yt-player-segs {
  position:   absolute;
  bottom:     56px;
  left:       0;
  right:      0;
  padding:    0 12px 6px;
  z-index:    10;
}
.yt-player-time {
  display:         flex;
  justify-content: space-between;
  font-size:       10px;
  color:           rgba(255,255,255,.7);
  margin-bottom:   4px;
  padding:         0 2px;
}
.yt-player-seekbar {
  width:         100%;
  appearance:    none;
  -webkit-appearance: none;
  height:        14px;           /* tall enough to vertically centre the 12px thumb */
  background:    transparent;
  cursor:        pointer;
  outline:       none;
  padding:       0;
  margin:        0;
}
/* Track */
.yt-player-seekbar::-webkit-slider-runnable-track {
  height:        3px;
  border-radius: 3px;
  background:    linear-gradient(to right, var(--gold) var(--pct, 0%), rgba(255,255,255,.3) var(--pct, 0%));
}
.yt-player-seekbar::-moz-range-track {
  height:        3px;
  border-radius: 3px;
  background:    linear-gradient(to right, var(--gold) var(--pct, 0%), rgba(255,255,255,.3) var(--pct, 0%));
}
/* Thumb — centred on the track */
.yt-player-seekbar::-webkit-slider-thumb {
  appearance:    none;
  -webkit-appearance: none;
  width:         12px;
  height:        12px;
  border-radius: 50%;
  background:    var(--gold);
  margin-top:    -4.5px;         /* (3px track / 2) - (12px thumb / 2) */
  cursor:        pointer;
  box-shadow:    0 0 0 2px rgba(232,184,75,.3);
}
.yt-player-seekbar::-moz-range-thumb {
  width:         12px;
  height:        12px;
  border:        none;
  border-radius: 50%;
  background:    var(--gold);
  cursor:        pointer;
  box-shadow:    0 0 0 2px rgba(232,184,75,.3);
}

/* Mute button — minimal design */
.yt-player-mute-btn {
  position:      absolute;
  top:           14px;
  right:         14px;
  width:         32px;
  height:        32px;
  border-radius: 50%;
  background:    rgba(0,0,0,.4);
  backdrop-filter: blur(8px);
  display:       grid;
  place-items:   center;
  cursor:        pointer;
  color:         #fff;
  z-index:       10;
  transition:    all .2s cubic-bezier(.4, 0, .2, 1);
  border:        1px solid rgba(255,255,255,.1);
}
.yt-player-mute-btn:hover { 
  background: rgba(0,0,0,.6);
  transform: scale(1.08);
}

/* Player footer + actions — minimal overlay */
.yt-player-footer {
  position:   absolute;
  bottom:     88px;
  left:       14px;
  right:      68px;
  z-index:    10;
  text-shadow: 0 1px 4px rgba(0,0,0,.8);
}
.yt-player-title {
  font-size:   13px;
  font-weight: 800;
  color:       #fff;
  line-height: 1.3;
  margin-bottom: 4px;
}
.yt-player-desc {
  font-size:  11px;
  color:      rgba(255,255,255,.75);
  line-height: 1.4;
  display:    -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow:   hidden;
}

.yt-player-actions {
  position:       absolute;
  right:          10px;
  bottom:         96px;
  display:        flex;
  flex-direction: column;
  gap:            8px;
  align-items:    center;
  z-index:        10;
}

.yt-player-btn {
  display:        flex;
  flex-direction: column;
  align-items:    center;
  gap:            4px;
  background:     none;
  border:         none;
  border-radius:  0;
  padding:        10px 8px;
  color:          #fff;
  cursor:         pointer;
  font-size:      10px;
  font-weight:    700;
  min-width:      40px;
  transition:     all .2s cubic-bezier(.4, 0, .2, 1);
  text-decoration: none;
}
.yt-player-btn svg { 
  width: 20px; 
  height: 20px; 
  filter: drop-shadow(0 1px 3px rgba(0,0,0,.7));
  transition: transform .2s;
}
.yt-player-btn:hover { 
  opacity: .9;
  transform: scale(1.05);
}
.yt-player-btn:active { 
  transform: scale(.95);
}
.yt-player-btn--liked svg { 
  fill: var(--red); 
  stroke: var(--red);
  filter: drop-shadow(0 0 8px rgba(224, 48, 48, 0.6));
}
.yt-player-btn-lbl { 
  font-size: 10px; 
  text-shadow: 0 1px 3px rgba(0,0,0,.8);
}

/* ══════════════════════════════════════════════════════
   RIGHT COLUMN — COUNTDOWN + EVENTS + ARTICLES
══════════════════════════════════════════════════════ */
.hl-right {
  display:        flex;
  flex-direction: column;
  overflow:       hidden;
  background:     var(--surface);
  border-left:    1px solid var(--border);
  position: relative;
  z-index: 1;
}

.hl-right::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(224, 48, 48, 0.02) 0%, transparent 100%);
  pointer-events: none;
}

.hl-countdown-card {
  flex-shrink:     0;
  padding:         16px 18px 14px;
  border-bottom:   1px solid var(--border);
  background:      linear-gradient(135deg, rgba(232, 184, 75, 0.08) 0%, transparent 70%);
  position: relative;
}

.hl-countdown-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232, 184, 75, 0.3), transparent);
}

.hl-cd-label { 
  font-size: 12px; 
  font-weight: 800; 
  color: var(--gold); 
  letter-spacing: 1px;
  text-transform: uppercase;
}
.hl-cd-date  { 
  font-size: 11px; 
  color: var(--muted); 
  margin-bottom: 12px; 
  margin-top: 2px;
  font-weight: 500;
}

.hl-cd-digits {
  display:     flex;
  align-items: center;
  gap:         6px;
}
.hl-cd-unit {
  display:        flex;
  flex-direction: column;
  align-items:    center;
  background:     var(--panel);
  border:         1px solid var(--border);
  border-radius:  10px;
  padding:        8px 10px 6px;
  min-width:      42px;
  transition:     all .2s cubic-bezier(.4, 0, .2, 1);
}
.hl-cd-unit:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
  box-shadow: 0 4px 12px rgba(232, 184, 75, 0.2);
}
.hl-cd-unit span {
  font-size:   22px;
  font-weight: 900;
  color:       var(--text);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.hl-cd-unit label {
  font-size:  9px;
  color:      var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-top: 3px;
}
.hl-cd-sep { 
  font-size: 20px; 
  font-weight: 900; 
  color: var(--gold); 
  line-height: 1;
  opacity: 0.6;
}

/* Scrollable section below countdown */
.hl-right-scroll {
  flex:       1;
  overflow-y: auto;
  min-height: 0;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.hl-right-scroll::-webkit-scrollbar { width: 4px; }
.hl-right-scroll::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

.hl-section { padding: 14px 16px 6px; }
.hl-section-label {
  font-size:   10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color:       var(--muted);
  margin-bottom: 10px;
  position: relative;
  padding-left: 12px;
}

.hl-section-label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--gold);
}

/* Events list */
.yt-event-item {
  display:     flex;
  align-items: flex-start;
  gap:         12px;
  padding:     10px 0;
  border-bottom: 1px solid var(--border);
  border-left:   2px solid transparent;
  padding-left:  10px;
  margin-bottom: 2px;
  transition:   all .2s cubic-bezier(.4, 0, .2, 1);
}
.yt-event-item:hover {
  border-left-color: var(--gold);
  background: rgba(232, 184, 75, 0.03);
  transform: translateX(2px);
}
.yt-event-item:last-child { border-bottom: none; }
.yt-event-icon { 
  font-size: 16px; 
  flex-shrink: 0;
  opacity: 0.8;
}
.yt-event-info { flex: 1; min-width: 0; }
.yt-event-title { 
  font-size: 12px; 
  font-weight: 700; 
  color: var(--text);
  line-height: 1.4;
}
.yt-event-meta  { 
  font-size: 10px; 
  color: var(--muted); 
  margin-top: 3px;
  font-weight: 500;
}

/* Articles list */
.yt-article-item {
  display:     flex;
  align-items: flex-start;
  gap:         12px;
  padding:     10px 0;
  border-bottom: 1px solid var(--border);
  transition:   all .2s cubic-bezier(.4, 0, .2, 1);
}
.yt-article-item:hover {
  background: rgba(224, 48, 48, 0.02);
  transform: translateX(2px);
}
.yt-article-item:last-child { border-bottom: none; }
.yt-article-icon { 
  font-size: 16px; 
  flex-shrink: 0;
  opacity: 0.8;
}
.yt-article-info { flex: 1; min-width: 0; }
.yt-article-title { 
  font-size: 12px; 
  font-weight: 700; 
  color: var(--text);
  line-height: 1.4;
}
.yt-article-meta  { 
  font-size: 10px; 
  color: var(--muted); 
  margin-top: 3px;
  font-weight: 500;
}

/* ══════════════════════════════════════════════════════
   COMMENTS DRAWER (desktop) — slides in from right
══════════════════════════════════════════════════════ */
.yt-comments-drawer {
  position:       fixed;
  top:            0;
  right:          0;
  bottom:         0;
  width:          340px;
  background:     var(--surface);
  border-left:    1px solid var(--border);
  display:        flex;
  flex-direction: column;
  z-index:        200;
  transform:      translateX(100%);
  transition:     transform .28s cubic-bezier(.4,0,.2,1);
  box-shadow:     -4px 0 24px rgba(0,0,0,.35);
}
.yt-comments-drawer--open { transform: translateX(0); }

.yt-comments-header {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  padding:         14px 16px 12px;
  border-bottom:   1px solid var(--border);
  flex-shrink:     0;
  gap:             8px;
}
.yt-comments-title { font-size: 15px; font-weight: 800; color: var(--text); margin: 0; }
.yt-comments-header-right { display: flex; align-items: center; gap: 6px; }
.yt-comments-sort-btn {
  font-size:     11px;
  font-weight:   700;
  color:         var(--muted);
  background:    none;
  border:        1px solid var(--border);
  border-radius: 50px;
  padding:       3px 10px;
  cursor:        pointer;
  transition:    all .15s;
}
.yt-comments-sort-btn--active { color: var(--text); border-color: var(--gold); background: rgba(232,184,75,.1); }
.yt-comments-close-btn {
  background: none; border: none; color: var(--muted);
  cursor: pointer; font-size: 16px; padding: 2px 6px;
}
.yt-comments-close-btn:hover { color: var(--text); }

.yt-comments-list {
  flex: 1; overflow-y: auto; min-height: 0;
  scrollbar-width: thin; scrollbar-color: var(--border) transparent;
}
.yt-comments-list::-webkit-scrollbar { width: 4px; }
.yt-comments-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.yt-comments-empty {
  display:         flex;
  flex-direction:  column;
  align-items:     center;
  gap:             10px;
  padding:         48px 24px;
  text-align:      center;
  color:           var(--muted);
  font-size:       13px;
}
.yt-comments-empty-icon { font-size: 40px; }

.yt-comments-backdrop {
  display:    none;
  position:   fixed;
  inset:      0;
  background: rgba(0,0,0,.45);
  z-index:    199;
}
.yt-comments-backdrop--open { display: block; }

.yt-comments-input-row {
  display:       flex;
  align-items:   flex-end;
  gap:           8px;
  padding:       10px 12px;
  border-top:    1px solid var(--border);
  flex-shrink:   0;
}
.yt-comments-avatar {
  width:         32px;
  height:        32px;
  border-radius: 50%;
  background:    var(--panel);
  display:       grid;
  place-items:   center;
  font-size:     16px;
  flex-shrink:   0;
  overflow:      hidden;
}
.yt-comments-avatar img { width: 100%; height: 100%; object-fit: cover; }
.yt-comment-textarea {
  flex:         1;
  background:   var(--panel);
  border:       1px solid var(--border);
  border-radius: var(--r-sm);
  color:        var(--text);
  font-size:    13px;
  padding:      8px 10px;
  resize:       none;
  min-height:   36px;
  max-height:   100px;
  outline:      none;
  font-family:  var(--font-ui);
  transition:   border-color .15s;
}
.yt-comment-textarea:focus { border-color: var(--gold); }
.yt-comment-send-btn {
  width:         36px; height: 36px;
  border-radius: 50%;
  background:    var(--teal);
  border:        none;
  color:         #000;
  display:       grid;
  place-items:   center;
  cursor:        pointer;
  flex-shrink:   0;
  transition:    opacity .15s;
}
.yt-comment-send-btn:disabled { opacity: .4; cursor: not-allowed; }
.yt-comment-send-btn svg { width: 16px; height: 16px; }

/* Comment items */
.yt-comment-item {
  display:  flex;
  gap:      10px;
  padding:  10px 14px;
  border-bottom: 1px solid var(--border);
  animation: yt-cmt-in .25s ease both;
}
.yt-comment-item:last-child { border-bottom: none; }
@keyframes yt-cmt-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0);    }
}
.yt-comment-item--new { animation: yt-cmt-in .3s ease both; }

.yt-comment-avatar {
  width:         30px; height: 30px;
  border-radius: 50%;
  background:    var(--panel);
  display:       grid;
  place-items:   center;
  font-size:     12px;
  font-weight:   700;
  flex-shrink:   0;
  overflow:      hidden;
  color:         var(--muted);
}
.yt-comment-avatar img { width: 100%; height: 100%; object-fit: cover; }
.yt-comment-body   { flex: 1; min-width: 0; }
.yt-comment-meta   { display: flex; align-items: center; gap: 6px; margin-bottom: 3px; flex-wrap: wrap; }
.yt-comment-author { font-size: 12px; font-weight: 700; color: var(--text); }
.yt-comment-ts     { font-size: 11px; color: var(--muted); }
.yt-comment-text   { font-size: 13px; color: var(--text-2); line-height: 1.45; }
.yt-comment-actions { display: flex; gap: 8px; margin-top: 6px; }
.yt-comment-like-btn {
  display:     flex;
  align-items: center;
  gap:         4px;
  background:  none;
  border:      none;
  color:       var(--muted);
  font-size:   11px;
  cursor:      pointer;
  padding:     0;
}
.yt-comment-like-btn svg { width: 13px; height: 13px; }
.yt-comment-like-btn:hover { color: var(--red); }

/* ══════════════════════════════════════════════════════
   EVENTS DRAWER (desktop)
══════════════════════════════════════════════════════ */
/* ══════════════════════════════════════════════════════
   EVENTS DRAWER (desktop) — centred bottom sheet
══════════════════════════════════════════════════════ */
.yt-events-drawer {
  position:       fixed;
  bottom:         0;
  left:           50%;
  transform:      translateX(-50%) translateY(100%);
  width:          min(480px, 96vw);
  max-height:     65vh;
  background:     var(--surface);
  border:         1px solid var(--border);
  border-bottom:  none;
  border-radius:  20px 20px 0 0;
  display:        flex;
  flex-direction: column;
  z-index:        200;
  transition:     transform .3s cubic-bezier(.4,0,.2,1);
  box-shadow:     0 -8px 40px rgba(0,0,0,.5);
}
.yt-events-drawer--open {
  transform: translateX(-50%) translateY(0);
}
.yt-events-header {
  display:     flex;
  align-items: center;
  justify-content: space-between;
  padding:     14px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.yt-events-header h3 { margin: 0; font-size: 15px; font-weight: 800; color: var(--text); }
.yt-events-header button {
  background: none; border: none; color: var(--muted);
  cursor: pointer; font-size: 16px; padding: 2px 6px;
}
.yt-events-body { flex: 1; overflow-y: auto; min-height: 0; padding: 12px 14px; }
.yt-events-backdrop {
  display:    none;
  position:   fixed;
  inset:      0;
  background: rgba(0,0,0,.4);
  z-index:    199;
}
.yt-events-backdrop--open { display: block; }

/* ══════════════════════════════════════════════════════
   MOBILE LAYOUT
══════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .hl-desktop     { display: none; }
  .yt-mobile-feed {
    display:          block;
    height:           100vh;
    overflow-y:       scroll;
    scroll-snap-type: y mandatory;
    scrollbar-width:  none;
  }
  .yt-mobile-feed::-webkit-scrollbar { display: none; }

  /* Mobile top bar */
  .yt-mob-topbar {
    position:        sticky;
    top:             0;
    z-index:         50;
    display:         flex;
    align-items:     center;
    justify-content: space-between;
    padding:         10px 14px;
    background:      linear-gradient(to bottom, rgba(0,0,0,.7) 0%, transparent 100%);
  }
  .yt-mob-topbar-title {
    font-family: var(--font-display);
    font-size:   18px;
    font-weight: 800;
    color:       #fff;
  }
  .yt-mob-topbar-sub   { color: var(--gold); font-style: italic; }
  .yt-mob-topbar-actions { display: flex; gap: 8px; }
  .yt-mob-topbar-btn {
    background: rgba(0,0,0,.4);
    border:     1px solid rgba(255,255,255,.15);
    border-radius: 50%;
    width:      36px; height: 36px;
    display:    grid; place-items: center;
    color:      #fff; cursor: pointer;
  }
  .yt-mob-notif-dot {
    position:      absolute;
    top:           6px; right: 6px;
    width:         7px; height: 7px;
    border-radius: 50%;
    background:    var(--red);
  }
  .yt-mob-notif-dot.hidden { display: none; }

  /* Full-screen slides */
  .yt-mob-reel {
    position:       relative;
    height:         100vh;
    scroll-snap-align: start;
    background:     #000;
    overflow:       hidden;
  }
  .yt-mob-reel-media {
    width:      100%;
    height:     100%;
    object-fit: cover;
    display:    block;
  }

  /* Seekbar */
  .yt-mob-segs {
    position:   absolute;
    bottom:     64px;
    left:       0; right: 0;
    padding:    0 12px 6px;
    z-index:    10;
  }
  .yt-mob-time {
    display:         flex;
    justify-content: space-between;
    font-size:       10px;
    color:           rgba(255,255,255,.7);
    margin-bottom:   4px;
  }
  .yt-mob-seekbar {
    width:       100%;
    appearance:  none;
    height:      3px;
    border-radius: 3px;
    background:  linear-gradient(to right, var(--gold) var(--pct, 0%), rgba(255,255,255,.3) var(--pct, 0%));
    cursor:      pointer;
    outline:     none;
  }
  .yt-mob-seekbar::-webkit-slider-thumb {
    appearance: none;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--gold);
    margin-top: -4.5px;
  }

  /* Footer */
  .yt-mob-reel-footer {
    position:   absolute;
    bottom:     80px;
    left:       14px; right: 72px;
    z-index:    10;
    text-shadow: 0 1px 4px rgba(0,0,0,.8);
  }
  .yt-mob-reel-title { font-size: 14px; font-weight: 800; color: #fff; margin-bottom: 3px; }
  .yt-mob-reel-desc  { font-size: 12px; color: rgba(255,255,255,.8); }

  /* Right action buttons */
  .yt-mob-reel-actions {
    position:       absolute;
    right:          10px;
    bottom:         88px;
    display:        flex;
    flex-direction: column;
    gap:            8px;
    align-items:    center;
    z-index:        10;
  }
  .yt-mob-action-btn {
    display:        flex;
    flex-direction: column;
    align-items:    center;
    gap:            3px;
    background:     none;
    border:         none;
    border-radius:  0;
    padding:        8px 6px;
    color:          #fff;
    cursor:         pointer;
    font-size:      10px;
    font-weight:    700;
    min-width:      44px;
    transition:     opacity .15s, transform .12s;
  }
  .yt-mob-action-btn svg { width: 22px; height: 22px; filter: drop-shadow(0 1px 3px rgba(0,0,0,.7)); }
  .yt-mob-action-btn:active { transform: scale(.88); }
  .yt-mob-action-btn--liked svg { fill: var(--red); stroke: var(--red); }
  .yt-mob-action-lbl { font-size: 10px; text-shadow: 0 1px 3px rgba(0,0,0,.8); }
  .yt-mob-mute-btn {
    position:      absolute;
    top:           12px; right: 12px;
    width:         34px; height: 34px;
    border-radius: 50%;
    background:    rgba(0,0,0,.5);
    display:       grid; place-items: center;
    cursor:        pointer; color: #fff; z-index: 10;
  }

  /* Mobile bottom sheet */
  .yt-mob-sheet {
    position:       fixed;
    bottom:         0; left: 0; right: 0;
    background:     var(--surface);
    border-radius:  20px 20px 0 0;
    z-index:        300;
    display:        flex;
    flex-direction: column;
    max-height:     75dvh;
    transform:      translateY(100%);
    transition:     transform .3s cubic-bezier(.4,0,.2,1);
  }
  .yt-mob-sheet--open { transform: translateY(0); }
  .yt-mob-sheet-handle {
    width:         40px; height: 4px;
    border-radius: 4px;
    background:    var(--border-md);
    margin:        10px auto 0;
    flex-shrink:   0;
  }
  .yt-mob-sheet-header {
    display:     flex;
    align-items: center;
    justify-content: space-between;
    padding:     12px 16px 8px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
  }
  .yt-mob-sheet-title { font-size: 14px; font-weight: 800; color: var(--text); }
  .yt-mob-sheet-close {
    background: none; border: none; color: var(--muted);
    cursor: pointer; font-size: 16px; padding: 2px 6px;
  }
  .yt-mob-sheet-body { flex: 1; overflow-y: auto; min-height: 0; padding: 12px 14px 80px; }
  .yt-mob-sheet-backdrop {
    display:    none; position: fixed; inset: 0;
    background: rgba(0,0,0,.45); z-index: 299;
  }
  .yt-mob-sheet-backdrop--open { display: block; }
}

/* ══════════════════════════════════════════════════════
   NARROW DESKTOP (collapse queue at 960px)
══════════════════════════════════════════════════════ */
@media (min-width: 769px) and (max-width: 960px) {
  .hl-desktop {
    grid-template-columns: 160px 1fr 240px;
  }
  .hl-queue-card-desc { display: none; }
}

/* Compact queue for very narrow desktops */
@media (min-width: 769px) and (max-width: 800px) {
  .hl-desktop {
    grid-template-columns: 0 1fr 0;
  }
  .hl-queue,
  .hl-right { display: none; }
}
