/*
Theme Name: RadioFTB
Theme URI: https://radioftb.pl
Author: Rafi
Author URI: https://radioftb.pl
Description: Profesjonalny motyw radiowy w kolorystyce pomarańczowo-granatowej. Kompatybilny z WPBakery.
Version: 1.0.0
Text Domain: radioftb
*/

:root {
    /* Colors inspired by "Real Gradient" photo */
    --color-primary: #FF5500; /* Intense Orange */
    --color-primary-hover: #FF7733;
    --color-secondary: #0A1929; /* Deep Navy */
    --color-dark: #050B14; /* Almost Black/Navy */
    --color-light: #F0F2F5;
    --color-text-main: #FFFFFF;
    --color-text-muted: #A0AAB5;
    
    /* Gradients */
    --gradient-bg: radial-gradient(circle at 70% 30%, #1a3a5a 0%, #050b14 60%);
    --gradient-accent: linear-gradient(135deg, #FF5500 0%, #FF8800 100%);
    
    /* Typography */
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Poppins', sans-serif;
    
    /* Spacing */
    --container-width: 1800px;
    --header-height: 80px;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-main);
    background-color: var(--color-dark);
    background-image: url('/wp-content/themes/radioftb/inc/img/hero-dj.jpg');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--color-text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-text-main);
    margin-top: 0;
    font-weight: 700;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-primary-hover);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Helper Classes */
.text-center { text-align: center; }
.text-primary { color: var(--color-primary); }
.text-uppercase { text-transform: uppercase; }
.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--color-primary);
    color: white;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 85, 0, 0.3);
}

.btn-small {
    padding: 6px 15px;
    font-size: 11px;
}

.btn:hover {
    background: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 85, 0, 0.4);
    color: white;
}

/* WPBakery Overrides if needed */
.vc_row {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Header / Nav (glass, sticky) */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 10px 0;
    backdrop-filter: blur(10px);
    background: linear-gradient(180deg, rgba(5,11,20,.95) 0%, rgba(5,11,20,.85) 100%);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 6px 24px rgba(0,0,0,.35);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}


/* Site Branding / Logo */
.site-header .site-branding {
    position: relative;
    z-index: 1002;
    /* Removed fixed left offset for better RWD */
    left: 0;
}

.site-title a {
    color: white;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 1px;
    font-size: 24px;
    text-decoration: none;
    display: block;
}

.site-logo {
    max-height: 100px;
    width: auto;
    transition: max-height 0.3s ease;
    margin-top: 30px;
}

/* Navigation Styles */
.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
    align-items: center;
}

.main-navigation a {
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
    color: var(--color-primary);
}

/* Desktop dropdown menus */
.main-navigation ul li {
    position: relative;
}

.main-navigation ul ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    flex-direction: column;
    gap: 0;
    background: #0a1929;
    padding: 10px 0;
    min-width: 200px;
    border-radius: 8px;
    box-shadow: 0 12px 24px rgba(0,0,0,0.55);
    z-index: 999;
}

.main-navigation li:hover > ul,
.main-navigation li:focus-within > ul {
    display: flex;
}

.main-navigation ul ul a {
    padding: 8px 18px;
    font-size: 13px;
    text-transform: none;
    white-space: nowrap;
}

/* Indicator for menu items with children */
.main-navigation li.menu-item-has-children > a::after {
    content: "\f107";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 11px;
    margin-left: 6px;
}

/* Hero */
.radioftb-hero {
    padding: 0;
    min-height: 100vh;
    min-height: 100svh;
    background-color: transparent;
    border-radius: 25px;
    margin-top: 20px;
}
.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(38px, 5vw, 64px);
    line-height: 1.1;
    font-weight: 800;
}
.hero-lead {
    font-size: clamp(16px, 1.4vw, 18px);
}

/* Chips */
.hero-chips .chip {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    color: #fff;
    border-radius: 12px;
    padding: 8px 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all .2s ease;
}
.hero-chips .chip:hover {
    border-color: rgba(255,106,0,.6);
    background: rgba(255,106,0,.12);
    box-shadow: 0 6px 18px rgba(255,106,0,.25);
}

