/* Alongside+ Studio Room Process & Example Reels Showcase Shelf
 * Standalone stylesheet - zero collisions with sibling studio scripts.
 * Uses self-hosted SIL OFL 1.1 Cormorant + Figtree fonts only.
 */

.sr-stage-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
  width: 100%;
}

.sr-shelf-card {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  border-radius: 16px;
  padding: 18px 18px 20px;
  background: var(--bg-card, #FFFDF7);
  border: 1.5px solid var(--border-soft, rgba(186, 146, 68, 0.36));
  box-shadow: var(--shadow-card, 0 4px 16px rgba(10, 33, 60, 0.08));
  color: var(--text-primary, #0A213C);
  font-family: var(--font-sans, "Figtree", system-ui, -apple-system, sans-serif);
}

.sr-shelf-card *,
.sr-shelf-card *::before,
.sr-shelf-card *::after {
  box-sizing: border-box;
}

/* Dark theme support: Executive Navy on ai-studio AND dark deck on /four-corners/studio/ */
html[data-theme="navy"] .sr-shelf-card,
.sr-shelf-card.sr-theme-dark {
  background: linear-gradient(165deg, rgba(10, 30, 52, 0.96), rgba(6, 20, 36, 0.98));
  border-color: rgba(217, 165, 74, 0.42);
  color: #F7F2E6;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.34);
}

.sr-shelf-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px 14px;
  margin-bottom: 12px;
}

.sr-shelf-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(217, 165, 74, 0.16);
  border: 1px solid rgba(204, 164, 78, 0.5);
  color: var(--gold-deep, #9C6E1F);
  margin-bottom: 6px;
}

html[data-theme="navy"] .sr-shelf-kicker,
.sr-shelf-card.sr-theme-dark .sr-shelf-kicker {
  background: rgba(242, 207, 126, 0.14);
  border-color: rgba(242, 207, 126, 0.48);
  color: #F2CF7E;
}

.sr-kicker-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #D9A54A;
  box-shadow: 0 0 8px rgba(217, 165, 74, 0.85);
}

.sr-shelf-title {
  margin: 0;
  font-family: var(--font-serif, "Cormorant", Georgia, serif);
  font-size: 25px;
  font-weight: 600;
  line-height: 1.15;
  color: inherit;
}

.sr-shelf-sub {
  margin: 4px 0 0;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--text-secondary, #3B4C62);
}

html[data-theme="navy"] .sr-shelf-sub,
.sr-shelf-card.sr-theme-dark .sr-shelf-sub {
  color: #CBD5E1;
}

.sr-count-pill {
  flex: none;
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 999px;
  background: #081E35;
  color: #F2CF7E;
  border: 1px solid rgba(242, 207, 126, 0.45);
  white-space: nowrap;
}

/* Mode-aware filter bar */
.sr-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 14px;
}

