/* ==========================================================================
   EGSBI video library — gallery + watch page
   ========================================================================== */

/* ---------- Series hero ---------- */
.lib-hero { position: relative; overflow: hidden; isolation: isolate; padding-block: calc(var(--header-h) + clamp(2rem, 1rem + 3vw, 4rem)) clamp(4rem, 3rem + 3vw, 6rem); background: var(--grad-dark); color: #e9e0ef; }
.lib-hero__grid { position: relative; display: grid; gap: var(--s-7); align-items: center; }
@media (min-width: 980px) { .lib-hero__grid { grid-template-columns: 1.1fr 1fr; } }
.lib-hero__title { color: #fff; font-size: var(--fs-3xl); margin-bottom: var(--s-4); }
.lib-hero__text { max-width: 36rem; color: #d5c8dd; font-size: var(--fs-md); }
.lib-hero__cta { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-5); }
.lib-stats { display: flex; flex-wrap: wrap; gap: var(--s-6); margin: var(--s-5) 0 0; }
.lib-stats div { display: flex; flex-direction: column-reverse; }
.lib-stats dt { color: #bfb0ca; font-size: var(--fs-sm); }
.lib-stats dd { margin: 0; color: #fff; font-size: var(--fs-2xl); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }

.lib-feature { position: relative; display: block; overflow: hidden; border-radius: var(--r-xl); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); box-shadow: var(--sh-3); color: #fff; text-decoration: none; transition: transform .5s var(--ease-out); }
.lib-feature:hover { color: #fff; transform: translateY(-6px) rotate(-.4deg); }
.lib-feature__media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.lib-feature__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.lib-feature:hover .lib-feature__media img { transform: scale(1.07); }
.lib-feature__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(18, 10, 26, .85)); }
.lib-feature__play { position: absolute; z-index: 2; inset: 0; margin: auto; display: grid; place-items: center; width: 78px; height: 78px; border-radius: 50%; background: rgba(255, 255, 255, .95); color: var(--rose-600); box-shadow: 0 0 0 10px rgba(255, 255, 255, .15), var(--sh-3); animation: btn-pulse 2.6s var(--ease) infinite; transition: transform .35s var(--ease-out); }
.lib-feature:hover .lib-feature__play { transform: scale(1.1); }
.lib-feature__body { position: absolute; z-index: 2; inset-inline: 0; bottom: 0; display: grid; gap: .3rem; padding: 1.25rem 1.5rem; }
.lib-feature__label { display: inline-flex; align-items: center; gap: .5rem; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--rose-300); }
.lib-feature__title { font-size: var(--fs-lg); font-weight: 800; line-height: 1.25; letter-spacing: -.015em; }
.lib-feature__meta { font-size: var(--fs-sm); color: #d5c8dd; }

/* ---------- Toolbar ---------- */
.lib-toolbar { position: sticky; top: calc(var(--header-h) + 8px); z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); margin-bottom: var(--s-4); padding: .65rem; border: 1px solid var(--line); border-radius: var(--r-lg); background: rgba(255, 255, 255, .9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: var(--sh-1); }
.admin-bar .lib-toolbar { top: calc(var(--header-h) + 40px); }
.lib-search { position: relative; flex: 1 1 16rem; display: flex; align-items: center; }
.lib-search .icon { position: absolute; inset-inline-start: 1rem; color: var(--muted); pointer-events: none; }
.lib-search input { min-height: 46px; padding-inline-start: 2.75rem; border-radius: var(--r-pill); background: var(--blush-50); border-color: transparent; }
.lib-chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.lib-chip { display: inline-flex; align-items: center; gap: .35rem; min-height: 40px; padding: .35rem .9rem; border: 1px solid var(--line-2); border-radius: var(--r-pill); background: #fff; color: var(--ink-2); font: 600 var(--fs-sm) var(--f-sans); cursor: pointer; transition: all .25s var(--ease); }
.lib-chip span { font-size: var(--fs-xs); color: var(--muted); }
.lib-chip:hover { border-color: var(--rose-400); color: var(--rose-700); }
.lib-chip.is-active { background: var(--grad-brand); border-color: transparent; color: #fff; box-shadow: var(--sh-rose); }
.lib-chip.is-active span { color: rgba(255, 255, 255, .85); }
.lib-sort { display: flex; align-items: center; gap: .5rem; margin-inline-start: auto; font-size: var(--fs-sm); color: var(--muted); }
.lib-sort select { width: auto; min-height: 42px; padding-block: .4rem; border-radius: var(--r-pill); }
.lib-count { margin: 0 0 var(--s-5); color: var(--muted); font-size: var(--fs-sm); min-height: 1.2em; }
.lib-empty { padding: var(--s-8) var(--s-4); border: 1px dashed var(--line-2); border-radius: var(--r-lg); text-align: center; color: var(--muted); }

/* ---------- Video cards ---------- */
.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17.5rem), 1fr)); gap: var(--s-6) var(--s-5); }
.vcard { position: relative; display: flex; flex-direction: column; gap: .8rem; transition: transform .45s var(--ease-out); }
.vcard[hidden] { display: none; }
.vcard__media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--r-lg); background: var(--plum-800); box-shadow: var(--sh-1); transition: box-shadow .45s var(--ease), border-radius .45s var(--ease); }
.vcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-out), filter .5s var(--ease); }
.vcard:hover .vcard__media { box-shadow: var(--sh-3); border-radius: calc(var(--r-lg) + 4px); }
.vcard:hover .vcard__media img { transform: scale(1.08); }
.vcard__ph { display: grid; place-items: center; height: 100%; color: rgba(255, 255, 255, .3); }
.vcard__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18, 10, 26, 0) 45%, rgba(18, 10, 26, .75)); opacity: .85; transition: opacity .4s var(--ease); }
.vcard:hover .vcard__shade { opacity: 1; background: linear-gradient(180deg, rgba(201, 47, 102, .25), rgba(18, 10, 26, .8)); }
.vcard__play { position: absolute; inset: 0; margin: auto; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: rgba(255, 255, 255, .95); color: var(--rose-600); box-shadow: var(--sh-2); transform: scale(.75); opacity: 0; transition: transform .45s var(--ease-out), opacity .35s var(--ease); }
.vcard:hover .vcard__play, .vcard:focus-within .vcard__play { transform: none; opacity: 1; }
.vcard__num { position: absolute; top: .65rem; inset-inline-start: .65rem; padding: .2rem .6rem; border-radius: var(--r-pill); background: var(--grad-brand); color: #fff; font-size: var(--fs-xs); font-weight: 800; box-shadow: var(--sh-rose); }
.vcard__free { position: absolute; top: .65rem; inset-inline-end: .65rem; padding: .2rem .6rem; border-radius: var(--r-pill); background: var(--teal); color: #fff; font-size: var(--fs-xs); font-weight: 800; }
.vcard__views { position: absolute; bottom: .6rem; inset-inline-end: .6rem; display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .55rem; border-radius: 6px; background: rgba(18, 10, 26, .78); color: #fff; font-size: var(--fs-xs); font-weight: 700; font-variant-numeric: tabular-nums; }
.vcard__body { display: grid; gap: .35rem; }
.vcard__title { margin: 0; font-size: var(--fs-base); line-height: 1.35; letter-spacing: -.01em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vcard__title a { color: var(--ink); text-decoration: none; }
.vcard__title a::after { content: ""; position: absolute; inset: 0; z-index: 3; }
.vcard:hover .vcard__title a { color: var(--rose-700); }
.vcard__speaker { display: flex; align-items: center; gap: .55rem; margin: 0; color: var(--ink-2); font-size: var(--fs-sm); font-weight: 600; }
.vcard__avatar, .speaker__avatar, .composer__avatar, .msg__avatar { display: grid; place-items: center; flex-shrink: 0; border-radius: 50%; background: var(--grad-brand); color: #fff; font-weight: 800; text-transform: uppercase; }
.vcard__avatar { width: 26px; height: 26px; font-size: .75rem; }
.vcard__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: 0; color: var(--muted); font-size: var(--fs-xs); }
.vcard__rating { display: inline-flex; align-items: center; gap: .2rem; margin-inline-start: .35rem; color: #b7791f; font-weight: 700; }
.vcard__rating .icon { fill: currentColor; }
.vcard.is-current .vcard__media { outline: 3px solid var(--rose-500); outline-offset: 2px; }

/* Row variant (up next) */
.vcard--row { flex-direction: row; gap: .8rem; padding: .45rem; border-radius: var(--r-md); transition: background-color .25s var(--ease); }
.vcard--row:hover { background: rgba(255, 255, 255, .06); }
.vcard--row .vcard__media { width: 42%; flex-shrink: 0; border-radius: var(--r-sm); }
.vcard--row .vcard__play { width: 38px; height: 38px; }
.vcard--row .vcard__play .icon { width: 18px; height: 18px; }
.vcard--row .vcard__num, .vcard--row .vcard__free { top: .35rem; inset-inline-start: .35rem; font-size: .65rem; padding: .1rem .45rem; }
.vcard--row .vcard__free { inset-inline-start: auto; inset-inline-end: .35rem; }
.vcard--row .vcard__views { bottom: .3rem; inset-inline-end: .3rem; font-size: .65rem; }
.vcard--row .vcard__title { font-size: var(--fs-sm); }
.vcard--row .vcard__speaker { font-size: var(--fs-xs); }
.vcard--row .vcard__avatar { display: none; }
.vcard--row .vcard__meta { font-size: .72rem; }

/* Other series */
.lib-series { margin-top: var(--s-8); }
.lib-series__title { font-size: var(--fs-xl); margin-bottom: var(--s-5); }
.lib-series ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); gap: var(--s-4); margin: 0; padding: 0; list-style: none; }

/* ---------- Watch page ---------- */
.watch { position: relative; overflow: hidden; isolation: isolate; padding-block: calc(var(--header-h) + var(--s-5)) var(--s-8); background: var(--grad-dark); color: #e9e0ef; }
.watch__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.watch .crumbs { margin-bottom: var(--s-4); }
.watch__grid { display: grid; gap: var(--s-6); align-items: start; }
@media (min-width: 1100px) { .watch__grid { grid-template-columns: minmax(0, 1fr) 380px; } }
.watch__main { min-width: 0; }

.player { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--r-lg); background: #000; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .08); }
.player__poster { position: absolute; inset: 0; }
.player__poster img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.65) saturate(1.1); transform: scale(1.02); transition: filter .5s var(--ease), transform 1s var(--ease-out); }
.player:hover .player__poster img { filter: brightness(.75); transform: scale(1.05); }
.player.is-locked .player__poster img { filter: blur(6px) brightness(.45); transform: scale(1.08); }
.player__start { position: absolute; inset: 0; z-index: 2; display: grid; place-content: center; justify-items: center; gap: .9rem; border: 0; background: radial-gradient(circle at center, rgba(27, 16, 38, .2), rgba(27, 16, 38, .55)); color: #fff; cursor: pointer; }
.player__btn { display: grid; place-items: center; width: 92px; height: 92px; border-radius: 50%; background: var(--grad-brand); color: #fff; box-shadow: 0 0 0 14px rgba(240, 109, 151, .18), 0 0 0 28px rgba(240, 109, 151, .08), var(--sh-rose); transition: transform .4s var(--ease-out), box-shadow .4s var(--ease); }
.player__btn .icon { margin-inline-start: 6px; fill: currentColor; }
.player__start:hover .player__btn { transform: scale(1.1); box-shadow: 0 0 0 18px rgba(240, 109, 151, .22), 0 0 0 36px rgba(240, 109, 151, .1), var(--sh-rose); }
.player__hint { font-weight: 700; letter-spacing: .02em; text-shadow: 0 2px 10px rgba(0, 0, 0, .5); }
.player__frame { position: absolute; inset: 0; z-index: 3; background: #000; }
.player__frame iframe, .player__frame video, .player__frame .aiovg-player, .player__frame > div { position: absolute !important; inset: 0; width: 100% !important; height: 100% !important; border: 0; max-width: none !important; padding: 0 !important; }
.player__loading { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 1rem; color: #e9e0ef; font-size: var(--fs-sm); }
.player__spinner { width: 54px; height: 54px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .15); border-top-color: var(--rose-400); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.player__lock { position: absolute; inset: 0; z-index: 2; display: grid; place-content: center; justify-items: center; gap: .6rem; padding: var(--s-5); text-align: center; background: radial-gradient(circle at center, rgba(27, 16, 38, .35), rgba(18, 10, 26, .8)); }
.player__lock-icon { display: grid; place-items: center; width: 68px; height: 68px; margin-bottom: .4rem; border-radius: 50%; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); color: var(--rose-300); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); animation: float 3.5s var(--ease) infinite alternate; }
.player__lock-title { margin: 0; color: #fff; font-size: var(--fs-lg); font-weight: 800; }
.player__lock-text { margin: 0; max-width: 28rem; color: #d5c8dd; font-size: var(--fs-sm); }
.player__lock-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-top: .6rem; }
@media (max-width: 560px) { .player__lock-text { display: none; } .player__lock-icon { width: 48px; height: 48px; } }

.parts { display: flex; gap: .5rem; overflow-x: auto; margin-top: var(--s-4); padding-bottom: .3rem; }
.parts__btn { display: inline-flex; align-items: center; gap: .5rem; flex-shrink: 0; padding: .5rem .9rem; border: 1px solid rgba(255, 255, 255, .15); border-radius: var(--r-pill); background: rgba(255, 255, 255, .06); color: #fff; font: 600 var(--fs-sm) var(--f-sans); cursor: pointer; }
.parts__btn span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(255, 255, 255, .12); font-size: .75rem; }
.parts__btn.is-active { background: var(--grad-brand); border-color: transparent; }

.watch__info { margin-top: var(--s-5); }
.watch__series { display: inline-flex; align-items: center; gap: .45rem; margin-bottom: .7rem; padding: .3rem .8rem; border-radius: var(--r-pill); background: rgba(240, 109, 151, .15); color: var(--rose-200); font-size: var(--fs-xs); font-weight: 700; text-decoration: none; }
.watch__series:hover { background: rgba(240, 109, 151, .28); color: #fff; }
.watch__title { margin-bottom: var(--s-4); color: #fff; font-size: var(--fs-2xl); }
.watch__bar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4) var(--s-5); padding-bottom: var(--s-4); border-bottom: 1px solid rgba(255, 255, 255, .1); }
.speaker { display: flex; align-items: center; gap: .7rem; }
.speaker__avatar { width: 46px; height: 46px; font-size: 1.1rem; box-shadow: 0 0 0 3px rgba(255, 255, 255, .12); }
.speaker__body { display: grid; line-height: 1.25; }
.speaker__body strong { color: #fff; }
.speaker__body small { color: #bfb0ca; font-size: var(--fs-xs); }
.watch__stats { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.watch__stats li { display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .8rem; border-radius: var(--r-pill); background: rgba(255, 255, 255, .06); font-size: var(--fs-sm); color: #e9e0ef; font-variant-numeric: tabular-nums; }
.watch__stats .icon { color: var(--rose-300); }
.watch__avg .icon { color: #f5b942; fill: #f5b942; }
.watch__avg small { color: #bfb0ca; }
.chip-btn { display: inline-flex; align-items: center; gap: .4rem; margin-inline-start: auto; min-height: 40px; padding: .4rem .95rem; border: 1px solid rgba(255, 255, 255, .2); border-radius: var(--r-pill); background: transparent; color: #fff; font: 600 var(--fs-sm) var(--f-sans); cursor: pointer; transition: background-color .25s var(--ease); }
.chip-btn:hover { background: rgba(255, 255, 255, .1); }

.rate { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin-top: var(--s-4); padding: .9rem 1.1rem; border-radius: var(--r-lg); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); }
.rate__label { font-weight: 700; color: #fff; }
.rate__stars { display: flex; gap: .15rem; }
.rate__stars button { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; background: transparent; color: rgba(255, 255, 255, .28); cursor: pointer; transition: transform .2s var(--ease-out), color .2s var(--ease); }
.rate__stars button .icon { fill: currentColor; }
.rate__stars button.is-on, .rate__stars button.is-hover { color: #f5b942; }
.rate__stars button:hover { transform: scale(1.18) rotate(-6deg); }
.rate__stars button.is-pop { animation: pop .45s var(--ease-out); }
@keyframes pop { 50% { transform: scale(1.4); } }
.rate__msg { color: var(--rose-200); font-size: var(--fs-sm); }

.watch__desc { margin-top: var(--s-5); padding: var(--s-5); border-radius: var(--r-lg); background: rgba(255, 255, 255, .04); color: #e3d7ea; max-width: none; }
.watch__desc a { color: var(--rose-300); }

/* ---------- Side panel ---------- */
.side { position: sticky; top: calc(var(--header-h) + 16px); display: flex; flex-direction: column; height: min(calc(100dvh - var(--header-h) - 40px), 720px); overflow: hidden; border-radius: var(--r-lg); background: rgba(18, 10, 26, .55); border: 1px solid rgba(255, 255, 255, .1); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: var(--sh-3); }
@media (max-width: 1099px) { .side { position: relative; top: 0; height: 560px; } }
.side__tabs { display: flex; gap: .25rem; padding: .4rem; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.side__tab { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .45rem; flex: 1; min-height: 44px; border: 0; border-radius: var(--r-md); background: transparent; color: #bfb0ca; font: 700 var(--fs-sm) var(--f-sans); cursor: pointer; transition: background-color .25s var(--ease), color .25s var(--ease); }
.side__tab:hover { color: #fff; }
.side__tab.is-active { background: rgba(255, 255, 255, .08); color: #fff; }
.side__badge:not(:empty) { min-width: 20px; padding: 0 .35rem; border-radius: var(--r-pill); background: var(--rose-500); color: #fff; font-size: .7rem; line-height: 20px; }
.side__panel { display: flex; flex: 1; flex-direction: column; min-height: 0; }
.side__panel[hidden] { display: none; }
.side__note, .side__locked { margin: 0; padding: 1rem; text-align: center; color: #bfb0ca; font-size: var(--fs-sm); }
.side__note a { color: var(--rose-300); font-weight: 700; }
.side__locked { display: grid; place-content: center; justify-items: center; gap: .5rem; flex: 1; color: #cdbfd6; }
.side__locked .icon { color: var(--rose-300); }

.chat { flex: 1; margin: 0; padding: 1rem; overflow-y: auto; list-style: none; scroll-behavior: smooth; overscroll-behavior: contain; }
.chat::-webkit-scrollbar { width: 6px; }
.chat::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .15); border-radius: 6px; }
.chat__empty { display: grid; justify-items: center; gap: .6rem; padding: 3rem 1rem; text-align: center; color: #bfb0ca; font-size: var(--fs-sm); }
.chat__empty .icon { color: var(--rose-300); opacity: .8; }
.msg { display: flex; gap: .65rem; margin-bottom: .9rem; animation: msg-in .45s var(--ease-out) both; }
@keyframes msg-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.msg__avatar { width: 34px; height: 34px; font-size: .85rem; }
.msg--staff .msg__avatar { background: linear-gradient(120deg, var(--teal), #0e8b73); }
.msg__body { min-width: 0; padding: .55rem .8rem; border-radius: 4px 14px 14px 14px; background: rgba(255, 255, 255, .07); }
.msg--mine { flex-direction: row-reverse; }
.msg--mine .msg__body { border-radius: 14px 4px 14px 14px; background: linear-gradient(120deg, rgba(226, 69, 122, .5), rgba(87, 48, 111, .6)); }
.msg__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem; margin-bottom: .15rem; font-size: var(--fs-xs); }
.msg__name { color: #fff; font-weight: 700; }
.msg__tag { padding: 0 .4rem; border-radius: 4px; background: var(--teal); color: #fff; font-size: .62rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.msg__time { color: #9d8fa8; }
.msg__text { color: #ece4f1; font-size: var(--fs-sm); line-height: 1.55; overflow-wrap: anywhere; }
.msg__text p { margin: 0; }
.msg__text p + p { margin-top: .4rem; }

.composer { display: flex; align-items: flex-end; gap: .55rem; margin: 0; padding: .75rem; border-top: 1px solid rgba(255, 255, 255, .08); background: rgba(18, 10, 26, .4); }
.composer__avatar { width: 34px; height: 34px; font-size: .85rem; }
.composer textarea { flex: 1; min-height: 42px; max-height: 120px; padding: .55rem .9rem; border-radius: 20px; border: 1px solid rgba(255, 255, 255, .15); background: rgba(255, 255, 255, .06); color: #fff; font-size: 15px; resize: none; line-height: 1.4; }
.composer textarea::placeholder { color: #9d8fa8; }
.composer textarea:focus { border-color: var(--rose-400); box-shadow: 0 0 0 3px rgba(240, 109, 151, .25); }
.composer__send { display: grid; place-items: center; width: 42px; height: 42px; flex-shrink: 0; border: 0; border-radius: 50%; background: var(--grad-brand); color: #fff; cursor: pointer; transition: transform .25s var(--ease-out), opacity .2s var(--ease); }
.composer__send:hover { transform: scale(1.08) rotate(-12deg); }
.composer__send:disabled { opacity: .5; cursor: default; transform: none; }
.composer__note { margin: 0; padding: 0 .9rem .5rem; color: var(--rose-200); font-size: var(--fs-xs); min-height: 0; }
.composer__note:empty { display: none; }

.upnext { flex: 1; overflow-y: auto; padding: .5rem; }
.upnext .vcard__title a { color: #fff; }
.upnext .vcard:hover .vcard__title a { color: var(--rose-200); }
.upnext .vcard__speaker { color: #cdbfd6; }
.upnext .vcard__meta { color: #9d8fa8; }

/* Library sections in light areas */
.section--tint .vgrid .vcard__title a { color: var(--ink); }

/* Toast */
.lib-toast { position: fixed; z-index: 300; inset-inline-start: 50%; bottom: 1.5rem; padding: .7rem 1.2rem; border-radius: var(--r-pill); background: var(--plum-900); color: #fff; font-weight: 600; box-shadow: var(--sh-3); transform: translate(-50%, 20px); opacity: 0; transition: all .35s var(--ease-out); }
[dir="rtl"] .lib-toast { transform: translate(50%, 20px); }
.lib-toast.is-on { transform: translate(-50%, 0); opacity: 1; }

@media (prefers-reduced-motion: reduce) {
	.lib-feature__play, .player__lock-icon { animation: none; }
}