/* Now Playing Card (right) */
.nowplaying-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 12px 32px rgba(0,0,0,.35);
}

/* Stations Row */
.stations-row {
    margin-top: 30px;
}
.station-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
    transition: transform .2s ease, box-shadow .2s ease;
}
.station-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(0,0,0,.35);
}
.station-title {
    font-weight: 800;
    letter-spacing: .5px;
    margin-bottom: 14px;
}

/* Responsive */
@media (max-width: 992px) {
    .radioftb-hero { padding: 0; }
}

/* Single Post Styling - glassmorphism (blur background) */
.single .container article {
    background: rgba(5, 11, 20, 0.35);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.45);
    margin-top: 10px;
}

@media (max-width: 768px) {
    .single .container article {
        padding: 20px;
    }
}

/* Radio Station Card (Shortcode) */
.radio-station-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 20px;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 19px;
    max-width: 350px; /* Limit width to act more like a tile */
    margin: 0 auto; /* Center in column if width < column width */
}

.radio-station-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
    border-color: rgba(255, 106, 0, 0.4);
}

/* Desktop: stała szerokość kafelków stacji na stronie głównej,
   żeby nie zwężały się po odświeżeniu danych przez JS */
@media (min-width: 769px) {
    .home .radio-station-card {
        flex: 0 0 300px;
        max-width: 300px;
        width: 300px;
        margin: 0;
    }
}

.station-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 5px;
    position: relative;
    z-index: 1;
}

.radio-station-card .station-title {
    font-size: 1.25rem;
    margin: 0;
    line-height: 1.2;
    color: #fff;
    flex-grow: 1;
}

.station-live-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 85, 0, 0.15);
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid rgba(255, 85, 0, 0.3);
}

.live-dot {
    width: 11px;
    height: 11px;
    background-color: var(--color-primary);
    border-radius: 50%;
    animation: blink 1.5s infinite;
}

.live-text {
    font-size: 13px;
    font-weight: 800;
    color: var(--color-primary);
    letter-spacing: 0.6px;
    animation: blink-text 1.5s infinite;
}

@keyframes blink {
    0% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 85, 0, 0.7); }
    50% { opacity: 0.5; transform: scale(0.9); box-shadow: 0 0 0 4px rgba(255, 85, 0, 0); }
    100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 85, 0, 0); }
}

@keyframes blink-text {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.station-card-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: rgba(0,0,0,0.2);
    padding: 12px;
    border-radius: 8px;
    position: relative;
    z-index: 1;
}

.info-row {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-size: 10px;
    text-transform: uppercase;
    color: var(--color-text-muted);
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.info-value {
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.station-actions {
    position: relative;
    z-index: 1;
    margin-top: auto;
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: center;
}

.station-actions .btn {
    flex-shrink: 0;
    margin: 0;
    padding: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Play Button - Prominent */
.station-play-btn {
    background: var(--color-primary);
    border: none;
    color: white;
    box-shadow: 0 4px 15px rgba(255, 85, 0, 0.4);
}

.station-play-btn i {
    font-size: 18px;
    margin-left: 3px; /* Visual center adjustment */
}

.station-play-btn:hover {
    transform: scale(1.15) !important; /* Force override generic .btn hover */
    background: var(--color-primary-hover);
    box-shadow: 0 0 20px rgba(255, 85, 0, 0.6);
    color: white;
}

/* Secondary Buttons (Greetings, Schedule) */
.greeting-btn,
.schedule-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.greeting-btn i,
.schedule-btn i {
    font-size: 18px;
    opacity: 0.9;
}

.greeting-btn:hover,
.schedule-btn:hover {
    background: #ffffff;
    color: var(--color-dark);
    border-color: #ffffff;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 5px 15px rgba(255,255,255,0.3);
}

/* Floating/Scrolling Text for Genre & Audition */
.station-audition,
.station-genre {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    box-sizing: border-box;
}

.station-audition span,
.station-genre span {
    display: inline-block;
    padding-left: 0;
    transition: transform 0.3s; /* Optional smooth start */
}

/* Class added by JS if content overflows */
.station-audition.is-scrolling span,
.station-genre.is-scrolling span {
    animation: marquee 25s linear infinite;
    padding-left: 100%; /* Start off-screen right */
}

@keyframes marquee {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-100%, 0); }
}

/* WPBakery Row Darkening Fix */
.vc_row.wpb_row.vc_row-fluid {
}

/* Wyśrodkowanie kolumny 2/12 w rzędzie VC */
.vc_row.wpb_row.vc_row-fluid > .wpb_column.vc_column_container.vc_col-sm-2 {
    float: none;      /* wyłączamy float z siatki bootstrap/VC */
    margin: 0 auto;  /* auto po bokach = wyśrodkowanie */
    display:table-cell;
}

/* Fake Equalizer BG */
.radio-equalizer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2px;
    padding: 0 5px;
    opacity: 0.5;
    pointer-events: none;
    overflow: hidden;
    border-radius: 16px;
}