.sr-filter-btn {
  appearance: none;
  border: 1px solid rgba(186, 146, 68, 0.42);
  background: var(--bg-subtle, #F7F1E2);
  color: var(--text-primary, #0A213C);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  padding: 7px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.15s ease;
}

html[data-theme="navy"] .sr-filter-btn,
.sr-shelf-card.sr-theme-dark .sr-filter-btn {
  background: rgba(255, 255, 255, 0.06);
  color: #E2E8F0;
  border-color: rgba(242, 207, 126, 0.34);
}

.sr-filter-btn:hover {
  border-color: #D9A54A;
  transform: translateY(-1px);
}

.sr-filter-btn.is-active {
  background: linear-gradient(135deg, #0A2540, #123659);
  color: #F2CF7E;
  border-color: #D9A54A;
  box-shadow: 0 3px 10px rgba(8, 30, 53, 0.22);
}

html[data-theme="navy"] .sr-filter-btn.is-active,
.sr-shelf-card.sr-theme-dark .sr-filter-btn.is-active {
  background: linear-gradient(135deg, #E2AE56, #C99133);
  color: #061A2E;
  border-color: #F2CF7E;
}

/* Responsive 2x2 desktop grid -> 1-column mobile stack */
.sr-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.sr-grid[data-visible-count="1"] {
  grid-template-columns: minmax(0, 1fr);
}

.sr-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-panel, #FFFFFF);
  border: 1.5px solid rgba(186, 146, 68, 0.34);
  box-shadow: 0 3px 12px rgba(10, 33, 60, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

html[data-theme="navy"] .sr-card,
.sr-shelf-card.sr-theme-dark .sr-card {
  background: rgba(8, 25, 45, 0.92);
  border-color: rgba(217, 165, 74, 0.35);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.sr-card:hover {
  transform: translateY(-2px);
  border-color: #D9A54A;
  box-shadow: 0 10px 22px rgba(10, 33, 60, 0.13);
}

.sr-card.is-playing {
  border-color: #E2AE56;
  box-shadow: 0 0 0 2px rgba(226, 174, 86, 0.42), 0 12px 26px rgba(6, 26, 46, 0.22);
}

.sr-card[hidden] {
  display: none !important;
}

/* 16:9 Media Stage */
.sr-media-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #061A2E;
  overflow: hidden;
}

.sr-poster-btn {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  background: #061A2E !important;
  cursor: pointer;
  text-align: left;
  overflow: hidden;
}

.sr-poster-img {
  position: relative;
  z-index: 1;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  opacity: 1 !important;
  visibility: visible !important;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), filter 0.25s ease;
}

.sr-poster-btn:hover .sr-poster-img {
  transform: scale(1.04);
  filter: brightness(1.04);
}

.sr-poster-scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    to bottom,
    rgba(6, 22, 40, 0.56) 0%,
    rgba(6, 22, 40, 0.14) 44%,
    rgba(6, 22, 40, 0.68) 100%
  );
  pointer-events: none;
}

.sr-room-pill {
  position: absolute;
  top: 9px;
  left: 9px;
  z-index: 3;
  max-width: calc(100% - 76px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(6, 26, 46, 0.86);
  color: #F2CF7E;
  border: 1px solid rgba(242, 207, 126, 0.62);
  backdrop-filter: blur(4px);
}

.sr-dur-pill {
  position: absolute;
  top: 9px;
  right: 9px;
  z-index: 3;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(6, 26, 46, 0.88);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-variant-numeric: tabular-nums;
}

.sr-play-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 35% 30%, rgba(242, 207, 126, 0.96), rgba(185, 135, 50, 0.96));
  border: 2.5px solid #FFFDF7;
  box-shadow: 0 8px 22px rgba(6, 20, 36, 0.55), 0 0 0 5px rgba(217, 165, 74, 0.26);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sr-poster-btn:hover .sr-play-badge {
  transform: translate(-50%, -50%) scale(1.09);
  box-shadow: 0 10px 26px rgba(6, 20, 36, 0.65), 0 0 0 8px rgba(242, 207, 126, 0.34);
}

.sr-play-badge svg {
  width: 22px;
  height: 22px;
  margin-left: 3px;
  fill: #061A2E;
}

.sr-poster-hint {
  position: absolute;
  left: 10px;
  bottom: 9px;
  z-index: 3;
  font-size: 11px;
  font-weight: 600;
  color: #FDF9F0;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}

/* Active Video Player */
.sr-video-el {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #04111F;
}

.sr-card-body {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 12px 13px 13px;
  flex: 1 1 auto;
}

.sr-card-title {
  margin: 0;
  font-family: var(--font-serif, "Cormorant", Georgia, serif);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.18;
  color: inherit;
}

.sr-card-desc {
  margin: 0;
  font-size: 12.8px;
  line-height: 1.42;
  color: var(--text-secondary, #3B4C62);
  flex: 1 1 auto;
}

html[data-theme="navy"] .sr-card-desc,
.sr-shelf-card.sr-theme-dark .sr-card-desc {
  color: #CBD5E1;
}

.sr-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid rgba(186, 146, 68, 0.24);
  font-size: 11.5px;
}

.sr-voice-tag {
  color: var(--text-muted, #5C6B7F);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

html[data-theme="navy"] .sr-voice-tag,
.sr-shelf-card.sr-theme-dark .sr-voice-tag {
  color: #94A3B8;
}

.sr-action-btn {
  flex: none;
  appearance: none;
  border: 1px solid rgba(204, 164, 78, 0.65);
  background: rgba(217, 165, 74, 0.14);
  color: var(--text-primary, #0A213C);
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

html[data-theme="navy"] .sr-action-btn,
.sr-shelf-card.sr-theme-dark .sr-action-btn {
  color: #F2CF7E;
  background: rgba(242, 207, 126, 0.14);
}

.sr-action-btn:hover {
  background: #D9A54A;
  color: #061A2E;
}

.sr-card.is-playing .sr-action-btn {
  background: #081E35;
  color: #F2CF7E;
  border-color: #F2CF7E;
}

/* Tablet & Mobile Responsive Breakpoints */
@media (max-width: 760px) {
  .sr-shelf-card {
    padding: 14px 13px 16px;
    border-radius: 14px;
  }
  .sr-shelf-title {
    font-size: 22px;
  }
  .sr-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 13px;
  }
  .sr-filter-bar {
    gap: 6px;
  }
  .sr-filter-btn {
    font-size: 11.5px;
    padding: 6px 10px;
  }
  .sr-play-badge {
    width: 50px;
    height: 50px;
  }
}


/* === Fullscreen Button & Cinema Lightbox (2026-11-23) === */
.sr-fs-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 11px; border-radius: 999px;
  border: 1.5px solid rgba(73, 169, 230, 0.55);
  background: linear-gradient(135deg, #EAF6FE 0%, #DDF2FC 100%);
  color: #0B1B3A; font-family: "Figtree", system-ui, sans-serif;
  font-size: 12px; font-weight: 700; cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.sr-fs-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(43, 149, 214, 0.25); }
.sr-lightbox {
  position: fixed; inset: 0; z-index: 2147483647;
  background: rgba(6, 12, 26, 0.94); backdrop-filter: blur(8px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px;
}
.sr-lightbox-inner { width: min(1240px, 96vw); max-height: 92vh; display: flex; flex-direction: column; gap: 12px; }
.sr-lightbox-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #FFFDF7; }
.sr-lightbox-title { font-family: "Cormorant", Georgia, serif; font-size: 24px; font-weight: 700; margin: 0; }
.sr-lightbox-actions { display: flex; align-items: center; gap: 8px; }
.sr-lightbox-btn {
  padding: 8px 14px; border-radius: 999px; border: 1.5px solid #D4A84B;
  background: #0B1B3A; color: #FFFDF7; font-family: "Figtree", system-ui, sans-serif;
  font-size: 13px; font-weight: 700; cursor: pointer;
}
.sr-lightbox-btn:hover { background: #16305F; }
.sr-lightbox-video {
  width: 100%; max-height: 80vh; border-radius: 14px; background: #000;
  border: 1.5px solid rgba(212, 168, 75, 0.55); box-shadow: 0 24px 70px rgba(0, 0, 0, 0.7);
}
