<style>
  .ticker-wrap {
    background: #cc1111;
    overflow: hidden;
    border-radius: 6px;
    font-family: 'Georgia', serif;
  }
  .ticker-inner {
    display: flex;
    align-items: stretch;
  }
  .ticker-label {
    flex-shrink: 0;
    background: #8b0000;
    color: #fff;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    gap: 7px;
    border-right: 2px solid #6a0000;
    z-index: 2;
  }
  .live-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #ff4444;
    animation: blink 1.1s ease-in-out infinite;
    flex-shrink: 0;
  }
  @keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.2} }
  .ticker-overflow {
    flex: 1;
    overflow: hidden;
    position: relative;
  }
  .ticker-overflow::before {
    content: '';
    position: absolute; left: 0; top: 0; bottom: 0; width: 40px;
    background: linear-gradient(to right, #cc1111, transparent);
    z-index: 1; pointer-events: none;
  }
  .ticker-overflow::after {
    content: '';
    position: absolute; right: 0; top: 0; bottom: 0; width: 40px;
    background: linear-gradient(to left, #cc1111, transparent);
    z-index: 1; pointer-events: none;
  }
  .ticker-track {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    padding: 11px 0;
    animation: scrollTicker 40s linear infinite;
    will-change: transform;
    cursor: pointer;
  }
  .ticker-track:hover { animation-play-state: paused; }
  @keyframes scrollTicker {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
  }
  .news-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-right: 60px;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 3px;
    transition: background 0.15s;
  }
  .news-item:hover { background: rgba(255,255,255,0.15); }
  .news-num {
    font-family: 'Courier New', monospace;
    font-size: 10px;
    font-weight: 700;
    color: #ffcccc;
    background: rgba(0,0,0,0.25);
    padding: 2px 6px;
    border-radius: 3px;
    flex-shrink: 0;
  }
  .news-text {
    font-size: 13.5px;
    color: #fff;
    letter-spacing: 0.2px;
  }
  .news-sep {
    color: rgba(255,255,255,0.25);
    font-size: 18px;
    margin-right: 60px;
    font-weight: 100;
  }
  .modal-backdrop {
    display: none;
    position: absolute; top: 0; left: 0; right: 0;
    background: rgba(0,0,0,0.55);
    z-index: 100;
    align-items: flex-start;
    justify-content: center;
    padding: 16px;
    border-radius: 6px;
  }
  .modal-backdrop.open { display: flex; }
  .modal-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px 22px;
    max-width: 480px;
    width: 100%;
    position: relative;
  }
  .modal-tag {
    font-family: 'Courier New', monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #8b0000;
    margin-bottom: 8px;
    text-transform: uppercase;
  }
  .modal-title {
    font-size: 16px;
    font-weight: 600;
    color: #111;
    line-height: 1.4;
    margin-bottom: 10px;
  }
  .modal-body {
    font-size: 13px;
    color: #555;
    line-height: 1.65;
    margin-bottom: 14px;
  }
  .modal-close {
    position: absolute; top: 12px; right: 14px;
    background: none; border: none;
    font-size: 18px; color: #aaa; cursor: pointer; line-height: 1;
  }
  .modal-close:hover { color: #333; }
  .modal-meta {
    font-family: 'Courier New', monospace;
    font-size: 10px;
    color: #bbb;
    letter-spacing: 1px;
  }
  .outer { position: relative; }
</style>
