/* ===== RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===============================
   RESET / BASE
================================ */
html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow-x: hidden;      /* zostawiamy tylko x */
  overflow-y: auto;        /* dodajemy pionowy scroll */
}

body {
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto;
  color: #fff;
  background: #0f1115;

  position: relative;
  overflow-x: hidden;
}

/* LINKI */
a {
  color: #DDDDDD;        /* jasnoszary, czytelny na ciemnym tle */
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover, a:focus {
  color: #FFFFFF;
  text-decoration: underline;
}

/* ===============================
   PARALLAX BACKGROUND
================================ */
body::before {
  content: "";
  position: fixed;
  inset: -10%;
  background-image: url("assets/kylie tv bg.jpg");
  background-size: cover;
  background-position: bottom center;
  background-repeat: no-repeat;
  transform: translateZ(0) scale(1.05);
  will-change: transform;
  z-index: -4;
}

/* ===============================
   DARK OVERLAY
================================ */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  z-index: -3;
  pointer-events: none;
}

/* ===============================
   VIGNETTE
================================ */
.vignette {
  position: fixed;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    rgba(0,0,0,0) 60%,
    rgba(0,0,0,0.35) 100%
  );
  z-index: -2;
  pointer-events: none;
}

/* ===============================
   GRAIN / NOISE
================================ */
.noise {
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  background-repeat: repeat;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: -1;
  animation: grainMove 6s steps(10) infinite;
}

@keyframes grainMove {
  0% { transform: translate(0,0); }
  25% { transform: translate(-1%,1%); }
  50% { transform: translate(1%,-1%); }
  75% { transform: translate(-1%,-1%); }
  100% { transform: translate(0,0); }
}

/* MOBILE FIX */
@media (max-width: 768px) {
  body::before {
    transform: scale(1.02);
  }
}

/* ===== HEADER ===== */
.site-header {
  padding: 10px 20px 6px; /* góra | boki | dół */
}

.header-inner {
  display: flex;
  align-items: center;
}

/*.site-logo {
  max-width: 180px;
}*/
.site-logo {
  max-height: 90px;
  height: auto;
  flex-shrink: 0;
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
  will-change: opacity, transform;
}

.site-logo.is-changing {
  opacity: 0;
  transform: scale(0.92);
}
.header-extra {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;

  text-align: center;
  font-size: 14px;
  opacity: 0.85;
}

@media (max-width: 768px) {
  .header-inner {
    justify-content: center;
  }

  .header-extra {
    display: none;
  }
}


/* ===== LAYOUT ===== */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
}

/* ===== PLAYER ===== */
#player,
#player iframe {
  width: 100%;
  height: 100%;
  position: absolute;
}

.player-wrapper {
  position: relative;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
}

.player-wrapper:fullscreen,
.player-wrapper:-webkit-full-screen {
  width: 100vw;
  height: 100vh;
  max-width: none;
  margin: 0;
}

.player-wrapper:fullscreen .video-container,
.player-wrapper:-webkit-full-screen .video-container {
  width: 100%;
  height: 100%;
}

.player-wrapper:fullscreen #player,
.player-wrapper:-webkit-full-screen #player {
  width: 100%;
  height: 100%;
}

.player-wrapper:fullscreen #pauseOverlay {
  z-index: 50;
}

.player-wrapper:fullscreen .overlay-controls,
.player-wrapper:fullscreen .player-overlay-logo,
.player-wrapper:fullscreen .video-title {
  z-index: 55;
}



/* =======================
   CHANNEL SWITCH FLASH
======================= 

#videoMask {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-color: black;
  opacity: 0;
  z-index: 25;
  pointer-events: none;
}

#channelFlash {
  position: absolute;
  top:0; left:0; width:100%; height:100%;
  pointer-events: none;
  opacity:0;
  z-index:30;
}

#channelFlash.active {
  opacity:1;
  transition: opacity 1.2s ease;
  background-color: rgba(0,0,0,1);
}


.channel-flash {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.35);
  opacity: 0;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: screen;
}

.channel-flash.active {
  animation: channelFlash 180ms ease-out;
}

@keyframes channelFlash {
  0%   { opacity: 0; }
  30%  { opacity: 1; }
  100% { opacity: 0; }
}


.video-mask {
  background: radial-gradient(
    circle at center,
    rgba(0,0,0,0.95),
    rgba(0,0,0,1)
  );
  opacity: 0;
}






.video-mask.active {
  opacity: 1;
}

*/



#videoContainer:fullscreen {
  width: 100vw;
  height: 100vh;
  background: black;
}



.video-container {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
}

