
:root {
    --gradient-left: #3354d8;
    --gradient-right: #18afef;
    --text-color: #ffffff;
    --icon-bg: #ffffff;
}

.mobile-bottom-bar {
    position: fixed;
    bottom: -54px;
    left: 0;
    right: 0;
    background: linear-gradient(to right, var(--gradient-left), var(--gradient-right));
    border-top: 1px solid rgba(0,0,0,0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 52px;
    z-index: 9999;
    padding: 0 9px;
    transition: bottom 0.4s ease-out;
    overflow: visible;
}

.mobile-bottom-bar.visible-bar {
    bottom: 0;
}

.mobile-bottom-bar.bounce-bar {
    animation: bounceBar 0.5s ease-out;
}

@keyframes bounceBar {
    0% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0); }
}

.logo-center {
    position: absolute;
    left: 50%;
    top: -14px;
    transform: translateX(-50%);
    background: #fff;
    border-radius: 50%;
    border: none;
    padding: 3px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    overflow: hidden;
}

.logo-center img {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease-in-out, transform 0.3s ease-in-out;
}

.logo-center img.zoom-logo {
    opacity: 1;
    transform: scale(1.05);
}

.logo-center img.zoom-logo:hover {
    transform: scale(1.05);
}

.logo-center .ripple {
    position: absolute;
    background: rgba(0, 123, 255, 0.4);
    border-radius: 50%;
    transform: scale(0);
    width: 100px;
    height: 100px;
    opacity: 0;
    pointer-events: none;
}

.logo-center .ripple.active {
    animation: rippleEffect 0.6s ease-out;
}

@keyframes rippleEffect {
    0% {
        transform: scale(0);
        opacity: 0.6;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

.left-section {
    margin-left: 2px; /* cofnięcie sekcji w lewo */
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 1;
}

.right-section {
    margin-right: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-icon,
.tiktok-icon {
    background: var(--icon-bg);
    border-radius: 50%;
    padding: 4px;
    border: 1px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon i,
.tiktok-icon i {
    color: var(--gradient-left);
    font-size: 16px;
}

.alert-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.alert-dot {
    position: relative;
    width: 15px;
    height: 15px;
    background: #FFD700;
    border-radius: 50%;
}

.alert-dot::before, .alert-dot::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 26px;
    height: 26px;
    border: 2px solid #FFD700;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    animation: pulseWave 2s infinite;
}

.alert-dot::after {
    animation-delay: 1s;
}

.alert-texts {
    width: 120px; /* zawężony obszar */
    font-weight: bold;
    font-size: 12px; /* mniejszy font */
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.slider-mask {
    height: 20px;
    overflow: hidden;
    width: 100%;
    position: relative;
    top: 5px;
}

.text-wrapper {
    display: flex;
    flex-direction: column;
}

.text-wrapper div {
    height: 20px;
    line-height: 20px;
    text-align: left;
}

.more-text-row {
    position: relative;
    top: 0px;
}

.more-text {
    font-size: 11px;
    color: #ffffff;
    opacity: 0.9;
}

.weather-widget {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--text-color);
    font-weight: bold;
    font-size: 14px;
    opacity: 0.95;
}

.weather-widget img {
    width: 24px;
    height: 24px;
}

@keyframes pulseWave {
    0% { transform: translate(-50%, -50%) scale(0.3); opacity: 0.8; }
    100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
}

.slider-title {
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 110px; /* dostosowana szerokość przed logiem */
}

.slider-title {
    color: #ffffff !important;
    font-weight: bold !important;
}

.slider-title { font-size: calc(1em + 3px) !important; }


/* Przesunięcie sekcji ikona + slider w lewo */
.left-section {
    margin-left: -5px !important;
}

/* Zwiększenie max-width slidera */
.slider-title {
    max-width: 115px !important;
}


/* Przesunięcie slidera bliżej logo i zwiększenie max-width */
.left-section {
    margin-left: -8px !important;
}

.slider-title {
    max-width: 125px !important;
}


/* Przesunięcie slidera w lewo z marginesem */
.left-section {
    margin-left: 5px !important;
}

/* Zwiększenie max-width slidera po usunięciu dużej ikony */
.slider-title {
    max-width: 165px !important;
}


/* Więcej miejsca na slider */
.slider-title {
    max-width: 190px !important;
}

/* Mała żółta ikona fali przy "Więcej" */
.alert-dot-small {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: yellow;
    border-radius: 50%;
    margin-right: 4px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.6; }
    100% { transform: scale(1); opacity: 1; }
}


/* Slider - wymuszenie szerszej przestrzeni */
.slider-title {
    flex: 0 0 auto !important;
    width: 210px !important;
    max-width: 210px !important;
    overflow: hidden;
    white-space: nowrap;
}

/* Mini ikona fali przy "Więcej" */
.alert-wave-small {
    display: inline-block;
    width: 12px;
    height: 12px;
    background: url('wave-icon-small-yellow.png') no-repeat center center;
    background-size: contain;
    margin-right: 4px;
}


/* Usunięcie zbędnego paddingu przy logo */
.left-section {
    margin-left: 5px !important;
    padding-right: 0 !important;
}

/* Poszerzenie slidera do maksimum */
.slider-title {
    flex: 0 0 auto !important;
    width: 210px !important;
    max-width: 210px !important;
    overflow: hidden;
    white-space: nowrap;
}

/* Mała ikona fali w CSS (żółta) */
.alert-wave-small {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 4px;
    border-radius: 50%;
    background: radial-gradient(circle, yellow 40%, transparent 70%);
    box-shadow: 0 0 5px yellow;
    animation: wave-pulse 1.5s infinite;
    vertical-align: middle;
}

@keyframes wave-pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.6; }
    100% { transform: scale(1); opacity: 1; }
}

