/* OPA-Studio Stage: front end. Produced by OPA-Studio. */

.opas-stage {
	--opas-accent: #e5322d;
	--opas-ink: #111;
	--opas-muted: #5f6368;
	--opas-paper: #fff;
	--opas-radius: 14px;
	--opas-gap: 20px;
	width: 100%;
	margin: 0 0 2em;
	color: var(--opas-ink);
	font-size: 16px;
	line-height: 1.45;
	text-align: left;
}

.opas-stage *,
.opas-stage *::before,
.opas-stage *::after { box-sizing: border-box; }

.opas-stage img { max-width: none; }
.opas-stage h2, .opas-stage h3, .opas-stage h4 { font-family: var(--opas-heading-font, inherit); color: inherit; letter-spacing: normal; text-transform: none; border: 0; padding: 0; }
.opas-stage a { color: inherit; }
.opas-stage .opas-title a { text-decoration: none; }
.opas-stage .opas-title a:hover { text-decoration: underline; }

.opas-stage-heading { margin: 0 0 .6em; font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; }

.opas-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Hidden until "Load more" (only when JS runs) */
.opas-stage.opas-js .opas-later { display: none !important; }
.opas-stage .opas-filtered-out { display: none !important; }
.opas-stage .opas-revealed { animation: opas-in .45s ease both; }
@keyframes opas-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- Shared pieces ---------- */
.opas-badge {
	display: inline-block;
	align-self: flex-start;
	margin: 0 0 .6em;
	padding: .25em .75em;
	border-radius: 999px;
	background: var(--opas-color, var(--opas-accent));
	color: #111;
	font-size: .75rem;
	font-weight: 800;
	letter-spacing: .07em;
	text-transform: uppercase;
	line-height: 1.4;
}

.opas-stage .opas-title { margin: 0 0 .35em; font-size: 1.25rem; font-weight: 800; line-height: 1.15; }
.opas-meta { margin: 0 0 .8em; color: var(--opas-muted); font-size: .85rem; }
.opas-desc { font-size: 1rem; line-height: 1.55; overflow-wrap: anywhere; }
.opas-desc p { margin: 0 0 .7em; }
.opas-desc p:last-child { margin-bottom: 0; }

