:root {
  --bg: #070707;
  --fg: #f2f2f2;
  --muted: rgba(255, 255, 255, .60);
  --line: rgba(255, 255, 255, .08);
  --accent: #b1002b;
  --topbar-h: 75px;
  --panel-bg: rgba(0, 0, 0, .45); /* Zwiększona przezroczystość z 0.65 na 0.45 */
  --blur: 1px;
  --radius: 20px;
}

/* --- SYSTEM RESET --- */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; margin: 0; padding: 0; }
html, body { height: 100%; background: #000; color: var(--fg); font-family: system-ui, sans-serif; overflow: hidden; }

body { display: grid; place-items: center; }

/* --- KONTENER GŁÓWNY --- */
.phone-shell {
  position: relative;
  width: 360px; height: 740px;
  background: var(--bg);
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 50px 100px rgba(0,0,0,0.9);
}

.phone-app { height: 100%; display: flex; flex-direction: column; position: relative; }

/* --- TOPBAR & BRAND --- */
.topbar {
  position: absolute; top: 0; left: 0; right: 0;
  height: var(--topbar-h);
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(to bottom, rgba(0,0,0,0.95), transparent);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  z-index: 500;
}

.brand { 
  background: none; border: none; cursor: pointer; color: var(--fg); 
  display: flex; align-items: center; gap: 10px;
}

/* PANCERNE SVG */
.play-icon-container {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  transition: color 0.3s ease, transform 0.2s ease;
}

.icon-stop { display: none; } /* Ukryty na starcie */

/* Logika zmiany ikon przez klasę is-playing */
.is-playing .icon-play { display: none; }
.is-playing .icon-stop { display: block; }
.is-playing .play-icon-container { 
  color: var(--accent); 
  filter: drop-shadow(0 0 10px rgba(177, 0, 43, 0.4));
}

.brand:active .play-icon-container { transform: scale(0.9); }

.brand__logoText { font-size: 32px; font-weight: 900; letter-spacing: -1px; }
.off { color: var(--accent); }
.tm { font-size: 10px; opacity: 0.5; vertical-align: top; }

.tagline {
  position: absolute; top: 80px; width: 100%;
  text-align: center; font-size: 11px; font-weight: 700;
  letter-spacing: 2px; color: var(--muted); text-transform: uppercase;
  z-index: 400;
}

/* --- PANEL GŁOŚNOŚCI --- */
.volume-container {
  position: absolute;
  left: 10px; top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
  width: 40px; padding: 15px 0;
  background: var(--panel-bg);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  border: 1px solid var(--line);
  border-radius: 20px;
  display: flex; flex-direction: column; align-items: center;
}

.slider-wrapper { height: 150px; display: flex; align-items: center; margin: 10px 0; }

#volumeSlider {
  -webkit-appearance: none; width: 150px; height: 4px;
  transform: rotate(-90deg); background: rgba(255,255,255,0.1);
  border-radius: 2px; outline: none;
}

#volumeSlider::-webkit-slider-thumb {
  -webkit-appearance: none; width: 18px; height: 18px;
  border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 10px var(--accent); cursor: pointer;
}

.vol-icon { font-size: 14px; margin-bottom: 5px; }
#volValue { font-size: 10px; font-weight: bold; }

/* --- PANELI SNAP --- */
.snap { flex: 1; overflow-y: scroll; scroll-snap-type: y mandatory; scrollbar-width: none; }
.snap::-webkit-scrollbar { display: none; }

.panel { height: 100%; scroll-snap-align: start; position: relative; }
.poster { background-size: cover; background-position: center; }
.poster--mic { background-image: url("/assets/img/background/mic-vertical.jpg"); }
.poster--vinyl { background-image: url("/assets/img/background/vinyl-vertical.jpg"); }
.poster--console { background-image: url("/assets/img/background/console-vertical.jpg"); }

/* --- HUD INTERFEJS --- */
.overlay {
  height: 100%;
  padding: 140px 15px 20px 65px; 
  display: flex; align-items: flex-start;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}

.hud {
  width: 100%;
  background: var(--panel-bg);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur)); /* Wsparcie dla Safari/iOS */
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  display: flex; flex-direction: column; gap: 15px;
}

.hud__title { font-size: 18px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; }

/* --- MENU VOD --- */
.menuStack { list-style: none; }
.bubble { background: rgba(255,255,255,0.07); border-radius: 12px; padding: 4px; }
.vod-category summary { padding: 10px; cursor: pointer; color: var(--muted); font-size: 14px; list-style: none; }
.vod-list { list-style: none; padding-left: 15px; border-left: 1px solid var(--accent); margin-top: 5px; }
.vod-track {
  background: none; border: none; color: var(--fg); padding: 8px 0;
  width: 100%; text-align: left; font-size: 13px; cursor: pointer; opacity: 0.8;
}

.end { font-size: 10px; opacity: 0.3; text-align: center; margin-top: 10px; }

/* --- MOBILNY VIEW --- */
@media (max-width: 600px), (display-mode: standalone) {
  body { place-items: stretch; }
  .phone-shell { width: 100vw; height: 100vh; border-radius: 0; }
  .overlay { padding-top: 130px; }
}

/* Kontener całej stopki */
.end-container {
  margin-top: 20px;
  cursor: pointer;
  text-align: center;
}

/* Lista kontaktowa - stan domyślny */
.contact-list {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.5s ease-in-out; /* Płynne rozwijanie */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

/* Lista kontaktowa - stan ROZWINIĘTY */
.contact-list.active {
  max-height: 180px; /* Zwiększamy, aby zmieścić e-mail i ikony */
  opacity: 1;
  padding: 15px 0;
}

/* Stylizacja ikon społecznościowych */
.social-icons {
  display: flex;
  justify-content: center;
  gap: 30px; /* Oddech między YouTube a Spotify */
}

.footer-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  /* Twój 'romantyczny' sznyt: białe ikony, które odzyskują barwę po najechaniu */
  filter: grayscale(1) brightness(2);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.footer-icon:hover {
  filter: grayscale(0) brightness(1);
  transform: scale(1.1);
}