* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}

body,
html {
  width: 100%;
  min-height: 100vh;
  font-family: "Inter", sans-serif;
  background-color: transparent !important;
}

.glass-panel {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.background-container {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100dvh;
  height: 100lvh;
  z-index: 0 !important;
  pointer-events: none;
  transform: translateZ(0);
  will-change: transform;
}

.background-container picture {
  display: block;
  width: 100%;
  height: 100%;
}

.bg-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  transition: object-position 0.4s ease-in-out;
}

.overlay {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  overflow-x: hidden;
  background: rgba(0, 0, 0, 0.15);
  box-shadow: inset 0 -80px 100px -50px rgba(0, 0, 0, 0.5);
}

.main-screen {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100svh;
  padding-top: 90px;
}

.main-content {
  flex-grow: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.brand-logo {
  width: 250px;
  max-width: 90vw;
  height: auto;
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.3));
  transform: translateY(-100px);
}

.about-section {
  padding: 80px 40px;
  max-width: 100%;
  margin: 0;
  background-color: #ffffff;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #000000;
  min-height: 50vh;
  position: relative;
  z-index: 10;
}

:root[data-theme="dark"] .about-section {
  background-color: #000000;
  border-top-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.about-title {
  font-size: 1.8rem;
  margin: 0 auto 20px auto;
  max-width: 800px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: inherit;
}

.about-text {
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0 auto 20px auto;
  max-width: 800px;
  opacity: 0.85;
  color: inherit;
}

.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 25px 40px;
  color: white;
}

.top-controls {
  display: flex;
  justify-content: center;
}

.top-controls-inner {
  display: flex;
  border-radius: 50px;
  padding: 6px;
  gap: 10px;
}

.top-btn {
  background: transparent;
  border: 1px solid transparent;
  color: white;
  cursor: pointer;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0.8;
  transition: all 0.25s ease;
  will-change: transform;
}

.top-btn svg {
  width: 20px;
  height: 20px;
}

.top-btn.active {
  border-color: transparent;
  background: rgba(255, 255, 255, 0.15);
  opacity: 1;
}

.player-wrapper {
  padding: 0 40px 45px 40px;
  display: flex;
  justify-content: center;
  flex-shrink: 0;
}

.glass-player {
  border-radius: 50px;
  padding: 10px 25px 10px 10px;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 650px;
  gap: 15px;
  color: white;
}

.vinyl-record {
  width: 75px;
  height: 75px;
  border-radius: 50%;
  background: repeating-radial-gradient(#111, #111 2px, #222 3px, #222 4px);
  border: 2px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
  position: relative;
  animation: spin-record 4s linear infinite;
  animation-play-state: paused;
  overflow: hidden;
}

.spin {
  animation-play-state: running !important;
}

.vinyl-center {
  width: 24px;
  height: 24px;
  background-color: #8c3c32;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid #111;
  z-index: 2;
}

.vinyl-center::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  background: #1a1a1a;
  border-radius: 50%;
}

.vinyl-record::before {
  content: "";
  position: absolute;
  top: 10%;
  left: 10%;
  width: 80%;
  height: 80%;
  border-radius: 50%;
  border: 1.5px solid transparent;
  border-top-color: rgba(255, 255, 255, 0.6);
  transform: rotate(30deg);
  pointer-events: none;
  z-index: 3;
}

.vinyl-record::after {
  content: "";
  position: absolute;
  top: 25%;
  left: 25%;
  width: 50%;
  height: 50%;
  border-radius: 50%;
  border: 1px solid transparent;
  border-bottom-color: rgba(255, 255, 255, 0.3);
  transform: rotate(-20deg);
  pointer-events: none;
  z-index: 3;
}

.track-info-container {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  min-width: 0;
}

.info-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.track-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin-right: 15px;
  overflow: hidden;
}

.track-name {
  font-size: 1.15rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.3px;
}

.artist-name {
  font-size: 0.85rem;
  opacity: 0.7;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.control-btn,
.play-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid transparent;
  background-clip: padding-box;
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  transition: all 0.2s ease;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-appearance: none;
  appearance: none;
}

.control-btn {
  width: 38px;
  height: 38px;
  font-size: 1rem;
}

