*, *::before, *::after {
  box-sizing: border-box;
}

@font-face {
  font-family: 'Nordique Pro';
  src: url('fonts/Nordique-Pro-Bold.woff2') format('woff2'),
       url('fonts/Nordique-Pro-Bold.woff') format('woff'),
       url('fonts/Nordique-Pro-Bold.ttf') format('truetype');
  font-weight: bold;
  font-display: swap;
}
@font-face {
  font-family: 'Nordique Pro Regular';
  src: url('fonts/Nordique-Pro-Regular.woff2') format('woff2'),
       url('fonts/Nordique-Pro-Regular.woff') format('woff'),
       url('fonts/Nordique-Pro-Regular.ttf') format('truetype');
  font-weight: normal;
  font-display: swap;
}
html, body {
  height: 100%;
  overflow-x: hidden;
}

body {
  background: #111;
  color: #eee;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 100vh;
  margin: 0; 
  padding: 0;
  padding-top: calc(100vh / 3 - 4rem);
}



.login-icon {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: transparent;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  z-index: 1000;
  color: #eee;
}

.login-icon:hover {
  background-color: #49cd70;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6);
  color: #111;
}

.login-icon svg {
  width: 24px;
  height: 24px;
}

.neurophate {
  font-size: min(8rem, 19vw);
  font-family: 'Nordique Pro', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-weight: bold;
  letter-spacing: 0;
  user-select: none;
  line-height: 1.8;
  display: flex;
  gap: 0;
  margin-bottom: 0;
  position: relative;
}

.segment {
  color: #aaa;
  text-decoration: none;
  transition: color 0.3s ease;
  cursor: pointer;
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  user-select: none;
  margin-left: -0.05em; 
}

.segment:hover {
  color: #49cd70;
  text-shadow: 0 0 8px #4caf50;
}

.description {
  line-height: 2.5rem;
  position: absolute;
  top: calc(100% + 1rem);
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.0rem;
  font-weight: bold;
  letter-spacing: 0.0em;
  color: #ccc;
  max-height: calc(100vh - 100% - 6rem);
  overflow-y: overlay;
  opacity: 0;
  transition: opacity 0.3s ease;
  text-align: center;
  width: 80vw;
  max-width: 600px;
  pointer-events: none;
  z-index: 10;
  scrollbar-width: thin;
  scrollbar-color: #49cd70 transparent;
}

.description::-webkit-scrollbar {
  width: 8px;
}

.description::-webkit-scrollbar-track {
  background: transparent;
}

.description::-webkit-scrollbar-thumb {
  background: #49cd70;
  border-radius: 4px;
}

.description::-webkit-scrollbar-thumb:hover {
  background: #4caf50;
}

/* Ukryj scrollbar gdy nie ma zawartości do przewijania */
.description:not(:hover)::-webkit-scrollbar {
  width: 0px;
}

.description:hover::-webkit-scrollbar {
  width: 8px;
}

/* Ukryj strzałki paska przewijania */
.description::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}

.description::-webkit-scrollbar-button:start:decrement,
.description::-webkit-scrollbar-button:end:increment {
  display: none;
  width: 0;
  height: 0;
}

.description::-webkit-scrollbar-corner {
  background: transparent;
  display: none;
}
.description.visible {
  opacity: 1;
  pointer-events: auto;
}

.twitter-avatar--small {
  width: 2.2rem;
  height: 2.2rem;
  border-width: 1.5px;
}
.twitter-username--highlight {
  color: #49cd70;
  font-size: 0.95rem;
  margin-top: 0.2em;
}

.film-list {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-weight: normal;
  font-size: 1rem;
  padding-right: 0;
}

.film-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.1rem 0.3rem;
  border-radius: 0.3rem;
  transition: background-color 0.2s ease;
  cursor: pointer;
  min-height: 2.2rem;
  text-decoration: none;
  color: inherit;
}

.film-item:hover {
  background-color: rgba(73, 205, 112, 0.15);
}