.radio-equalizer .bar {
    flex-grow: 1;
    max-width: 10px;
    background: var(--color-primary);
    border-radius: 4px 4px 0 0;
    animation: equalizer-bounce 1s ease-in-out infinite alternate;
}

/* Randomize more bars */
.radio-equalizer .bar:nth-child(2n)   { animation-duration: 0.7s; }
.radio-equalizer .bar:nth-child(3n)   { animation-duration: 1.1s; }
.radio-equalizer .bar:nth-child(4n)   { animation-duration: 0.9s; }
.radio-equalizer .bar:nth-child(5n)   { animation-duration: 1.3s; }
.radio-equalizer .bar:nth-child(7n)   { animation-duration: 0.6s; }
.radio-equalizer .bar:nth-child(odd)  { height: 28%; }
.radio-equalizer .bar:nth-child(even) { height: 49%; }

/* Specific heights to avoid uniformity */
.radio-equalizer .bar:nth-child(1)  { height: 21%; }
.radio-equalizer .bar:nth-child(2)  { height: 56%; }
.radio-equalizer .bar:nth-child(3)  { height: 35%; }
.radio-equalizer .bar:nth-child(4)  { height: 63%; }
.radio-equalizer .bar:nth-child(5)  { height: 28%; }
.radio-equalizer .bar:nth-child(6)  { height: 42%; }
.radio-equalizer .bar:nth-child(7)  { height: 21%; }
.radio-equalizer .bar:nth-child(8)  { height: 49%; }
.radio-equalizer .bar:nth-child(9)  { height: 35%; }
.radio-equalizer .bar:nth-child(10) { height: 60%; }
.radio-equalizer .bar:nth-child(11) { height: 32%; }
.radio-equalizer .bar:nth-child(12) { height: 53%; }
.radio-equalizer .bar:nth-child(13) { height: 25%; }
.radio-equalizer .bar:nth-child(14) { height: 67%; }
.radio-equalizer .bar:nth-child(15) { height: 39%; }
.radio-equalizer .bar:nth-child(16) { height: 18%; }
.radio-equalizer .bar:nth-child(17) { height: 46%; }
.radio-equalizer .bar:nth-child(18) { height: 32%; }
.radio-equalizer .bar:nth-child(19) { height: 60%; }
.radio-equalizer .bar:nth-child(20) { height: 25%; }
.radio-equalizer .bar:nth-child(21) { height: 53%; }
.radio-equalizer .bar:nth-child(22) { height: 39%; }
.radio-equalizer .bar:nth-child(23) { height: 67%; }
.radio-equalizer .bar:nth-child(24) { height: 32%; }
.radio-equalizer .bar:nth-child(25) { height: 46%; }

@keyframes equalizer-bounce {
    0% { transform: scaleY(0.1); transform-origin: bottom; }
    100% { transform: scaleY(0.5); transform-origin: bottom; }
}

/* =========================================
   RESPONSIVE WEB DESIGN (RWD) IMPROVEMENTS
   ========================================= */

/* Default Desktop: Hide menu toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

/* Content Wrapper (default spacing) */
.content-wrapper {
    padding-top: 50px;
    padding-bottom: 50px;
}


