/* CELESTIA — ANIMATION page (menu item 08, data-page="7"): the project's film from the Sales Console, full screen on
   the page itself, with a control bar over it (animation.js). Most projects have one film; with more, small tabs at
   the top right switch between them. Sizes are design pixels of the stage (1080 tall; 1920 wide at 16:9, 1440 at 4:3). */
.anim { background: #000; user-select: none; -webkit-user-select: none; }
.an-film { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; display: block; }
.anim.fill .an-film { object-fit: cover; }   /* the screen is nearly the film's shape: edge to edge (animation.js) */
.an-film::-webkit-media-controls { display: none !important; }
/* a soft dark edge at the bottom, so the bar and the note read on bright scenes */
.anim::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 260px; pointer-events: none; background: linear-gradient(0deg, rgba(5, 7, 26, .55), rgba(5, 7, 26, 0)); transition: opacity .6s ease; }
.anim.idle::after { opacity: 0; }

/* the control bar: play · time · progress · length · sound · speed · full screen */
.an-bar { position: absolute; z-index: 2; left: 50%; bottom: 140px; width: min(760px, calc(var(--W) - 160px)); height: 60px; transform: translateX(-50%); padding: 0 14px;
  display: flex; align-items: center; gap: 14px; border: 1px solid rgba(217, 165, 143, .35); border-radius: 16px; background: rgba(8, 11, 32, .72);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 18px 40px rgba(0, 0, 0, .35); transition: opacity .5s ease, transform .5s ease; }
.anim.idle .an-bar { opacity: 0; transform: translate(-50%, 12px); pointer-events: none; }
.an-bar button { flex: none; height: 40px; min-width: 40px; padding: 0; border: 0; border-radius: 10px; background: none; display: flex; align-items: center; justify-content: center; color: var(--pearl); }
.an-bar button:active { background: rgba(217, 165, 143, .2); }
/* the times are drawn from data-t (no text changes in the page while it plays: content.js watches those) */
.an-bar time::after { content: attr(data-t); }
.an-bar time { flex: none; min-width: 44px; font-size: 14px; letter-spacing: .06em; color: var(--pearl); font-variant-numeric: tabular-nums; text-align: center; }
.an-bar .sp { min-width: 46px; font-size: 13px; font-weight: 500; letter-spacing: .06em; }
/* sliders: a thin line, the played part in rose gold */
.an-bar input[type=range] { -webkit-appearance: none; appearance: none; height: 28px; margin: 0; background: none; cursor: pointer; touch-action: none; }
.an-bar input[type=range]::-webkit-slider-runnable-track { height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--rose) var(--p, 0%), rgba(242, 238, 246, .25) var(--p, 0%)); }
.an-bar input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: -5.5px; border-radius: 50%; background: var(--rose-hi); box-shadow: 0 0 10px rgba(217, 165, 143, .8); }
.an-bar input[type=range]::-moz-range-track { height: 3px; border-radius: 3px; background: rgba(242, 238, 246, .25); }
.an-bar input[type=range]::-moz-range-progress { height: 3px; border-radius: 3px; background: var(--rose); }
.an-bar input[type=range]::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: var(--rose-hi); }
.an-bar .seek { flex: 1; min-width: 120px; }
.an-bar .vol { flex: none; width: 84px; }

/* the note at the bottom left (a text the Console can change) */
.an-note { position: absolute; z-index: 2; left: 64px; bottom: 56px; margin: 0; font-family: var(--thai); font-size: 15px; font-weight: 300; color: rgba(242, 238, 246, .82); text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }

/* more than one film: tabs at the top right */
.an-tabs { top: 40px; }
.an-tabs:empty { display: none; }

/* a big play button when stopped (start, end, or the kiosk did not let it start with sound) */
.an-big { position: absolute; z-index: 1; left: 50%; top: 50%; width: 124px; height: 124px; margin: -62px 0 0 -62px; border-radius: 999px; border: 1px solid var(--rose);
  background: rgba(8, 11, 32, .5); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 10px rgba(217, 165, 143, .08), 0 0 40px rgba(217, 165, 143, .35); transition: opacity .4s ease, transform .4s ease; }
.anim.playing .an-big, .anim.empty .an-big { opacity: 0; transform: scale(.9); pointer-events: none; }
.an-wait { position: absolute; z-index: 1; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; border: 2px solid rgba(242, 238, 246, .2); border-top-color: var(--rose); animation: an-spin .9s linear infinite; display: none; }
.anim.loading .an-wait { display: block; } .anim.loading .an-big { opacity: 0; }
@keyframes an-spin { to { transform: rotate(360deg); } }
.an-err { position: absolute; z-index: 1; left: 50%; top: 50%; transform: translate(-50%, -50%); margin: 0; display: none; font-family: var(--thai); font-size: 20px; font-weight: 300; color: var(--silver); text-align: center; }
.anim.bad .an-err { display: block; } .anim.bad .an-big, .anim.bad .an-bar { display: none; }

/* nothing published yet */
.an-soon { position: absolute; left: 50%; top: 52%; transform: translate(-50%, -50%); display: none; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.an-soon svg { opacity: .9; filter: drop-shadow(0 0 18px rgba(217, 165, 143, .5)); }
.an-soon b { font-family: var(--serif); font-weight: 300; font-size: 72px; line-height: 1; } .an-soon b em { color: var(--rose); }
.an-soon p { margin: 0; font-family: var(--thai); font-size: 20px; font-weight: 300; color: var(--silver); }
.anim.empty { background: radial-gradient(ellipse 70% 60% at 50% 55%, #121845 0%, #070A20 70%, #05071A 100%); }
.anim.empty .an-soon { display: flex; }
.anim.empty .an-film, .anim.empty .an-bar, .anim.empty .an-note, .anim.empty::after { display: none; }
