:root {
  --announce-h: 44px;
}

body {
  padding-top: var(--announce-h);
}

.replay-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--announce-h);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #101010;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.replay-bar:hover {
  background: #171717;
  color: #fff;
}

.replay-bar-inner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  max-width: 100%;
  padding: 0 24px;
  min-width: 0;
}

.replay-bar-icon {
  width: 15px;
  height: auto;
  flex-shrink: 0;
  transform-origin: center center;
  animation: replay-bar-icon-spin 1.75s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes replay-bar-icon-spin {
  0% {
    transform: rotate(0deg);
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  100% {
    transform: rotate(1080deg);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .replay-bar-icon {
    animation: none;
    opacity: 1;
  }
}

.replay-bar-text {
  font-family: 'PPMori', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 13px;
  font-weight: 450;
  letter-spacing: -0.015em;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.replay-bar-chevron {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: 0.45;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.replay-bar:hover .replay-bar-chevron {
  opacity: 0.85;
  transform: translateX(2px);
}

.replay-bar-text-short {
  display: none;
}

@media (max-width: 760px) {
  .replay-bar-inner {
    gap: 8px;
    padding: 0 16px;
  }

  .replay-bar-text {
    font-size: 12px;
  }

  .replay-bar-icon {
    width: 13px;
  }

  .replay-bar-text-long {
    display: none;
  }

  .replay-bar-text-short {
    display: inline;
  }
}
