/* แถบประกาศ (#announce): หนังสือวิ่ง + วันเวลาไทย */

/* ---------- แถบประกาศ (หนังสือวิ่ง + วันเวลาไทย) ---------- */
#announce { position: relative; border-bottom: 1px solid rgba(255,224,138,.22); color: #f6e7c1; font-size: 12.5px;
  background: linear-gradient(90deg, #3a0d10, #24120c 30%, #24120c 70%, #3a0d10); box-shadow: inset 0 -1px 0 rgba(0,0,0,.4); }
#announce::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,224,138,.55), transparent); }
.ann-label { display: inline-flex; flex-shrink: 0; align-items: center; gap: 6px; height: 24px; padding: 0 10px 0 8px; border-radius: 999px; color: #241500; font-size: 12.5px;
  background: linear-gradient(180deg, #f7d27a, #e9b23a); box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 0 12px rgba(245,179,1,.35); }
.ann-label-text { display: none; }
@media (min-width: 640px) { .ann-label-text { display: inline; } }
.ann-label svg { width: 16px; height: 16px; transform-origin: 30% 60%; animation: annHorn 2.4s ease-in-out infinite; }
@keyframes annHorn { 0%, 70%, 100% { transform: rotate(0); } 76% { transform: rotate(-12deg); } 84% { transform: rotate(10deg); } 92% { transform: rotate(-6deg); } }
.ann-view { position: relative; min-width: 0; flex: 1; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); }
/* หนังสือวิ่ง: JS คัดลอกข้อความให้ยาวเกินจอเสมอ แล้วเลื่อนทีละ 1 ชุดพอดี จึงต่อกันไม่มีช่องว่าง */
.ann-track { display: flex; width: max-content; padding: 7px 0; animation: annMove var(--ann-dur, 40s) linear infinite; will-change: transform; }
.ann-view:hover .ann-track { animation-play-state: paused; }
@keyframes annMove { to { transform: translateX(var(--ann-shift, -50%)); } }
.ann-unit { display: flex; flex-shrink: 0; white-space: nowrap; }
.ann-item { display: inline-block; } /* ไม่ใช้ flex เพราะจะตัดช่องว่างท้ายข้อความ (เช่น "ยินดีต้อนรับสู่ 9pol") */
.ann-item::after { content: ""; display: inline-block; vertical-align: middle; width: 6px; height: 6px; margin: 0 22px; transform: rotate(45deg); background: linear-gradient(135deg, #fff1c2, #f5b301); box-shadow: 0 0 6px rgba(245,179,1,.8); }
.ann-item b { color: #ffe08a; font-weight: 600; }
.ann-clock { display: inline-flex; flex-shrink: 0; align-items: center; gap: 6px; padding-left: 10px; border-left: 1px solid rgba(255,224,138,.2); color: #fff1c2; font-variant-numeric: tabular-nums; }
.ann-clock svg { width: 15px; height: 15px; color: #f5b301; }
.ann-clock .ann-date { display: none; color: #e7d5ad; }
.ann-clock .ann-time { font-weight: 600; color: #ffe08a; }
@media (min-width: 768px) { .ann-clock .ann-date { display: inline; } }
