/* TAIWAN — papan LED pasar malam */
.tw-page {
  --color-primary: #1e3a8a;
  --color-accent: #dc2626;
  --color-bg: #f7f8fb;
  --tw-panel: #0f172a;
  --tw-muted: #64748b;
  background: var(--color-bg);
  color: #0f172a;
  font-family: 'Noto Sans TC', system-ui, sans-serif;
  margin: -1.5rem -12px 0;
  padding-bottom: 48px;
}
.tw-container { width: 100%; max-width: 1060px; margin: 0 auto; padding: 0 16px; }

.tw-topbar { position: sticky; top: 56px; z-index: 20; background: var(--color-primary); color: #fff; }
.tw-topbar-inner { max-width: 1060px; margin: 0 auto; padding: 9px 16px; display: flex; align-items: center; gap: 10px; }
.tw-code { font-family: 'Share Tech Mono', monospace; font-size: 12px; letter-spacing: .16em; background: var(--color-accent); padding: 2px 8px; border-radius: 4px; }
.tw-topbar-name { font-size: 13px; font-weight: 700; letter-spacing: .04em; }
.tw-topbar-link { margin-left: auto; font-size: 12px; color: rgba(255,255,255,.85); }
.tw-topbar-link:hover { color: #fff; }

.tw-hero { position: relative; padding: 34px 0 40px; overflow: hidden; }
.tw-lantern { position: absolute; inset: 0; opacity: .05; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='70' height='90' viewBox='0 0 70 90'%3E%3Cg fill='none' stroke='%23dc2626' stroke-width='3'%3E%3Cellipse cx='35' cy='45' rx='22' ry='28'/%3E%3Cpath d='M35 8v9M35 73v9M13 45h44'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 70px 90px; }
.tw-h1 { font-size: clamp(22px,5.4vw,36px); font-weight: 700; letter-spacing: -.01em; margin: 0 0 6px; text-align: center; }
.tw-hero-date { margin: 0 0 22px; text-align: center; font-size: 13px; color: var(--tw-muted); }

/* Panel LED */
.tw-led { max-width: 720px; margin: 0 auto; background: var(--tw-panel); border-radius: 8px; padding: 16px 14px 14px;
  box-shadow: 0 14px 34px rgba(15,23,42,.28), inset 0 0 0 1px rgba(255,255,255,.06); }
.tw-led-bar { display: inline-flex; align-items: center; gap: 7px; font-family: 'Share Tech Mono', monospace; font-size: 11px;
  letter-spacing: .2em; color: #94a3b8; margin-bottom: 10px; }
.tw-led-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-accent); animation: tw-blink 1.4s steps(1) infinite; }
.tw-led-face { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2px 6px;
  background: #060b17; border-radius: 6px; padding: 14px 10px;
  background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, transparent 1px 3px); }
.tw-digit { font-family: 'Share Tech Mono', monospace; font-size: clamp(46px,14vw,88px); line-height: 1; color: var(--color-accent);
  text-shadow: 0 0 10px rgba(220,38,38,.75), 0 0 26px rgba(220,38,38,.35); opacity: 0; animation: tw-on .4s ease forwards; }