/* Wyrównanie "Więcej" */
.more-text {
    display: inline-flex;
    align-items: center;
}

/* v12.62 - final slider fix */
/* 1) Remove fixed widths */
.alert-texts,
.slider-mask {
  padding-right: 0 !important;
  width: auto !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  overflow: visible !important;
}

/* 2) Slider mask full width minus buffer */
.slider-mask {
  width: calc(100% - 30px) !important;
  overflow: hidden !important;
}

/* 3) Slider title ellipsis */
.text-wrapper,
.slider-title {
  display: block !important;
  width: 100% !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* 4) Buffer before logo for ellipsis */
.alert-texts {
  padding-right: 30px !important;
}

/* 5) Lower "Więcej" by 2px */
.more-text {
  margin-top: 8px !important;
}

/* 6) Slim wave animation */
.alert-wave-small {
  position: relative;
  width: 8px;
  height: 8px;
  background: yellow;
  border-radius: 50%;
  margin-right: 4px;
  vertical-align: middle;
}
.alert-wave-small::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 8px; height: 8px;
  border: 1px solid yellow;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.3);
  animation: wave-slim 1.3s ease-out infinite;
}
@keyframes wave-slim {
  0% { transform: translate(-50%,-50%) scale(0.3); opacity:0.8;}
  80% { transform: translate(-50%,-50%) scale(1.3); opacity:0;}
  100%{ transform: translate(-50%,-50%) scale(1.3); opacity:0;}
}

/* v12.63 - raise "Więcej" by 2px and restore wave propagation animation */
/* 1) Move "Więcej" up by reducing margin-top */
.more-text {
  margin-top: 6px !important;
}

/* 2) Slim wave propagation for alert icon */
.alert-wave-small {
  position: relative !important;
  width: 8px !important;
  height: 8px !important;
  background: yellow !important;
  border-radius: 50% !important;
  margin-right: 4px !important;
  vertical-align: middle !important;
}
.alert-wave-small::before,
.alert-wave-small::after {
  content: "" !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  width: 8px !important;
  height: 8px !important;
  border: 2px solid yellow !important;
  border-radius: 50% !important;
  transform: translate(-50%, -50%) scale(0) !important;
  opacity: 0 !important;
  animation: wave-propagate 1.2s ease-out infinite !important;
}
.alert-wave-small::after {
  animation-delay: 0.6s !important;
}
@keyframes wave-propagate {
  0% { transform: translate(-50%, -50%) scale(0.3); opacity:0.8; }
  100% { transform: translate(-50%, -50%) scale(1.5); opacity:0; }
}

