/**
 *                          ___                   _       _         _
 *                         / __)                 | |     | |       | |
 *     _ _ _ _ _ _ _ _ _ _| |__ _____  ____ _   _| |  _  | |__   __| |
 *    | | | | | | | | | (_   __|____ |/ ___) | | | |_/ ) |  _ \ / _  |
 *    | | | | | | | | | | | |  / ___ | |   | |_| |  _ ( _| |_) | (_| |
 *     \___/ \___/ \___(_)|_|  \_____|_|   |____/|_| \_|_)____/ \____|
 *
 *
 * 	Author: MD OMAR FARUK
 * 	Author URI: www.faruk.bd
 * 	Author Contact: https://faruk.bd/#contact
 * 	Author Email: info@faruk.bd | farukmr@gmail.com
 * 	Copyright © 2026
 *                          ___                   _       _         _
 *                         / __)                 | |     | |       | |
 *     _ _ _ _ _ _ _ _ _ _| |__ _____  ____ _   _| |  _  | |__   __| |
 *    | | | | | | | | | (_   __|____ |/ ___) | | | |_/ ) |  _ \ / _  |
 *    | | | | | | | | | | | |  / ___ | |   | |_| |  _ ( _| |_) | (_| |
 *     \___/ \___/ \___(_)|_|  \_____|_|   |____/|_| \_|_)____/ \____|
 *
 *  Live - drawn with the site's shared colour variables, so it follows the theme.
 */

.lv-dot { width: 12px; height: 12px; border-radius: 50%; background: #e5484d; display: inline-block; box-shadow: 0 0 0 0 rgba(229, 72, 77, .6); animation: lv-pulse 1.6s infinite; }
@keyframes lv-pulse { 0% { box-shadow: 0 0 0 0 rgba(229, 72, 77, .6); } 70% { box-shadow: 0 0 0 10px rgba(229, 72, 77, 0); } 100% { box-shadow: 0 0 0 0 rgba(229, 72, 77, 0); } }

.lv-home { margin: 20px 0 8px; }
.lv-home-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 24px 0 12px; }
.lv-home-head h2 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 20px; line-height: 28px; }
.lv-home-head a { color: var(--brand); font-weight: 500; }
.lv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px 16px; }

.lv-card { display: block; color: var(--ink); text-decoration: none; }
.lv-card:hover { color: var(--ink); }
.lv-thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: var(--bg-soft); }
.lv-thumb img { width: 100%; height: 100%; object-fit: cover; }
.lv-thumb em { position: absolute; font-style: normal; }
.lv-badge {
    display: inline-block; background: #e5484d; color: #fff; font: 700 11.5px/1 inherit; font-family: inherit;
    letter-spacing: .5px; padding: 4px 7px; border-radius: 4px;
}
.lv-thumb .lv-badge { left: 8px; bottom: 8px; }
.lv-soon { background: #1f6feb; }
.lv-over { background: #555; }
.lv-watch { right: 8px; bottom: 8px; background: rgba(0, 0, 0, .7); color: #fff; font-size: 12px; padding: 2px 6px; border-radius: 4px; }
.lv-meta { display: flex; gap: 12px; margin-top: 10px; }
.lv-meta img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex: none; background: var(--bg-soft); }
.lv-meta b { display: block; font-weight: 500; font-size: 15px; line-height: 21px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lv-meta i { display: block; font-style: normal; color: var(--muted); font-size: 13px; }

/* ------------------------------------------------------------- watching */

.lv-watch { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; max-width: 1700px; margin: 0 auto; }
.lv-player { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 12px; overflow: hidden; }
.lv-player video, .lv-player iframe { width: 100%; height: 100%; border: 0; display: block; }
.lv-player-note { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); color: #fff; background: rgba(0, 0, 0, .6); padding: 10px 16px; border-radius: 8px; }
.lv-off {
    height: 100%; display: grid; place-items: center; text-align: center; color: #fff;
    background: linear-gradient(rgba(0, 0, 0, .65), rgba(0, 0, 0, .65)), var(--bg) center / cover;
}
.lv-off p { margin: 12px 0 0; font-size: 16px; }
.lv-title { margin: 14px 0 8px; font-size: 20px; line-height: 28px; }
.lv-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.lv-owner { display: flex; align-items: center; gap: 12px; }
.lv-owner img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--bg-soft); }
.lv-owner-name { display: block; font-weight: 600; color: var(--ink); }
.lv-owner span { font-size: 12.5px; color: var(--muted); }
.lv-stats { color: var(--muted); font-size: 14px; display: flex; align-items: center; gap: 6px; }
.lv-stats b { color: var(--ink); }
.lv-desc { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--bg-soft); font-size: 14px; }