.tw-digit-off { color: #3a1414; text-shadow: none; }
.tw-colon { font-family: 'Share Tech Mono', monospace; font-size: clamp(34px,10vw,64px); color: var(--color-accent);
  opacity: .85; animation: tw-blink 1.2s steps(1) infinite; }
@keyframes tw-on { to { opacity: 1; } }
@keyframes tw-blink { 0%,49% { opacity: 1; } 50%,100% { opacity: .15; } }
.tw-led-foot { display: block; margin-top: 10px; text-align: center; font-family: 'Share Tech Mono', monospace;
  font-size: 11px; letter-spacing: .12em; color: #64748b; }

.tw-desc { margin: 26px 0 0; font-size: 14px; color: var(--tw-muted); }
.tw-section { margin-top: 40px; }
.tw-section-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.tw-h2 { font-size: clamp(18px,4vw,24px); font-weight: 700; margin: 0 0 14px; padding-left: 12px; border-left: 5px solid var(--color-accent); }
.tw-section-head .tw-h2 { margin-bottom: 0; }

.tw-filter { display: flex; flex-wrap: wrap; gap: 8px; }
.tw-filter select { height: 38px; padding: 0 12px; border: 1px solid #cbd5e1; border-radius: 8px; background: #fff; font-family: inherit; font-size: 13px; }
.tw-filter select:focus { outline: 3px solid rgba(30,58,138,.2); border-color: var(--color-primary); }
.tw-btn { display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border: 1px solid var(--color-primary);
  border-radius: 8px; background: var(--color-primary); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; cursor: pointer; transition: background .2s ease; }
.tw-btn:hover { background: #172c68; color: #fff; }
.tw-btn-ghost { background: #fff; color: var(--color-primary); }
.tw-btn-ghost:hover { background: #eef2ff; color: var(--color-primary); }

/* Riwayat dua kolom */
.tw-split { display: grid; grid-template-columns: 1fr; gap: 14px; }
.tw-table-wrap { background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; overflow: hidden; }
.tw-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tw-table thead th { background: var(--color-primary); color: #fff; font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  text-align: left; padding: 10px 12px; }
.tw-table tbody td { padding: 10px 12px; border-bottom: 1px solid #eef1f6; }
.tw-table tbody tr:last-child td { border-bottom: 0; }
.tw-table tbody tr:nth-child(even) { background: #f8fafc; }
.tw-right { text-align: right; }
.tw-result { font-family: 'Share Tech Mono', monospace; font-size: 17px; letter-spacing: .16em; color: var(--color-accent); }
.tw-muted { color: var(--tw-muted); font-size: 12.5px; }
.tw-nowrap { white-space: nowrap; }

.tw-empty { background: #fff; border: 1px dashed #cbd5e1; border-radius: 8px; padding: 40px 20px; text-align: center; }
.tw-empty-mark { display: inline-block; width: 48px; height: 48px; border-radius: 8px; background: var(--tw-panel); margin-bottom: 14px;
  box-shadow: inset 0 0 0 4px #060b17; }
.tw-empty h3 { font-size: 17px; margin: 0 0 6px; }
.tw-empty p { margin: 0; font-size: 13px; color: var(--tw-muted); }
.tw-pagination { margin-top: 14px; font-size: 13px; color: var(--tw-muted); }
.tw-pagination .page-link { border-radius: 8px; border: 1px solid #cbd5e1; color: #0f172a; font-weight: 600; }
.tw-pagination .page-item.active .page-link { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }

/* Ticker jadwal */
.tw-ticker { display: flex; flex-wrap: wrap; gap: 1px; background: #e2e8f0; border: 1px solid #e2e8f0; border-radius: 8px; overflow: hidden; }
.tw-ticker-item { flex: 1 1 220px; display: flex; flex-direction: column; gap: 2px; background: #fff; padding: 14px 16px; }
.tw-ticker-label { font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--tw-muted); }
.tw-ticker-value { font-family: 'Share Tech Mono', monospace; font-size: 19px; color: var(--color-primary); }
.tw-ticker-note { font-size: 11.5px; color: var(--tw-muted); }
.tw-note { margin: 16px 0 0; font-size: 13px; color: var(--tw-muted); }
.tw-note a { color: var(--color-primary); font-weight: 600; }

@media (min-width: 768px) { .tw-split { grid-template-columns: 1fr 1fr; gap: 18px; } }
@media (min-width: 992px) { .tw-page { margin-left: -24px; margin-right: -24px; } }
@media (max-width: 575.98px) { .tw-hide-sm { display: none; } .tw-hero { padding: 24px 0 30px; } .tw-section { margin-top: 30px; } }
@media (prefers-reduced-motion: reduce) { .tw-digit { animation: none; opacity: 1; } .tw-colon, .tw-led-dot { animation: none; } }