/* Updated: buffer before logo and mask width */
.alert-texts {
    padding-right: 30px !important;
}
.slider-mask {
    width: calc(100% - 30px) !important;
    overflow: hidden !important;
}
.logo-center {
    z-index: 10 !important;
}


/* v12.63-reels-border — rotating edge around reels icon and text label */
.reels-label{
  margin-right: 6px;
  font-weight: 600;
  text-transform: lowercase;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}

/* Make the reels icon circle container explicit (non-intrusive sizes) */
.tiktok-icon{
  position: relative;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

/* Subtle static inner border (optional, very faint) */
.tiktok-icon{
  box-shadow: 0 0 0 1px rgba(255,255,255,0.15) inset;
}

/* Rotating highlight along the edge */
.tiktok-icon::after{
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: rgba(255,255,255,0.9);
  border-right-color: rgba(255,255,255,0.4);
  border-left-color: rgba(255,255,255,0.15);
  animation: reelsEdgeSpin 3.2s linear infinite;
  pointer-events: none;
}

/* Icon size inside */
.tiktok-icon i.fas.fa-film{
  font-size: 14px;
  line-height: 1;
}

/* Spin keyframes */
@keyframes reelsEdgeSpin{
  from{ transform: rotate(0deg); }
  to{   transform: rotate(360deg); }
}


/* v12.63-reels-border-fixed */
/* Reels label on the RIGHT of the icon */
.reels-label{
  margin-left: 6px !important;
  margin-right: 0 !important;
  color: #ffffff !important;
  font-size: calc(1em + 1px) !important; /* +1px względem bieżącej wielkości fontu */
  font-weight: 600;
  text-transform: lowercase;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}

/* Subtler rotating edge in grey */
.tiktok-icon{
  position: relative;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.tiktok-icon::after{
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 1px solid transparent;              /* cieńsza krawędź */
  border-top-color: rgba(187,187,187,0.8);    /* #bbb */
  border-right-color: rgba(187,187,187,0.35);
  border-left-color: rgba(187,187,187,0.2);
  animation: reelsEdgeSpinSoft 4.5s linear infinite; /* wolniej i subtelniej */
  pointer-events: none;
}

.tiktok-icon i.fas.fa-film{
  font-size: 14px;
  line-height: 1;
}

@keyframes reelsEdgeSpinSoft{
  from{ transform: rotate(0deg); }
  to{   transform: rotate(360deg); }
}


/* v12.63-reels-border-fixed2 */
/* Keep icon in place; label to the RIGHT */
.tiktok-icon{
  position: relative !important;
  width: 28px !important;
  height: 28px !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  vertical-align: middle !important;
}
.reels-label{
  margin-left: 6px !important;
  color: #ffffff !important;
  font-size: calc(1em + 1px) !important;
  font-weight: 600 !important;
  text-transform: lowercase !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
}

/* More visible rotating gray edge */
.tiktok-icon::after{
  content: "" !important;
  position: absolute !important;
  inset: -2px !important;
  border-radius: 50% !important;
  border: 2px solid transparent !important;
  border-top-color: rgba(154,160,166,0.95) !important;  /* darker gray */
  border-right-color: rgba(154,160,166,0.55) !important;
  border-left-color: rgba(154,160,166,0.35) !important;
  animation: reelsEdgeSpinSoft 3.8s linear infinite !important;
  pointer-events: none !important;
  box-shadow: 0 0 4px rgba(154,160,166,0.35) !important;
}

.tiktok-icon i.fas.fa-film{
  font-size: 14px !important;
  line-height: 1 !important;
}

@keyframes reelsEdgeSpinSoft{
  from{ transform: rotate(0deg); }
  to{   transform: rotate(360deg); }
}


/* v12.63-reels-border-fixed3 */
.right-section .tiktok-icon{
  position: relative !important;
  width: 28px !important;
  height: 28px !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;              /* do not push icon right */
  vertical-align: middle !important;
}
.right-section .reels-label{
  display: inline-block !important;
  margin-left: 8px !important;      /* label to the RIGHT */
  color: #ffffff !important;        /* white text */
  font-size: calc(1em + 1px) !important; /* +1px */
  font-weight: 600 !important;
  text-transform: lowercase !important;
  line-height: 1 !important;
}

/* More visible rotating gray edge around icon */
.right-section .tiktok-icon::after{
  content: "" !important;
  position: absolute !important;
  inset: -2px !important;
  border-radius: 50% !important;
  border: 2px solid transparent !important;
  border-top-color: #bfc5cf !important;                 /* light gray */
  border-right-color: rgba(154,160,166,0.75) !important;/* darker segment */
  border-left-color: rgba(154,160,166,0.45) !important;
  animation: reelsEdgeSpinStronger 3s linear infinite !important;
  pointer-events: none !important;
  box-shadow: 0 0 6px rgba(154,160,166,0.45) !important; /* subtle glow */
}

@keyframes reelsEdgeSpinStronger{
  from{ transform: rotate(0deg); }
  to{   transform: rotate(360deg); }
}


/* v12.63-reels-filmstripe2 */
/* 1) Remove previous rotating edge animation */
.right-section .tiktok-icon::after{
  content: none !important;
  animation: none !important;
  border: none !important;
  box-shadow: none !important;
}

/* 2) Add inner film stripe moving across the icon (subtle) */
.right-section .tiktok-icon{
  position: relative !important;
  width: 28px !important;
  height: 28px !important;
  border-radius: 50% !important;
  overflow: hidden !important; /* clip stripe inside the circle */
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-left: 10px !important; /* shift icon slightly right */
  margin-right: 0 !important;
}

.right-section .tiktok-icon::before{
  content: "" !important;
  position: absolute !important;
  top: -20% !important;
  left: -40% !important;
  width: 180% !important;
  height: 40% !important;
  background: linear-gradient( to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.45) 50%, rgba(255,255,255,0) 100% ) !important;
  transform: rotate(12deg) translateX(-120%) !important;
  animation: filmStripeSweep 3.5s ease-in-out infinite !important;
}

@keyframes filmStripeSweep{
  0%   { transform: rotate(12deg) translateX(-120%); opacity: 0; }
  20%  { opacity: .85; }
  50%  { transform: rotate(12deg) translateX(0%); opacity: .65; }
  80%  { opacity: .85; }
  100% { transform: rotate(12deg) translateX(120%); opacity: 0; }
}

/* 3) Bring label closer to the icon */
.right-section .reels-label{
  margin-left: 4px !important;
  color: #ffffff !important;
  font-size: calc(1em + 1px) !important;
  font-weight: 600 !important;
  text-transform: lowercase !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
}


/* v12.63 – filmstrip2-fixed */
/* 1) Turn off any previous rotating edge animation */
.right-section .tiktok-icon::after {
  content: none !important;
  animation: none !important;
  border: none !important;
  box-shadow: none !important;
}

/* 2) Make icon clip its inner effect */
.right-section .tiktok-icon {
  overflow: hidden !important;
  margin-right: 0 !important; /* default */
}

/* Move icon closer to the 'rolki' label */
.right-section .tiktok-icon { margin-right: 4px !important; }
.right-section .reels-label   { margin-left: 4px !important; color: #fff !important; font-size: calc(1em + 1px) !important; font-weight: 600 !important; text-transform: lowercase !important; line-height: 1 !important; display: inline-flex !important; align-items: center !important;}

/* 3) Add subtle inner filmstrip sweep */
.right-section .tiktok-icon::before {
  content: "" !important;
  position: absolute !important;
  top: -10%;
  bottom: -10%;
  left: -40%;
  width: 30%;
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.65) 50%, rgba(255,255,255,0) 100%);
  filter: blur(0.5px);
  animation: filmstripSweep 3.2s ease-in-out infinite;
  pointer-events: none;
}

