*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
  -webkit-user-select: none;
}

body {
  background-color: #000;
  color: #fff;
  display: flex;
  flex-direction: column;
  font-family: 'Inter', sans-serif;
  height: 100vh;
  justify-content: space-between;
  overflow: hidden;
}

button {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  font: inherit;
  padding: 0;
}

button:focus-visible {
  outline: 1px solid #fff;
  outline-offset: 2px;
}

header {
  align-items: flex-start;
  display: flex;
  justify-content: space-between;
  padding: 15px 20px;
  width: 100%;
  z-index: 10;
}

.header-left {
  align-items: flex-start;
  display: flex;
  flex-shrink: 0;
}

.header-logo-link {
  display: block;
  line-height: 0;
  opacity: 1;
  transition: opacity 0.2s ease;
}

header a:hover {
  opacity: 0.85;
}

.header-logo {
  display: block;
  height: 36px;
  width: auto;
}

.header-right {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-width: 50%;
  text-align: right;
}

.header-subtitle {
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 1px;
  line-height: 1.45;
  opacity: 0.8;
  text-transform: uppercase;
}

.main-container {
  align-items: center;
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  padding: 20px;
  width: 100%;
}

.player-core {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 800px;
  width: 100%;
}

.artwork-container {
  align-items: center;
  background-color: #0d0d0d;
  border: 1px solid #1a1a1a;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  display: flex;
  height: 50vh;
  justify-content: center;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.artwork-image {
  height: 100%;
  object-fit: contain;
  opacity: 1;
  transition: opacity 0.3s ease-in-out;
  width: 100%;
}

.artwork-image.fade {
  opacity: 0;
}

.unified-player-controls {
  align-items: center;
  display: flex;
  gap: 30px;
  justify-content: center;
}

.nav-btn {
  align-items: center;
  display: flex;
  justify-content: center;
  opacity: 0.88;
  transition: opacity 0.2s ease, transform 0.1s ease;
}

.nav-btn:hover {
  opacity: 1;
}

.nav-btn:active {
  transform: scale(0.9);
}

.nav-btn .btn-icon {
  display: block;
  height: 32px;
  width: 32px;
}

.play-pause-btn {
  align-items: center;
  background: #fff;
  border-radius: 50%;
  display: flex;
  height: 56px;
  justify-content: center;
  transition: transform 0.2s ease, background-color 0.2s ease;
  width: 56px;
}

.play-pause-btn:hover {
  transform: scale(1.04);
}

.play-pause-btn:active {
  transform: scale(0.9);
}

.play-pause-btn .btn-icon {
  display: block;
  height: 24px;
  width: 24px;
}

.play-pause-btn .btn-icon--play {
  margin-left: 2px;
}

.waveform-container {
  cursor: pointer;
  height: 14px;
  position: relative;
  width: 100%;
}

.waveform-bg {
  background: #1a1a1a;
  border-radius: 3px;
  height: 6px;
  left: 0;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
}

.waveform-progress {
  background: #fff;
  border-radius: 3px;
  height: 6px;
  left: 0;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  transition: width 0.1s linear;
  width: 0%;
}

.waveform-seeker-line {
  background-color: #ff3b30;
  border-radius: 50%;
  box-shadow: 0 0 10px #ff3b30;
  height: 14px;
  margin-left: -7px;
  pointer-events: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  transition: left 0.1s linear;
  width: 14px;
}

footer {
  align-items: center;
  border-top: 1px solid #1a1a1a;
  display: flex;
  justify-content: space-between;
  padding: 20px 80px 20px 40px;
  width: 100%;
}

.footer-left,
.footer-right,
.sponsor-logos-right {
  align-items: center;
  display: flex;
  gap: 20px;
}

.footer-right,
.sponsor-logos-right {
  flex-shrink: 0;
  margin-right: 60px;
  overflow: visible;
  white-space: nowrap;
}

.footer-logo {
  display: block;
  height: auto;
  opacity: 0.8;
  transition: opacity 0.2s ease;
  width: auto;
}

.footer-logo:hover {
  opacity: 1;
}

.footer-logo--graz,
.footer-logo--steiermark {
  max-height: 22px;
}

.footer-logo--nationalfonds,
.footer-logo--zukunftsfonds {
  max-height: 20px;
}

.footer-divider {
  background: #333;
  flex-shrink: 0;
  height: 28px;
  width: 1px;
}

@media (min-width: 768px) {
  header {
    padding: 18px 28px;
  }

  footer {
    padding: 20px 80px 20px 40px;
  }
}
