/* Trang chiếu "Thông báo chủ đề hội thi" + đồng hồ đếm lùi (18/10/2026) — thiết kế cho màn hình LED / máy chiếu 16:9 */
:root { --kim: linear-gradient(135deg, #f7d774, #e0a800 55%, #f5c933); }
html, body.tb { height: 100%; }
body.tb { margin: 0; overflow: hidden; color: #fff; background: radial-gradient(ellipse at 50% 0%, #1b3f8a 0%, #0b1a3d 55%, #050b1c 100%); }

.tb-khung { box-sizing: border-box; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2.2vh; padding: 3vh 4vw 4vh; text-align: center; }
.tb-dau { display: flex; align-items: center; gap: 2vh; }
.tb-dau img { width: min(11vh, 120px); height: auto; }
.tb-dau img + img { width: min(10vh, 110px); filter: drop-shadow(0 4px 16px rgba(245, 201, 51, .35)); }
.tb-dau__chu { display: flex; flex-direction: column; align-items: flex-start; margin-left: 1vh; line-height: 1.2; }
.tb-dau__chu b { font-size: clamp(1rem, 3vh, 2.2rem); font-weight: 800; }
.tb-dau__chu span { color: #c9d6f0; font-size: clamp(.85rem, 2.2vh, 1.6rem); font-weight: 600; }

.tb-nhan { margin: 0; padding: .4vh 2.4vh; border-radius: 99px; background: var(--do, #d23a2c); font-weight: 800; letter-spacing: .16em;
  text-transform: uppercase; font-size: clamp(.9rem, 2.4vh, 1.8rem); }
.tb-ten { margin: 0; max-width: 92vw; font-size: clamp(1.4rem, 4.6vh, 3.6rem); line-height: 1.2; font-weight: 900; letter-spacing: -.01em; }

.tb-chu-de { box-sizing: border-box; width: min(92vw, 1500px); padding: 2.2vh 3vw 2.6vh; border-radius: 3vh;
  background: rgba(255, 255, 255, .07); border: 2px solid rgba(245, 201, 51, .55); box-shadow: 0 0 60px -20px rgba(245, 201, 51, .5); }
.tb-chu-de__nhan { display: block; color: #f5c933; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; font-size: clamp(.9rem, 2.3vh, 1.7rem); }
.tb-chu-de__chu { margin: 1vh 0 0; font-size: clamp(1.6rem, 6.2vh, 5rem); line-height: 1.2; font-weight: 900;
  background: var(--kim); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 3px 14px rgba(245, 201, 51, .3)); }
.tb-chu-de.an .tb-chu-de__chu { background: none; color: #c9d6f0; font-size: clamp(1.1rem, 3.6vh, 2.8rem); font-weight: 700; filter: none; }
.tb-chu-de.moi .tb-chu-de__chu { animation: tb-hien 1s var(--em, ease) both; }
@keyframes tb-hien { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }

.tb-gio { display: flex; flex-direction: column; align-items: center; width: min(80vw, 1100px); }
.tb-gio__so { font-size: clamp(4rem, 24vh, 22rem); line-height: 1; font-weight: 900; font-variant-numeric: tabular-nums; letter-spacing: .02em;
  text-shadow: 0 8px 40px rgba(47, 143, 214, .45); transition: color .3s; }
.tb-gio__thanh { width: 100%; height: 1.4vh; min-height: 8px; margin-top: 1.6vh; border-radius: 99px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.tb-gio__thanh i { display: block; height: 100%; width: 100%; border-radius: inherit; background: linear-gradient(90deg, #2f8fd6, #5fd0ff); transition: width .25s linear; }
.tb-gio__tt { margin: 1.4vh 0 0; color: #c9d6f0; font-weight: 700; font-size: clamp(1rem, 3vh, 2.4rem); letter-spacing: .04em; }

/* Còn dưới 1 phút: vàng; dưới 10 giây: đỏ nhấp nháy; hết giờ: đỏ */
.tb-gio.sap .tb-gio__so { color: #f5c933; }
.tb-gio.sap .tb-gio__thanh i { background: linear-gradient(90deg, #f5c933, #ff8a3d); }
.tb-gio.gap .tb-gio__so { color: #ff5a4e; animation: tb-nhip 1s ease-in-out infinite; }
.tb-gio.gap .tb-gio__thanh i { background: #ff5a4e; }
.tb-gio.het .tb-gio__so { color: #ff5a4e; animation: tb-nhip 1.2s ease-in-out infinite; }
.tb-gio.het .tb-gio__tt { color: #ff8a80; font-size: clamp(1.4rem, 5vh, 4rem); font-weight: 900; letter-spacing: .12em; }
.tb-gio.dung .tb-gio__so { opacity: .55; }
@keyframes tb-nhip { 50% { transform: scale(1.05); opacity: .8; } }

.tb-dk { position: fixed; right: 2vh; bottom: 2vh; display: flex; gap: 8px; opacity: 0; transition: opacity .2s; }
.tb-dk:hover, body.tb:not(.toan) .tb-dk { opacity: .5; }
.tb-dk:hover { opacity: 1; }
.tb-dk button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; font-size: 1.2rem; cursor: pointer; }
.tb-dk button[hidden] { display: none; }
.tb-mat { position: fixed; left: 50%; top: 1.5vh; transform: translateX(-50%); margin: 0; padding: 6px 16px; border-radius: 99px;
  background: #ffcf4a; color: #222; font-weight: 700; }

@media (max-width: 640px) {
  .tb-khung { gap: 16px; padding: 20px 16px; }
  .tb-dau img { width: 52px; } .tb-dau img + img { width: 48px; }
  .tb-gio__so { font-size: 26vw; }
}