/* Single/Page – ciaśniej pod headerem */
.single .content-wrapper,
.page .content-wrapper {
    padding-top: 20px;
}

/* Drugi content-wrapper (za station-tiles-wrapper) – bez odstępu od góry */
.single .container.content-wrapper + .container.content-wrapper,
.page  .container.content-wrapper + .container.content-wrapper {
    padding-top: 0;
}

/* MEDIA QUERIES */

/* Large Tablets & Small Laptops (max-width: 1200px) */
@media (max-width: 1200px) {
    .container {
        padding: 0 30px;
    }
}

/* Tablets & Mobile (max-width: 992px) */
@media (max-width: 992px) {
    
    /* Header Fixes */
    .menu-toggle {
        display: block; /* Show hamburger */
    }
    
    .site-header .header-container {
        position: relative;
        justify-content: space-between; /* Ensure logo left, burger right */
    }

    .site-title a {
        font-size: 20px; /* Smaller font for mobile */
    }

    .main-navigation {
        display: none; /* Hide default menu */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(10, 25, 41, 0.98); /* Less transparent on mobile */
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.5);
        border-top: 1px solid rgba(255,255,255,0.1);
        text-align: center;
        backdrop-filter: blur(15px);
    }

    .main-navigation.toggled {
        display: block; /* Show menu when toggled */
        animation: slideDown 0.3s ease forwards;
    }

    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .main-navigation ul {
        flex-direction: column; /* Stack items vertically */
        gap: 15px;
    }

    .main-navigation a {
        display: block;
        padding: 10px;
        font-size: 16px;
    }

    /* Mobile submenu behaviour */
    .main-navigation ul ul {
        position: static;
        background: rgba(0,0,0,0.3);
        box-shadow: none;
        padding: 5px 0 5px 15px;
        border-radius: 0;
        display: none;
    }

    .main-navigation ul ul a {
        padding: 6px 10px;
        font-size: 14px;
    }

    .main-navigation li.menu-item-has-children.submenu-open > ul {
        display: block;
    }

    /* WPBakery Column Fix - Stack vertically */
    .vc_row.wpb_row.vc_row-fluid {
        display: flex; 
        flex-direction: column;
    }
    
    .vc_row.wpb_row.vc_row-fluid > .wpb_column.vc_column_container.vc_col-sm-2 {
        display: block;
        width: 100%; /* Full width */
        margin-bottom: 20px;
    }

    /* Kafelki stacji - pełna szerokość na mobile */
    .single .station-tiles-grid .radio-station-card,
    .page .station-tiles-grid .radio-station-card {
        flex: 0 0 100%;
        max-width: 100%;
        width: 100%;
    }
}