@keyframes filmstripSweep {
  0%   { transform: translateX(0);    opacity: 0; }
  10%  { opacity: .9; }
  50%  { transform: translateX(220%); opacity: .7; }
  90%  { opacity: 0; }
  100% { transform: translateX(220%); opacity: 0; }
}


/* v12.63 – reels-filmstrip2-fixed2 */
/* tighten spacing in right-section */
.right-section{
  display:flex !important;
  align-items:center !important;
  gap: 4px !important;
}

/* icon container */
.right-section .tiktok-icon{
  position: relative !important;
  width: 28px !important;
  height: 28px !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;            /* for inner sweep */
  margin-right: 0 !important;             /* icon closer to label */
}

/* kill any previous edge animation */
.right-section .tiktok-icon::after{
  content: none !important;
  animation: none !important;
  border: none !important;
  box-shadow: none !important;
}

/* subtle filmstrip sweep inside the circle */
.right-section .tiktok-icon::before{
  content: "" !important;
  position: absolute !important;
  top: -12%;
  bottom: -12%;
  left: -45%;
  width: 32%;
  border-radius: 8px;
  background: linear-gradient(90deg,
      rgba(255,255,255,0) 0%,
      rgba(255,255,255,0.75) 50%,
      rgba(255,255,255,0) 100%);
  filter: blur(0.6px);
  animation: filmstripSweep 3.2s ease-in-out infinite;
  pointer-events: none;
}