.player-wrapper:fullscreen .video-container,
.player-wrapper:-webkit-full-screen .video-container {
  padding-top: 0;
  height: 100%;
  border-radius: 0;
}


/* iframe */
#player {
  position: absolute;
  inset: 0;
}

/* overlay na górnej części iframe */
.video-container iframe {
  pointer-events: none;
}

/* ===== LOGO OVERLAY ===== */
.player-overlay-logo {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 65px;
  height: 65px;
  z-index: 30;
  pointer-events: none;
  object-fit: contain;
  opacity: 0.85;
}

/* ===== LOGO RESPONSIVE ===== */
@media (max-width: 600px) {
  .player-overlay-logo {
    width: 38px;
    height: 38px;
  }

  .overlay-controls {
    flex-wrap: wrap;
    bottom: 14px;
  }
}

/* ===== OVERLAY CONTROLS ===== */
.overlay-controls {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);

  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;              /* ⬅️ kluczowe */
  align-items: center;
  justify-content: center;
  gap: 8px;

  max-width: calc(100vw - 16px);  /* ⬅️ mieści się na mobile */
  overflow: hidden;               /* ⬅️ nic nie wypływa */

  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  padding: 8px 10px;
  border-radius: 12px;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 25;
}

.overlay-controls.visible {
  opacity: 1;
  pointer-events: auto;
}

/* ===== BUTTONS ===== */
.overlay-controls button {
  flex: 0 0 auto;                 /* ⬅️ nie rozciągaj */
  background: #2a2e39;
  border: none;
  border-radius: 8px;
  padding: 6px;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;
}

.overlay-controls button:hover {
  background: #3a3f4d;
}

/* ===== ICONS ===== */
.ctrl-btn img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.ctrl-btn:hover img {
  transform: scale(1.1);
  opacity: 0.85;
}

.ctrl-btn:active img {
  transform: scale(0.95);
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  .overlay-controls {
    gap: 6px;
    padding: 6px 8px;
  }

  .ctrl-btn img {
    width: 16px;
    height: 16px;
  }
}

/* ===== TITLE ===== */
.video-title {
  position: absolute;
  top: 12px;
  left: 12px;
  margin-right: 12px;
  transform: none;
  width: calc(100% - 95px);
  height: 50px;
  padding: 10px 14px;
  border-radius: 10px;
  display: flex;
  align-items: center;


  background: linear-gradient(
    90deg,
    rgba(60, 60, 60, 0.95) 0%,
    rgba(50, 50, 50, 0.65) 50%,
    rgba(60, 60, 60, 0.95) 100%
  );
  backdrop-filter: blur(6px);

font-family: 'Oswald', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
font-weight: 500;
letter-spacing: 0.06em;
text-transform: uppercase;
font-size: 1.45rem;
line-height: 1;
  color: #fff;
  text-align: left;

  z-index: 25;
  pointer-events: auto;

  opacity: 0;
  transition: opacity 0.5s ease;

  overflow: hidden;
  white-space: nowrap;
  border: 2px solid rgba(255, 255, 255, 0.35);
}

.video-title span {
  display: inline-block;
  padding-left: 100%;
  animation: marquee 10s linear infinite;
}

@keyframes marquee {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-100%); }
}

@media (max-width: 600px) {
  .video-title {
    width: calc(100% - 65px);
    font-size: 0.9rem;
    line-height: 0.8;
    height: 30px;
  }
}

#videoTitle {
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}

#videoTitle.visible {
  opacity: 0.85;
  transform: translateY(0);
}



/* overlay unmute wewnątrz playera */
.unmute-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(to bottom, rgba(60,60,60,0.9), rgba(50,50,50,0.7));
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 22px;
  font-weight: 500;
  padding: 12px 20px;
  border: 2px solid #fff;
  border-radius: 6px;
  opacity: 0;
  pointer-events: auto;
  z-index: 10;
  text-align: center;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.unmute-overlay.visible {
  opacity: 1;
  transform: translate(-50%, -50%) translateY(0px);
}

@media (max-width: 768px) {
  .unmute-overlay {
    font-size: 14px;
    padding: 8px 12px;
    max-width: 90%;
    line-height: 1.0;
  }
}

/* ======================= */
/* PAUSE OVERLAY – HTML SAFE */
/* ======================= */

#pauseOverlay {
  position: absolute;
  inset: 0; /* top:0 left:0 right:0 bottom:0 */
  width: 100%;
  height: 100%;

  /*background: rgba(0, 0, 0, 0.65);*/
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);

  display: flex;
  justify-content: center;
  align-items: center;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;

  z-index: 5; /* pod logo, title bar i controls */
}

#pauseOverlay.visible {
  opacity: 1;
  pointer-events: auto;
}

