.redirect-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: linear-gradient(90deg, #1090c7 0%, #04c4eb 100%);
  box-shadow: 0 -4px 4px 0 rgba(0, 0, 0, 0.25);
  z-index: 9999;
  padding: 0 20px;
  box-sizing: border-box;
}

.redirect-bar.hidden {
  display: none;
}

.redirect-bar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 50px;
  gap: 16px;
}

.redirect-bar-left {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.redirect-logo {
  height: 48px;
  width: 48px;
  flex-shrink: 0;
  margin-left: -8px;
}

.redirect-text {
  color: #fff;
  font-size: 14px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.redirect-link {
  color: #fff;
  font-weight: bold;
  text-decoration: underline;
}

.redirect-link:hover {
  text-decoration: none;
}

.redirect-bar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.redirect-timer {
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  white-space: nowrap;
}

#countdown {
  font-weight: bold;
}

.redirect-cancel {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  flex-shrink: 0;
  padding: 0;
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
}

.redirect-cancel:hover {
  background: rgba(0, 0, 0, 0.25);
  border-color: rgba(255, 255, 255, 0.25);
}

.redirect-cancel:active {
  background: rgba(0, 0, 0, 0.35);
  transform: scale(0.95);
}

.redirect-cancel svg {
  flex-shrink: 0;
}

/* Add padding to body to prevent content being hidden behind bar */
body {
  padding-bottom: 50px;
}

/* Mobile - X button at top right, content can wrap */
@media (max-width: 410px) {
  .redirect-bar {
    padding: 10px 16px;
  }

  .redirect-bar-content {
    flex-wrap: wrap;
    height: auto;
    gap: 8px;
    padding-right: 40px;
  }

  .redirect-logo {
    display: none;
  }

  .redirect-cancel {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 8px;
  }

  body {
    padding-bottom: 90px;
  }
}
