/* ═══════════════════════════════════════════════
   PODCAST WORLD — Black Curtain Stage
   ═══════════════════════════════════════════════ */

.pw-page {
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  overflow: hidden;
  background: #050507;
}

/* ── Curtain Folds ── */
.pw-curtain {
  position: fixed;
  inset: 0;
  display: flex;
  z-index: 0;
  pointer-events: none;
}

.pw-curtain-fold {
  flex: 1;
  position: relative;
  background: linear-gradient(
    180deg,
    #0a0a0c 0%,
    #080809 30%,
    #0c0c0f 60%,
    #070708 100%
  );
}

/* Each fold gets a unique subtle gradient to simulate fabric draping */
.pw-curtain-fold::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.022) 0%,
    rgba(255, 255, 255, 0.008) 30%,
    transparent 50%,
    rgba(0, 0, 0, 0.15) 70%,
    rgba(255, 255, 255, 0.015) 100%
  );
}

.pw-curtain-fold::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.4) 0%,
    transparent 15%,
    transparent 80%,
    rgba(0, 0, 0, 0.5) 100%
  );
}

/* Alternate folds for depth illusion */
.pw-curtain-fold:nth-child(odd) {
  background: linear-gradient(
    180deg,
    #08080b 0%,
    #0b0b0e 40%,
    #090910 70%,
    #060608 100%
  );
}

.pw-curtain-fold:nth-child(odd)::before {
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.2) 0%,
    rgba(255, 255, 255, 0.018) 35%,
    rgba(255, 255, 255, 0.01) 50%,
    transparent 70%,
    rgba(0, 0, 0, 0.12) 100%
  );
}

/* Subtle shimmer on some folds */
.pw-curtain-fold:nth-child(3n)::before {
  background: linear-gradient(
    90deg,
    rgba(13, 140, 145, 0.015) 0%,
    rgba(255, 255, 255, 0.02) 40%,
    transparent 60%,
    rgba(0, 0, 0, 0.18) 100%
  );
}

/* Vignette overlay */
.pw-curtain-vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(
    ellipse 70% 60% at 50% 40%,
    transparent 0%,
    rgba(0, 0, 0, 0.3) 60%,
    rgba(0, 0, 0, 0.7) 100%
  );
}

/* Stage floor */
.pw-stage-floor {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30%;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(5, 5, 7, 0.6) 40%,
    rgba(5, 5, 7, 0.95) 100%
  );
}

/* Spotlight from top */
.pw-spotlight {
  position: fixed;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 70%;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(
    ellipse 50% 70% at 50% 0%,
    rgba(13, 140, 145, 0.04) 0%,
    rgba(13, 140, 145, 0.015) 40%,
    transparent 70%
  );
}

/* ── Neon "Season 2" Sign ── */
.pw-neon-sign {
  position: relative;
  z-index: 10;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 0 24px;
}

.pw-neon-logo {
  width: clamp(220px, 40vw, 420px);
  height: auto;
}
/* Desktop neon text already small as subtitle */
@media (max-width: 560px) {
  .pw-neon-logo {
    width: clamp(120px, 50vw, 200px);
  }
}

.pw-neon-text {
  font-family: var(--font-mono), 'Courier New', monospace;
  font-size: clamp(0.8rem, 2vw, 1.2rem);
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #5EEAD4;
  text-shadow:
    /* Inner glow */
    0 0 4px rgba(45, 212, 191, 0.9),
    0 0 8px rgba(45, 212, 191, 0.7),
    /* Outer glow */
    0 0 20px rgba(13, 140, 145, 0.5),
    0 0 40px rgba(13, 140, 145, 0.35),
    0 0 80px rgba(13, 140, 145, 0.2),
    /* Far glow — ambient light on wall */
    0 0 120px rgba(13, 140, 145, 0.12),
    0 0 200px rgba(13, 140, 145, 0.06);
  animation: neonPulse 4s ease-in-out infinite;
  position: relative;
}

