/**
 * YouTube Music Plugin - Stylesheet
 * Integrates natively with Kizmio and kizmiotheme tokens.
 * Supports Light mode and Dark mode.
 */

:root {
  --ytm-primary: #ef4444;
  --ytm-primary-hover: #dc2626;
  --ytm-primary-soft: rgba(239, 68, 68, 0.12);
  --ytm-bg: var(--kzm-bg, #f8fafc);
  --ytm-surface: var(--kzm-surface, #ffffff);
  --ytm-surface-soft: var(--kzm-surface-soft, #f1f5f9);
  --ytm-border: var(--kzm-border, #e2e8f0);
  --ytm-text: var(--kzm-text, #0f172a);
  --ytm-muted: var(--kzm-muted, #64748b);
  --ytm-radius-sm: 10px;
  --ytm-radius-md: 16px;
  --ytm-radius-lg: 22px;
  --ytm-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
  --ytm-shadow-hover: 0 8px 30px rgba(239, 68, 68, 0.16);
}

/* Dark Mode Adaptation */
body.night-mode,
.kizmiotheme.night-mode,
.night-mode,
body[data-bs-theme="dark"] {
  --ytm-bg: #0f172a;
  --ytm-surface: #1e293b;
  --ytm-surface-soft: #263346;
  --ytm-border: #334155;
  --ytm-text: #f8fafc;
  --ytm-muted: #94a3b8;
  --ytm-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

/* Shell Layout */
.kizmio-music-page {
  margin-top: 20px !important;
  margin-bottom: 90px !important; /* Spacing for docked mini-player */
}

@media (max-width: 767.98px) {
  .kizmio-music-page {
    margin-top: 10px !important;
  }
}

/* -------------------------------------------------------------------------- */
/* 1. HERO BANNER (PLACES-INSPIRED)                                          */
/* -------------------------------------------------------------------------- */
.ytm-hero {
  position: relative;
  background: linear-gradient(135deg, #180811 0%, #29081e 50%, #0d1117 100%);
  border-radius: var(--ytm-radius-lg);
  color: #ffffff;
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.2);
  margin-bottom: 24px;
}

body.night-mode .ytm-hero {
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.ytm-hero__ambient {
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(239, 68, 68, 0.35) 0%, rgba(239, 68, 68, 0) 70%);
  pointer-events: none;
  filter: blur(40px);
}

.ytm-hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 32px;
  padding: 36px 32px;
  z-index: 2;
  align-items: center;
}

.ytm-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #ff6b6b;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
}

.ytm-hero h1 {
  font-size: 2.1rem;
  font-weight: 850;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 12px;
}

.ytm-hero h1 span {
  background: linear-gradient(135deg, #ff4b4b, #ff8f70);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ytm-hero p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.98rem;
  line-height: 1.5;
  margin-bottom: 20px;
  max-width: 560px;
}

.ytm-hero-search {
  position: relative;
  display: flex;
  align-items: center;
  background: #ffffff;
  border-radius: 14px;
  padding: 4px 6px 4px 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  max-width: 520px;
  margin-bottom: 18px;
}

.ytm-hero-search > i,
.ytm-hero-search__icon {
  color: #ef4444;
  font-size: 1.05rem;
  margin-right: 10px;
}

.ytm-hero-search input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 10px 0;
  color: #0f172a;
  font-size: 0.92rem;
  outline: none;
}

.ytm-hero-search button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #ffffff !important;
  border: none;
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ytm-hero-search button i,
.ytm-hero-search button span {
  color: #ffffff !important;
}

.ytm-hero-search button:hover {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  transform: translateY(-1px);
}

.ytm-hero__features {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
}

.ytm-hero__features span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ytm-hero__features span i {
  color: #ff6b6b;
}

/* Hero Showcase Card Carousel */
.ytm-hero-visual {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ytm-hero-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 10px 14px;
  text-decoration: none !important;
  color: #ffffff !important;
  transition: all 0.2s ease;
}

.ytm-hero-card:hover,
.ytm-hero-card:focus {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(239, 68, 68, 0.5);
  transform: translateX(4px);
  color: #ffffff !important;
  text-decoration: none !important;
}

.ytm-hero-card__thumb {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: #000000;
}

.ytm-hero-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ytm-hero-card__thumb .play-icon {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.4);
  color: #ffffff;
  font-size: 0.9rem;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.ytm-hero-card:hover .play-icon {
  opacity: 1;
}

.ytm-hero-card__body {
  min-width: 0;
  flex: 1;
}

.ytm-hero-card__body small {
  display: block;
  font-size: 0.7rem;
  color: #ff8f70;
  font-weight: 700;
  text-transform: uppercase;
}

.ytm-hero-card__body strong,
.ytm-hero-card:hover .ytm-hero-card__body strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 750;
  color: #ffffff !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ytm-hero-card__body em {
  display: block;
  font-style: normal;
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.65);
}

@media (max-width: 991.98px) {
  .ytm-hero__inner {
    grid-template-columns: 1fr !important;
    padding: 28px 24px !important;
  }
  .ytm-hero-visual {
    display: none !important;
  }
}

@media (max-width: 767.98px) {
  .ytm-hero h1 {
    font-size: 1.6rem !important;
  }
  .ytm-hero__inner {
    padding: 20px 16px !important;
  }
  .ytm-hero p {
    font-size: 0.88rem !important;
  }
}

/* -------------------------------------------------------------------------- */
/* 2. CATEGORY STRIP                                                         */
/* -------------------------------------------------------------------------- */
.ytm-category-strip {
  border-radius: var(--ytm-radius-md);
  background: var(--ytm-surface);
  border: 1px solid var(--ytm-border);
  padding: 16px 20px;
  box-shadow: var(--ytm-shadow);
  margin-bottom: 24px;
}

.ytm-category-strip__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.ytm-category-strip__head h2 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ytm-text);
  margin: 0;
}

.ytm-category-strip__track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
}