/* sweep animation */
@keyframes filmstripSweep {
  0%   { transform: translateX(0);    opacity: 0; }
  12%  { opacity: .95; }
  50%  { transform: translateX(230%); opacity: .7; }
  88%  { opacity: 0; }
  100% { transform: translateX(230%); opacity: 0; }
}

/* label to the RIGHT, white, +1px */
.right-section .reels-label{
  display:inline-flex !important;
  align-items:center !important;
  margin-left: 4px !important;
  color:#fff !important;
  font-size: calc(1em + 1px) !important;
  font-weight:600 !important;
  text-transform: lowercase !important;
  line-height:1 !important;
}


/* v12.63 – explicit inner film layer (guaranteed visible) */
.right-section .tiktok-icon{
  position: relative !important;
  overflow: hidden !important;   /* clip inner layer to circle */
  border-radius: 50% !important;
}

.right-section .tiktok-icon::after{
  content: none !important;      /* kill any old edge animations */
  animation: none !important;
  border: none !important;
  box-shadow: none !important;
}

.right-section .tiktok-icon .reel-film-layer{
  position: absolute !important;
  inset: -25% !important; /* a bit larger than circle so sweep is continuous */
  z-index: 0 !important;
  pointer-events: none !important;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.18) 0px,
    rgba(255,255,255,0.18) 2px,
    rgba(255,255,255,0)   2px,
    rgba(255,255,255,0)   6px
  ) !important;
  animation: reelVerticalSweep 4s linear infinite !important;
  transform: translateY(100%) !important;
  will-change: transform;
}

.right-section .tiktok-icon i{
  position: relative !important;
  z-index: 1 !important; /* icon above film layer */
}

@keyframes reelVerticalSweep {
  0%   { transform: translateY(100%); }
  100% { transform: translateY(-100%); }
}


/* === Play icon with pulsing yellow triangle === */
.right-section .tiktok-icon .reels-link { 
  display: inline-flex; 
  align-items: center; 
  justify-content: center; 
  text-decoration: none; 
  line-height: 1; 
  cursor: pointer;
  color: #fff; /* stroke color via currentColor */
}

.right-section .tiktok-icon .reels-link:active { transform: translateY(1px); }

.play-icon { width: 26px; height: 26px; }
.play-circle { fill: none; stroke: currentColor; stroke-width: 2; opacity: 0.9; }
.play-triangle { fill: #ffd600; transform-origin: 50% 50%; animation: yellowPulse 1.15s ease-in-out infinite; }

@keyframes yellowPulse {
  0%   { transform: scale(1);   filter: drop-shadow(0 0 0 rgba(255,214,0,0.0)); }
  50%  { transform: scale(1.12); filter: drop-shadow(0 0 6px rgba(255,214,0,0.8)); }
  100% { transform: scale(1);   filter: drop-shadow(0 0 0 rgba(255,214,0,0.0)); }
}

/* Make the 'rolki' word clickable and styled like before */
.reels-label.reels-link { 
  text-decoration: none; 
  color: #fff; 
}
.reels-label.reels-link:hover { text-decoration: underline; }

/* Ensure the decorative film layer doesn't block clicks */
.right-section .tiktok-icon .reel-film-layer { pointer-events: none; }
