/* =====================================================
   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; }

/* ==================== 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);
}

/* ==================== 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;
}

.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: var(--yt-red);
  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; }

.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;
}

/* 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; }