/* ======================= */
/* CONTENT – PEŁNA OBSŁUGA HTML */
/* ======================= */

#pauseOverlay .pauseContent {
  max-width: 90%;
  max-height: 90%;
  padding: 24px 28px;

  color: #ffffff;
  font-size: 1.5rem;
  text-align: center;

  /* 🔑 KLUCZOWE DLA <br> I HTML */
  white-space: normal;
  line-height: 1.5;
  word-break: break-word;

  overflow-y: auto;
}

/* ======================= */
/* TYPOGRAFIA */
/* ======================= */

#pauseOverlay .pauseContent p {
  margin: 0 0 1em;
}

#pauseOverlay .pauseContent br {
  display: block;
  content: "";
  margin: 0.6em 0;
}

#pauseOverlay .pauseContent strong {
  font-weight: 700;
}

#pauseOverlay .pauseContent em {
  font-style: italic;
}

/* ======================= */
/* LINKI */
/* ======================= */

#pauseOverlay .pauseContent a {
  color: #ffd36a;
  text-decoration: underline;
  cursor: pointer;
}

#pauseOverlay .pauseContent a:hover {
  color: #ffffff;
  text-decoration: none;
}

/* ======================= */
/* LISTY (opcjonalnie) */
/* ======================= */

#pauseOverlay .pauseContent ul,
#pauseOverlay .pauseContent ol {
  text-align: left;
  margin: 1em auto;
  padding-left: 1.4em;
}

#pauseOverlay .pauseContent li {
  margin-bottom: 0.5em;
}

/* ======================= */
/* MOBILE */
/* ======================= */

@media (max-width: 768px) {
  #pauseOverlay .pauseContent {
    font-size: 1.1rem;
    padding: 20px;
  }
}

/* ===== LOGO KANAŁU ===== */
#pauseLogo {
  max-width: 220px;
  max-height: 120px;
  width: auto;
  height: auto;

  margin-bottom: 20px;

  object-fit: contain;
  opacity: 0.95;

  filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.6));
}

/* ===== OPIS KANAŁU ===== */
#pauseDescription {
  max-width: 720px;

  font-size: 1rem;
  line-height: 1.6;
  opacity: 0.9;

  color: #eaeaea;
}

/* Linki w opisie */
#pauseDescription a {
  color: #ffcc00;
  text-decoration: underline;
}

#pauseDescription a:hover {
  opacity: 0.85;
}

/* ======================= */
/* MOBILE TUNING */
/* ======================= */
@media (max-width: 768px) {
  #pauseLogo {
    max-width: 160px;
    max-height: 90px;
    margin-bottom: 16px;
  }

  #pauseDescription {
    font-size: 0.95rem;
    line-height: 1.5;
    padding: 0 10px;
  }
}

/* przyciski */

.playlist-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center; /* wyśrodkowanie przycisków */
  margin: 15px 0;
}

.playlist-btn {
  width: 60px;
  height: 60px;
  padding: 0;
  border: none;
  background: #333;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.playlist-btn img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
}

.playlist-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

/* RESPONSIVE: mobile / tablet */
@media (max-width: 768px) {
  .playlist-btn {
    width: 50px;
    height: 50px;
  }
}

@media (max-width: 480px) {
  .playlist-switcher {
    gap: 8px;
    justify-content: center;
  }

  .playlist-btn {
    width: 70px;  /* większe dla łatwego tapnięcia na mobile */
    height: 70px;
  }
}

/* ======================= */
/* CHANNEL AMBIENT OVERLAY */
/* ======================= */

/* ===== AMBIENT TŁA ===== */
#channelAmbient {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--ambient-bg);
  filter: saturate(1.5) contrast(1.1);
  transition: background 0.6s ease, filter 0.6s ease;
  backdrop-filter: blur(5px);
}

/* ===== CAŁA APLIKACJA ===== */
#app {
  inset: 0;
  z-index: 5;

  width: 100%;
  min-height: calc(var(--vh) * 100); /* zamiast height */
  max-width: 960px;
  margin: 0 auto;

}


/* =======================
   COOKIES INFO
======================= */

.cookies-banner {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);

  display: flex;
  align-items: center;
  gap: 14px;

  padding: 10px 16px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);

  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 12px;

  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 14px;
  color: #fff;

  z-index: 100;
  opacity: 1;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.cookies-banner.hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(10px);
}

/* przycisk OK */
.cookies-btn {
  background: #2a2e39;
  border: none;
  border-radius: 8px;
  padding: 6px 12px;

  font-size: 13px;
  font-weight: 600;
  color: #fff;

  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}