/* Realistic flicker — subtle brightness variation */
@keyframes neonPulse {
  0%   { opacity: 1;    filter: brightness(1); }
  5%   { opacity: 0.92; filter: brightness(0.95); }
  6%   { opacity: 1;    filter: brightness(1.02); }
  15%  { opacity: 0.97; filter: brightness(0.98); }
  20%  { opacity: 1;    filter: brightness(1); }
  50%  { opacity: 1;    filter: brightness(1.04); }
  52%  { opacity: 0.88; filter: brightness(0.92); }
  53%  { opacity: 1;    filter: brightness(1.05); }
  70%  { opacity: 0.95; filter: brightness(0.97); }
  72%  { opacity: 1;    filter: brightness(1.02); }
  85%  { opacity: 0.98; filter: brightness(1); }
  100% { opacity: 1;    filter: brightness(1); }
}

/* Wall glow — soft light spill behind the sign */
.pw-neon-sign::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 140%;
  height: 200%;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    ellipse 50% 40% at 50% 50%,
    rgba(13, 140, 145, 0.06) 0%,
    rgba(13, 140, 145, 0.025) 40%,
    transparent 70%
  );
  z-index: -1;
  animation: neonPulse 4s ease-in-out infinite;
}

@media (max-width: 560px) {
  .pw-neon-sign {
    padding: 8px 0 16px;
  }
  .pw-neon-logo {
    width: clamp(160px, 55vw, 240px);
  }
  .pw-grid {
    gap: 14px;
  }
}

/* ── Content Layer ── */
.pw-content {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding-bottom: max(var(--space-8), env(safe-area-inset-bottom));
}

/* ── Header ── */
.pw-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  padding-top: max(var(--space-4), env(safe-area-inset-top));
}

.pw-back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
}

.pw-back:hover {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.8);
}

.pw-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.pw-brand-tag {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(13, 140, 145, 0.6);
  background: rgba(13, 140, 145, 0.08);
  border: 1px solid rgba(13, 140, 145, 0.12);
  padding: 2px 8px;
  border-radius: 4px;
}

.pw-brand-name {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.01em;
}

/* ── Stage Label ── */
.pw-stage-label {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-6) var(--space-6) var(--space-4);
  margin-top: auto;
}

.pw-stage-label span {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: rgba(255, 255, 255, 0.15);
  white-space: nowrap;
}

.pw-stage-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
}

/* ── Slider Wrapper ── */
/* ── Episode Grid Layout ── */
.pw-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding: var(--space-4) var(--space-6);
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
}
.pw-grid > .pw-ep-card {
  display: flex;
  flex-direction: column;
}

/* ── Episode Card (File Folder Style) ── */
.pw-ep-card {
  position: relative;
  background: rgba(12, 12, 16, 0.85);
  border: 1px solid rgba(13, 140, 145, 0.12);
  border-radius: 0 var(--radius-lg) var(--radius-lg) var(--radius-lg);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: visible;
  -webkit-tap-highlight-color: transparent;
  box-shadow:
    0 2px 16px rgba(0, 0, 0, 0.3),
    0 0 12px rgba(13, 140, 145, 0.04);
}

.pw-ep-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 0 var(--radius-lg) var(--radius-lg) var(--radius-lg);
  background: linear-gradient(135deg, rgba(13, 140, 145, 0.15), rgba(13, 140, 145, 0.04) 50%, transparent 80%);
  z-index: -1;
  opacity: 1;
  transition: opacity 0.35s ease;
}

.pw-ep-card:hover {
  border-color: rgba(13, 140, 145, 0.2);
  transform: translateY(-4px);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 0 24px rgba(13, 140, 145, 0.08);
}

.pw-ep-card:hover::before {
  background: linear-gradient(135deg, rgba(13, 140, 145, 0.25), rgba(13, 140, 145, 0.08) 50%, transparent 80%);
}

