/* ============================================================
   Eklipses — Netflix-style category rows
   Additive stylesheet. Works alongside existing <style> block.
   ============================================================ */

/* The main layout switches from 2-column (stage + sidebar) to stacked:
   stage on top, Netflix rows below. */
.wrap.netflix-mode {
  display: block;
  height: auto;
  min-height: 0;
  padding: 16px;
}

.wrap.netflix-mode .stage {
  max-width: 860px;
  margin: 0 auto 28px auto;
}

/* Compact idle frame — orb fills it; has-bg overrides to 520px when a scenario is active */
.wrap.netflix-mode .media {
  height: 220px;
}

/* The old right shelf is hidden in netflix mode */
.wrap.netflix-mode aside.shelf { display: none; }

/* ===== Netflix rows container ===== */
.nf-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 8px;
}

.nf-intro {
  text-align: center;
  color: #cfd6e4;
  margin: 0 0 20px 0;
  font-size: 14px;
}

.nf-row {
  margin-bottom: 48px;
}

.nf-row:last-child {
  margin-bottom: 16px;
}

.nf-row-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 8px 16px 8px;
  padding-top: 8px;
}

.nf-row-title {
  font-size: 20px;
  font-weight: 500;
  color: #cfd6e4;
  margin: 0;
  letter-spacing: 0;
}

.nf-row-title .nf-emoji {
  margin-right: 10px;
}

.nf-row-count {
  font-size: 13px;
  color: #9aa4b2;
  font-weight: 600;
}

/* Horizontal scrolling strip */
.nf-strip {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 8px 22px 8px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: #2b2e36 transparent;
}

.nf-strip::-webkit-scrollbar { height: 8px; }
.nf-strip::-webkit-scrollbar-track { background: transparent; }
.nf-strip::-webkit-scrollbar-thumb {
  background: #2b2e36;
  border-radius: 4px;
}
.nf-strip::-webkit-scrollbar-thumb:hover { background: #3a3f4b; }

/* Individual scenario card (Netflix tile style) */
.nf-card {
  flex: 0 0 260px;
  background: #1a1c22;
  border: 1px solid #2b2e36;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  scroll-snap-align: start;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  position: relative;
}

.nf-card:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: #ffb300;
  box-shadow: 0 16px 36px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,179,0,0.2);
}

/* Thumbnail area with character overlay */
.nf-card-thumb-wrap {
  position: relative;
  width: 100%;
  height: 158px;
  background: #0a0a0a;
  overflow: hidden;
}

.nf-card-thumb {
  width: 100%;
  height: 158px;
  object-fit: cover;
  background: #0a0a0a;
  display: block;
  transition: transform 0.3s ease;
}

.nf-card:hover .nf-card-thumb {
  transform: scale(1.06);
}

/* Gradient overlay on thumb for text readability */
.nf-card-thumb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,28,34,0.98) 0%, rgba(26,28,34,0.4) 50%, transparent 100%);
  z-index: 1;
}

/* Character name on top of image */
.nf-card-character {
  position: absolute;
  bottom: 10px;
  left: 12px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nf-card-char-name {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.3px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}

.nf-card-char-vibe {
  font-size: 11px;
  color: rgba(255,255,255,0.65);
  font-style: italic;
  text-shadow: 0 1px 4px rgba(0,0,0,0.9);
}

/* NEW badge top-right */
.nf-card-new-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  background: #40c770;
  color: #000;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Fallback gradient thumb when image fails to load */
.nf-card-thumb-fallback {
  width: 100%;
  height: 158px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 800;
}

/* Card body */
.nf-card-body {
  padding: 12px 14px 14px 14px;
}

.nf-card-title {
  font-size: 13px;
  font-weight: 700;
  color: #e9ecf1;
  line-height: 1.3;
  margin: 0 0 10px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 34px;
}

/* Skill trained line */
.nf-card-skill {
  font-size: 11px;
  color: #9aa4b2;
  margin: 0 0 10px 0;
  display: flex;
  align-items: center;
  gap: 5px;
}

.nf-card-skill::before {
  content: '🎯';
  font-size: 10px;
}

/* Difficulty stars */
.nf-card-stars {
  display: flex;
  gap: 3px;
  margin: 0 0 10px 0;
}

.nf-star {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  background: #2b2e36;
}

.nf-star.filled {
  background: #ffb300;
  box-shadow: 0 0 6px rgba(255,179,0,0.4);
}

/* Bottom meta row */
.nf-card-meta {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 11px;
}

.nf-badge {
  padding: 3px 8px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.nf-badge-difficulty {
  background: rgba(255, 179, 0, 0.15);
  color: #ffd67a;
  border: 1px solid rgba(255, 179, 0, 0.3);
}

.nf-badge-duration {
  background: rgba(120, 180, 255, 0.12);
  color: #a8c5ff;
  border: 1px solid rgba(120, 180, 255, 0.25);
}

.nf-badge-new {
  background: rgba(64, 199, 112, 0.15);
  color: #94f1b6;
  border: 1px solid rgba(64, 199, 112, 0.3);
}

/* Category row color accents removed — titles use uniform muted white */

/* Mobile responsiveness */
@media (max-width: 600px) {
  .wrap.netflix-mode .media { height: 56vw !important; min-height: 220px; }
  .nf-card { flex: 0 0 180px; }
  .nf-card-thumb, .nf-card-thumb-fallback, .nf-card-thumb-wrap { height: 110px; }
  .nf-card-char-name { font-size: 14px; }
  .nf-card-char-vibe { font-size: 10px; }
  .nf-card-body { padding: 8px 10px 10px; }
  .nf-card-title { font-size: 12px; min-height: 28px; margin-bottom: 6px; }
  .nf-card-skill { font-size: 10px; margin-bottom: 6px; }
  .nf-card-stars { margin-bottom: 6px; }
  .nf-row-title { font-size: 16px; }
  .nf-row { margin-bottom: 20px; }
  .nf-strip { gap: 10px; padding: 4px 6px 10px 6px; }
  .nf-intro { font-size: 12px; margin-bottom: 12px; }
  .nf-container { padding: 0 4px; }
}

@media (max-width: 720px) and (min-width: 601px) {
  .wrap.netflix-mode .media { height: 280px; }
  .nf-card { flex: 0 0 200px; }
  .nf-card-thumb, .nf-card-thumb-fallback, .nf-card-thumb-wrap { height: 125px; }
  .nf-card-char-name { font-size: 15px; }
  .nf-row-title { font-size: 18px; }
}