.cookies-btn:hover {
  background: #3a3f4d;
}

.cookies-btn:active {
  transform: scale(0.96);
}

/* MOBILE */
@media (max-width: 600px) {
  .cookies-banner {
    width: calc(100% - 24px);
    justify-content: space-between;
    font-size: 13px;
  }
}




#skipIntroBar {
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 50;

  padding: 12px 18px;
  border-radius: 8px;

  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;

  color: #fff;
  cursor: pointer;
  user-select: none;

  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);

  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    background 0.2s ease;
}

/* widoczne */
#skipIntroBar.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* hover */
#skipIntroBar:hover {
  filter: brightness(1.1);
}

/* mobile */
@media (max-width: 768px) {
  #skipIntroBar {
    right: 16px;
    bottom: 16px;
    font-size: 13px;
    padding: 10px 14px;
  }
}



.site-footer {
  width: 100%;
  background-color: #000;
  color: #aaa;
  font-size: 12px;
  text-align: center;
  padding: 10px 0;
}


.site-footer .footer-content {
  opacity: 0.8;
}



/* =========================================
   UNMUTE OVERLAY – MOBILE SIZE FIX
========================================= */
@media (max-width: 768px) {

  .unmute-overlay {
    font-size: 0.9rem;
    padding: 14px 18px;
    max-width: 80%;
    border-radius: 14px;
  }

  .unmute-icon {
    width: 42px;
    height: auto;
    margin-bottom: 8px;
  }
}

@media (max-width: 768px) and (orientation: landscape) {

  .unmute-overlay {
    font-size: 0.8rem;
    padding: 10px 14px;
    max-width: 60%;
  }

  .unmute-icon {
    width: 34px;
  }
}


/* =========================================
   MOBILE FULLSCREEN LANDSCAPE – FIX 16:9
========================================= */
@media (max-width: 768px) and (orientation: landscape) {

  .player-wrapper:fullscreen,
  .player-wrapper:-webkit-full-screen {
    display: flex;
    justify-content: center;
    align-items: center;
    background: black;
  }

.player-wrapper:fullscreen .video-container,
.player-wrapper:-webkit-full-screen .video-container {
  width: 100%;
  height: 100%;
  padding-top: 0;
}

.player-wrapper:fullscreen {
  outline: 3px solid red;
}


  .player-wrapper:fullscreen #player,
  .player-wrapper:-webkit-full-screen #player {
    width: 100%;
    height: 100%;
  }
  
  .fullscreen {
  padding-bottom: env(safe-area-inset-bottom);
}
}


/* =======================
   CONTENT TYPOGRAPHY
======================= */

/* kontener opcjonalny */
.content {
  color: #ffffff;
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto;
  line-height: 1.6;
}

/* ===== TEKST ===== */
.content-text {
  margin-bottom: 1em;
  font-size: 1rem;
  opacity: 0.95;
}

/* mniejszy tekst (opcjonalnie) */
.content-text.small {
  font-size: 0.9rem;
  opacity: 0.85;
}

/* ===== NAGŁÓWEK H2 ===== */
.content-h2 {
  font-family: 'Oswald', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;

  margin: 1.4em 0 0.6em;
  color: #ffffff;
}

/* ===== LISTA ===== */
.content-list {
  margin: 0.5em 0 1.2em;
  padding-left: 1.4em;
  list-style-type: disc;
}

/* element listy */
.content-list li {
  margin-bottom: 0.5em;
  font-size: 1rem;
  opacity: 0.95;
}

/* ===== LINKI W TREŚCI ===== */
.content a {
  color: #ffffff;
  text-decoration: underline;
  opacity: 0.9;
}

.content a:hover {
  opacity: 1;
  text-decoration: none;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {

  .content-h2 {
    font-size: 1.3rem;
  }

  .content-text,
  .content-list li {
    font-size: 0.95rem;
  }
}


/* =========================================
   PROMO CTA – identyczny styl jak SKIP INTRO
========================================= */

.promo-cta {
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 50;

  padding: 12px 18px;
  border-radius: 8px;

  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;

  color: #fff;
  cursor: pointer;
  user-select: none;

  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);

  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    background 0.2s ease;
}

.promo-cta.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.promo-cta.hidden {
  display: none;
}


/* hover identyczny jak skip intro */
.promo-cta a:hover {
  filter: brightness(1.1);
}

/* click feel */
.promo-cta a:active {
  transform: scale(0.96);
}


/* MOBILE */
@media (max-width: 768px) {

  .promo-cta {
    right: 16px;
    bottom: 70px;
  }

  .promo-cta a {
    font-size: 13px;
    padding: 10px 14px;
  }

}

}