.film-title {
  font-weight: 600;
  color: #eee;
  flex: 1;
  margin-right: 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.film-rating {
  color: #49cd70;
  font-weight: bold;
  min-width: 2.5rem;
  text-align: right;
}

.film-poster {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  object-fit: cover;
  margin-left: 0.5rem;
  box-shadow: 0 0 4px #222;
  border: 2px solid #222;
}

.segment:hover::before {
  content: "";
  position: absolute;
  top: 0.9em;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  background-color: #49cd70;
  border-radius: 50%;
  animation: bounce 1.0s infinite;
  pointer-events: none;
  user-select: none;
  box-shadow: 0 0 6px #4caf50;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-6px); }
}

.hover-label {
  height: min(1.2rem, 2.5vw);
  font-size: min(0.8rem, 1.8vw);
  color: #49cd70;
  font-weight: bold;
  letter-spacing: 0.15em;
  opacity: 0;
  transition: opacity 0.3s ease;
  user-select: none;
  margin-top: min(0.2rem, 0.4vw);
}

.segment:hover .hover-label {
  opacity: 1;
}

.twitter-profile {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-weight: normal;
  font-size: 1rem;
  max-width: 100%;
}

.twitter-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.twitter-avatar {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #49cd70;
  box-shadow: 0 0 8px rgba(73, 205, 112, 0.3);
}

.twitter-info {
  flex: 1;
}

.twitter-name {
  font-size: 1.2rem;
  font-weight: bold;
  color: #eee;
  margin-bottom: 0.2rem;
}

.twitter-username {
  color: #888;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.twitter-description {
  font-family: 'Nordique Pro Regular', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #ccc;
  overflow: hidden;
  font-size:1.0rem;
  line-height:1.9;
  margin:0;
  max-height:6rem;
  font-weight: lighter;
}

.twitter-stats {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

.twitter-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.twitter-stat-number {
  font-size: 1.1rem;
  font-weight: bold;
  color: #49cd70;
}

.twitter-stat-label {
  font-size: 0.8rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
#activity-ticker {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background-color: rgba(20, 20, 20, 0.7);
  backdrop-filter: blur(5px);
  padding: 8px 15px;
  border-radius: 20px;
  color: #ccc;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
}

#activity-ticker.visible {
  opacity: 1;
}

#activity-ticker .icon {
  font-size: 1.1rem;
}
#activity-ticker .icon svg {
  width: 1.1em; /* Dopasuje szerokość ikony do rozmiaru tekstu */
  height: 1.1em; /* Dopasuje wysokość ikony do rozmiaru tekstu */
  stroke-width: 2; /* Grubość linii ikony */
  vertical-align: middle; /* Lepsze wyrównanie w pionie */
}

@media (max-width: 1078px) {
  #activity-ticker {
    display: none !important;
  }
}

#custom-audio-player {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  background: rgba(17, 17, 17, 0.9);
  color: #eee;
  padding: 1rem 1.5rem;
  border-radius: 20px;
  font-family: 'Nordique Pro Regular', sans-serif;
  font-size: 0.95rem;
  z-index: 999;
  backdrop-filter: blur(10px);
  min-width: 280px;
  transition: all 0.3s ease;
}

#custom-audio-player.initial-state {
  padding: 0.8rem;
  border-radius: 50%;
  min-width: auto;
  width: 60px;
  height: 60px;
  justify-content: center;
}

#custom-audio-player.initial-state #player-controls,
#custom-audio-player.initial-state #track-info,
#custom-audio-player.initial-state #volume-control {
  display: none;
}

#custom-audio-player.initial-state #play-btn {
  padding: 0;
  margin: 0;
}

#player-controls {
  display: flex;
  align-items: center;
  /* USUNIĘTA WŁAŚCIWOŚĆ 'gap' */
  width: 100%;
  justify-content: center;
}

/* Dodajemy margines do wszystkich elementów w playerze, oprócz pierwszego */
#player-controls > * + * {
  margin-left: 0.8rem;
}

#player-controls button {
  background: transparent;
  color: #eee;
  border: none;
  padding: 0.4rem;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
#player-controls svg,
#soundcloud-btn svg,
#new-track-btn svg {
  /* Zapewnienie, że wszystkie ikony używają linii (stroke) */
  fill: none;
  stroke: currentColor;
  stroke-width: 2; /* Spójna grubość linii */
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Wyjątki, które muszą być wypełnione */
#play-icon {
  fill: currentColor !important; /* Ikona Play jest wypełniona */
  stroke: none !important;
}

#pause-icon {
  fill: none !important; /* Ikona Pauzy jest oparta na obrysie (linia) */
  stroke: currentColor !important;
}
#player-controls button:hover {
  background: rgba(73, 205, 112, 0.2);
  color: #49cd70;
  transform: scale(1.1);
}

#player-controls svg {
  fill: currentColor;
}


#progress-slider::-webkit-slider-track {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  height: 4px;
}

#progress-slider::-webkit-slider-thumb {
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #49cd70;
  cursor: pointer;
  border: none;
}

#progress-slider {
  accent-color: #49cd70;
  cursor: pointer;
  height: 4px;
  background: transparent;
  outline: none;
  border-radius: 2px;
  /* Płynne przejście dla max-width, przezroczystości i marginesów */
  transition: max-width 0.5s ease, opacity 0.3s ease, margin-left 0.5s ease;
  
  /* Domyślnie pasek jest całkowicie ukryty */
  max-width: 0;
  opacity: 0;
  margin-left: 0;
  /* Zapobiega przypadkowym kliknięciom w ukryty element */
  pointer-events: none; 
  /* Ukrywa zawartość gdy max-width jest 0 */
  overflow: hidden;
  /* Usuwamy flex żeby nie zajmował miejsca */
  flex: none;
}