.pw-ep-card:active {
  transform: translateY(-2px) scale(0.98);
}

/* Folder tab */
.pw-ep-tab {
  position: absolute;
  top: -22px;
  left: -1px;
  background: rgba(12, 12, 16, 0.85);
  border: 1px solid rgba(13, 140, 145, 0.12);
  border-bottom: none;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  padding: 4px 14px;
  z-index: 1;
}

.pw-ep-card:hover .pw-ep-tab {
  border-color: rgba(13, 140, 145, 0.2);
}

.pw-ep-tab-num {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #2DD4BF;
}

/* Card body */
.pw-ep-card-body {
  padding: var(--space-4);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.pw-ep-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-3);
}

.pw-ep-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: var(--space-3);
}
.pw-ep-bottom-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pw-ep-status {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  border: 1px solid;
}

.pw-ep-status--pre-produccion {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.15);
  color: var(--warning);
}

.pw-ep-duration {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.3);
}

.pw-ep-title {
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
  letter-spacing: -0.01em;
}

.pw-ep-quote {
  font-size: 0.78rem;
  font-style: italic;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: var(--space-4);
}

.pw-ep-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #2DD4BF;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.pw-ep-card:hover .pw-ep-cta {
  opacity: 1;
}

/* ── Coming Soon Card ── */
.pw-ep-soon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: var(--space-6);
  border: 1px dashed rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  min-height: 180px;
}

.pw-ep-soon-icon {
  color: rgba(255, 255, 255, 0.1);
}

.pw-ep-soon-text {
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.12);
  text-align: center;
}

/* ── Status edit button (superadmin) ── */
.pw-ep-status-edit {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  color: rgba(255,255,255,0.4);
  font-size: 0.65rem;
  padding: 2px 6px;
  cursor: pointer;
  transition: all 0.2s;
  margin-left: auto;
}
.pw-ep-status-edit:hover {
  background: rgba(13,140,145,0.15);
  color: #2DD4BF;
  border-color: rgba(13,140,145,0.3);
}

/* ── Status dropdown menu ── */
.pw-ep-status-menu {
  position: absolute;
  top: 50px;
  right: 10px;
  z-index: 100;
  background: rgba(18,18,24,0.98);
  border: 1px solid rgba(124,58,237,0.2);
  border-radius: 12px;
  padding: 10px;
  min-width: 200px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  animation: pwMenuIn 0.2s ease-out;
}
@keyframes pwMenuIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.pw-ep-status-menu-title {
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.3);
  padding: 0 6px 8px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  margin-bottom: 6px;
}
.pw-ep-status-option {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px;
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.7);
  font-size: 0.75rem;
  font-family: inherit;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
  text-align: left;
}
.pw-ep-status-option:hover {
  background: rgba(13,140,145,0.1);
}
.pw-ep-status-option--active {
  background: rgba(13,140,145,0.12);
  color: #2DD4BF;
  font-weight: 600;
}
.pw-ep-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── Grid Responsive ── */
@media (max-width: 768px) {
  .pw-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    padding: var(--space-3) var(--space-4);
  }
}

@media (max-width: 560px) {
  .pw-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: var(--space-3);
  }
  .pw-header {
    padding: var(--space-3) var(--space-4);
  }
  .pw-stage-label {
    padding: var(--space-4) var(--space-4) var(--space-2);
  }
  .pw-ep-card-body {
    padding: var(--space-3);
  }
  .pw-ep-title {
    font-size: 0.9rem;
  }
  .pw-ep-quote {
    font-size: 0.65rem;
  }
  .pw-ep-cta {
    font-size: 0.65rem;
  }
}


/* ═══════════════════════════════════════════════
   DASHBOARD — MDN Podcast Production Hub
   ═══════════════════════════════════════════════ */

/* ── Page Shell ── */
.dash-page {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
}

