/* General styles */

:root {
  --primary: #4361ee;
  --secondary: #3f37c9;
  --accent: #f72585;
  --light: #f8f9fa;
  --dark: #212529;
}

body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #eef2f5 0%, #b8c2cc 100%);
  color: var(--dark);
  overflow-x: hidden;
}

/* Header Styles */
header {
  background: rgba(245, 245, 245, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  margin-top: 15px;
}

/* Player Container */
.player {
  background: rgba(245, 245, 245, 0.95);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  border: 1px solid rgba(245,245,245,0.2);
}

.player:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

/* Cover Art */
.cover-art {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(67, 97, 238, 0.3);
}

/* Buttons */
#playBtn {
  background: linear-gradient(45deg, var(--primary), var(--secondary));
  box-shadow: 0 4px 20px rgba(67, 97, 238, 0.4);
  transition: all 0.3s ease;
}

#playBtn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 25px rgba(67, 97, 238, 0.5);
}

#playBtn:active {
  transform: scale(0.95);
}

/* Buttons */
#przodBtn {
  background: linear-gradient(45deg, var(--primary), var(--secondary));
  box-shadow: 0 4px 20px rgba(67, 97, 238, 0.4);
  transition: all 0.3s ease;
  margin-left: 5px;
}

#przodBtn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 25px rgba(67, 97, 238, 0.5);
}

#przodBtn:active {
  transform: scale(0.95);
}

/* Buttons */
#tylBtn {
  background: linear-gradient(45deg, var(--primary), var(--secondary));
  box-shadow: 0 4px 20px rgba(67, 97, 238, 0.4);
  transition: all 0.3s ease;
  margin-right: 5px;
}

#tylBtn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 25px rgba(67, 97, 238, 0.5);
}

#tylBtn:active {
  transform: scale(0.95);
}

/* Station Selector */
.station-selector {
  background: rgba(245, 245, 245, 0.95);
  box-shadow: 5px 0 15px rgba(0,0,0,0.08);
}

.station-card {
  transition: all 0.3s ease;
  background: rgba(255,255,255,0.8);
  border-radius: 10px;
}

.station-card:hover {
  transform: translateX(5px);
  background: rgba(67, 97, 238, 0.1);
}

.station-card.active {
  background: linear-gradient(90deg, rgba(67, 97, 238, 0.1), rgba(67, 97, 238, 0.3));
  border-left: 3px solid var(--primary);
}

/* Volume Control */
input[type="range"] {
  -webkit-appearance: none;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 5px;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  background: var(--primary);
  border-radius: 50%;
  cursor: pointer;
}

/* Modal Styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  width: 400px;
  text-align: center;
}

.settings-modal {
  width: 500px;
  max-width: 90vw;
}

.close {
  cursor: pointer;
  float: right;
  font-size: 20px;
}

/* Responsive Design */
@media (max-width: 640px) {
  .player {
    border-radius: 0;
    width: 100%;
  }
  
  .station-selector {
    width: 80%;
  }
}

/* shop button */
#shopBtn {
  background: rgba(245, 245, 245, 0.95);
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}
#shopBtn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

#shopBtn:active {
  transform: scale(0.95);
}

/* chat button */
#chatBtn {
  background: rgba(245, 245, 245, 0.95);
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}
#chatBtn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

#chatBtn:active {
  transform: scale(0.95);
}

/* Ramówka button */
#ramowkaBtn {
  background: rgba(245, 245, 245, 0.95);
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}
#ramowkaBtn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

#ramowkaBtn:active {
  transform: scale(0.95);
}

/* pozdrowienia button */
#pozdroBtn {
  background: rgba(245, 245, 245, 0.95);
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}
#pozdroBtn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

#pozdroBtn:active {
  transform: scale(0.95);
}

/* redakcja button */
#redakcjaBtn {
  background: rgba(245, 245, 245, 0.95);
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}
#redakcjaBtn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

#redakcjaBtn:active {
  transform: scale(0.95);
}

/* message */
#messageInput {
  width: 300px;
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px ;
}

#nick {
  width: 300px;
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
}

#messageChat {
  height: 300px;
}

#messageChat div {
  display: inline-block;
  border: 2px solid blue;
  padding-left: 3px;
  padding-right: 3px;
  border-radius: 10px;
  margin-top: 3px;
  background-color: #4361ee;
  color: white;
}

#sendBtn {
  width: 300px;
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
  margin-top: 10px;
}

/* Settings Button */
#settingsBtn {
    background: rgba(245, 245, 245, 0.95);
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}
#settingsBtn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}
#settingsBtn:active {
    transform: scale(0.95);
}

/* home button */
#homeBtn {
  background: rgba(245, 245, 245, 0.95);
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}
#homeBtn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}
#homeBtn:active {
  transform: scale(0.95);
}

/* star button */
#starBtn {
  background: rgba(245, 245, 245, 0.95);
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}
#starBtn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}
#starBtn:active {
  transform: scale(0.95);
}

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 50%, 
    rgba(255,255,255,0.85) 0%, 
    rgba(240,240,240,0.7) 100%);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.loading-overlay.show {
  opacity: 1;
}

.spinner-container {
  text-align: center;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  background: white;
}

.logo-spinner {
  width: 120px;
  height: auto;
  animation: spin 1.8s linear infinite;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

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

/* Hamburger Menu */
.station-selector {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(-100%);
  position: relative;
  margin-top: 40px;
}

#settingsModal {
  position: absolute;
  left: 50px;
}

.station-selector.active {
  transform: translateX(0);
}

main {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

main.active {
  transform: translateX(16rem);
}

main.active::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 40;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

main.active::before {
  opacity: 1;
  pointer-events: auto;
}

#menuToggle {
  transition: all 0.3s ease;
  z-index: 100;
}

#nameSelect {
  width: 100px;
}

img {
  margin-top: -10px;
}

.ramowka {
  margin-top: 20px;
}

#ramowkaDiv {
  display: none;
}

#iframeRamowka {
  border: 2px solid white;
}

.kadraDiv {
  margin-top: -16px;
  margin-bottom: -16px;
  border: 2px solid white;
}

#kadraiframe {
  overflow-x: hidden;
  touch-action: pan-y;
}

#redakcjaBody {
  height: 626px;
}

.pozdroDwa {
  overflow: hidden;
}

.reklamaImg {
  margin-top: 15px;
}