html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
  background: #000;
  color: #fff;
}

.swiper {
  width: 100%;
  height: 100%;
}

.swiper-slide {
  display: flex;
  justify-content: center;
  height: 100%;
}

:root {
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --bottom-ui: 64px;
}

.safe-offset-16 {
  bottom: calc(var(--bottom-ui) + 16px);
}

.safe-bottom {
  bottom: 0;
  padding-bottom: max(var(--safe-bottom), 12px);
}

.bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-around;
  min-height: 56px;
  padding-top: 8px;
  padding-bottom: max(env(safe-area-inset-bottom, 0px), 8px);
}

.bottom-bar a {
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.progress-wrapper {
  bottom: var(--bottom-ui);
  margin-bottom: 1px;
}

.shadow-text {
  text-shadow: 0 1px 2px rgba(0,0,0,.5);
}

.site-brand {
  font-weight: 700;
  font-size: 18px;
  color: #fff;
  text-decoration: none;
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(255,74,125,.7); }
  70% { box-shadow: 0 0 0 10px rgba(255,74,125,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,74,125,0); }
}

.animate-ring {
  animation: pulse-ring 2s infinite;
}

#messageBadge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: red;
  color: white;
  font-size: 12px;
  border-radius: 9999px;
  padding: 2px 5px;
}

@media (max-width: 574px) {
  #rightPanel {
    right: 10px !important;
  }
}

#progressWrapper {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 575px;
  padding-left: 10px;
  padding-right: 10px;
  bottom: var(--bottom-ui);
  z-index: 9999;
  pointer-events: none;
  box-sizing: border-box;
}

#progressBar {
  position: relative;
  width: 100%;
  height: 4px;
  pointer-events: auto;
  z-index: 10000;
}

#progress {
  height: 4px;
  pointer-events: none;
}

#progressDot {
  position: absolute;
  left: 0;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  pointer-events: none;
  z-index: 10001;
}

#topCategories {
  color: rgba(255,255,255,.55);
}

.categoryTab {
  position: relative;
  background: transparent;
  border: 0;
  color: rgba(255,255,255,.55);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 0 0 8px 0;
  transition: color .2s ease;
}

.categoryTab.active {
  color: #fff;
}

.categoryTab.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #fff;
}

.categoryTab:hover {
  color: rgba(255,255,255,.85);
}

#logoImg {
  width: 40px;
  height: auto;
}

.player-logo-panel {
  right: max(10px, calc(50% - 330px));
  top: 20px;
  will-change: transform;
}

@media (max-width: 640px) {
  .player-logo-panel {
    right: 10px;
    top: 12px;
  }

  #logoImg {
    width: 32px;
  }

  #topCategories {
    left: 10px;
    right: 60px;
    transform: none;
    justify-content: flex-start;
    gap: 10px;
    overflow-x: auto;
    white-space: nowrap;
    font-size: 12px;
  }

  #topCategories::-webkit-scrollbar {
    display: none;
  }
}