.neo-yt-row {
  --bg: #0b1220;
  --card: #0f172a;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --accent: #60a5fa;

  background:
    radial-gradient(1200px 420px at 15% -10%, #18223a 0%, transparent 55%),
    radial-gradient(1200px 420px at 85% -10%, #0b1a35 0%, transparent 55%),
    var(--bg);
  color: var(--text);
  border-radius: 18px;
  padding: 18px 18px 14px;
  margin: 18px auto;
  max-width: 1200px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

.neo-yt-row--error {
  padding: 12px;
  background: #111827;
  color: #e5e7eb;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
}

.neo-yt-row__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.neo-yt-row__title {
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 700;
  margin: 0 0 4px;
  letter-spacing: 0.2px;
}

.neo-yt-row__subtitle {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

.neo-yt-row__controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.neo-yt-row__btn {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border 0.15s ease;
}
.neo-yt-row__btn:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.2);
}

.neo-yt-row__channel {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(96,165,250,0.35);
  background: rgba(96,165,250,0.08);
  transition: background 0.15s ease, border 0.15s ease;
}
.neo-yt-row__channel:hover {
  background: rgba(96,165,250,0.14);
  border-color: rgba(96,165,250,0.6);
}

.neo-yt-row__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 320px);
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.25) transparent;
  will-change: scroll-position;
}

.neo-yt-row__track::-webkit-scrollbar { height: 8px; }
.neo-yt-row__track::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.25);
  border-radius: 8px;
}
.neo-yt-row__track::-webkit-scrollbar-track { background: transparent; }

.neo-yt-row__card {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.0)),
    var(--card);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 10px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  transition: transform 0.18s ease, border 0.18s ease;
}
.neo-yt-row__card:hover {
  transform: translateY(-2px);
  border-color: rgba(96,165,250,0.4);
}

.neo-yt-row__thumb-btn {
  position: relative;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.neo-yt-row__thumb {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  background: #000;
}

.neo-yt-row__thumb--blank {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  background: #000;
}

.neo-yt-row__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 34px;
  color: white;
  text-shadow: 0 6px 18px rgba(0,0,0,0.6);
  opacity: 0.95;
}

.neo-yt-row__frame {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  overflow: hidden;
  border-radius: 10px;
  background: #000;
}

.neo-yt-row__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.neo-yt-row__card-title {
  margin: 8px 2px 2px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
}

/* ---------------------------
   MOBILE MODE
   - one video per view
   - full width
   - hide UI/header + titles
---------------------------- */
@media (max-width: 640px) {
  .neo-yt-row {
    border-radius: 0;
    padding: 0;
    margin: 0;
    max-width: 100%;
    box-shadow: none;
    background: transparent;
  }

  .neo-yt-row__header { display: none !important; }
  .neo-yt-row__card-title { display: none !important; }

  .neo-yt-row__track {
    grid-auto-columns: 100%;
    gap: 0;
    padding: 0;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .neo-yt-row__track::-webkit-scrollbar { display: none; }

  .neo-yt-row__card {
    border-radius: 0;
    padding: 0;
    border: 0;
    box-shadow: none;
    scroll-snap-align: center;
    background: transparent;
  }

  .neo-yt-row__thumb,
  .neo-yt-row__thumb--blank,
  .neo-yt-row__frame {
    border-radius: 0;
  }
}