.opas-guests { margin-top: 1.1em; padding: .8em 1em; border-left: 5px solid var(--opas-color, var(--opas-accent)); background: rgba(0, 0, 0, .04); border-radius: 0 8px 8px 0; }
.opas-stage h4.opas-guests-label { margin: 0 0 .35em; font-size: .75rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.opas-guests ul { margin: 0; padding: 0; list-style: none; }
.opas-guests li { margin: 0; padding: .1em 0; font-weight: 600; }

.opas-producer { display: flex; flex-wrap: wrap; align-items: center; gap: .35em; margin: 1.1em 0 0; color: var(--opas-muted); font-size: .8rem; letter-spacing: .04em; }
.opas-stage .opas-producer-name { color: var(--opas-ink); font-weight: 800; text-decoration: none; }
.opas-producer-logo { height: 1.6em; width: auto; margin-right: .2em; }

.opas-chapters { margin-top: 1em; font-size: .9rem; }
.opas-chapters summary { cursor: pointer; font-weight: 700; }
.opas-chapters ol { margin: .5em 0 0; padding: 0; list-style: none; max-height: 260px; overflow: auto; }
.opas-chapter { display: flex; gap: .6em; width: 100%; padding: .35em .5em; border: 0; border-radius: 6px; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.opas-chapter:hover, .opas-chapter:focus-visible { background: rgba(0, 0, 0, .06); }
.opas-chapter-time { min-width: 3.6em; color: var(--opas-accent); font-variant-numeric: tabular-nums; font-weight: 700; }

.opas-more-link { margin: 1em 0 0; font-weight: 700; }
.opas-more-link a { text-decoration: none; color: var(--opas-accent); }

/* ---------- Player ---------- */
.opas-player { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.opas-play { position: absolute; inset: 0; display: block; overflow: hidden; cursor: pointer; }
.opas-play img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease, filter .4s ease; }
.opas-play:hover img, .opas-play:focus-visible img { transform: scale(1.03); filter: brightness(.88); }
.opas-play:focus-visible { outline: 3px solid #fff; outline-offset: -6px; }
.opas-play-icon { position: absolute; top: 50%; left: 50%; width: 68px; height: 48px; transform: translate(-50%, -50%); filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .45)); transition: transform .2s ease; pointer-events: none; }
.opas-play-icon svg { display: block; width: 100%; height: 100%; }
.opas-play:hover .opas-play-icon, .opas-tile-link:hover .opas-play-icon { transform: translate(-50%, -50%) scale(1.1); }
.opas-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.opas-duration { position: absolute; right: 8px; bottom: 8px; padding: 2px 6px; border-radius: 4px; background: rgba(0, 0, 0, .8); color: #fff; font-size: 12px; font-weight: 700; line-height: 1.4; }

/* Ambient glow: the thumbnail's colours spill softly around the player */
.opas-ambient { overflow: visible; isolation: isolate; }
.opas-ambient::before { content: ""; position: absolute; inset: -4%; z-index: -1; background: var(--opas-thumb) center / cover; filter: blur(40px) saturate(1.5); opacity: .45; border-radius: 30px; }
@media (prefers-reduced-transparency: reduce) { .opas-ambient::before { display: none; } }

.opas-logo { position: absolute; z-index: 2; width: var(--opas-logo, 120px); max-width: 40%; pointer-events: none; line-height: 0; }
.opas-logo img, .opas-logo svg { display: block; width: 100%; height: auto; }
.opas-logo-yt svg { filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .45)); }
.opas-logo-top-left { top: 4%; left: 4%; }
.opas-logo-top-right { top: 4%; right: 4%; }
.opas-logo-bottom-left { bottom: 4%; left: 4%; }
.opas-logo-bottom-right { bottom: 4%; right: 4%; }
.opas-logo-center { top: 50%; left: 50%; transform: translate(-50%, -50%); }
.opas-logo-center-right { top: 50%; right: 4%; transform: translateY(-50%); }
.opas-logo-center-left { top: 50%; left: 4%; transform: translateY(-50%); }
.opas-player.is-playing .opas-logo { opacity: .85; }