.dash-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  height: 100vh;
  height: 100dvh;
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.dash-loading-spinner {
  width: 28px;
  height: 28px;
  border: 2px solid var(--glass-border);
  border-top-color: #14B8A6;
  border-radius: 50%;
  animation: dashSpin 0.8s linear infinite;
}

@keyframes dashSpin {
  to { transform: rotate(360deg); }
}

/* ── Header ── */
.dash-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0 var(--space-5);
  padding-top: max(var(--space-3), env(safe-area-inset-top));
}

.dash-header-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) 0;
}

.dash-back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--bg-glass);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
}

.dash-back:hover {
  background: var(--bg-glass-hover);
  color: var(--text-primary);
  border-color: var(--border-glow);
}

.dash-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.dash-brand-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #2DD4BF;
  background: rgba(13, 140, 145, 0.12);
  border: 1px solid rgba(13, 140, 145, 0.2);
  padding: 3px 8px;
  border-radius: 4px;
}

.dash-brand-name {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-primary);
  letter-spacing: 0.01em;
}

/* ── Tabs ── */
.dash-tabs {
  display: flex;
  gap: var(--space-2);
  padding-bottom: var(--space-3);
}

.dash-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: var(--space-2) var(--space-4);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: var(--weight-medium);
  cursor: pointer;
  transition: all var(--transition-normal);
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
}

.dash-tab:hover {
  color: var(--text-secondary);
  background: var(--bg-glass);
}

.dash-tab.active {
  color: #fff;
  background: linear-gradient(135deg, #0D8C91, #065F63);
  border-color: rgba(139, 92, 246, 0.3);
  box-shadow: 0 2px 12px rgba(13, 140, 145, 0.25);
}

.dash-tab svg {
  opacity: 0.7;
}

.dash-tab.active svg {
  opacity: 1;
}

/* ── Scrollable Content ── */
.dash-content {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: max(var(--space-8), env(safe-area-inset-bottom));
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.dash-content--exit {
  opacity: 0;
  transform: translateY(8px);
}

.dash-content--enter {
  animation: dashFadeIn 0.35s ease forwards;
}

@keyframes dashFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ═══════════════════════════════════════════════
   EPISODE CONTENT
   ═══════════════════════════════════════════════ */

.ep-content {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--space-5);
}

/* ── Hero ── */
.ep-hero {
  text-align: center;
  padding: var(--space-7) var(--space-4) var(--space-6);
  margin-bottom: var(--space-6);
  position: relative;
}

.ep-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
}

.ep-hero-top {
  margin-bottom: var(--space-4);
}

.ep-hero-podcast {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.ep-hero-number {
  font-family: var(--font-mono);
  font-size: clamp(4rem, 12vw, 7rem);
  font-weight: 200;
  line-height: 1;
  color: rgba(13, 140, 145, 0.12);
  letter-spacing: -0.03em;
  margin-bottom: -0.15em;
  user-select: none;
}

.ep-hero-title {
  font-size: clamp(1.8rem, 6vw, 2.8rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-5);
}

.ep-hero-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.ep-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.ep-badge--time {
  background: rgba(13, 140, 145, 0.1);
  border: 1px solid rgba(13, 140, 145, 0.2);
  color: #2DD4BF;
}

.ep-badge--status {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.2);
  color: var(--warning);
}

.ep-hero-quote {
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
  font-style: italic;
  font-weight: 300;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto;
  padding: 0 var(--space-4);
  position: relative;
}

.ep-hero-quote::before {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: #0D8C91;
  margin: 0 auto var(--space-4);
  border-radius: 1px;
}

/* ── Section ── */
.ep-section {
  margin-bottom: var(--space-6);
  background: var(--bg-glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.ep-section-head {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-5);
  border-bottom: 1px solid var(--border-subtle);
}

.ep-section-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #0D8C91, #065F63);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(13, 140, 145, 0.3);
}

.ep-section-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

.ep-section-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.ep-section-body {
  padding: var(--space-5);
}

/* ── Block ── */
.ep-block {
  margin-bottom: var(--space-5);
}

