/* ============ TOP HOOK — Announcement Slider ============ */
.ts-tophook {
  --th-bg: #0A0A0A;
  --th-orange: #F25B25;
  --th-text: rgba(255, 255, 255, 0.82);
  --th-text-muted: rgba(255, 255, 255, 0.5);
  --th-dot: rgba(255, 255, 255, 0.22);
  --th-dot-hover: rgba(255, 255, 255, 0.45);
  --th-border: rgba(255, 255, 255, 0.06);
  --th-progress-track: rgba(255, 255, 255, 0.04);
  --th-ease: cubic-bezier(0.16, 1, 0.3, 1);

  position: relative;
  background: var(--th-bg);
  border-bottom: 1px solid var(--th-border);
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  outline: none;
}

.ts-tophook-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 40px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* ----- Slides ----- */
.ts-slides {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  flex: 1;
  height: 100%;
  min-width: 0;
}
.ts-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--th-text);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.6s ease, transform 0.7s var(--th-ease);
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 12px;
}
.ts-slide.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.ts-slide-icon {
  width: 14px;
  height: 14px;
  color: var(--th-orange);
  flex-shrink: 0;
}
.ts-slide-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ts-slide a {
  color: var(--th-orange);
  font-weight: 600;
  text-decoration: none;
  margin-left: 8px;
  position: relative;
  transition: color 0.2s ease;
}
.ts-slide a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--th-ease);
}
.ts-slide a:hover::after {
  transform: scaleX(1);
}

/* ----- Dots ----- */
.ts-dots {
  display: flex;
  gap: 7px;
  flex-shrink: 0;
  align-items: center;
}
.ts-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--th-dot);
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s var(--th-ease), width 0.4s var(--th-ease);
  outline: none;
  position: relative;
}
.ts-dot:hover { background: var(--th-dot-hover); }
.ts-dot:focus-visible {
  box-shadow: 0 0 0 2px rgba(242, 91, 37, 0.4);
}
.ts-dot[aria-current="true"] {
  background: var(--th-orange);
  width: 18px;
  border-radius: 3px;
}

/* ----- Progress bar ----- */
.ts-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--th-progress-track);
  pointer-events: none;
}
.ts-progress-fill {
  height: 100%;
  width: 0;
  background: var(--th-orange);
  transform-origin: left center;
  will-change: width;
}
.ts-progress-fill.is-running {
  animation: thProgress 5000ms linear forwards;
}
.ts-tophook[data-paused="true"] .ts-progress-fill.is-running {
  animation-play-state: paused;
}
@keyframes thProgress {
  from { width: 0; }
  to   { width: 100%; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
  .ts-tophook-inner {
    padding: 0 20px;
    gap: 12px;
    height: 40px;
  }
  .ts-slide { font-size: 12px; gap: 8px; }
  .ts-slide-icon { width: 13px; height: 13px; }
  .ts-dots { display: none; }
  /* Hide inline links on small screens — text only */
  .ts-slide a { display: none; }
}

@media (max-width: 420px) {
  .ts-tophook-inner { padding: 0 16px; }
  .ts-slide { font-size: 11.5px; }
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  .ts-slide {
    transition: opacity 0.01ms !important;
    transform: none !important;
  }
  .ts-progress-fill.is-running {
    animation: none !important;
    width: 100% !important;
  }
  .ts-slide a::after { transition: none !important; }
}
