/* =====================================
   EMEFEF — USTAWIENIA GLOBALNE
===================================== */
:root {
  --black: #000000;
  --burgundy: #934b4d;
  --green: #6e954b;
  --white: #d0d0d0;
}

* { box-sizing: border-box; }

html { min-width: 320px; }

body {
  margin: 0;
  background: #d2d2d2;
  color: #d0d0d0;
  font-family: Arial, Helvetica, sans-serif;
}

/* =====================================
   KATALOG WYDAWNICTW
===================================== */
.releases {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  width: 100%;
  gap: 0;
}

.release {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.release__cover {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.release__info {
  display: flex;
  flex-direction: column;
  aspect-ratio: 1 / 1;
  min-height: 0;
  padding: 9%;
  background: var(--black);
}

.release--burgundy .release__info { background: var(--burgundy); }
.release--green .release__info { background: var(--green); }

.release__title {
  margin: 0;
  font-size: clamp(14px, 1.7vw, 24px);
  line-height: 1.35;
  font-weight: 700;
}

.release__artist,
.release__album { display: block; }

.release__format {
  display: block;
  margin-top: 5px;
  font-size: 0.6em;
  line-height: 1.3;
  font-weight: 400;
  opacity: 0.8;
}

.release__bottom {
  margin-top: auto;
  display: flex;
  flex-direction: column;
}

/* Linki */
.release__links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(5px, 0.45vw, 12px);
}

.release__links a {
  color: var(--white);
  font-size: clamp(12px, 1.4vw, 18px);
  line-height: 1.35;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* JS może tworzyć span, jeśli nie ma adresu platformy. */
.release__links span { line-height: 1.35; }
.release__links a:hover { opacity: 0.65; }

/* Player */
.player {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1vw, 20px);
  min-height: 24px;
  margin-top: 12%;
}

.player__button {
  flex: 0 0 22px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--white);
  cursor: pointer;
}

.player__button svg {
  display: block;
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.player__progress {
  min-width: 0;
  flex: 1;
  height: 18px;
  margin: 0;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  cursor: pointer;
}

.player__progress::-webkit-slider-runnable-track {
  height: 2px;
  background: linear-gradient(
    to right,
    #ffffff 0%,
    #ffffff var(--progress, 0%),
    #ffffff65 var(--progress, 0%),
    #ffffff65 100%
  );
}

.player__progress::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 8px;
  height: 8px;
  border-radius: 0;
  background: var(--white);
  margin-top: -3px;
  opacity: 0;
}

.player__progress:hover::-webkit-slider-thumb,
.player__progress:focus-visible::-webkit-slider-thumb { opacity: 1; }

.player__progress::-moz-range-track {
  height: 2px;
  background: #ffffff65;
}

.player__progress::-moz-range-progress {
  height: 2px;
  background: #ffffff;
}

.player__progress::-moz-range-thumb {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 0;
  background: var(--white);
  opacity: 0;
}

.player__progress:hover::-moz-range-thumb,
.player__progress:focus-visible::-moz-range-thumb { opacity: 1; }

.player__time {
  flex-shrink: 0;
  min-width: 30px;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.player__button:focus-visible,
.player__progress:focus-visible,
.release__links a:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 4px;
}

/* =====================================
   HERO — MUZYKA I NAKŁADANIE WARSTW
===================================== */
.hero {
  position: sticky;
  top: 0;
  z-index: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: min(100svh, 63vw);
  min-height: 420px;
  background-color: #d0d0d0;
  background-image: url("../img/grey_bg.jpg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: #000;
  overflow: hidden;
}

.hero__bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(18px, 2.3vw, 44px);
}

.hero__brand {
  display: block;
  flex: none;
  width: clamp(30px, 3.6vw, 63px);
}

.hero__brand img {
  display: block;
  width: 100%;
  height: auto;
}

.hero__email {
  color: #000;
  font-size: clamp(12px, 1.35vw, 19px);
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  background: transparent;
  border: 0;
  padding: 0;
  font-family: inherit;
  cursor: pointer;
}

.hero__email:hover { text-decoration: underline; }

.hero__email:focus-visible,
.hero__brand:focus-visible {
  outline: 2px solid #3900f3;
  outline-offset: 5px;
}

.hero__title {
  display: block;
  width: calc(100% - clamp(32px, 4.4vw, 88px));
  height: auto;
  max-height: 75%;
  object-fit: contain;
  object-position: left bottom;
  margin: auto auto clamp(16px, 2.5vw, 48px);
}

/* Albumy przykrywają przypięty nagłówek. */
main {
  position: relative;
  z-index: 1;
}