.ep-block:last-child {
  margin-bottom: 0;
}

.ep-block-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2DD4BF;
  margin-bottom: var(--space-2);
}

.ep-block-text {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-primary);
  opacity: 0.85;
}

.ep-block-text strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* ── 2-Column Grid ── */
.ep-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

@media (min-width: 560px) {
  .ep-grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

/* ── Visual Cards (Art Direction) ── */
.ep-card-visual {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-5);
}

.ep-card-visual-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(13, 140, 145, 0.1);
  color: #2DD4BF;
  margin-bottom: var(--space-3);
}

.ep-card-visual-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-1);
}

.ep-card-visual-accent {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
}

.ep-card-visual-text {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-primary);
  opacity: 0.8;
  margin-bottom: var(--space-3);
}

.ep-card-visual-note {
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--text-muted);
  padding-top: var(--space-3);
  border-top: 1px solid var(--border-subtle);
}

.ep-card-visual-note strong {
  color: var(--text-secondary);
}

/* ── Dress Code Hero Image ── */
.ep-dresscode-hero {
  position: relative;
  margin-bottom: var(--space-5);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #080610;
  border: 1px solid rgba(13, 140, 145, 0.12);
}

.ep-dresscode-img-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.ep-dresscode-img {
  width: 100%;
  height: auto;
  display: block;
}

/* Subtle gradient overlay at bottom for text readability */
.ep-dresscode-img-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg,
      rgba(8, 6, 16, 0.95) 0%,
      rgba(8, 6, 16, 0.4) 18%,
      transparent 40%,
      transparent 75%,
      rgba(8, 6, 16, 0.2) 100%
    );
  pointer-events: none;
}

/* Badge floating top-right */
.ep-dresscode-badge {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(13, 140, 145, 0.25);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #2DD4BF;
}

/* Caption bar at bottom of image */
.ep-dresscode-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-5);
  z-index: 2;
}

.ep-dresscode-caption-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
}

.ep-dresscode-caption-style {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

@media (min-width: 560px) {
  .ep-dresscode-img-wrap {
    max-height: 500px;
  }

  .ep-dresscode-img {
    object-fit: contain;
    max-height: 500px;
  }
}

/* ── Tags ── */
.ep-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.ep-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: rgba(13, 140, 145, 0.1);
  border: 1px solid rgba(13, 140, 145, 0.15);
  font-size: 0.72rem;
  font-weight: 600;
  color: #2DD4BF;
}

/* ── Lyrics ── */
.ep-lyrics {
  background: rgba(0, 0, 0, 0.25);
  border-left: 3px solid #0D8C91;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: var(--space-4) var(--space-5);
  margin-top: var(--space-4);
}

.ep-lyrics-line {
  font-size: 0.9rem;
  font-style: italic;
  line-height: 1.8;
  color: var(--text-secondary);
}

.ep-lyrics-line--bold {
  font-weight: 700;
  font-style: normal;
  color: var(--text-primary);
}

/* ── Timeline ── */
.ep-timeline {
  display: flex;
  flex-direction: column;
}

.ep-tl-item {
  display: grid;
  grid-template-columns: 56px 24px 1fr;
  gap: 0 var(--space-3);
  min-height: 0;
}

.ep-tl-time {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding-top: 2px;
}

.ep-tl-start {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-primary);
}

.ep-tl-end {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-dim);
}

