/* Livestream realtime trên website */
.live-now { background: #0f1115; color: #e8eaed; }
.live-now[hidden], .live-now [hidden] { display: none !important; }
.live-now h2 { color: #fff; margin: 6px 0 10px; }
.live-now .muted { color: #aeb3ba; }
.live-now__head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.live-now__viewers { font-size: .9rem; color: #aeb3ba; }
.live-now__grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.live-now__main { min-width: 0; }
.live-now__main .live-now__info { margin-top: 16px; }
.live-now__grid--solo { grid-template-columns: minmax(0, 1fr); }
.live-now__info { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.live-now__cover { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; }
.live-now__when { font-weight: 600; color: #fff; }

.live-player { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 14px; overflow: hidden; }
.live-player[hidden] { display: none; }
.live-player video { width: 100%; height: 100%; display: block; object-fit: contain; background: #000; }
.live-player__overlay {
  position: absolute; inset: 0; z-index: 5; display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 20px; background: rgba(0, 0, 0, .72); color: #fff; font-weight: 600;
}
.live-player__overlay[hidden], .live-player__unmute[hidden] { display: none; }
.live-player__unmute {
  position: absolute; left: 14px; bottom: 64px; z-index: 4; border: 0; cursor: pointer; border-radius: 999px;
  background: rgba(255, 255, 255, .92); color: #111; padding: 8px 16px; font-weight: 600; font-size: .85rem;
}

.live-now .countdown { color: #fff; }

/* Chip nổi ở các trang không có khối live */
.live-chip {
  position: fixed; left: 16px; bottom: 16px; z-index: 60; display: inline-flex; align-items: center; gap: 9px;
  background: #e5202e; color: #fff; padding: 10px 16px; border-radius: 999px; font-weight: 700; font-size: .88rem;
  text-decoration: none; box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
}
.live-chip::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #fff; animation: blink 1.4s infinite; }
.live-chip[hidden] { display: none; }



.live-player__badge {
  position: absolute; top: 14px; left: 14px; z-index: 4; display: inline-flex; align-items: center; gap: 7px;
  background: #e5202e; color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .05em; padding: 5px 11px; border-radius: 6px;
}
.live-player__badge i { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: lp-pulse 1.4s infinite; }
.live-player__viewers {
  position: absolute; top: 14px; right: 14px; z-index: 4; background: rgba(0, 0, 0, .55); color: #fff;
  font-size: 12.5px; font-weight: 600; padding: 5px 11px; border-radius: 6px;
}

/* ===== Thanh điều khiển livestream (không có thanh tua) ===== */
.lp-stage { position: relative; }
.lp-stage video { cursor: pointer; }
.lp-controls {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: flex; align-items: center; gap: 6px;
  padding: 28px 14px 12px; color: #fff; transition: opacity .25s;
  background: linear-gradient(to top, rgba(0, 0, 0, .72), rgba(0, 0, 0, 0));
}
.lp-stage.lp-idle:not(.lp-paused) .lp-controls { opacity: 0; pointer-events: none; }
.lp-stage.lp-idle:not(.lp-paused) { cursor: none; }
.lp-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; padding: 0;
  border: 0; border-radius: 50%; background: transparent; color: #fff; cursor: pointer; transition: background .15s;
}
.lp-btn:hover { background: rgba(255, 255, 255, .18); }
.lp-spacer { flex: 1; }
.lp-vol {
  width: 78px; height: 4px; accent-color: #fff; cursor: pointer; opacity: .9;
}
.lp-live {
  display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border: 0; border-radius: 999px;
  background: rgba(229, 32, 46, .95); color: #fff; font: 700 12px/1 inherit; letter-spacing: .05em; cursor: default; white-space: nowrap;
}
.lp-live .lp-dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: lp-pulse 1.4s infinite; }
.lp-live.lp-behind { background: rgba(255, 255, 255, .22); cursor: pointer; letter-spacing: 0; }
.lp-live.lp-behind:hover { background: rgba(255, 255, 255, .34); }
.lp-live.lp-behind .lp-dot { background: #e5202e; animation: none; }
@keyframes lp-pulse { 50% { opacity: .3; } }
@media (max-width: 560px) { .lp-vol { display: none; } .lp-controls { padding: 24px 8px 8px; } }

/* ===== Chat ===== */
.live-chat {
  display: flex; flex-direction: column; min-height: 360px; max-height: 720px; background: #171a20; border: 1px solid #262b33;
  border-radius: 14px; overflow: hidden; position: relative; color: #e8eaed;
}
.live-chat[hidden] { display: none !important; }
.live-chat__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-bottom: 1px solid #262b33; }
.live-chat__head strong { color: #fff; font-size: .95rem; }
.live-chat__status { font-size: .75rem; color: #8b929c; display: inline-flex; align-items: center; gap: 6px; }
.live-chat__status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #8b929c; }
.live-chat__status.is-ok::before { background: #34c759; }
.live-chat__status.is-wait::before { background: #ffb84d; }
.live-chat__status.is-off::before { background: #e5202e; }
.live-chat__pinned {
  display: flex; gap: 9px; align-items: flex-start; padding: 9px 14px; background: #1f2530; border-bottom: 1px solid #262b33;
  font-size: .85rem; line-height: 1.4; color: #dfe3e8;
}
.live-chat__pinned svg { flex-shrink: 0; margin-top: 3px; color: #ffb84d; }
.live-chat__pinned b { color: #fff; }
.live-chat__pinned[hidden] { display: none; }
.live-chat__list { flex: 1; min-height: 0; overflow-y: auto; padding: 10px 14px; display: flex; flex-direction: column; gap: 7px; overscroll-behavior: contain; }
.live-chat__empty { margin: auto; text-align: center; color: #8b929c; font-size: .88rem; padding: 20px; }
.live-chat__msg { font-size: .88rem; line-height: 1.45; word-break: break-word; }
.live-chat__who { font-weight: 700; color: #9fb4d9; margin-right: 7px; }
.live-chat__who.is-hostpill {
  font-size: .68rem; text-transform: uppercase; letter-spacing: .04em;
  background: #e5202e; color: #fff; border-radius: 4px; padding: 1px 7px;
}
.live-chat__msg.is-host .live-chat__who { color: #ffb84d; }
.live-chat__msg.is-host .live-chat__text { color: #fff; }
.live-chat__text { color: #e8eaed; }
.live-chat__msg time { margin-left: 8px; font-size: .7rem; color: #6c7480; }
.live-chat__jump {
  position: absolute; left: 50%; transform: translateX(-50%); bottom: 118px; border: 0; cursor: pointer; border-radius: 999px;
  background: #0066cc; color: #fff; padding: 6px 14px; font-size: .78rem; font-weight: 600; box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
}
.live-chat__jump[hidden] { display: none; }
.live-chat__form { padding: 10px 12px 12px; border-top: 1px solid #262b33; background: #171a20; }
.live-chat__name[hidden], .live-chat__me[hidden] { display: none; }
.live-chat__name { margin-bottom: 8px; }
.live-chat__form input[type="text"] {
  width: 100%; box-sizing: border-box; background: #0f1115; border: 1px solid #2c323b; border-radius: 10px; color: #fff;
  padding: 9px 12px; font: inherit; font-size: .88rem; outline: none;
}
.live-chat__form input[type="text"]:focus { border-color: #4d8fe0; }
.live-chat__form input:disabled { opacity: .5; }
.live-chat__row { display: flex; gap: 8px; }
.live-chat__send {
  flex-shrink: 0; width: 42px; border: 0; border-radius: 10px; background: #0066cc; color: #fff; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.live-chat__send:disabled { opacity: .4; cursor: default; }
.live-chat__me { font-size: .78rem; color: #8b929c; margin-bottom: 8px; }
.live-chat__me b { color: #dfe3e8; }
.live-chat__me button { background: none; border: 0; padding: 0; color: #6aa7ee; cursor: pointer; font: inherit; }
.live-chat__note { min-height: 16px; margin-top: 6px; font-size: .76rem; color: #8b929c; }
.live-chat__note.is-error { color: #ff7b72; }

@media (max-width: 900px) {
  .live-now__grid { grid-template-columns: minmax(0, 1fr); }
  .live-chat { height: 440px; max-height: none; }
}

/* ===== Video phát lại (modal) ===== */
body.has-modal { overflow: hidden; }
.replay-modal {
  position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, .82); display: flex; align-items: center; justify-content: center; padding: 20px;
}
.replay-modal__box { position: relative; width: min(960px, 100%); max-height: 100%; overflow: auto; background: #12151a; color: #e8eaed; border-radius: 14px; padding: 14px 14px 18px; }
.replay-modal__box video { width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 10px; display: block; }
.replay-modal__box h3 { color: #fff; margin: 14px 4px 4px; }
.replay-modal__box p { margin: 0 4px; }
.replay-modal__close {
  position: absolute; top: 6px; right: 10px; z-index: 2; width: 34px; height: 34px; border: 0; border-radius: 50%;
  background: rgba(0, 0, 0, .55); color: #fff; font-size: 22px; line-height: 1; cursor: pointer;
}

/* ===== Trang xem theo link chia sẻ / video phát lại / ghi chú ===== */
.page-head--live { padding-bottom: 8px; }
.live-now__replay video { width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 14px; display: block; }
.live-now__replay[hidden] { display: none !important; }
.live-now__note { color: #aeb3ba; margin: 0; }

/* ===== Lời mời lên live chung + phòng gọi ===== */
.sl-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 400; background: rgba(20, 22, 28, .95); color: #fff; padding: 10px 18px; border-radius: 999px; font-size: .9rem; box-shadow: 0 8px 24px rgba(0, 0, 0, .35); max-width: 90vw; text-align: center; }
.sl-invite { position: fixed; inset: 0; z-index: 300; background: rgba(0, 0, 0, .7); display: flex; align-items: center; justify-content: center; padding: 20px; }
.sl-invite__box { background: #12151a; color: #e8eaed; border-radius: 16px; padding: 26px 24px; width: min(420px, 100%); text-align: center; }
.sl-invite__icon { font-size: 40px; line-height: 1; margin-bottom: 8px; }
.sl-invite__box h3 { color: #fff; margin: 0 0 6px; }
.sl-invite__box p { margin: 0 0 6px; color: #aeb3ba; }
.sl-invite__timer { font-size: .85rem; color: #ffb84d; margin-bottom: 14px; }
.sl-invite__btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.sl-call { position: fixed; inset: 0; z-index: 250; background: #0b0d11; color: #fff; display: flex; flex-direction: column; }
.sl-call__head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; }
.sl-call__live { display: inline-flex; align-items: center; gap: 7px; background: #e5202e; font-size: 12px; font-weight: 700; letter-spacing: .05em; padding: 4px 10px; border-radius: 6px; }
.sl-call__live i { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: lp-pulse 1.4s infinite; }
.sl-call__grid { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); grid-auto-rows: minmax(0, 1fr); gap: 8px; padding: 0 12px; }
.sl-tile { position: relative; background: #000; border-radius: 12px; overflow: hidden; min-height: 140px; }
.sl-tile video { width: 100%; height: 100%; object-fit: cover; display: block; }
.sl-tile.is-me video { transform: scaleX(-1); }
.sl-tile__name { position: absolute; left: 10px; bottom: 10px; background: rgba(0, 0, 0, .55); padding: 3px 10px; border-radius: 6px; font-size: .85rem; font-weight: 600; }
.sl-call__bar { display: flex; justify-content: center; gap: 12px; padding: 14px 12px calc(14px + env(safe-area-inset-bottom)); }
.sl-call__btn { border: 0; cursor: pointer; width: 52px; height: 52px; border-radius: 50%; background: #2a2f38; color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.sl-call__btn.is-off { background: #fff; color: #111; }
.sl-call__btn--leave { width: auto; padding: 0 22px; border-radius: 999px; background: #e5202e; font-weight: 700; }

/* ===== Giao diện trang Livestream, giới hạn trong .live-page ===== */
.live-page .page-head.live-page__head { padding: 32px 0; background: var(--bg-alt); border-bottom: 1px solid var(--line); box-shadow: none; }
.live-page .page-head.live-page__head::after { display: none; }
.live-page .page-head .live-page__title { max-width: 34ch; margin-bottom: 14px; font-size: clamp(1.8rem, 3vw, 2.625rem); line-height: 1.25; }
.live-page .live-page__head > .container > p { max-width: 720px; margin: 0; font-size: 1rem; line-height: 1.7; }
.live-page__nav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.live-page__nav a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--primary); font-size: .875rem; font-weight: 600; }
.live-page__nav a:hover { border-color: var(--primary); }
.live-page__nav .icon { width: 16px; height: 16px; }
.live-page .live-page__section .sh { margin-bottom: 22px; }
.live-page .live-page__section .sh h2 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); line-height: 1.3; }
.live-page .live-page__section .sh__main > p { margin: 10px 0 0; font-size: .875rem; }
#live-schedule-title, #live-replays-title { scroll-margin-top: 110px; }

.live-page__status[hidden] { display: none; }
.live-page .live-page__message { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; padding: 24px; margin: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink-2); font-size: .9375rem; line-height: 1.65; }
.live-page__message-icon { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--bg-alt); color: var(--primary); }
.live-page__message-icon .icon { width: 22px; height: 22px; }
.live-page__message-body { min-width: 0; }
.live-page__message p { margin: 0; }
.live-page__message .btn { margin-top: 12px; }
.live-page__message--error .live-page__message-icon { background: #fff5e8; color: #9b5b16; }
.live-page__status .live-page__message { display: block; padding: 16px 20px; border-left: 3px solid #3fa3d5; background: #f7fbff; font-size: .875rem; }
.live-page__status[data-state="error"] .live-page__message { border-left-color: #c88b32; background: #fffcf5; }

/* Player và chat vẫn dùng widget và các data hook hiện có. */
.live-page .live-now { background: var(--bg); color: var(--ink); }
.live-page .live-now__head { margin-bottom: 12px; }
.live-page .live-now__head > .badge { padding: 5px 12px; border-radius: 999px; font-size: .75rem; }
.live-page .live-now__grid { grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; }
.live-page .live-now__grid--solo { grid-template-columns: minmax(0, 1fr); }
.live-page .live-now__main .live-now__info { margin-top: 18px; gap: 10px; }
.live-page .live-now__info h2 { max-width: 44ch; margin: 0; color: var(--ink); font-size: clamp(1.25rem, 2vw, 1.75rem); line-height: 1.35; overflow-wrap: anywhere; }
.live-page .live-now .muted { margin: 0; color: var(--muted); font-size: .9375rem; line-height: 1.7; overflow-wrap: anywhere; }
.live-page .live-now__when { color: var(--ink-2); font-size: .875rem; font-weight: 600; }
.live-page .live-now .countdown { display: inline-flex; width: fit-content; padding: 9px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg-alt); color: var(--primary); font-size: .9375rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.live-page [data-live-state="upcoming"] .live-now__info { margin-top: 0; gap: 14px; padding: 28px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: 0 6px 20px rgba(23, 63, 120, .04); }
.live-page [data-live-state="upcoming"] .live-now__info > * + * { margin-top: 0; }
.live-page [data-live-state="upcoming"] .live-now__info--with-cover { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.15fr); gap: 16px 30px; align-content: center; }
.live-page [data-live-state="upcoming"] .live-now__info--with-cover > :not(img) { grid-column: 2; margin: 0; }
.live-page [data-live-state="upcoming"] .live-now__info--with-cover > img { grid-column: 1; grid-row: 1 / span 4; align-self: center; width: 100%; height: 260px; margin: 0; object-fit: cover; border-radius: 10px; }
.live-page .live-player { border-radius: 14px; }
.live-page .live-player__badge { top: 12px; left: 12px; border-radius: 6px; font-size: .6875rem; letter-spacing: .04em; }
.live-page .live-player__viewers { top: 12px; right: 12px; font-size: .75rem; }
.live-page .lp-live { background: transparent; border: 1px solid rgba(255, 255, 255, .35); font-weight: 600; }
.live-page .lp-live.lp-behind { background: rgba(255, 255, 255, .18); }
.live-page .live-player__unmute { font-size: .8125rem; box-shadow: 0 2px 10px rgba(0, 0, 0, .12); }
.live-page [data-live-state="ended"] .live-now__grid { grid-template-columns: minmax(0, 1fr); }
.live-page [data-live-state="ended"] .live-player { height: 150px; aspect-ratio: auto; }
.live-page [data-live-state="ended"] .live-player__overlay { background: #f1f6fb; color: var(--ink); }
.live-page [data-live-state="ended"] .lp-controls,
.live-page [data-live-state="ended"] .live-chat { display: none; }

/* Chat nền sáng đồng bộ với website; giữ nguyên cách kết nối và gửi tin. */
.live-page .live-chat { min-width: 0; min-height: 300px; border-color: var(--line); background: var(--surface); color: var(--ink); }
.live-page .live-chat__head { padding: 14px 16px; border-color: var(--line); background: var(--bg-alt); }
.live-page .live-chat__head strong { color: var(--ink); font-size: .875rem; }
.live-page .live-chat__status { color: #65788b; white-space: nowrap; }
.live-page .live-chat__list { padding: 16px; gap: 12px; }
.live-page .live-chat__empty { color: var(--muted); font-size: .875rem; line-height: 1.7; }
.live-page .live-chat__text { color: var(--ink-2); }
.live-page .live-chat__who { color: var(--primary); }
.live-page .live-chat__msg.is-host .live-chat__text { color: var(--ink); }
.live-page .live-chat__msg.is-host .live-chat__who.is-hostpill { background: var(--primary); color: #fff; }
.live-page .live-chat__msg time { color: #65788b; }
.live-page .live-chat__pinned { border-color: var(--line); background: #eef5fd; color: var(--ink-2); }
.live-page .live-chat__pinned b { color: var(--ink); }
.live-page .live-chat__pinned svg { color: var(--primary); }
.live-page .live-chat__form { padding: 12px 14px; border-color: var(--line); background: var(--surface); }
.live-page .live-chat__form input[type="text"] { padding: 10px 12px; border-color: var(--line); background: #f7f9fc; color: var(--ink); }
.live-page .live-chat__form input[type="text"]:focus { border-color: var(--primary); }
.live-page .live-chat__form input::placeholder { color: #65788b; }
.live-page .live-chat__send { min-height: 42px; background: var(--primary); }
.live-page .live-chat__send:hover:not(:disabled) { background: var(--primary-hover); }
.live-page .live-chat__me, .live-page .live-chat__note { color: #65788b; }
.live-page .live-chat__me b { color: var(--ink); }
.live-page .live-chat__me button { color: var(--primary); }
.live-page .live-chat__note.is-error { color: #b42318; }

/* Thẻ lịch gọn, có ảnh thật thì hiển thị ảnh; không thêm ảnh mẫu. */
.live-schedule { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.live-schedule__card { display: flex; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); transition: border-color .2s, box-shadow .2s; }
.live-schedule__card:hover { border-color: #adc7dd; box-shadow: 0 5px 18px rgba(23, 63, 120, .06); }
.live-schedule__card:only-child { grid-column: 1 / -1; }
.live-schedule__cover { display: block; align-self: stretch; width: 140px; flex: 0 0 140px; min-height: 180px; object-fit: cover; }
.live-schedule__card:only-child .live-schedule__cover { width: 220px; flex-basis: 220px; }
.live-schedule__body { min-width: 0; flex: 1; padding: 20px; overflow-wrap: anywhere; }
.live-schedule__body time { display: block; color: var(--muted); font-size: .8125rem; line-height: 1.5; }
.live-schedule__body h3 { margin: 9px 0; font-size: 1rem; line-height: 1.5; }
.live-schedule__body h3 a:hover { color: var(--primary); }
.live-schedule__body .muted { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; margin: 0; font-size: .875rem; line-height: 1.6; }
.live-schedule__body .btn { min-height: 38px; margin-top: 14px; padding: 7px 12px; font-size: .8125rem; }
.live-page .video-card { min-width: 0; gap: 12px; padding-bottom: 18px; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); overflow-wrap: anywhere; }
.live-page .video-card > .ph { border-radius: 0; }
.live-page .video-card > .post__meta, .live-page .video-card > h3, .live-page .video-card > small { margin: 0 18px; }
.live-page .video-card > h3 { font-size: 1rem; line-height: 1.5; }
.live-page .video-card > small { font-size: .875rem; line-height: 1.6; }
.live-page .video-card .post__meta { color: var(--muted); font-size: .8125rem; }
.replay-modal--page .replay-modal__box { background: var(--surface); color: var(--ink); padding: 16px 16px 22px; box-shadow: 0 20px 70px rgba(0, 0, 0, .2); }
.replay-modal--page .replay-modal__box h3 { margin: 18px 6px 8px; color: var(--ink); font-size: 1.2rem; line-height: 1.5; overflow-wrap: anywhere; }
.replay-modal--page .replay-modal__box p { margin: 0 6px; color: var(--muted); overflow-wrap: anywhere; }
.replay-modal--page .replay-modal__close { top: 24px; right: 24px; width: 42px; height: 42px; background: rgba(15, 24, 35, .8); }

@media (max-width: 1100px) {
  .live-schedule { grid-template-columns: minmax(0, 1fr); }
  .live-schedule__card .live-schedule__cover { width: 180px; flex-basis: 180px; }
}
@media (max-width: 900px) {
  .live-page .live-now__grid { grid-template-columns: minmax(0, 1fr); }
  .live-page .live-chat { height: 360px; max-height: none; }
}
@media (max-width: 700px) {
  .live-page .page-head.live-page__head { padding: 26px 0; }
  .live-page [data-live-state="upcoming"] .live-now__info--with-cover { display: block; }
  .live-page [data-live-state="upcoming"] .live-now__info { padding: 20px; }
  .live-page [data-live-state="upcoming"] .live-now__info--with-cover > img { height: auto; max-height: 240px; aspect-ratio: 16 / 9; margin-bottom: 18px; }
  .live-page [data-live-state="upcoming"] .live-now__info--with-cover > :not(img) + :not(img) { margin-top: 14px; }
}
@media (max-width: 540px) {
  .live-page .live-page__message { padding: 18px; gap: 12px; align-items: flex-start; }
  .live-page__message-icon { width: 36px; height: 36px; border-radius: 9px; }
  .live-schedule__card { flex-direction: column; }
  .live-schedule__card .live-schedule__cover { width: 100%; flex-basis: auto; min-height: 0; max-height: 200px; aspect-ratio: 16 / 9; }
  .live-schedule__body { padding: 18px; }
  .live-page .live-chat__head { flex-wrap: wrap; }
  .replay-modal--page { padding: 10px; }
  .replay-modal--page .replay-modal__box { padding: 10px 10px 18px; }
  .replay-modal--page .replay-modal__close { top: 18px; right: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .live-page .live-player__badge i, .live-page .lp-dot { animation: none; }
  .live-schedule__card { transition: none; }
}

/* Trang chủ: thông báo lịch trong 24 giờ dùng thẻ gọn, không chiếm chỗ của hero. */
.live-now[data-live-mode="soon"][data-live-state="upcoming"] { padding: 24px 0; background: var(--bg-alt); color: var(--ink); border-bottom: 1px solid var(--line); }
.live-now[data-live-mode="soon"][data-live-state="upcoming"] .live-now__head { margin-bottom: 12px; }
.live-now[data-live-mode="soon"][data-live-state="upcoming"] .live-now__head .badge { color: var(--primary); background: var(--surface); border: 1px solid var(--line); }
.live-now[data-live-mode="soon"][data-live-state="upcoming"] .live-now__info { margin-top: 0; padding: 20px; gap: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.live-now[data-live-mode="soon"][data-live-state="upcoming"] .live-now__info--with-cover { display: grid; grid-template-columns: 240px minmax(0, 1fr); column-gap: 24px; align-content: center; }
.live-now[data-live-mode="soon"][data-live-state="upcoming"] .live-now__info--with-cover > :not(img) { grid-column: 2; min-width: 0; margin: 0; }
.live-now[data-live-mode="soon"][data-live-state="upcoming"] .live-now__info--with-cover > img { grid-column: 1; grid-row: 1 / span 4; align-self: center; height: 150px; border-radius: 8px; }
.live-now[data-live-mode="soon"][data-live-state="upcoming"] .live-now__info h2 { margin: 0; color: var(--ink); font-size: clamp(1.125rem, 2vw, 1.375rem); line-height: 1.4; overflow-wrap: anywhere; }
.live-now[data-live-mode="soon"][data-live-state="upcoming"] .live-now__info .muted { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; margin: 0; color: var(--muted); font-size: .875rem; line-height: 1.6; overflow-wrap: anywhere; }
.live-now[data-live-mode="soon"][data-live-state="upcoming"] .live-now__when { color: var(--ink-2); font-size: .8125rem; overflow-wrap: anywhere; }
.live-now[data-live-mode="soon"][data-live-state="upcoming"] .countdown { width: fit-content; padding: 6px 10px; border-radius: 6px; background: var(--bg-alt); color: var(--primary); font-size: .875rem; font-weight: 600; font-variant-numeric: tabular-nums; }
@media (max-width: 700px) {
  .live-now[data-live-mode="soon"][data-live-state="upcoming"] .live-now__info { padding: 16px; }
  .live-now[data-live-mode="soon"][data-live-state="upcoming"] .live-now__info--with-cover { display: flex; }
  .live-now[data-live-mode="soon"][data-live-state="upcoming"] .live-now__info--with-cover > img { height: auto; max-height: 160px; }
}
