/* Demo centers: picture cards, the clickable main hub, real-footage stages and the Bible reader. Colours follow style.css. */
.center-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 34px 0 26px; }
.center-card { position: relative; display: grid; grid-template-rows: auto auto; text-align: left; padding: 0; overflow: hidden; border-radius: 18px; border: 1px solid #d9f6ed26; background: #082129; color: #f5faf7; cursor: pointer; font: inherit; transition: border-color .2s, transform .2s; }
.center-card img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; opacity: .9; transition: opacity .2s, transform .5s; }
.center-card:hover img { opacity: 1; transform: scale(1.025); }
.center-card .center-label { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; align-items: baseline; padding: 14px 16px 16px; background: linear-gradient(#08212900, #082129 30%); }
.center-card span { grid-row: span 2; font: 10px/1.4 monospace; letter-spacing: .08em; color: var(--accent); }
.center-card strong { font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.center-card small { font-size: 12px; color: #b7c9c5; }
.center-card[aria-selected="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.center-card[aria-selected="true"] span { color: #f5faf7; }
.center-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.center-card .center-badge { position: absolute; top: 10px; right: 10px; grid-row: auto; font: 700 9px/1 'Segoe UI', Arial, sans-serif; letter-spacing: .12em; padding: 6px 8px; border-radius: 999px; background: #04141ad9; color: var(--accent); border: 1px solid #d9f6ed33; }

/* the stage: hub and footage fill it like the other centers */
.hub-interface, .center-media, .bible-reader { position: absolute; inset: 0; display: grid; }
.hub-interface[hidden], .center-media[hidden], .bible-reader[hidden] { display: none; }
.hub-frame { position: relative; margin: auto; width: 100%; aspect-ratio: 16 / 9; max-height: 100%; }
.hub-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hub-spot { position: absolute; border: 1.5px solid #b7e5de00; border-radius: 12px; background: #b7e5de00; cursor: pointer; padding: 0; transition: border-color .2s, background .2s; }
.hub-spot.round { border-radius: 50%; }
.hub-spot::after { content: attr(data-label); position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%); white-space: nowrap; font: 700 11px/1 'Segoe UI', Arial, sans-serif; padding: 7px 10px; border-radius: 999px; background: var(--accent); color: #071b21; opacity: 0; pointer-events: none; transition: opacity .2s; }
.hub-spot.below::after { bottom: auto; top: calc(100% + 6px); }
.hub-spot:hover, .hub-spot:focus-visible { border-color: var(--accent); background: #b7e5de1f; outline: none; }
.hub-spot:hover::after, .hub-spot:focus-visible::after { opacity: 1; }
.hub-spot i { position: absolute; top: 8px; right: 8px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 #b7e5de99; animation: hub-ping 2.4s infinite; }
.hub-later { position: absolute; display: grid; place-items: center; border-radius: 12px; background: #04141a99; backdrop-filter: blur(2px); font: 700 10px/1.3 'Segoe UI', Arial, sans-serif; letter-spacing: .14em; color: #cee1dc; text-align: center; }
.hub-hint { position: absolute; left: 14px; bottom: 12px; font: 10px/1.4 monospace; letter-spacing: .06em; color: #f5faf7; background: #04141acc; padding: 7px 10px; border-radius: 8px; }
@keyframes hub-ping { 0% { box-shadow: 0 0 0 0 #b7e5de99; } 70% { box-shadow: 0 0 0 10px #b7e5de00; } 100% { box-shadow: 0 0 0 0 #b7e5de00; } }

.center-media video, .center-media .center-still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #04141a; }
.center-media::before { content: ''; position: absolute; z-index: 1; inset: 0 0 auto; height: 76px; background: linear-gradient(#04141af2, #04141a00); pointer-events: none; }
.center-media-label { position: absolute; z-index: 2; left: 14px; bottom: 50px; font: 10px/1.4 monospace; letter-spacing: .08em; color: #f5faf7; background: #04141acc; padding: 6px 9px; border-radius: 6px; max-width: calc(100% - 280px); }
.center-media-views { z-index: 2; }
@media (max-width: 700px) { .center-media-label { bottom: auto; top: 44px; max-width: calc(100% - 28px); } }
.center-media-views { position: absolute; right: 12px; bottom: 50px; display: flex; gap: 8px; }
.center-view { width: 74px; height: 42px; border-radius: 8px; border: 2px solid #d9f6ed40; background: #082129 center / cover; cursor: pointer; padding: 0; position: relative; }
.center-view[data-kind="video"]::after { content: '▶'; position: absolute; inset: auto 5px 3px auto; font-size: 10px; color: #f5faf7; text-shadow: 0 1px 3px #000; }
.center-view[aria-pressed="true"] { border-color: var(--accent); }
.center-view:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.bible-reader { grid-template-rows: auto minmax(0, 1fr) auto; gap: 10px; padding: 46px 16px 48px; background: radial-gradient(ellipse at 50% 0, #2b2414, #0b0a08 70%); }
.bible-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; color: #e9dcc0; font-size: 12px; }
.bible-bar label { display: grid; gap: 4px; }
.bible-bar select { font: inherit; color: #1f1a12; background: #f3ead6; border: 0; border-radius: 6px; padding: 7px 8px; min-width: 0; }
#bible-page { overflow: auto; padding: 22px 26px; border-radius: 10px; background: linear-gradient(90deg, #efe4cc, #f7f0de 49.6%, #d9cdb2 50%, #f7f0de 50.4%, #efe4cc); color: #2a2318; font: 15px/1.7 Georgia, 'Times New Roman', serif; column-count: 2; column-gap: 46px; box-shadow: 0 18px 50px #0009; }
#bible-page p { margin: 0 0 10px; break-inside: avoid-column; }
#bible-page sup { color: #8a6d3b; font-size: 10px; }
#bible-page .bible-head { column-span: all; font: 10px/1.4 monospace; letter-spacing: .14em; color: #8a6d3b; margin-bottom: 14px; }
.bible-nav { display: flex; justify-content: space-between; align-items: center; gap: 10px; color: #e9dcc0; font-size: 12px; }
.bible-nav button, #bible-toggle { font: 700 12px/1 'Segoe UI', Arial, sans-serif; color: #071b21; background: var(--accent); border: 0; border-radius: 999px; padding: 9px 14px; cursor: pointer; }
.bible-verse { margin-top: 18px; padding: 18px 20px; border-radius: 14px; border: 1px solid #d9f6ed29; background: #082129aa; }
.bible-verse blockquote { margin: 6px 0 8px; font: italic 18px/1.5 Georgia, 'Times New Roman', serif; color: #f5faf7; }
.bible-verse .bible-ref { font: 10px/1.4 monospace; letter-spacing: .06em; color: var(--accent); }
.bible-verse #bible-toggle { margin-top: 14px; }
.bible-source { font-size: 11px; color: #9fb3ae; margin-top: 10px; }

@media (max-width: 900px) { .center-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .center-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .center-card { grid-template-columns: 120px minmax(0, 1fr); grid-template-rows: auto; align-items: center; }
  .center-card img { height: 100%; aspect-ratio: auto; }
  .center-card .center-label { background: none; padding: 12px 14px; }
  .center-card .center-badge { left: 8px; right: auto; top: 8px; font-size: 8px; padding: 5px 7px; }
  .center-media-views { bottom: 46px; } .center-view { width: 56px; height: 32px; }
  #bible-page { column-count: 1; font-size: 14px; padding: 16px; }
  .hub-spot i { width: 7px; height: 7px; top: 4px; right: 4px; }
}
@media (prefers-reduced-motion: reduce) { .hub-spot i { animation: none; } .center-card img { transition: none; } }