/* Styl wyświetlający pasek, gdy odtwarzacz ma klasę .is-playing */
#custom-audio-player.is-playing #progress-slider {
  /* Pasek może się rozciągnąć i odzyskuje margines */
  max-width: 200px;
  flex: 1;
  margin-left: 0.8rem;
  
  /* Staje się w pełni widoczny */
  opacity: 1;
  
  /* Znów staje się klikalny */
  pointer-events: auto;
}
#track-info {
  text-align: center;
  width: 100%;
}

#track-name {
  color: #ccc;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 250px;
  transition: color 0.2s ease;
}

#track-link {
  text-decoration: none !important;
  color: inherit !important;
}

#track-link:hover,
#track-link:visited,
#track-link:active {
  text-decoration: none !important;
}
#track-link:hover #track-name {
  color: #49cd70;
}

#volume-control {
  position: absolute;
  top: -35px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(17, 17, 17, 0.95);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

#custom-audio-player:hover #volume-control {
  opacity: 1;
  visibility: visible;
}

#volume-slider {
  width: 80px;
  accent-color: #49cd70;
  cursor: pointer;
  height: 4px;
}

#volume-slider::-webkit-slider-track {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  height: 4px;
}

#volume-slider::-webkit-slider-thumb {
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #49cd70;
  cursor: pointer;
  border: none;
}

.volume-icon {
  color: #eee;
  font-size: 0.9rem;
}

#soundcloud-btn {
  /* Używam tego samego stylu co dla przycisków */
  background: transparent;
  color: #eee;
  border: none;
  padding: 0.4rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

#soundcloud-btn:hover {
  background: rgba(73, 205, 112, 0.2);
  color: #49cd70;
  transform: scale(1.1);
}

/* Specjalny styl dla oryginalnej ścieżki SVG SoundCloud, aby ją obrysować, a nie wypełniać, 
   co ujednolici jej styl. Używa stylu z punktu 1. */
#soundcloud-btn svg path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}
/* DODANE STYLA DLA NOWEGO PRZYCISKU */
#new-track-btn {
  color: #eee;
  padding: 0.4rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease, opacity 0.4s ease-in-out;
  opacity: 0; /* Domyślnie ukryty */
  position: relative; /* Wymagane dla pseudo-elementu pulse */
}

#new-track-btn.visible {
  opacity: 1;
  /* Aktywacja animacji pulsowania po pojawieniu się */
  animation: pulse-border 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

#new-track-btn:hover {
  background: rgba(73, 205, 112, 0.2);
  color: #49cd70;
  transform: scale(1.1);
  animation: none; /* Zatrzymaj pulsowanie po najechaniu myszką */
}

#new-track-btn svg {
  fill: currentColor;
  z-index: 10;
}

/* Pseudo-element dla efektu poświaty/cienia, który będzie pulsował */
#new-track-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 8px;
  background-color: #49cd70;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1; /* Pod ikoną */
}

/* DODANA ANIMACJA PULSOWANIA */
@keyframes pulse-border {
  0% {
    box-shadow: 0 0 0 0 rgba(73, 205, 112, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(73, 205, 112, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(73, 205, 112, 0);
  }
}
/* KONIEC STYLI DLA NOWEGO PRZYCISKU */


@media (max-width: 1078px) {
  #activity-ticker {
    display: none !important;
  }
}

@media (hover: hover) {
  .mobile-hint {
    display: none !important;
  }
}

.mobile-hint {
  display: none !important;
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(20, 20, 20, 0.7);
  backdrop-filter: blur(10px);
  color: #eee;
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  text-align: center;
  max-width: 90vw;
  white-space: nowrap;
  z-index: 1000;
  animation: hint-pulse 5s ease-in-out infinite;
}

@keyframes hint-pulse {
  0%, 100% { 
    opacity: 0;
    transform: translateX(-50%) translateY(0);
  }
  50% { 
    opacity: 0.7;
    transform: translateX(-50%) translateY(-3px);
  }
}

@media (hover: none) {
  .mobile-hint {
    display: block !important;
  }
  
  .description {
    display: none !important;
  }
  
  .segment:hover::before {
    display: none !important;
  }
  
  .segment {
    animation: subtle-pulse 3s ease-in-out infinite;
  }
}

@keyframes subtle-pulse {
  0%, 100% { 
    opacity: 0.7;
    color: #aaa;
  }
  50% { 
    opacity: 1;
    color: #49cd70;
  }
}