.lv-chat {
    display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
    height: calc(100vh - var(--topbar, 56px) - 48px); min-height: 420px; position: sticky; top: calc(var(--topbar, 56px) + 16px);
    background: var(--bg);
}
.lv-chat-head { padding: 12px 16px; font-weight: 600; border-bottom: 1px solid var(--line); }
.lv-chat-list { flex: 1; overflow-y: auto; padding: 8px 0; }
.lv-chat-empty { padding: 20px; color: var(--muted); text-align: center; }
.lv-msg { position: relative; display: flex; gap: 10px; padding: 5px 16px; font-size: 13.5px; line-height: 1.45; }
.lv-msg:hover { background: var(--bg-soft); }
.lv-msg img { width: 24px; height: 24px; border-radius: 50%; flex: none; object-fit: cover; margin-top: 1px; background: var(--bg-soft); }
.lv-msg b { color: var(--muted); font-weight: 500; }
.lv-msg span { word-wrap: break-word; }
.lv-msg-tools { position: absolute; right: 8px; top: 3px; display: none; gap: 4px; }
.lv-msg:hover .lv-msg-tools { display: flex; }
.lv-msg-tools button { border: 0; background: var(--bg); border-radius: 6px; cursor: pointer; padding: 2px 6px; font-size: 12px; }
.lv-chat-form { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); }
.lv-chat-form img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.lv-chat-form input {
    flex: 1; min-width: 0; height: 36px; border: 0; border-bottom: 1px solid var(--line); background: none;
    color: var(--ink); font: inherit; outline: none;
}
.lv-chat-form input:focus { border-bottom-color: var(--ink); }
.lv-chat-form button { border: 0; background: none; cursor: pointer; color: var(--muted); }
.lv-chat-form button svg { width: 22px; height: 22px; fill: currentColor; }
.lv-chat-said { color: #e5484d; font-size: 12.5px; padding: 0 14px 8px; }
.lv-chat-said:empty { display: none; }
.lv-chat-signin { display: block; text-align: center; padding: 14px; border-top: 1px solid var(--line); font-weight: 600; color: var(--brand); }

/* ---------------------------------------------------------- the studio */

.lv-studio { border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; margin-bottom: 22px; background: var(--bg); }
.lv-studio-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.lv-studio h2 { margin: 6px 0 4px; font-size: 20px; }
.lv-sub { color: var(--muted); font-size: 13.5px; }
.lv-btns, .lv-row-btns { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.lv-btns form, .lv-row-btns form { margin: 0; }
.lv-row-btns { margin-top: 12px; }
.lv-go { background: #e5484d !important; color: #fff !important; }
.lv-end { background: #333 !important; color: #fff !important; }
.lv-state { display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .5px; padding: 3px 8px; border-radius: 4px; background: #888; color: #fff; }
.lv-state-live { background: #e5484d; }
.lv-state-scheduled { background: #1f6feb; }
.lv-signal { display: flex; align-items: center; gap: 10px; margin: 16px 0; padding: 10px 14px; border-radius: 10px; background: var(--bg-soft); font-size: 14px; }
.lv-signal-dot { width: 10px; height: 10px; border-radius: 50%; background: #999; flex: none; }
.lv-signal.is-on .lv-signal-dot { background: #16a34a; box-shadow: 0 0 0 4px rgba(22, 163, 74, .2); }
.lv-signal.is-off .lv-signal-dot { background: #e5484d; }
.lv-keys .field { margin-bottom: 12px; }
.lv-copy { display: flex; gap: 8px; }
.lv-copy input { flex: 1; min-width: 0; font-family: monospace; }
.lv-steps { margin: 6px 0 0 18px; padding: 0; font-size: 14px; line-height: 1.7; color: var(--ink); }
.lv-note { font-size: 14px; }
.lv-new { margin: 0 0 22px; max-width: 760px; }
.lv-mylist { display: flex; flex-direction: column; gap: 6px; max-width: 900px; }
.lv-myrow { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line); color: var(--ink); }
.lv-myrow.on { border-color: var(--brand); }
.lv-myrow b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lv-myrow i { font-style: normal; color: var(--muted); font-size: 13px; }

@media (max-width: 1000px) {
    .lv-watch { grid-template-columns: 1fr; }
    .lv-chat { position: static; height: 460px; }
}

/* ------------------------------------------------ the broadcast room */

.lv-room { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.lv-room-main { min-width: 0; }
.lv-room-stage { position: relative; background: #000; border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 9; }
.lv-room-stage video { width: 100%; height: 100%; object-fit: contain; display: block; background: #000; }
.lv-room-over { position: absolute; left: 12px; top: 12px; display: flex; gap: 8px; align-items: center; }
.lv-room-state { font: 700 11.5px/1 sans-serif; letter-spacing: 1px; padding: 6px 10px; border-radius: 6px; background: rgba(0, 0, 0, .55); color: #fff; }
.lv-room.is-live .lv-room-state { background: #e5484d; }
.lv-room-clock, .lv-room-eye { font: 600 12.5px/1 sans-serif; padding: 6px 10px; border-radius: 6px; background: rgba(0, 0, 0, .55); color: #fff; display: inline-flex; align-items: center; gap: 5px; }
.lv-room-note { position: absolute; inset: auto 12px 12px; padding: 10px 12px; border-radius: 10px; background: rgba(0, 0, 0, .6); color: #fff; font-size: 13px; text-align: center; }
.lv-room-note[hidden] { display: none; }
.lv-room-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.lv-room-tools { display: flex; gap: 8px; flex-wrap: wrap; }
.lv-tool { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; min-width: 64px; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: 600 11.5px/1 inherit; cursor: pointer; }
.lv-tool svg { width: 22px; height: 22px; fill: currentColor; }
.lv-tool:hover { border-color: var(--brand); }
.lv-tool.is-off { background: #e5484d; border-color: #e5484d; color: #fff; }
.lv-tool.is-on { background: var(--brand); border-color: var(--brand); color: #fff; }
.lv-room-go .btn { min-width: 130px; }
.lv-room-health { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.lv-room-health b { color: var(--ink); }
.lv-h-state { padding: 2px 8px; border-radius: 6px; font-weight: 600; }
.lv-h-state.is-good { background: rgba(34, 197, 94, .15); color: #16a34a; }
.lv-h-state.is-slow { background: rgba(245, 158, 11, .15); color: #d97706; }
.lv-h-state.is-bad { background: rgba(239, 68, 68, .15); color: #dc2626; }
.lv-room-settings { margin-top: 14px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; background: var(--card); }
.lv-room-settings summary { cursor: pointer; font-weight: 600; font-size: 13.5px; }
.lv-room-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin-top: 10px; }
.lv-room-pick label { font-size: 12.5px; color: var(--muted); display: grid; gap: 4px; }
.lv-room-pick select { padding: 8px 10px; border-radius: 9px; border: 1px solid var(--line); background: var(--bg-soft, var(--bg)); color: var(--ink); font: inherit; font-size: 13px; }
.lv-room-about { margin-top: 16px; }
.lv-room-about h1 { font-size: 19px; margin: 0 0 4px; }
.lv-room-about p { color: var(--muted); margin: 0 0 10px; font-size: 13.5px; }
.lv-room-links { display: flex; gap: 8px; flex-wrap: wrap; }
.lv-room-chat { position: sticky; top: 76px; height: min(70vh, 640px); }
@media (max-width: 900px) {
    .lv-room { grid-template-columns: 1fr; }
    .lv-room-chat { position: static; height: 360px; }
}
/* ------------------------------------------ the check before going live */

.lv-check { margin: 0 0 20px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.lv-check-head h2 { margin: 0 0 4px; font-size: 17px; }
.lv-check-head p { margin: 0 0 14px; color: var(--muted); font-size: 13.5px; }
.lv-check-body { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(260px, 1fr); gap: 18px; align-items: start; }
.lv-check-stage { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #0b0f1a; }
.lv-check-stage video { width: 100%; height: 100%; object-fit: cover; display: block; }
.lv-check-note { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 20px; color: #fff; font-size: 14px; background: rgba(0, 0, 0, .35); }
.lv-check-note[hidden] { display: none; }
.lv-check-badge { position: absolute; left: 10px; top: 10px; padding: 3px 8px; border-radius: 6px; background: rgba(0, 0, 0, .7); color: #fff; font-size: 12px; font-weight: 600; }
.lv-check-side label { display: grid; gap: 4px; font-size: 12.5px; color: var(--muted); margin-bottom: 10px; }
.lv-check-side select { padding: 8px 10px; border-radius: 9px; border: 1px solid var(--line); background: var(--bg-soft, var(--bg)); color: var(--ink); font: inherit; font-size: 13px; }
.lv-meter { margin: 6px 0 12px; }
.lv-meter span { font-size: 12.5px; color: var(--muted); }
.lv-meter-bar { height: 10px; border-radius: 99px; background: var(--line); overflow: hidden; margin: 6px 0 4px; }
.lv-meter-bar i { display: block; height: 100%; width: 0; background: var(--muted); transition: width .08s linear; border-radius: 99px; }
.lv-meter-bar i.good { background: #22c55e; }
.lv-meter-bar i.hot { background: #e5484d; }
.lv-meter small { font-size: 12px; color: var(--muted); }
.lv-check-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.lv-check-list { list-style: none; margin: 0; padding: 0; font-size: 13px; display: grid; gap: 4px; }
.lv-check-list li { padding-left: 22px; position: relative; }
.lv-check-list li::before { content: "\2713"; position: absolute; left: 0; top: 0; color: #16a34a; font-weight: 700; }
.lv-check-list li.bad::before { content: "\2717"; color: #e5484d; }
.lv-check-list li.wait::before { content: "\2026"; color: var(--muted); }
@media (max-width: 760px) { .lv-check-body { grid-template-columns: 1fr; } }

/* the stream as the viewers see it, on the Go live page */
.lv-preview { margin: 0 0 20px; padding: 14px 18px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.lv-preview-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.lv-preview-head h2 { margin: 0; font-size: 17px; display: flex; align-items: center; gap: 10px; }
.lv-preview-head span { font-size: 13px; color: var(--muted); }
.lv-preview .lv-player { max-width: 720px; }
.lv-check-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0 5px; }

/* ------------------------------------------- round 13: the recording, saved */
.lv-save { display: grid; gap: 8px; margin: 14px 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-soft); }
.lv-save.is-done { border-color: rgba(22, 163, 74, .35); background: rgba(22, 163, 74, .08); }
.lv-save > b { font-size: 15px; }
.lv-save > span { color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.lv-save > em { color: #b45309; font-size: 13px; font-style: normal; }
.lv-save-row { display: grid; grid-template-columns: minmax(0, 1fr) 140px; gap: 8px; }
.lv-save-row input, .lv-save-row select { width: 100%; padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px; background: var(--bg); color: var(--ink); font: inherit; font-size: 14px; }
.lv-save-btns, .lv-save.is-done { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.lv-save.is-done > b, .lv-save.is-done > span { flex-basis: 100%; }
@media (max-width: 560px) { .lv-save-row { grid-template-columns: 1fr; } }