.ep-tl-track {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.ep-tl-node {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #0D8C91;
  border: 2px solid var(--bg-primary);
  box-shadow: 0 0 0 2px rgba(13, 140, 145, 0.3);
  flex-shrink: 0;
  margin-top: 4px;
  position: relative;
  z-index: 1;
}

.ep-tl-node--accent {
  width: 12px;
  height: 12px;
  background: #2DD4BF;
  box-shadow: 0 0 0 2px rgba(45, 212, 191, 0.4), 0 0 12px rgba(13, 140, 145, 0.3);
}

.ep-tl-line {
  width: 2px;
  flex: 1;
  background: linear-gradient(180deg, rgba(13, 140, 145, 0.3), rgba(13, 140, 145, 0.08));
  margin-top: 4px;
}

.ep-tl-body {
  padding-bottom: var(--space-6);
}

.ep-tl-item:last-child .ep-tl-body {
  padding-bottom: 0;
}

.ep-tl-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.ep-tl-subtitle {
  font-size: 0.75rem;
  font-weight: 500;
  color: #2DD4BF;
  margin-bottom: var(--space-2);
}

.ep-tl-desc {
  font-size: 0.83rem;
  line-height: 1.6;
  color: var(--text-primary);
  opacity: 0.75;
}

/* ── Tarjeta Negra ── */
.ep-tarjeta {
  background: #0d0d0d;
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  position: relative;
  overflow: hidden;
}

.ep-tarjeta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.3), transparent);
}

.ep-tarjeta-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}

.ep-tarjeta-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(212, 175, 55, 0.7);
}

.ep-tarjeta-ep {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.2);
}

.ep-tarjeta-divider {
  height: 1px;
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.15), transparent);
  margin-bottom: var(--space-5);
}

.ep-tarjeta-rules {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.ep-tarjeta-rule {
  display: flex;
  gap: var(--space-4);
}

.ep-tarjeta-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(212, 175, 55, 0.5);
  flex-shrink: 0;
  padding-top: 2px;
}

.ep-tarjeta-rule-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: var(--space-1);
}

.ep-tarjeta-rule-text {
  font-size: 0.88rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
}

/* ── YouTube Title ── */
.ep-yt-title {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-primary);
  padding: var(--space-4);
  background: rgba(255, 0, 0, 0.05);
  border: 1px solid rgba(255, 0, 0, 0.1);
  border-radius: var(--radius-sm);
  margin-top: var(--space-2);
}

/* ── Reels Grid ── */
.ep-reels {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  margin-top: var(--space-3);
}

@media (min-width: 560px) {
  .ep-reels {
    grid-template-columns: repeat(3, 1fr);
  }
}

.ep-reel {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
}

.ep-reel-head {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.ep-reel-num {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #2DD4BF;
  background: rgba(13, 140, 145, 0.12);
  padding: 2px 6px;
  border-radius: 3px;
}

.ep-reel-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.ep-reel-clip {
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--text-primary);
  opacity: 0.7;
  margin-bottom: var(--space-3);
  flex: 1;
}

.ep-reel-caption {
  font-size: 0.78rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--text-secondary);
  padding: var(--space-3);
  background: rgba(13, 140, 145, 0.06);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-2);
}

.ep-reel-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  color: #2DD4BF;
}


/* ═══════════════════════════════════════════════
   EXPEDIENTE CONTENT
   ═══════════════════════════════════════════════ */

.exp-content {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--space-5);
}

/* ── Expediente Header ── */
.exp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5);
  margin-bottom: var(--space-5);
  background: var(--bg-glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
}

.exp-header-left {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.exp-header-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(13, 140, 145, 0.1);
  color: #2DD4BF;
  flex-shrink: 0;
}

.exp-header-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.exp-header-name {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 1px;
}

.exp-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(13, 140, 145, 0.1);
  color: #2DD4BF;
  white-space: nowrap;
  flex-shrink: 0;
}

.exp-status--done {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
}

.exp-status-count {
  font-weight: 700;
}

/* ── Empty State ── */
.exp-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-8) var(--space-5);
  min-height: 50vh;
}

.exp-empty-icon {
  color: var(--text-dim);
  margin-bottom: var(--space-5);
}

.exp-empty-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.exp-empty-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 300px;
  line-height: 1.5;
  margin-bottom: var(--space-6);
}

/* ── Section ── */
.exp-section {
  margin-bottom: var(--space-4);
  background: var(--bg-glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.exp-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--border-subtle);
}