/* ---------- Search & filters ---------- */
.opas-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 var(--opas-gap); }
.opas-search { flex: 1 1 260px; min-width: 0; padding: .7em 1em; border: 1px solid #d0d3d8; border-radius: 999px; font: inherit; background: #fff; }
.opas-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.opas-chip { padding: .45em .95em; border: 1px solid #d0d3d8; border-radius: 999px; background: #fff; color: inherit; font: inherit; font-size: .85rem; cursor: pointer; }
.opas-chip.is-active { background: var(--opas-ink); border-color: var(--opas-ink); color: #fff; }
.opas-empty { padding: 1.5em; text-align: center; color: var(--opas-muted); }

/* ---------- Load more ---------- */
.opas-more-wrap { margin-top: var(--opas-gap); text-align: center; }
.opas-more { padding: .8em 1.9em; border: 0; border-radius: 999px; background: var(--opas-ink); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.opas-more:hover, .opas-more:focus-visible { background: var(--opas-accent); }

/* ---------- 1. Episode (OPA-Studio) ---------- */
.opas-list { display: flex; flex-direction: column; gap: var(--opas-gap); }
.opas-row { display: flex; align-items: stretch; background: var(--opas-paper); border: var(--opas-border, 6px) solid var(--opas-color, #e8a0a0); overflow: hidden; }
.opas-row.opas-reverse { flex-direction: row-reverse; }
.opas-row-text { flex: 1 1 50%; min-width: 0; display: flex; flex-direction: column; justify-content: center; padding: clamp(18px, 3vw, 40px); }
.opas-row .opas-title { font-size: clamp(1.5rem, 3.2vw, 2.75rem); line-height: 1.1; margin-bottom: .4em; }
.opas-row .opas-desc { font-size: clamp(.95rem, 1.3vw, 1.12rem); font-weight: 600; }
.opas-row-media { flex: 0 0 50%; min-width: 0; display: flex; background: #000; border: var(--opas-border, 6px) solid var(--opas-frame, #d00); }
.opas-row-media .opas-player { aspect-ratio: auto; min-height: 100%; }
.opas-row-media .opas-player::after { content: ""; display: block; padding-top: 56.25%; }

/* Episode layout: slim strips */
.opas-size-slim { gap: 14px; }
.opas-size-slim .opas-row { --opas-border: 4px; border-width: 4px; }
.opas-size-slim .opas-row-text { padding: 14px clamp(16px, 2.4vw, 30px); }
.opas-size-slim .opas-row .opas-title { font-size: clamp(1.05rem, 1.9vw, 1.55rem); margin-bottom: .25em; }
.opas-size-slim .opas-row .opas-desc { font-size: .9rem; font-weight: 500; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.opas-size-slim .opas-row .opas-desc p { margin: 0; display: inline; }
.opas-size-slim .opas-row .opas-desc p + p::before { content: " "; }
.opas-size-slim .opas-badge { margin-bottom: .35em; font-size: .68rem; }
.opas-size-slim .opas-meta { margin-bottom: .4em; font-size: .8rem; }
.opas-size-slim .opas-guests-inline { margin: .45em 0 0; font-size: .85rem; }
.opas-size-slim .opas-producer { margin-top: .5em; font-size: .72rem; }
.opas-size-slim .opas-row-media { flex: 0 0 clamp(200px, 27%, 340px); border-width: 4px; }
.opas-size-slim .opas-row-media .opas-player { min-height: 0; }
.opas-size-slim .opas-play-icon { width: 48px; height: 34px; }
.opas-size-slim .opas-logo { max-width: 30%; }

/* Soft glow in each row's colour */
.opas-glow .opas-row { box-shadow: 0 0 18px 2px color-mix(in srgb, var(--opas-color) 70%, transparent), 0 0 3px var(--opas-color); }
.opas-glow { padding: 10px 6px; }

/* ---------- 2. Spotlight ---------- */
.opas-hero { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: center; padding: clamp(16px, 3vw, 36px); border-radius: calc(var(--opas-radius) * 1.5); background: #0f0f12; color: #f5f5f7; }
.opas-hero .opas-player { border-radius: var(--opas-radius); }
.opas-hero .opas-meta, .opas-hero .opas-producer { color: #b9bcc4; }
.opas-stage .opas-hero .opas-producer-name { color: #fff; }
.opas-hero .opas-title { font-size: clamp(1.6rem, 3vw, 2.6rem); }
.opas-hero .opas-guests { background: rgba(255, 255, 255, .07); }
.opas-hero .opas-chapter:hover { background: rgba(255, 255, 255, .1); }
.opas-hero-text { max-height: 70vh; overflow: auto; }
.opas-upnext { margin-top: var(--opas-gap); }
.opas-stage .opas-upnext-heading { margin: 0 0 .6em; font-size: 1rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.opas-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
.opas-strip .opas-mini { scroll-snap-align: start; }

/* Small cards (Spotlight strip, Theater playlist) */
.opas-mini-link { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: inherit; border-radius: 10px; padding: 6px; }
.opas-mini.is-current .opas-mini-link { background: rgba(0, 0, 0, .06); outline: 2px solid var(--opas-accent); }
.opas-mini-thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #000; }
.opas-mini-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.opas-mini-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.opas-mini-label { font-size: .7rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--opas-accent); }
.opas-mini-title { font-weight: 700; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.opas-mini-date { font-size: .8rem; color: var(--opas-muted); }

/* ---------- 3. Theater ---------- */
.opas-theater { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: var(--opas-gap); align-items: start; }
.opas-theater-media .opas-player { border-radius: var(--opas-radius); }
.opas-theater-text { padding: 18px 4px 0; }
.opas-theater-text .opas-title { font-size: clamp(1.4rem, 2.5vw, 2rem); }
.opas-playlist { max-height: min(78vh, 760px); overflow: auto; border: 1px solid #e3e5e8; border-radius: var(--opas-radius); padding: 8px; background: var(--opas-paper); }
.opas-playlist-heading { margin: 4px 8px 8px; font-weight: 800; }
.opas-playlist .opas-mini-link { flex-direction: row; align-items: center; }
.opas-playlist .opas-mini-thumb { flex: 0 0 132px; }
.opas-mini-num { flex: 0 0 1.6em; text-align: center; color: var(--opas-muted); font-size: .85rem; }
.opas-mini.is-current .opas-mini-num { color: var(--opas-accent); font-weight: 800; }

/* ---------- 4. Bento ---------- */
.opas-bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(150px, 16vw, 230px); grid-auto-flow: dense; gap: 14px; }
.opas-tile { position: relative; border-radius: var(--opas-radius); overflow: hidden; background: #000; }
.opas-tile-xl { grid-column: span 2; grid-row: span 2; }
.opas-tile-tall { grid-row: span 2; }
.opas-tile-wide { grid-column: span 2; }
.opas-tile-full { grid-column: 1 / -1; }
.opas-stage .opas-tile-link { position: absolute; inset: 0; display: block; color: #fff; text-decoration: none; }
.opas-tile-link img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.opas-tile-link:hover img, .opas-tile-link:focus-visible img { transform: scale(1.05); }
.opas-tile-link:focus-visible { outline: 3px solid var(--opas-accent); outline-offset: -3px; }
.opas-tile-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, .82) 100%); }
.opas-tile .opas-play-icon { width: 54px; height: 38px; opacity: .92; }
.opas-tile-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.opas-tile-label { align-self: flex-start; padding: .15em .6em; border-radius: 999px; background: var(--opas-accent); font-size: .68rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.opas-tile-title { font-weight: 800; font-size: 1rem; line-height: 1.2; text-shadow: 0 1px 3px rgba(0, 0, 0, .5); }
.opas-tile-xl .opas-tile-title { font-size: clamp(1.3rem, 2.4vw, 2rem); }
.opas-tile-guests { font-size: .8rem; opacity: .85; }
.opas-tile .opas-duration { top: 10px; bottom: auto; }

/* ---------- 5. Timeline ---------- */
.opas-timeline { position: relative; padding-left: 34px; }
.opas-timeline::before { content: ""; position: absolute; left: 11px; top: 6px; bottom: 6px; width: 3px; border-radius: 3px; background: linear-gradient(var(--opas-accent), #d0d3d8); }
.opas-stage .opas-tl-month { margin: 1.4em 0 .7em -34px; padding-left: 34px; font-size: .9rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--opas-muted); }
.opas-stage .opas-tl-month:first-child { margin-top: 0; }
.opas-tl-item { position: relative; margin-bottom: var(--opas-gap); }
.opas-tl-dot { position: absolute; left: -30px; top: 22px; width: 17px; height: 17px; border-radius: 50%; background: var(--opas-color, var(--opas-accent)); box-shadow: 0 0 0 4px #fff, 0 0 0 6px var(--opas-color, var(--opas-accent)); }
.opas-tl-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 20px; align-items: start; padding: 14px; border: 1px solid #e3e5e8; border-radius: var(--opas-radius); background: var(--opas-paper); }
.opas-tl-media .opas-player { border-radius: 10px; }

/* ---------- 6. Reel ---------- */
.opas-reel { position: relative; }
.opas-reel-track { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(240px, 32%, 420px); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 4px 2px 10px; scrollbar-width: thin; }
.opas-reel-vertical .opas-reel-track { grid-auto-columns: clamp(170px, 20%, 260px); }
.opas-reel-tile { scroll-snap-align: start; aspect-ratio: 16 / 9; }
.opas-reel-vertical .opas-reel-tile { aspect-ratio: 9 / 16; }
.opas-reel-nav { position: absolute; top: 50%; z-index: 3; width: 44px; height: 44px; transform: translateY(-50%); border: 0; border-radius: 50%; background: rgba(255, 255, 255, .95); box-shadow: 0 2px 10px rgba(0, 0, 0, .25); color: #111; font-size: 26px; line-height: 1; cursor: pointer; }
.opas-reel-prev { left: -10px; }
.opas-reel-next { right: -10px; }
.opas-reel-nav[disabled] { opacity: 0; pointer-events: none; }

/* ---------- 7. Cards ---------- */
.opas-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--opas-gap); }
.opas-card { display: flex; flex-direction: column; border-radius: var(--opas-radius); overflow: hidden; background: var(--opas-paper); border: 1px solid #e3e5e8; border-top: 5px solid var(--opas-color, var(--opas-accent)); transition: transform .2s ease, box-shadow .2s ease; }
.opas-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0, 0, 0, .1); }
.opas-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.opas-card-guests { margin: 0; font-size: .9rem; }
.opas-card .opas-producer { margin-top: auto; padding-top: 1em; }

/* ---------- Portfolio ---------- */
.opas-pf-menu { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin: 0 0 28px; }
.opas-stage .opas-pf-box { position: relative; display: flex; flex-direction: column; justify-content: center; min-height: 110px; padding: 16px 20px; border-radius: 6px; overflow: hidden; background: var(--opas-box); color: var(--opas-box-ink, #fff); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; isolation: isolate; }
.opas-pf-box.has-cover::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--opas-box-cover) center / cover; opacity: .35; mix-blend-mode: luminosity; }
.opas-stage .opas-pf-box:hover, .opas-stage .opas-pf-box:focus-visible { transform: translateY(-3px); box-shadow: 0 10px 24px color-mix(in srgb, var(--opas-box) 45%, transparent); }
.opas-stage .opas-pf-box:focus-visible { outline: 3px solid var(--opas-ink); outline-offset: 2px; }
.opas-pf-box.is-active { box-shadow: 0 0 0 4px #fff, 0 0 0 7px var(--opas-box); }
.opas-pf-box-title { font-size: clamp(1rem, 1.5vw, 1.25rem); font-weight: 800; line-height: 1.2; }
.opas-pf-box-count { margin-top: 6px; font-size: .78rem; opacity: .8; }
.opas-pf-shelf { margin: 0 0 30px; }
.opas-pf-shelf-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.opas-stage .opas-pf-shelf-title { margin: 0; padding-left: 12px; border-left: 5px solid var(--opas-box); font-size: clamp(1.1rem, 1.8vw, 1.45rem); font-weight: 800; }
.opas-stage .opas-pf-seeall { flex: none; font-weight: 700; font-size: .9rem; text-decoration: none; color: var(--opas-ink); }
.opas-stage .opas-pf-seeall:hover { color: var(--opas-accent); }
.opas-pf-rail .opas-reel-track { grid-auto-columns: calc((100% - (var(--opas-per-shelf, 5) - 1) * 14px) / var(--opas-per-shelf, 5)); }
.opas-pf-rail .opas-tile { border-radius: 6px; }
.opas-pf-rail .opas-tile-title { font-size: .92rem; }
.opas-pf-panel { margin-top: 6px; }
.opas-pf-panel-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 0 0 18px; padding: 14px 18px; border-radius: 8px; background: color-mix(in srgb, var(--opas-box) 12%, #fff); border-left: 6px solid var(--opas-box); }
.opas-stage .opas-pf-panel-title { margin: 0; font-size: clamp(1.3rem, 2.4vw, 1.9rem); font-weight: 800; }
.opas-pf-panel-desc { flex-basis: 100%; margin: 0; color: var(--opas-muted); }
.opas-pf-back { padding: .45em 1em; border: 0; border-radius: 999px; background: var(--opas-ink); color: #fff; font: inherit; font-size: .85rem; font-weight: 700; cursor: pointer; }
.opas-pf-back:hover { background: var(--opas-accent); }
.opas-portfolio.is-open .opas-pf-shelves { display: none; }
@media (max-width: 767px) {
	.opas-pf-menu { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.opas-pf-rail .opas-reel-track { grid-auto-columns: 46%; }
	.opas-pf-box { min-height: 84px; }
}

/* ---------- Shorts (tall) ---------- */
.opas-pf-tall .opas-reel-tile { aspect-ratio: 9 / 16; }
.opas-shorts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.opas-short-tile { aspect-ratio: 9 / 16; }
.opas-tall .opas-tile-title { font-size: .9rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.opas-tall .opas-play-icon { width: 46px; height: 32px; }
.opas-modal.is-tall { width: min(820px, 94vw); }
.opas-modal.is-tall .opas-modal-inner { grid-template-columns: minmax(0, auto) minmax(0, 1fr); }
.opas-modal.is-tall .opas-modal-media .opas-player { aspect-ratio: 9 / 16; width: min(380px, 52vh); max-height: 86vh; }
@media (max-width: 767px) {
	.opas-shorts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.opas-pf-tall .opas-reel-track { grid-auto-columns: 40%; }
	.opas-modal.is-tall .opas-modal-inner { grid-template-columns: minmax(0, 1fr); }
	.opas-modal.is-tall .opas-modal-media .opas-player { width: 100%; max-height: 72vh; }
}

/* ---------- Ads ---------- */
.opas-ad { margin: 0; padding: 10px; border: 1px dashed #d0d3d8; border-radius: var(--opas-radius); text-align: center; }
.opas-ad-label { display: block; margin-bottom: 6px; color: var(--opas-muted); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; }
.opas-cards .opas-ad, .opas-bento .opas-ad { grid-column: 1 / -1; }

/* ---------- Pop-up player ---------- */
.opas-stage.opas-modal { margin: auto; }
.opas-modal { width: min(1100px, 94vw); max-height: 92vh; padding: 0; border: 0; border-radius: var(--opas-radius); background: #0f0f12; color: #f5f5f7; overflow: auto; }
.opas-modal::backdrop { background: rgba(5, 5, 8, .78); backdrop-filter: blur(4px); }
.opas-modal-inner { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }
.opas-modal-text { padding: 22px 24px; max-height: 80vh; overflow: auto; }
.opas-modal .opas-meta, .opas-modal .opas-producer { color: #b9bcc4; }
.opas-stage.opas-modal .opas-producer-name { color: #fff; }
.opas-modal .opas-guests { background: rgba(255, 255, 255, .07); }
.opas-modal-close { position: absolute; top: 10px; right: 10px; z-index: 5; width: 38px; height: 38px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .15); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
.opas-modal-close:hover { background: rgba(255, 255, 255, .3); }

/* ---------- Single episode page ---------- */
.opas-single-media { margin: 0 0 1.4em; }
.opas-single-media .opas-player { border-radius: var(--opas-radius); }
.opas-single-body { display: grid; grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr); gap: 32px; align-items: start; }
.opas-single-side .opas-chapters { margin-top: 0; }
.opas-stage .opas-related-heading { margin: 2em 0 .8em; font-size: 1.4rem; font-weight: 800; }

.opas-admin-notice { padding: 12px 16px; border-left: 4px solid #d63638; background: #fff6f6; color: #1d2327; font-size: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
	.opas-hero, .opas-theater, .opas-modal-inner, .opas-single-body { grid-template-columns: minmax(0, 1fr); }
	.opas-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.opas-hero-text, .opas-modal-text { max-height: none; }
}
@media (max-width: 767px) {
	.opas-row, .opas-row.opas-reverse { flex-direction: column; }
	.opas-row-media { order: -1; flex-basis: auto; }
	/* Slim strips stay side by side on tablets and large phones */
	.opas-size-slim .opas-row { flex-direction: row; }
	.opas-size-slim .opas-row.opas-reverse { flex-direction: row-reverse; }
	.opas-size-slim .opas-row-media { order: 0; flex: 0 0 38%; }
	.opas-tl-card { grid-template-columns: minmax(0, 1fr); }
	.opas-logo { max-width: 28%; }
	.opas-reel-nav { display: none; }
	.opas-reel-track { grid-auto-columns: 78%; }
	.opas-reel-vertical .opas-reel-track { grid-auto-columns: 46%; }
}
@media (max-width: 520px) {
	.opas-size-slim .opas-row, .opas-size-slim .opas-row.opas-reverse { flex-direction: column; }
	.opas-size-slim .opas-row-media { order: -1; flex-basis: auto; }
}
@media (max-width: 480px) {
	.opas-bento { grid-template-columns: minmax(0, 1fr); grid-auto-rows: 200px; }
	.opas-tile-xl, .opas-tile-wide, .opas-tile-full { grid-column: span 1; }
	.opas-tile-xl, .opas-tile-tall { grid-row: span 1; }
}
@media (prefers-reduced-motion: reduce) {
	.opas-stage *, .opas-modal * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Buttons (live shows, call to action, subscribe) ---------- */
.opas-stage .opas-btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 999px; border: 2px solid transparent; font: inherit; font-weight: 700; font-size: 15px; line-height: 1; text-decoration: none; cursor: pointer; transition: transform .15s ease, background .15s ease; }
.opas-stage .opas-btn:hover { transform: translateY(-1px); }
.opas-stage .opas-btn-main { background: var(--opas-accent); color: #fff; }
.opas-stage .opas-btn-line { border-color: currentColor; background: transparent; color: inherit; }
.opas-stage .opas-btn-ghost { border-color: rgba(255,255,255,.7); background: transparent; color: #fff; }
.opas-stage .opas-btn-donate span { color: var(--opas-accent); }
.opas-cta-wrap { margin: 12px 0 0; }

/* Call to action when a video ends */
.opas-cta-end { position: absolute; inset: 0; z-index: 5; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: center; padding: 16px; background: rgba(10,10,12,.82); }

/* ---------- Columns ---------- */
.opas-has-cols .opas-cards { grid-template-columns: repeat(var(--opas-cols), minmax(0, 1fr)); }
.opas-has-cols .opas-shorts-grid { grid-template-columns: repeat(var(--opas-cols), minmax(0, 1fr)); }
@media (max-width: 900px) { .opas-has-cols .opas-cards, .opas-has-cols .opas-shorts-grid { grid-template-columns: repeat(min(var(--opas-cols), 2), minmax(0, 1fr)); } }
@media (max-width: 560px) { .opas-has-cols .opas-cards { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Channel header ---------- */
.opas-channel { display: flex; align-items: center; gap: 16px; margin: 0 0 22px; padding: 14px 18px; border: 1px solid #e3e5e8; border-radius: var(--opas-radius); background: var(--opas-paper); }
.opas-channel-pic { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; }
.opas-channel-initial { display: grid; place-items: center; background: var(--opas-accent); color: #fff; font-weight: 800; font-size: 26px; }
.opas-channel-text { flex: 1; min-width: 0; }
.opas-stage .opas-channel-name { margin: 0; font-weight: 800; font-size: 18px; }
.opas-stage .opas-channel-stats { margin: 2px 0 0; color: var(--opas-muted); font-size: 14px; }
.opas-stage .opas-btn-subscribe { background: #e5322d; color: #fff; flex: none; }
@media (max-width: 560px) { .opas-channel { flex-wrap: wrap; } .opas-btn-subscribe { width: 100%; justify-content: center; } }

/* ---------- Live shows ---------- */
.opas-live { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(18px, 3vw, 36px); align-items: center; margin: 0 0 28px; padding: clamp(14px, 2.5vw, 28px); border-radius: calc(var(--opas-radius) * 1.4); background: #111114; color: #f4f4f6; }
.opas-live-live { box-shadow: 0 0 0 2px var(--opas-accent), 0 20px 50px -24px var(--opas-accent); }
.opas-stage .opas-live-flag { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 10px; font-weight: 800; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: #fff; }
.opas-live-when { letter-spacing: .04em; font-weight: 600; color: #c9cbd0; }
.opas-live-dot { width: 10px; height: 10px; border-radius: 50%; background: #9aa0a6; flex: none; }
.opas-live-live .opas-live-dot, .opas-pill-live .opas-live-dot { background: var(--opas-accent); animation: opas-pulse 1.4s ease-in-out infinite; }
.opas-live-upcoming .opas-live-dot { background: #f2c14e; }
@keyframes opas-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(229,50,45,.6); } 50% { box-shadow: 0 0 0 7px rgba(229,50,45,0); } }
.opas-stage .opas-live-title { margin: 0 0 6px; font-size: clamp(22px, 2.6vw, 32px); line-height: 1.1; color: #fff; }
.opas-stage .opas-live-title a { text-decoration: none; }
.opas-stage .opas-live-venue { margin: 0 0 8px; color: #c9cbd0; font-weight: 600; }
.opas-stage .opas-countdown { margin: 4px 0 12px; font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; color: #f2c14e; }
.opas-live .opas-desc { color: #c9cbd0; font-size: 15px; }
.opas-live-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.opas-unlock { display: grid; gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.14); font-size: 14px; }
.opas-unlock-row { display: flex; gap: 8px; }
.opas-unlock input { flex: 1; min-width: 0; padding: 10px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.08); color: #fff; font: inherit; letter-spacing: .08em; text-transform: uppercase; }
.opas-unlock-msg { min-height: 1.2em; color: #f2c14e; }
.opas-unlock.is-unlocked label, .opas-unlock.is-unlocked .opas-unlock-row { display: none; }
.opas-locked { position: relative; aspect-ratio: 16 / 9; border-radius: var(--opas-radius); overflow: hidden; background: radial-gradient(120% 120% at 20% 10%, #3a1a1d, #111114 60%); }
.opas-locked-face { position: absolute; inset: 0; display: grid; place-items: center; }
.opas-locked-face img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.opas-locked-note { position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px; background: rgba(0,0,0,.6); color: #fff; font-weight: 700; }
.opas-lock { width: 14px; height: 11px; border-radius: 2px; background: currentColor; position: relative; margin-top: 5px; }
.opas-lock::before { content: ""; position: absolute; left: 2px; top: -7px; width: 10px; height: 9px; border: 2px solid currentColor; border-bottom: 0; border-radius: 6px 6px 0 0; box-sizing: border-box; }
.opas-pill { display: inline-flex; align-items: center; gap: 6px; margin: 0 6px 6px 0; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.opas-pill-live { background: var(--opas-accent); color: #fff; }
.opas-pill-live .opas-live-dot { background: #fff; }
.opas-pill-soon { background: #fff4d6; color: #6b4e00; }
.opas-stage .opas-live-empty { color: var(--opas-muted); }
@media (max-width: 860px) { .opas-live { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .opas-live-dot { animation: none !important; } }
.opas-live-media .opas-player { border-radius: var(--opas-radius); }

/* Ask before loading YouTube */
.opas-consent { position: absolute; inset: 0; z-index: 6; display: grid; align-content: center; gap: 12px; padding: clamp(12px, 3vw, 28px); background: rgba(12,12,14,.95); color: #fff; font-size: 14px; line-height: 1.45; text-align: left; }
.opas-stage .opas-consent p { margin: 0; max-width: 52ch; color: #e6e6e9; }
.opas-stage .opas-consent a { color: #fff; text-decoration: underline; }
.opas-consent-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.opas-consent label { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #d0d0d4; cursor: pointer; }
.opas-tile .opas-consent, .opas-mini .opas-consent { font-size: 12px; }
/* Block editor: layout picture picker */
.opas-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 16px; }
.opas-pick { display: grid; gap: 4px; padding: 4px; border: 2px solid #dcdcde; border-radius: 8px; background: #fff; cursor: pointer; text-align: left; }
.opas-pick img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; display: block; }
.opas-pick-default { display: grid; place-items: center; aspect-ratio: 16 / 9; border-radius: 4px; background: #f0f0f1; font-size: 22px; color: #646970; }
.opas-pick-name { font-size: 11px; font-weight: 600; line-height: 1.2; }
.opas-pick-name b { color: #b847c8; font-size: 10px; }
.opas-pick.is-on { border-color: #e5322d; box-shadow: 0 0 0 1px #e5322d; }
.opas-pick.is-locked img { filter: grayscale(.8); opacity: .6; }