/* Mobile Devices (max-width: 768px) */
@media (max-width: 768px) {
    
    /* Logo adjustments for mobile */
    .site-logo {
        max-height: 80px;
        margin-top: 15px;
    }
    
    /* Typography */
    .hero-title {
        font-size: 32px; /* Smaller title */
    }

    .hero-lead {
        font-size: 15px;
    }
    
    /* Buttons */
    .btn {
        padding: 10px 24px;
        font-size: 13px;
    }
    
    /* Layout Spacing */
    .content-wrapper {
        padding-top: 30px;
        padding-bottom: 30px;
    }
    
    .container {
        padding: 0 15px;
    }

    /* Footer */
    .footer-widgets {
        grid-template-columns: 1fr; /* 1 column */
        gap: 30px;
    }
    
    .site-info .container {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .footer-nav ul {
        justify-content: center;
        flex-wrap: wrap;
    }

    /* Cards & Elements */
    .radio-station-card {
        max-width: 100%; /* Full width on mobile */
        background: rgba(10, 25, 41, 0.5); /* Navy background with opacity on mobile */
    }

    /* Equalizer opacity fix */
    .radio-equalizer {
        opacity: 0.1;
    }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
    .site-title a {
        font-size: 20px;
    }
    
    .hero-chips .chip {
        width: 100%; /* Full width chips */
        justify-content: center;
        margin-bottom: 10px;
    }
}
.radioftb-news-section .container{
padding: 0 0px;
}

.ftb-front-app img{
    border-radius:25px !important;
}

/* === FTB Sticky Audio Player === */
.ftb-audio-player {
  position: fixed;
  bottom: 0;             /* jeszcze 5px niżej – praktycznie przy dolnej krawędzi */
  left: 50%;
  transform: translateX(-50%);
  width: 700px;          /* player szerszy o ~100px również w motywie WP */
  max-width: 95vw;
  border-radius: 50px;
  z-index: 9999;
  background: #0b1530; /* granatowy */
  color: #ffffff;
  padding: 16px 24px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
  font-family: Arial, sans-serif;
}

.ftb-player-inner {
  display: flex;
  align-items: center;
  gap: 15px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* Sections */
.ftb-player-left {
    display: none;
}

.ftb-player-center {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: flex-start;
    flex: 1;
    min-width: 0; /* pozwól środkowej sekcji (z tekstem) się zwężać przy bardzo długim tytule */
}

.ftb-player-right {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: flex-end;
    flex-shrink: 0;
}

/* Status Text Styles with Animation */
.ftb-status-wrapper {
  overflow: hidden; /* Mask sliding text */
  height: 24px; /* Fixed height for slide animation */
  display: flex;
  align-items: center;
  position: relative;
  min-width: 0; /* Allow shrinking to fit smaller player */
  max-width: 100%; /* Allow full width */
  flex: 1; /* Grow to fill available space */
}

.ftb-player-status {
  width: 100%; /* Ensure it fills the wrapper for marquee */
  font-size: 18px;
  font-weight: 600;
  padding-right: 20px; /* jeszcze większy obszar marquee do prawej, minimalny bufor */
  white-space: nowrap;
  text-align: center; /* Center normal text */
  overflow: hidden; /* nie pozwól tekstowi powiększać boxa przy marquee */
  
  /* Initial state: visible */
  transform: translateY(0);
  opacity: 1;
}

/* Slide Up Animation */
.slide-enter {
    animation: slideUpEnter 0.5s ease forwards;
}

.slide-exit {
    animation: slideUpExit 0.5s ease forwards;
}

@keyframes slideUpEnter {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideUpExit {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(-100%);
        opacity: 0;
    }
}

/* Marquee (Floating) Animation for long text */
.marquee-container {
    overflow: hidden;
    position: relative;
    width: calc(100% + 10px); /* obszar marquee rozszerzony o 10px w prawo */
    margin-right: -10px;      /* przesunięcie, żeby wyszedł 10px dalej w prawo */
}

.marquee-content {
    display: inline-block;
    padding-left: 0;
    white-space: nowrap;
    /* Will be animated via JS/CSS class */
}

.is-marquee {
    animation: marqueeScroll 7s linear infinite; /* Normalna prędkość */
    padding-left: 100%; /* Start from far right (outside container) */
}

@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}


.ftb-volume-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ftb-volume-controls i {
  font-size: 18px;
}

.ftb-btn {
  border: none;
  cursor: pointer;
  padding: 10px 14px;
  border-radius: 4px;
  background: var(--color-primary); /* pomarańczowy jak motyw */
  color: #ffffff;
  font-size: 16px;
  font-weight: bold;
  transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.2s ease;
}

.ftb-btn:hover {
  background: var(--color-primary-hover);
  box-shadow: 0 0 6px rgba(255, 85, 0, 0.7);
}

.ftb-btn:active {
  transform: scale(0.97);
  box-shadow: none;
}

.ftb-btn-play i {
  pointer-events: none;
}

/* Animacja statusu podczas odtwarzania */
.ftb-audio-player.ftb-playing .ftb-player-status {
  /* animation: ftb-status-glow 2.5s ease-in-out infinite; */ 
  /* Disable glow to avoid conflict with slide/marquee */
}

@keyframes ftb-status-glow {
  0% {
    text-shadow: 0 0 0 rgba(255, 152, 0, 0);
    color: #ffffff;
  }
  50% {
    text-shadow: 0 0 10px rgba(255, 152, 0, 0.9);
    color: #ffe0b2;
  }
  100% {
    text-shadow: 0 0 0 rgba(255, 152, 0, 0);
    color: #ffffff;
  }
}

/* Responsywność – na małych ekranach */
@media (max-width: 768px) {
  .ftb-audio-player {
    display: block !important; /* Force visible */
    width: 100%;
    bottom: 0 !important;
    left: 0 !important;
    transform: none !important; /* Reset translateX */
    padding: 12px 15px;
    border-radius: 20px 20px 0 0; /* Rounded top corners only */
    border-bottom: none;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.5); /* Shadow upwards */
    z-index: 2147483647 !important; /* Max z-index to be on top of everything */
  }

  .ftb-player-inner {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-bottom: 0;
  }
  
  .ftb-player-left {
      display: none; 
  }

  .ftb-player-center {
      width: 100%;
      justify-content: flex-start;
      gap: 15px;
  }
  
  .ftb-player-right {
      width: 100%;
      justify-content: space-between;
      border-top: 1px solid rgba(255,255,255,0.1);
      padding-top: 8px;
      margin-top: 5px;
  }
  
  .ftb-status-wrapper {
      flex: 1; 
      margin-left: 0;
  }
  
  .ftb-player-status {
      text-align: left;
      font-size: 14px;
  }

  /* Make volume slider bigger and easier to touch on mobile */
  #ftb-volume-slider {
      width: 100px;
      height: 10px; /* Taller track area */
      margin: 0 5px;
  }

  /* Increase touch target for slider thumb */
  #ftb-volume-slider::-webkit-slider-thumb {
      width: 24px;
      height: 24px;
      margin-top: -8px; /* Center vertically relative to track */
      box-shadow: 0 0 10px rgba(0,0,0,0.3); /* Add shadow for better visibility */
  }

  #ftb-volume-slider::-moz-range-thumb {
      width: 24px;
      height: 24px;
      box-shadow: 0 0 10px rgba(0,0,0,0.3);
  }

  /* Marquee fix for mobile: start from far right */
  .is-marquee {
      padding-left: 100%; /* Start tekst tak, żeby wjeżdżał z prawej strony */
      animation-duration: 5s; /* Normalna prędkość */
  }
}