.exp-section-left {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.exp-section-code {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #2DD4BF;
  background: rgba(13, 140, 145, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
}

.exp-section-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
}

.exp-section-count {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-dim);
}

.exp-section-body {
  padding: var(--space-3) var(--space-5);
}

/* ── Item ── */
.exp-item {
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--border-subtle);
}

.exp-item:last-child {
  border-bottom: none;
}

.exp-item-top {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

.exp-item-code {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}

.exp-item-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.exp-item-answer {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-primary);
  opacity: 0.85;
  padding-left: var(--space-1);
}

.exp-item-na {
  font-size: 0.82rem;
  font-style: italic;
  color: var(--text-dim);
  padding-left: var(--space-1);
}

.exp-item--empty {
  opacity: 0.5;
}

/* ── Footer ── */
.exp-footer {
  display: flex;
  justify-content: center;
  padding: var(--space-6) 0 var(--space-4);
}


/* ═══════════════════════════════════════════════
   COMMENTS SECTION
   ═══════════════════════════════════════════════ */

.ep-comments-section {
  margin-top: var(--space-6);
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.comments-empty {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.85rem;
  font-style: italic;
  padding: var(--space-5) 0;
}

.comment-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-4);
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.comment-item--own {
  border-color: rgba(13, 140, 145, 0.2);
  background: rgba(13, 140, 145, 0.05);
}

.comment-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.comment-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0D8C91, #065F63);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
}

.comment-meta {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.comment-author {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
}

.comment-date {
  font-size: 0.7rem;
  color: var(--text-dim);
}

.comment-text {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-primary);
  opacity: 0.85;
  padding-left: calc(28px + var(--space-3));
}

.comment-form {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-subtle);
}

.comment-form-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0D8C91, #065F63);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

.comment-form-input-wrap {
  flex: 1;
  display: flex;
  gap: var(--space-2);
  align-items: flex-end;
}

.comment-input {
  flex: 1;
  padding: var(--space-3);
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.88rem;
  line-height: 1.5;
  resize: vertical;
  min-height: 40px;
  max-height: 120px;
  outline: none;
  transition: border-color 0.3s;
}

.comment-input:focus {
  border-color: #14B8A6;
}

.comment-input::placeholder {
  color: var(--text-dim);
}

.comment-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--gradient-primary);
  color: white;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.comment-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(13, 140, 145, 0.4);
}

.comment-submit:disabled {
  opacity: 0.5;
  pointer-events: none;
}


/* ═══════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════ */

@media (max-width: 480px) {
  .ep-content,
  .exp-content {
    padding: var(--space-4) var(--space-3);
  }

  .ep-hero {
    padding: var(--space-6) var(--space-2) var(--space-5);
  }

  .ep-section-head {
    padding: var(--space-4);
  }

  .ep-section-body {
    padding: var(--space-4);
  }

  .ep-tarjeta {
    padding: var(--space-5);
  }

  .ep-tl-item {
    grid-template-columns: 48px 20px 1fr;
    gap: 0 var(--space-2);
  }

  .ep-tl-start {
    font-size: 0.72rem;
  }

  .exp-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
  }

  .exp-section-head {
    padding: var(--space-3) var(--space-4);
  }

  .exp-section-body {
    padding: var(--space-2) var(--space-4);
  }

  .dash-brand-name {
    font-size: 0.82rem;
  }

  .comment-text {
    padding-left: 0;
  }
}

/* ═══════════════════════════════════════════════════════
   Video Gallery — MSG Ecosystem
   ═══════════════════════════════════════════════════════ */
.pw-video-section {
  padding: 0 var(--space-6) var(--space-8);
  max-width: 1100px;
  margin: 24px auto 0;
  width: 100%;
}