.ytm-category-strip__track::-webkit-scrollbar {
  height: 5px;
}

.ytm-category-strip__track::-webkit-scrollbar-thumb {
  background: var(--ytm-border);
  border-radius: 10px;
}

.ytm-category-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ytm-surface-soft);
  border: 1px solid var(--ytm-border);
  color: var(--ytm-text);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
  transition: all 0.2s ease;
}

.ytm-category-pill:hover,
.ytm-category-pill.is-active {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  border-color: #ef4444;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
}

.ytm-category-pill i {
  color: #ef4444;
  font-size: 0.85rem;
}

.ytm-category-pill.is-active i,
.ytm-category-pill:hover i {
  color: #ffffff;
}

/* -------------------------------------------------------------------------- */
/* 3. MUSIC CARDS                                                            */
/* -------------------------------------------------------------------------- */
.ytm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}

@media (max-width: 575.98px) {
  .ytm-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

.ytm-card {
  position: relative;
  background: var(--ytm-surface);
  border: 1px solid var(--ytm-border);
  border-radius: var(--ytm-radius-md);
  overflow: hidden;
  box-shadow: var(--ytm-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.ytm-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--ytm-shadow-hover);
  border-color: rgba(239, 68, 68, 0.3);
}

.ytm-card__thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
  overflow: hidden;
}

.ytm-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.ytm-card:hover .ytm-card__thumb img {
  transform: scale(1.04);
}

.ytm-card__play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  transition: opacity 0.2s ease;
  cursor: pointer;
}

.ytm-card:hover .ytm-card__play-overlay {
  opacity: 1;
}

.ytm-card__play-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ef4444;
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.4);
  transform: scale(0.9);
  transition: transform 0.2s ease;
}

.ytm-card:hover .ytm-card__play-btn {
  transform: scale(1);
}

.ytm-card__badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(15, 23, 42, 0.85);
  color: #ffffff;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  backdrop-filter: blur(4px);
}

.ytm-card__body {
  padding: 12px 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ytm-card__title {
  font-size: 0.88rem;
  font-weight: 750;
  color: var(--ytm-text);
  line-height: 1.3;
  margin-bottom: 6px;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-decoration: none;
}

.ytm-card__title:hover {
  color: #ef4444;
}

.ytm-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  font-size: 0.74rem;
  color: var(--ytm-muted);
}