@media (max-width: 480px) {
  .ftb-player-status {
    font-size: 14px;
  }
  .ftb-btn {
    padding: 8px 10px;
  }
}

/* === Schedule Modal (Tabs) === */
.ftb-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.ftb-modal-container {
    background: var(--color-secondary);
    width: 90%;
    max-width: 1100px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    max-height: 85vh;
}

.ftb-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: var(--color-text-muted);
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    z-index: 10;
    transition: color 0.2s;
}

.ftb-modal-close:hover {
    color: var(--color-primary);
}

.ftb-modal-header {
    padding: 20px 25px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.ftb-modal-header h3 {
    margin: 0;
    color: white;
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ftb-tabs {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.ftb-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    background: rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.ftb-tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--color-text-muted);
    padding: 15px 10px;
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
}

.ftb-tab-btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

.ftb-tab-btn.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
    background: rgba(255, 85, 0, 0.05);
}

.ftb-tab-content {
    flex: 1;
    background: #ffffff; /* White bg for iframe content generally looks better */
    position: relative;
    overflow-y: auto;
    min-height: 400px;
}

.ftb-iframe-wrapper {
    width: 100%;
    height: 100%;
    min-height: 400px;
}

.ftb-iframe-wrapper iframe {
    width: 100%;
    height: 100%;
    min-height: 400px;
    border: none;
    display: block;
}

.ftb-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #333;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

/* Dark mode content adjustment if iframe supports transparent bg */
/* But usually schedule iframes are designed for light bg */

@media (max-width: 768px) {
    .ftb-tabs-nav {
        flex-direction: column;
        overflow-x: hidden;
        flex-wrap: nowrap;
        height: auto;
        max-height: 250px; /* Ograniczenie wysokości listy dni, żeby zostawić miejsce na treść */
        overflow-y: auto;
    }
    .ftb-tab-btn {
        flex: 1 1 auto;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        padding: 12px 10px;
    }

    /* Custom Scrollbar for Tabs Nav on Mobile */
    .ftb-tabs-nav::-webkit-scrollbar {
        width: 6px;
    }
    .ftb-tabs-nav::-webkit-scrollbar-track {
        background: rgba(0,0,0,0.1);
    }
    .ftb-tabs-nav::-webkit-scrollbar-thumb {
        background: var(--color-primary);
        border-radius: 3px;
    }

    /* Auto width for schedule frame on mobile */
    #schedule-content-frame {
        width: 100% !important;
        overflow-x: auto;
    }
}