.pw-video-add-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 16px auto;
  padding: 8px 20px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #2DD4BF;
  background: rgba(13, 140, 145, 0.1);
  border: 1px solid rgba(13, 140, 145, 0.2);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.pw-video-add-btn:hover {
  background: rgba(13, 140, 145, 0.2);
  border-color: rgba(13, 140, 145, 0.4);
  box-shadow: 0 0 16px rgba(13, 140, 145, 0.15);
}

.pw-video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.pw-video-card {
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
}
.pw-video-card:hover {
  border-color: rgba(45, 212, 191, 0.2);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3), 0 0 20px rgba(13, 140, 145, 0.08);
  transform: translateY(-2px);
}

.pw-video-thumb {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  background-size: cover;
  background-position: center;
  background-color: rgba(0, 0, 0, 0.3);
}

.pw-video-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  color: #FFF;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.pw-video-card:hover .pw-video-play {
  opacity: 1;
}
.pw-video-play svg {
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
}

.pw-video-duration {
  position: absolute;
  bottom: 6px;
  right: 6px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: #FFF;
  background: rgba(0, 0, 0, 0.7);
  padding: 2px 6px;
  border-radius: 4px;
}

.pw-video-info {
  padding: 12px 14px;
}
.pw-video-title {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
  margin: 0;
}
.pw-video-desc {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  color: var(--text-muted);
  margin: 4px 0 0;
  line-height: 1.4;
}

.pw-video-delete {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  color: #EF4444;
  border: none;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 5;
}
.pw-video-card:hover .pw-video-delete { opacity: 1; }

.pw-video-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 20px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: var(--text-dim);
  font-style: italic;
}

/* ── Video Player Overlay ── */
.pw-video-overlay {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.pw-video-overlay-bg {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
}
.pw-video-player {
  position: relative;
  z-index: 1;
  width: 90%;
  max-width: 860px;
}
.pw-video-player-close {
  position: absolute;
  top: -40px;
  right: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #FFF;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.pw-video-player-close:hover {
  background: rgba(255, 255, 255, 0.2);
}
.pw-video-player-frame {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.pw-video-player-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.pw-video-player-title {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: #FFF;
  margin: 16px 0 4px;
}
.pw-video-player-desc {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.5;
}

/* ── Add Video Modal ── */
.pw-video-add-modal {
  position: relative;
  z-index: 1;
  width: 90%;
  max-width: 460px;
  background: #14141C;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 28px 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
.pw-video-add-title {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 700;
  color: #FFF;
  margin: 0 0 4px;
}
.pw-video-add-sub {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  color: var(--text-muted);
  margin: 0 0 16px;
}
.pw-video-input {
  width: 100%;
  padding: 10px 14px;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: #FFF;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  outline: none;
  margin-bottom: 10px;
  box-sizing: border-box;
  transition: border-color 0.2s;
}
.pw-video-input:focus {
  border-color: rgba(45, 212, 191, 0.4);
}
.pw-video-input::placeholder {
  color: rgba(255, 255, 255, 0.25);
}
.pw-video-textarea {
  resize: vertical;
  min-height: 50px;
}
.pw-video-preview {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  align-items: flex-start;
}
.pw-video-preview-thumb {
  width: 140px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}
.pw-video-preview-info {
  flex: 1;
  min-width: 0;
}
.pw-video-save-btn {
  width: 100%;
  padding: 12px;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  color: #FFF;
  background: linear-gradient(135deg, #0D8C91, #14B8A6);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
}
.pw-video-save-btn:hover:not(:disabled) {
  box-shadow: 0 4px 20px rgba(13, 140, 145, 0.3);
}
.pw-video-save-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .pw-video-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .pw-video-section { padding: 0 16px var(--space-6); }
}
@media (max-width: 480px) {
  .pw-video-grid { grid-template-columns: 1fr; gap: 10px; }
  .pw-video-player { width: 95%; }
  .pw-video-add-modal { width: 95%; padding: 22px 18px; }
  .pw-video-preview { flex-direction: column; }
  .pw-video-preview-thumb { width: 100%; height: auto; }
}