.play-btn {
  width: 44px;
  height: 44px;
  font-size: 1.15rem;
  padding: 0;
  margin-left: -2px;
}

.control-btn:active,
.play-btn:active {
  transform: scale(0.95);
}

.progress-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.time-text {
  font-size: 0.75rem;
  opacity: 0.8;
  font-weight: 600;
  min-width: 35px;
  text-align: center;
}

.progress-bar {
  flex-grow: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 2px;
  position: relative;
  cursor: pointer;
  touch-action: none;
}

.progress-bar::before {
  content: "";
  position: absolute;
  top: -8px;
  bottom: -8px;
  left: 0;
  right: 0;
}

.progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: white;
  border-radius: 2px;
  pointer-events: none;
  transition: width 0.25s linear;
}

.progress-bar.is-dragging .progress-fill {
  transition: none;
}

.progress-fill::after {
  content: "";
  position: absolute;
  right: -4px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}

.progress-bar:hover .progress-fill::after,
.progress-bar.is-dragging .progress-fill::after {
  opacity: 1;
}

.playlist-overlay {
  position: fixed;
  top: 90px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 750px;
  max-height: 55vh;
  border-radius: 20px;
  overflow-y: auto;
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.playlist-overlay.active {
  opacity: 1;
  visibility: visible;
}

.playlist-list {
  list-style: none;
  padding: 10px;
}

.playlist-item {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  color: white;
  cursor: pointer;
  transition: background 0.2s;
  border-radius: 12px;
}

.playlist-item.playing-track {
  background: rgba(255, 255, 255, 0.25);
}

.pl-index {
  width: 35px;
  font-weight: 700;
  opacity: 0.6;
  font-size: 0.95rem;
}

.pl-title {
  flex-grow: 1;
  font-weight: 600;
  font-size: 0.95rem;
  padding-right: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.pl-artist {
  opacity: 0.7;
  font-size: 0.85rem;
  font-weight: 500;
  text-align: right;
  max-width: 250px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.playlist-footer {
  padding: 0 20px 15px 20px;
  text-align: center;
}

.playlist-divider {
  border: none;
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
  margin: 5px 0 15px 0;
}

.inspiration-link {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease;
}

.inspiration-link svg {
  transition: color 0.2s ease;
}

.behance-link {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
}

@keyframes spin-record {
  100% {
    transform: rotate(360deg);
  }
}

html {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.3) #121212;
}

.playlist-overlay {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #121212;
}

.playlist-overlay::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  border: 3px solid #121212;
  background-clip: padding-box;
}

.playlist-overlay::-webkit-scrollbar-thumb {
  border: 3px solid transparent;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.45);
}

@media (hover: hover) {
  .top-btn:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.05);
    transform: scale(1.05);
  }

  .control-btn:hover,
  .play-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
  }

  .playlist-item:hover {
    background: rgba(255, 255, 255, 0.15);
  }

  .inspiration-link:hover {
    color: rgba(255, 255, 255, 0.9);
  }

  .inspiration-link:hover svg {
    color: #1ed760;
  }

  .behance-link:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
  }
}

@media (max-width: 1000px) {
  .bg-image {
    object-position: center 70%;
  }
}

@media (max-width: 768px) {
  .top-bar {
    padding: 20px;
  }

  .top-controls-inner {
    gap: 10px;
    padding: 6px;
  }

  .player-wrapper {
    padding: 0 15px 30px 15px;
  }

  .glass-player {
    padding: 8px 15px 8px 8px;
    gap: 12px;
    border-radius: 40px;
  }

  .vinyl-record {
    width: 60px;
    height: 60px;
  }
  .vinyl-center {
    width: 18px;
    height: 18px;
  }

  .track-name {
    font-size: 1rem;
  }
  .artist-name {
    font-size: 0.8rem;
  }
  .controls {
    gap: 8px;
  }

  .control-btn {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }

  .play-btn {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }

  .time-text {
    font-size: 0.65rem;
    min-width: 30px;
  }

  .playlist-overlay {
    top: 80px;
    width: 95%;
    max-height: 60vh;
  }

  .pl-artist {
    font-size: 0.75rem;
    max-width: 100px;
  }

  .brand-logo {
    width: 200px;
    transform: translateY(-120px);
  }
  .about-section {
    padding: 40px 20px;
  }
}