/* Custom Volume Slider */
#ftb-volume-slider {
  -webkit-appearance: none;
  width: 100px;
  height: 6px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
  outline: none;
  transition: background 0.2s;
  /* Fix for mobile touch */
  touch-action: pan-y;
  position: relative;
  z-index: 10;
  cursor: pointer;
}

#ftb-volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-primary);
  cursor: pointer;
  transition: transform 0.1s;
  box-shadow: 0 0 5px rgba(0,0,0,0.3);
}

#ftb-volume-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

#ftb-volume-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-primary);
  cursor: pointer;
  border: none;
  transition: transform 0.1s;
  box-shadow: 0 0 5px rgba(0,0,0,0.3);
}

#ftb-volume-slider::-moz-range-thumb:hover {
  transform: scale(1.2);
}

/* Playback Time Display */
.ftb-player-time {
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 14px;
    color: var(--color-primary);
    min-width: 50px;
    text-align: right;
    margin-right: 10px;
}

/* Layout kafelków stacji – sekcja pod headerem, szerokość jak wpis/strona, z efektem blur */
.single .station-tiles-wrapper,
.page .station-tiles-wrapper {
    padding: 20px 40px 30px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.45);
    margin-top: 20px;
    margin-bottom: 20px;
    background: rgba(5, 11, 20, 0.35);
}

@media (max-width: 768px) {
    .single .station-tiles-wrapper,
    .page .station-tiles-wrapper {
        padding: 20px;
    }
}

/* Layout kafelków stacji – korzysta z .radio-station-card */
.home .station-tiles-grid,
.single .station-tiles-grid,
.page .station-tiles-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 54px; /* było 16px – większe odstępy między kafelkami */
    justify-content: flex-start;
    width: 100%;
    box-sizing: border-box;
}

/* Kafelki w station-tiles-grid – zawsze 300px szerokości */
.home .station-tiles-grid .radio-station-card,
.single .station-tiles-grid .radio-station-card,
.page .station-tiles-grid .radio-station-card {
    flex: 0 0 300px;
    max-width: 300px;
    width: 300px;
    margin: 0;
}

/* Blur/glass dla WPBakery wrappera na stronie głównej */
.home .wpb-content-wrapper {
    background: rgba(5, 11, 20, 0.35);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.45);
    padding: 40px 40px 60px;
}

body.page:not(.home) .container.content-wrapper {
    background: rgba(5, 11, 20, 0.35);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.45);
    padding: 40px 40px 60px;
}

/* Odstęp (większy, jak na stronie głównej) między contentem a stopką na wszystkich podstronach typu "page"
   (z wykluczeniem strony głównej), np. "Kontakt" */
body.page:not(.home) .site-footer {
    margin-top: 40px;
}

/* Taki sam odstęp między contentem a stopką na wszystkich pojedynczych wpisach */
body.single-post .site-footer {
    margin-top: 40px;
}

/* === Patronat medialny – rząd okładek === */
.marquee {
    width: 100%;
    max-width: 100%;
    margin: 30px auto;
    padding: 20px 0;
    overflow: hidden;
    box-sizing: border-box;
    border-radius: 25px;
    white-space: nowrap;
    color: #290849;
    text-transform: uppercase;
}

.marquee span {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 75s linear infinite;
}

.marquee span:hover {
    animation-play-state: paused;
}

.marquee .patronate {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.marquee .patronate li {
    flex: 0 0 auto;
}

.marquee .patronate img {
    display: block;
    height: 100px;
    width: auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.marquee .patronate img:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.35);
}

@media (max-width: 768px) {
    .marquee .patronate {
        gap: 16px;
    }
    .marquee .patronate img {
        height: 60px;
    }
}