.ytm-card__uploader {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ytm-muted);
  text-decoration: none;
  font-weight: 600;
  max-width: 60%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ytm-card__uploader:hover {
  color: var(--ytm-text);
}

.ytm-card__uploader img {
  width: 18px;
  height: 18px;
  border-radius: 50%;
}

.ytm-card__actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.ytm-card__action-btn {
  background: transparent;
  border: none;
  color: var(--ytm-muted);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ytm-card__action-btn:hover {
  background: var(--ytm-surface-soft);
  color: #ef4444;
}

/* -------------------------------------------------------------------------- */
/* 4. COMPACT 200px × 200px YOUTUBE PLAYER                                    */
/* -------------------------------------------------------------------------- */
.ytm-player-wrapper {
  background: var(--ytm-surface);
  border: 1px solid var(--ytm-border);
  border-radius: var(--ytm-radius-lg);
  padding: 24px;
  box-shadow: var(--ytm-shadow);
  margin-bottom: 24px;
}

.ytm-player-row {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

@media (max-width: 767.98px) {
  .ytm-player-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* Strict 200px × 200px Player Frame */
.ytm-player-200 {
  position: relative;
  width: 200px !important;
  height: 200px !important;
  max-width: 200px !important;
  max-height: 200px !important;
  flex: 0 0 200px !important;
  border-radius: 14px;
  overflow: hidden;
  background: #000000;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  margin: 0 auto;
}

.ytm-player-200 iframe,
.ytm-player-200 #ytm-iframe-target {
  width: 200px !important;
  height: 200px !important;
  border: none !important;
  display: block !important;
}

/* Block rogue embeds / auto-injected iframes inside YouTube Music */
.ytm-player-wrapper .video-shield-wrapper,
.ytm-player-wrapper .youtube-outside-readmore,
.ytm-player-info iframe:not(#ytm-iframe-target),
.ytm-player-actions iframe {
  display: none !important;
}

.ytm-player-info {
  flex: 1;
  min-width: 0;
}

.ytm-player-info h1 {
  font-size: 1.45rem;
  font-weight: 850;
  color: var(--ytm-text);
  line-height: 1.25;
  margin-bottom: 8px;
}

.ytm-player-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-size: 0.84rem;
  color: var(--ytm-muted);
  margin-bottom: 16px;
}

.ytm-player-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ytm-player-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.ytm-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--ytm-radius-sm);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ytm-btn-primary {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #ffffff;
}

.ytm-btn-primary:hover {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  color: #ffffff;
  transform: translateY(-1px);
}

.ytm-btn-secondary {
  background: var(--ytm-surface-soft);
  color: var(--ytm-text);
  border: 1px solid var(--ytm-border);
}

.ytm-btn-secondary:hover {
  background: var(--ytm-border);
  color: var(--ytm-text);
}

/* -------------------------------------------------------------------------- */
/* 5. PERSISTENT MINI-PLAYER (DOCKED AT BOTTOM)                              */
/* -------------------------------------------------------------------------- */
.ytm-mini-player {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1040;
  background: var(--ytm-surface);
  border-top: 1px solid var(--ytm-border);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.12);
  padding: 8px 16px;
  display: none; /* Shown via JS when playing */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.ytm-mini-player.is-active {
  display: block;
}

.ytm-mini-player__inner {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.ytm-mini-player__track {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.ytm-mini-player__thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.ytm-mini-player__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ytm-mini-player__text {
  min-width: 0;
}

.ytm-mini-player__title {
  font-size: 0.88rem;
  font-weight: 750;
  color: var(--ytm-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.ytm-mini-player__artist {
  font-size: 0.74rem;
  color: var(--ytm-muted);
}

.ytm-mini-player__controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ytm-control-btn {
  background: transparent;
  border: none;
  color: var(--ytm-text);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ytm-control-btn:hover {
  background: var(--ytm-surface-soft);
  color: #ef4444;
}

.ytm-control-btn.is-active {
  color: #ef4444;
  background: var(--ytm-primary-soft);
}

.ytm-control-btn--play {
  background: #ef4444;
  color: #ffffff;
  font-size: 1.1rem;
}

.ytm-control-btn--play:hover {
  background: #dc2626;
  color: #ffffff;
}

.ytm-mini-player__dock {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* -------------------------------------------------------------------------- */
/* 6. SIDEBAR COMPATIBILITY (MATCHING PLACES STYLE)                         */
/* -------------------------------------------------------------------------- */
.ytm-sidebar-card {
  border: 1px solid var(--ytm-border) !important;
  border-radius: var(--ytm-radius-md) !important;
  background: var(--ytm-surface) !important;
  box-shadow: var(--ytm-shadow) !important;
  overflow: hidden !important;
  padding: 0 !important;
  margin-bottom: 20px !important;
}

.ytm-sidebar-identity {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 18px !important;
  background: linear-gradient(145deg, rgba(239, 68, 68, 0.08), var(--ytm-surface)) !important;
  border-bottom: 1px solid var(--ytm-border) !important;
}

.ytm-sidebar-identity > span {
  display: grid !important;
  width: 44px !important;
  height: 44px !important;
  place-items: center !important;
  flex: 0 0 44px !important;
  color: #ffffff !important;
  background: linear-gradient(135deg, #ef4444, #dc2626) !important;
  border-radius: 13px !important;
  box-shadow: 0 8px 18px rgba(239, 68, 68, 0.24) !important;
  font-size: 1.15rem !important;
}

.ytm-sidebar-identity small {
  display: block !important;
  color: #ef4444 !important;
  font-size: 0.67rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  margin: 0 !important;
}

.ytm-sidebar-identity h2 {
  display: block !important;
  margin: 0 !important;
  color: var(--ytm-text) !important;
  font-size: 1.08rem !important;
  font-weight: 850 !important;
  letter-spacing: -0.01em !important;
}

.ytm-sidebar-pill {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  width: 100% !important;
  padding: 9px 12px !important;
  color: var(--ytm-text) !important;
  text-decoration: none !important;
  background: var(--ytm-surface-soft) !important;
  border: 1px solid var(--ytm-border) !important;
  border-radius: 12px !important;
  margin-bottom: 6px !important;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  transition: all 0.18s ease !important;
}

.ytm-sidebar-pill:hover,
.ytm-sidebar-pill.is-active {
  background: linear-gradient(135deg, #ef4444, #dc2626) !important;
  border-color: #ef4444 !important;
  color: #ffffff !important;
}

.ytm-sidebar-pill__icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--ytm-surface);
  color: #ef4444;
  font-size: 0.85rem;
}

.ytm-sidebar-pill:hover .ytm-sidebar-pill__icon,
.ytm-sidebar-pill.is-active .ytm-sidebar-pill__icon {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

/* -------------------------------------------------------------------------- */
/* 7. WIDGETS (LISTENING NOW & TOP LISTENERS)                                */
/* -------------------------------------------------------------------------- */
.ytm-widget {
  background: var(--ytm-surface);
  border: 1px solid var(--ytm-border);
  border-radius: var(--ytm-radius-md);
  padding: 16px;
  margin-bottom: 20px;
  box-shadow: var(--ytm-shadow);
}

.ytm-widget__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--ytm-border);
}

.ytm-widget__head h3 {
  font-size: 0.94rem;
  font-weight: 800;
  color: var(--ytm-text);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ytm-widget__head h3 i {
  color: #ef4444;
}

.ytm-widget-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 8px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--ytm-text);
  transition: background 0.18s ease;
}

.ytm-widget-item:hover {
  background: var(--ytm-surface-soft);
  color: var(--ytm-text);
}

.ytm-widget-item img {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  object-fit: cover;
}

.ytm-widget-item__info {
  flex: 1;
  min-width: 0;
}

.ytm-widget-item__title {
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.ytm-widget-item__sub {
  font-size: 0.7rem;
  color: var(--ytm-muted);
}

/* -------------------------------------------------------------------------- */
/* 200px × 200px VIDEO FRAME CARDS & GRID                                     */
/* -------------------------------------------------------------------------- */
.ytm-section-200 {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.ytm-grid-200 {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 28px;
}

@media (max-width: 575.98px) {
  .ytm-grid-200 {
    justify-content: center;
    gap: 16px;
  }
}

.ytm-card-200 {
  width: 200px;
  flex: 0 0 200px;
  display: flex;
  flex-direction: column;
  background: var(--ytm-surface);
  border: 1px solid var(--ytm-border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--ytm-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.ytm-card-200:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  border-color: rgba(239, 68, 68, 0.4);
}

.ytm-card-200--active {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.35) !important;
}

/* Strict 200px × 200px Video Frame */
.ytm-frame-200 {
  position: relative;
  width: 200px !important;
  height: 200px !important;
  min-width: 200px !important;
  min-height: 200px !important;
  max-width: 200px !important;
  max-height: 200px !important;
  background: #000000;
  overflow: hidden;
}

.ytm-frame-200 img {
  width: 200px !important;
  height: 200px !important;
  object-fit: cover !important;
  display: block;
  transition: transform 0.3s ease;
}

.ytm-card-200:hover .ytm-frame-200 img {
  transform: scale(1.05);
}

.ytm-frame-200__badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
  color: #ffffff;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.ytm-frame-200__now-playing {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(239, 68, 68, 0.95);
  backdrop-filter: blur(4px);
  color: #ffffff;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 750;
  z-index: 2;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}

.ytm-frame-200__play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.38);
  opacity: 0;
  transition: opacity 0.2s ease;
  cursor: pointer;
  z-index: 3;
  text-decoration: none;
}

.ytm-card-200:hover .ytm-frame-200__play-overlay {
  opacity: 1;
}

.ytm-frame-200__play-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ef4444;
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.5);
  transform: scale(0.9);
  transition: transform 0.2s ease;
}

.ytm-card-200:hover .ytm-frame-200__play-btn {
  transform: scale(1);
}

.ytm-card-200__body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.ytm-card-200__title {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--ytm-text);
  text-decoration: none;
  line-height: 1.35;
  margin-bottom: 6px;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ytm-card-200__title:hover {
  color: #ef4444;
}

.ytm-card-200__meta {
  font-size: 0.76rem;
  color: var(--ytm-muted);
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: auto;
}

/* -------------------------------------------------------------------------- */
/* Custom Instrument Icon Fallbacks                                            */
/* -------------------------------------------------------------------------- */
.fa-saxophone,
.fa-solid.fa-saxophone {
  font-family: inherit !important;
  font-style: normal;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.fa-saxophone::before,
.fa-solid.fa-saxophone::before {
  content: "" !important;
  display: inline-block !important;
  width: 1em !important;
  height: 1em !important;
  vertical-align: -0.125em !important;
  background-color: currentColor !important;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a1 1 0 0 0-1 1v12.2A3 3 0 0 0 8 18a3 3 0 1 0 3-3V7.8l6-1.8V11a3 3 0 0 0-3 2.8 3 3 0 1 0 3-2.8V3a1 1 0 0 0-1-1h-5z'/%3E%3C/svg%3E") no-repeat center / contain !important;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a1 1 0 0 0-1 1v12.2A3 3 0 0 0 8 18a3 3 0 1 0 3-3V7.8l6-1.8V11a3 3 0 0 0-3 2.8 3 3 0 1 0 3-2.8V3a1 1 0 0 0-1-1h-5z'/%3E%3C/svg%3E") no-repeat center / contain !important;
}

.fa-itunes-note,
.fa-solid.fa-itunes-note {
  font-family: inherit !important;
  font-style: normal;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.fa-itunes-note::before,
.fa-solid.fa-itunes-note::before {
  content: "" !important;
  display: inline-block !important;
  width: 1em !important;
  height: 1em !important;
  vertical-align: -0.125em !important;
  background-color: currentColor !important;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3v10.55c-.59-.34-1.27-.55-2-.55-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4V7h4V3h-6z'/%3E%3C/svg%3E") no-repeat center / contain !important;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3v10.55c-.59-.34-1.27-.55-2-.55-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4V7h4V3h-6z'/%3E%3C/svg%3E") no-repeat center / contain !important;
}