/* =====================================
   STOPKA — LOGO ARTYSTÓW I MANIFEST
===================================== */
.footer {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: clamp(580px, 78vw, 1250px);
  padding: clamp(40px, 6vw, 60px) clamp(22px, 3.5vw, 80px) clamp(40px, 5.5vw, 40px);
  background-color: #3900f3;
  background-image: url("../img/blue_bg.jpg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: #e0e0e0;
}

.footer__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(50px, 6vw, 110px);
  width: 100%;
  margin: auto 0;
}

.footer__artists {
  display: block;
  width: clamp(140px, 25vw, 450px);
  max-width: 100%;
  height: auto;
  object-fit: contain;
  margin-top: 50px;
  margin-bottom: -30px;
}

.footer__manifesto {
  max-width: 1700px;
  margin: 0 0 50px;
  font-size: clamp(34px, 6.3vw, 108px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 700;
  text-align: center;
}

.footer__manifesto em {
  font-family: 'Cormorant Garamond', 'Baskerville', 'Times New Roman', serif;
  font-weight: 100;
  font-style: italic;
  letter-spacing: -0.035em;
}

.footer__legal {
  margin: 0;
  line-height: 1.35;
}

.footer__legal span { display: block; }

.footer__baltyk {
  display: block;
  width: clamp(25.41px, 3.025vw, 51.425px);
  height: auto;
  object-fit: contain;
}

/* =====================================
   TELEDYSKI — ZERO PRZERW MIĘDZY FILMAMI
===================================== */
.videos {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  width: 100%;
  background: #000;
}

.videos__item {
  min-width: 0;
  aspect-ratio: 16 / 9;
}

.videos__item iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* =====================================
   SZARA STOPKA POD FILMAMI
===================================== */
.site-footer {
  position: relative;
  z-index: 1;
  background-color: #d0d0d0;
  background-image: url("../img/grey_bg.jpg");
  background-position: center;
  background-size: cover;
  color: #000;
  padding: clamp(22px, 3.5vw, 60px);
}

.site-footer__inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  font-size: clamp(11px, 1vw, 15px);
}

.footer__baltyk-link {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

/* Zamienia jasne logo Bałtyk na czarne (przy przezroczystym PNG). */
.site-footer .footer__baltyk {
  filter: brightness(0);
}

.footer__baltyk-link:focus-visible {
  outline: 2px solid #000;
  outline-offset: 6px;
}

/* =====================================
   TABLET I MOBILE — DO 850 PX
===================================== */
@media (max-width: 850px) {
  .releases { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .release__info {
    aspect-ratio: auto;
    min-height: clamp(300px, 72vw, 440px);
  }

  .release__title {
    font-size: clamp(17px, 2.5vw, 21px);
    line-height: 1.2;
    overflow-wrap: anywhere;
  }

  .release__format { font-size: 0.7em; }

  .release__links a,
  .release__links span {
    font-size: clamp(16px, 2.3vw, 19px);
  }

  .player { margin-top: 10%; gap: 8px; }
  .player__time { min-width: 28px; font-size: 11px; }

  .hero { min-height: 340px; }
  .hero__brand { width: clamp(48px, 6.24vw, 63.6px); }
  .hero__email { font-size: clamp(18px, 2.4vw, 20.4px); }

  .footer {
    min-height: 0;
    padding: clamp(35px, 5vw, 65px) 18px clamp(32px, 4.5vw, 48px);
  }

  .footer__content {
    gap: clamp(44px, 7vw, 70px);
    margin: 0;
  }

  .footer__artists {
    width: min(47.6vw, 245px);
    margin-top: 0;
    margin-bottom: 0;
  }

  .footer__manifesto {
    max-width: 100%;
    margin: 0;
    font-size: clamp(25px, 6.5vw, 54px);
    line-height: 1.12;
    overflow-wrap: anywhere;
  }

  .videos {
    grid-template-columns: minmax(0, 1fr);
  }

  .site-footer {
    padding: 32px 18px;
  }

  .site-footer__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 26px;
    font-size: clamp(12px, 1.9vw, 15px);
  }

  .footer__legal { max-width: 450px; }
  .footer__baltyk { width: clamp(45px, 7vw, 60px); }
}

/* =====================================
   TELEFON — DO 480 PX
===================================== */
@media (max-width: 480px) {
  .release__info {
    aspect-ratio: 1 / 1;
    min-height: 0;
    padding: 8%;
  }

  .release__links { gap: 8px; }

  .hero {
    height: auto;
    min-height: 0;
  }

  .hero__bar { padding: 18px 14px; }

  .hero__title {
    width: calc(100% - 28px);
    max-height: none;
    margin: 44px auto 29px;
  }
}

/* Mniej ruchu dla osób preferujących ograniczone animacje. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