/* Nagłówek sekcji Patronat medialny w stopce */
.footer-patronate-section {
    margin: 40px 0 20px;
}

.footer-patronate-title {
    font-family: var(--font-heading);
    font-size: 26px;
    text-transform: uppercase;
    margin: 0 0 14px;
}

/* Lightbox dla patronatu medialnego */
.patronate-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(5px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.patronate-lightbox-inner {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.patronate-lightbox-inner img {
    display: block;
    max-width: 100%;
    max-height: 100%;
}

.patronate-lightbox-close {
    position: absolute;
    top: -18px;
    right: -18px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.85);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    line-height: 32px;
    text-align: center;
}

/* Mobile Landscape Fixes */
@media (max-width: 992px) and (orientation: landscape) {
    /* Station Cards: 2 columns instead of 1 */
    .single .station-tiles-grid .radio-station-card,
    .page .station-tiles-grid .radio-station-card {
        flex: 0 0 calc(50% - 20px); /* Adjust for gap */
        max-width: calc(50% - 20px);
    }
    
    .single .station-tiles-grid,
    .page .station-tiles-grid {
        gap: 30px; /* Smaller gap */
    }
    
    /* Adjust container padding if needed */
    .container {
        padding: 0 20px;
    }
    
    /* Player fixes if needed - ensure it doesn't cover too much */
    .ftb-audio-player {
        bottom: 10px;
        padding: 10px 20px;
    }
}

/* Desktop Header Alignment */
@media (min-width: 993px) {
    .header-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: relative; /* Needed for absolute positioning of nav */
    }
    
    .site-branding {
        flex-shrink: 0;
    }
    
    .main-navigation {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        width: auto;
    }
    
    .main-navigation ul {
        justify-content: center;
    }
}

/* =========================================
   MOBILE OPTIMIZATIONS (PAGES & POSTS)
   ========================================= */

@media (max-width: 768px) {
    /* Fix padding for standard Pages (e.g. Prezenterzy Club) */
    body.page:not(.home) .container.content-wrapper {
        padding: 25px 20px 30px; /* Reduced from 40px 40px 60px */
        border-radius: 15px; /* Slightly smaller radius for mobile */
    }

    /* Ensure Single Post article padding is consistent */
    .single .container article {
        padding: 20px 15px;
    }

    /* Typography adjustments for mobile */
    h1.entry-title, 
    .entry-title a {
        font-size: 26px; /* Smaller headings */
        line-height: 1.3;
        margin-bottom: 15px;
    }

    h2 {
        font-size: 22px;
    }

    h3 {
        font-size: 20px;
    }

    /* Fix paragraph spacing */
    .entry-content p {
        font-size: 15px;
        line-height: 1.6;
        margin-bottom: 15px;
    }
    
    /* Ensure images don't overflow */
    .entry-content img,
    .wp-caption {
        max-width: 100% !important;
        height: auto !important;
    }

    /* If there are WPBakery rows inside, remove negative margins that cause horizontal scroll */
    .vc_row {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
    }

    .radioftb-hero {
        min-height: auto;          /* na mobile sekcja dopasowuje się do treści */
        padding: 2px 0 3px;        /* jeszcze ok. 3x mniejszy odstęp niż poprzednio */
        margin-top: 0;             /* brak marginesu od góry */
        border-radius: 15px;       /* zostawiamy ten sam radius */
    }
}

/* Social icons next to logo */
.site-header .site-branding {
    display: flex;
    align-items: center;
    gap: 72px; /* ~3x większy odstęp między logo a ikonkami */
}

.site-social-icons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-social-icons .social-icon {
    font-size: 28px;             /* delikatnie mniejsze ikonki na desktopie */
    color: #ffffff;              /* białe jak reszta headera */
    text-decoration: none;
    line-height: 1;
}

.site-social-icons .social-icon:hover {
    color: var(--color-primary); /* pomarańczowy z motywu */
}

/* Na mniejszych ekranach lekko zmniejszamy */
@media (max-width: 768px) {
    .site-social-icons .social-icon {
        font-size: 24px; /* 1 krok mniejsze na mobile */
    }
}
