* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #00a2ff;
    --secondary-color: #ff6b6b;
    --accent-color: #4ecdc4;
    --dark-bg: #0a0e27;
    --card-bg: #1a1f3a;
    --text-light: #ffffff;
    --text-gray: #b0b8c4;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}


html {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    position: relative;
    touch-action: pan-y;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--dark-bg);
    color: var(--text-light);
    overflow-x: hidden;
    overflow-y: auto;
    line-height: 1.6;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    position: relative;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
    -webkit-tap-highlight-color: transparent;
}

/* Particle Background */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: transparent;
    border-radius: 0;
    opacity: 0.3;
    animation: float 20s infinite ease-in-out;
    user-select: none;
    pointer-events: none;
    will-change: transform;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0) rotate(0deg);
    }
    25% {
        transform: translateY(-100px) translateX(50px) rotate(90deg);
    }
    50% {
        transform: translateY(-200px) translateX(-50px) rotate(180deg);
    }
    75% {
        transform: translateY(-100px) translateX(-100px) rotate(270deg);
    }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    background: rgba(10, 14, 39, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideDown 0.5s ease-out;
}

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

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    position: relative;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--text-light);
    text-shadow: 0 0 20px var(--primary-color);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 0 0 20px var(--primary-color), 0 0 30px var(--primary-color);
    }
    to {
        text-shadow: 0 0 30px var(--primary-color), 0 0 40px var(--primary-color), 0 0 50px var(--primary-color);
    }
}

.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
    opacity: 0.3;
    animation: pulse 2s ease-in-out infinite;
    z-index: -1;
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.6;
    }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color 0.3s;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link:hover::after {
    width: 100%;
}

.play-btn {
    padding: 1rem 2.5rem;
    background: var(--gradient-3);
    border: none;
    border-radius: 50px;
    color: var(--text-light);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.4);
    text-decoration: none;
    display: inline-block;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
}

.play-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 172, 254, 0.6);
    color: var(--text-light);
    text-decoration: none;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 8rem 2rem 2rem;
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 1;
    animation: fadeInLeft 1s ease-out;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-title {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: var(--gradient-3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-line {
    display: block;
    animation: slideInUp 0.8s ease-out backwards;
}

.title-line:nth-child(1) {
    animation-delay: 0.2s;
}

.title-line:nth-child(2) {
    animation-delay: 0.4s;
}

.title-line:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
    animation: fadeIn 1s ease-out 0.8s backwards;
}

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

.hero-buttons {
    display: flex;
    gap: 1rem;
    animation: fadeIn 1s ease-out 1s backwards;
}

.testflight-info {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-gray);
    text-align: left;
    animation: fadeIn 1s ease-out 1.2s backwards, pulseTestFlight 2s ease-in-out infinite 2s;
    opacity: 0.8;
    max-width: fit-content;
    display: inline-block;
    font-weight: 500;
}

@keyframes pulseTestFlight {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
        text-shadow: 0 0 0 rgba(79, 172, 254, 0);
    }
    50% {
        transform: scale(1.05);
        opacity: 1;
        text-shadow: 0 0 10px rgba(79, 172, 254, 0.5);
        color: var(--primary-color);
    }
}

@media (max-width: 768px) {
    .testflight-info {
        text-align: center;
        max-width: 100%;
    }
}

.btn-primary {
    padding: 1rem 2.5rem;
    background: var(--gradient-3);
    border: none;
    border-radius: 50px;
    color: var(--text-light);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.4);
    min-width: 180px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(79, 172, 254, 0.6);
    color: var(--text-light);
    text-decoration: none;
}

.btn-stop {
    padding: 1rem 2.5rem;
    background: #ff4444;
    border: none;
    border-radius: 50px;
    color: var(--text-light);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(255, 68, 68, 0.4);
    min-width: 180px;
    text-align: center;
}

.btn-stop:hover {
    background: #ff3333;
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(255, 68, 68, 0.6);
}

.pulse-animation {
    animation: pulseBtn 2s ease-in-out infinite;
}

@keyframes pulseBtn {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(79, 172, 254, 0.4);
    }
    50% {
        box-shadow: 0 4px 25px rgba(79, 172, 254, 0.8), 0 0 0 10px rgba(79, 172, 254, 0.1);
    }
}

.btn-secondary {
    padding: 1rem 2.5rem;
    background: transparent;
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--text-light);
    transform: translateY(-3px);
}

.hero-visual {
    flex: 1;
    position: relative;
    height: 500px;
    animation: fadeInRight 1s ease-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Radio Visual */
.radio-visual {
    position: relative;
    width: 400px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.radio-wave {
    position: absolute;
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    opacity: 0.6;
    animation: radioPulse 2s ease-in-out infinite;
}

.wave-1 {
    width: 200px;
    height: 200px;
    animation-delay: 0s;
}

.wave-2 {
    width: 280px;
    height: 280px;
    animation-delay: 0.3s;
}

.wave-3 {
    width: 360px;
    height: 360px;
    animation-delay: 0.6s;
}

@keyframes radioPulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.3;
    }
    100% {
        transform: scale(1);
        opacity: 0.6;
    }
}

.radio-center {
    position: absolute;
    width: 120px;
    height: 120px;
    background: var(--gradient-3);
    border-radius: 50%;
    box-shadow: 0 0 30px rgba(79, 172, 254, 0.6);
    animation: centerPulse 2s ease-in-out infinite;
    z-index: 2;
}

@keyframes centerPulse {
    0%, 100% {
        box-shadow: 0 0 30px rgba(79, 172, 254, 0.6);
    }
    50% {
        box-shadow: 0 0 50px rgba(79, 172, 254, 0.9);
    }
}

/* Radio Player */
.radio-player {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 400px;
}

.player-display {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.equalizer {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 0.5rem;
    height: 100px;
}

.eq-bar {
    width: 20px;
    background: var(--gradient-3);
    border-radius: 10px;
    animation: equalizer 1.5s ease-in-out infinite;
}

.eq-bar:nth-child(1) {
    height: 40px;
    animation-delay: 0s;
}

.eq-bar:nth-child(2) {
    height: 70px;
    animation-delay: 0.1s;
}

.eq-bar:nth-child(3) {
    height: 50px;
    animation-delay: 0.2s;
}

.eq-bar:nth-child(4) {
    height: 80px;
    animation-delay: 0.3s;
}

.eq-bar:nth-child(5) {
    height: 60px;
    animation-delay: 0.4s;
}

@keyframes equalizer {
    0%, 100% {
        transform: scaleY(1);
    }
    50% {
        transform: scaleY(1.5);
    }
}

.now-playing {
    text-align: center;
}

.track-name {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 0.5rem;
}

.artist-name {
    font-size: 1.2rem;
    font-weight: 600;
    background: var(--gradient-3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
    position: relative;
}

/* Features Section */
.features {
    padding: 6rem 0;
    position: relative;
    z-index: 1;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 4rem;
    background: var(--gradient-3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeIn 1s ease-out;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeInUp 0.8s ease-out backwards;
}

.feature-card:nth-child(1) {
    animation-delay: 0.1s;
}

.feature-card:nth-child(2) {
    animation-delay: 0.2s;
}

.feature-card:nth-child(3) {
    animation-delay: 0.3s;
}

.feature-card:nth-child(4) {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 40px rgba(79, 172, 254, 0.3);
    border-color: var(--primary-color);
}

.feature-icon {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.icon-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--gradient-3);
    border-radius: 50%;
    opacity: 0.2;
    animation: rotate 10s linear infinite;
}

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

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.feature-card p {
    color: var(--text-gray);
    line-height: 1.6;
}

/* Games Section */
.games {
    padding: 6rem 0;
    position: relative;
    z-index: 1;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.game-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeInUp 0.8s ease-out backwards;
}

.game-card:nth-child(1) {
    animation-delay: 0.1s;
}

.game-card:nth-child(2) {
    animation-delay: 0.2s;
}

.game-card:nth-child(3) {
    animation-delay: 0.3s;
}

.game-card:nth-child(4) {
    animation-delay: 0.4s;
}

.game-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 50px rgba(79, 172, 254, 0.4);
}

.game-image {
    position: relative;
    height: 200px;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.game-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(102, 126, 234, 0.8), rgba(118, 75, 162, 0.8));
    opacity: 0;
    transition: opacity 0.3s;
}

.game-card:hover .game-image::before {
    opacity: 1;
}

.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s;
}

.game-card:hover .game-overlay {
    opacity: 1;
}

.play-pause-btn-popular {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    background: #ff4444;
    border: none;
    border-radius: 50px;
    color: white;
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(255, 68, 68, 0.4);
    font-family: 'Poppins', sans-serif;
    display: none;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    min-height: 40px;
    white-space: nowrap;
    pointer-events: auto;
}

.game-card.playing .play-pause-btn-popular {
    display: flex;
    opacity: 1;
}

.play-pause-btn-popular:hover {
    background: #ff3333;
    transform: translate(-50%, -50%) translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 68, 68, 0.5);
}

.play-pause-btn-popular:active {
    transform: translate(-50%, -50%);
    box-shadow: 0 2px 10px rgba(255, 68, 68, 0.4);
}

.play-pause-text-popular {
    font-size: 0.9rem;
    display: inline-block;
    text-transform: none;
}

.btn-visit-homepage-popular {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    font-size: 1.4rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.btn-visit-homepage-popular:hover {
    background: rgba(0, 0, 0, 0.7);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(79, 172, 254, 0.4);
}

.game-info {
    padding: 1.5rem;
    position: relative;
    min-height: 160px;
    display: flex;
    flex-direction: column;
}

.game-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    line-height: 1.5;
    min-height: 3.9rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    flex-shrink: 0;
}

.game-info p {
    color: var(--text-gray);
    margin-bottom: 1rem;
    line-height: 1.4;
    height: 1.4rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex-shrink: 0;
}

.game-stats {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-top: auto;
    align-items: center;
    flex-shrink: 0;
    padding-right: 50px;
}

/* Create Section */
.create {
    padding: 6rem 0;
    position: relative;
    z-index: 1;
}

.create-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.create-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: var(--gradient-3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.create-text p {
    color: var(--text-gray);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.create-features {
    list-style: none;
    margin-bottom: 2rem;
}

.create-features li {
    padding: 0.8rem 0;
    color: var(--text-light);
    font-size: 1.1rem;
}

.testflight-note {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-gray);
    text-align: center;
    opacity: 0.8;
    line-height: 1.6;
    animation: fadeIn 1s ease-out 1.2s backwards, pulseTestFlight 2s ease-in-out infinite 2s;
    font-weight: 500;
}

.create-visual {
    position: relative;
}

.code-window {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: fadeInRight 1s ease-out;
}

.code-header {
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem;
    display: flex;
    gap: 0.5rem;
}

.code-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--secondary-color);
}

.code-dot:nth-child(2) {
    background: var(--accent-color);
}

.code-dot:nth-child(3) {
    background: #4ecdc4;
}

.code-content {
    padding: 2rem;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    line-height: 1.8;
}

.code-line {
    margin-bottom: 0.5rem;
}

.code-keyword {
    color: #ff6b6b;
}

.code-function {
    color: #4ecdc4;
}

.code-string {
    color: #95e1d3;
}

/* Community Section */
.community {
    padding: 6rem 0;
    position: relative;
    z-index: 1;
}

.community-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.stat-card {
    background: var(--card-bg);
    padding: 4rem 6rem;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
    animation: fadeInUp 0.8s ease-out backwards;
    min-width: 400px;
}

.stat-card:nth-child(1) {
    animation-delay: 0.1s;
}

.stat-card:nth-child(2) {
    animation-delay: 0.2s;
}

.stat-card:nth-child(3) {
    animation-delay: 0.3s;
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 40px rgba(79, 172, 254, 0.3);
    border-color: var(--primary-color);
}

.stat-number {
    font-size: 5rem;
    font-weight: 800;
    background: var(--gradient-3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.stat-label {
    color: var(--text-gray);
    font-size: 1.4rem;
    font-weight: 500;
}

/* Footer */
.footer {
    background: var(--card-bg);
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
    padding-bottom: 150px; /* Space for fixed player on desktop */
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--text-light);
}

.footer-section p {
    color: var(--text-gray);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card-bg);
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(79, 172, 254, 0.4);
    border-color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-gray);
}

/* Favorites Overlay */
.favorites-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
    overflow-x: hidden;
    overflow-y: auto;
}

.favorites-overlay.show {
    display: flex;
}

.favorites-modal {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2rem;
    max-width: 900px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    overflow-x: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease-out;
    box-sizing: border-box;
    max-width: calc(100vw - 2rem);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.favorites-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 20;
    background: var(--card-bg);
}

.favorites-header h2 {
    font-size: 2rem;
    background: var(--gradient-3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.btn-close-favorites {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-close-favorites:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.favorites-content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr));
    gap: 1rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
    padding-top: 0.5rem;
}

.no-favorites {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 1rem;
}

.no-favorites p {
    color: var(--text-gray);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.no-favorites-hint {
    color: var(--text-gray);
    font-size: 0.9rem;
    opacity: 0.7;
}

.favorite-station-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 180px;
    z-index: 2;
}

.favorite-station-card .station-logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    flex-shrink: 0;
    margin-bottom: 1rem;
}

.favorite-station-card .station-favicon {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    background: var(--gradient-3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.2);
}

.favorite-station-card .station-favicon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.5rem;
}

.favorite-station-card .station-name {
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.3;
    width: 100%;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
}

.favorite-station-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(79, 172, 254, 0.2);
    border-color: var(--primary-color);
    z-index: 10;
}

.favorite-station-card.playing {
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(79, 172, 254, 0.4);
    z-index: 10;
}

.btn-remove-favorite {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 68, 68, 0.8);
    border: none;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    line-height: 1;
    padding: 0;
    margin: 0;
    font-family: Arial, sans-serif;
}

.btn-remove-favorite::before {
    content: '✕';
    display: inline-block;
    line-height: 32px;
    font-size: 1rem;
    width: 100%;
    text-align: center;
    vertical-align: middle;
}

.favorite-station-card:hover .btn-remove-favorite {
    opacity: 1;
}

.btn-remove-favorite:hover {
    background: rgba(255, 68, 68, 1);
    transform: scale(1.1);
}

/* Player Favorite Button */
.player-favorite-btn {
    padding: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--text-light);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-family: 'Poppins', sans-serif;
    position: relative;
    min-width: 50px;
    min-height: 50px;
}

.player-favorite-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.2);
}

.player-favorite-btn.is-favorite {
    /* Okrąg pozostaje neutralny, zmienia się tylko serduszko */
}

.player-favorite-btn.is-favorite:hover {
    background: rgba(255, 255, 255, 0.2);
}

.player-favorite-btn .favorite-icon {
    transition: transform 0.3s;
}

.player-favorite-btn:active .favorite-icon {
    transform: scale(1.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        padding: 0.8rem 0;
    }

    .nav-container {
        padding: 0 1rem;
        gap: 0.5rem;
    }

    .logo {
        font-size: 1.2rem;
        letter-spacing: 1px;
    }

    .logo-glow {
        width: 110%;
        height: 110%;
    }

    .nav-menu {
        display: none;
    }

    .play-btn {
        padding: 0.7rem 1.3rem;
        font-size: 0.85rem;
        white-space: nowrap;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding: 6rem 1rem 2rem;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-visual {
        margin-top: 3rem;
        height: 300px;
    }

    .create-content {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }

    .stat-number {
        font-size: 3.5rem;
    }

    .stat-label {
        font-size: 1.1rem;
    }

    .stat-card {
        min-width: auto;
        padding: 3rem 2rem;
        width: 100%;
        max-width: 500px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* Scroll Animations */
.fade-in-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.fade-in-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Special fade-in for sections */
section.fade-in-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease-out;
}

section.fade-in-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-title.fade-in-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.section-title.fade-in-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Page Sections (Terms, Privacy, Contact) */
.page-section {
    padding: 8rem 0 4rem;
    position: relative;
    z-index: 1;
    min-height: 100vh;
}

.page-header {
    text-align: center;
    margin-bottom: 1rem;
}

.page-header.fade-in-scroll {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.page-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: var(--gradient-3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-subtitle {
    font-size: 1.2rem;
    color: var(--text-gray);
}

.content-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.content-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 20px;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(79, 172, 254, 0.2);
    border-color: var(--primary-color);
}

.content-card h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.content-card p {
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.content-card ul {
    list-style: none;
    padding-left: 0;
}

.content-card ul li {
    color: var(--text-gray);
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.content-card ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

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

.content-card a:hover {
    color: var(--accent-color);
}

/* Contact Page Styles */
.contact-wrapper {
    display: flex;
    justify-content: center;
    max-width: 800px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
    text-align: center;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(79, 172, 254, 0.2);
    border-color: var(--primary-color);
}

.info-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.info-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.info-card p {
    color: var(--text-gray);
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.contact-form-wrapper {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text-light);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 172, 254, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Stations Page */
.stations-page {
    padding: 6rem 0 8rem;
    position: relative;
    z-index: 1;
    min-height: 100vh;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    padding-bottom: 120px; /* Space for fixed player */
    box-sizing: border-box;
    touch-action: pan-y;
}

/* Radio Player Section */
.radio-player-section {
    margin: 1rem 0 2rem;
    width: 100%;
    position: relative;
    z-index: 10;
}

.radio-player-section.fade-in-scroll {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Fixed Player at Bottom (Desktop) */
.radio-player-section.fixed-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    margin: 0;
    z-index: 1000;
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    padding: 1rem 0;
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.radio-player-section.fixed-player .radio-player-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    background: transparent;
    border-radius: 0;
    border: none;
    box-shadow: none;
}

.radio-player-container {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s;
}

.radio-player-container.playing {
    border-color: var(--primary-color);
    box-shadow: 0 10px 40px rgba(79, 172, 254, 0.3);
}

.player-logo-container {
    flex-shrink: 0;
}

.player-station-logo {
    width: 80px;
    height: 80px;
    border-radius: 15px;
    background: var(--gradient-3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.3);
    position: relative;
}

.player-station-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.player-station-logo.playing {
    animation: logoPulse 2s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(79, 172, 254, 0.3);
    }
    50% {
        box-shadow: 0 4px 25px rgba(79, 172, 254, 0.6);
    }
}

.player-info {
    flex: 1;
    min-width: 0;
}

/* Station name in logo container (for mobile) - hide on desktop */
.player-logo-container .player-station-name.mobile-name {
    display: none;
}

/* Desktop info - hide on mobile when playing */
.desktop-info {
    display: flex;
    flex-direction: column;
}

.player-station-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 0.3rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.player-status {
    font-size: 0.9rem;
    color: var(--text-gray);
}

.player-track-info {
    margin-top: 0.5rem;
    min-height: 0;
}

.player-track-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 0.2rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.player-track-artist {
    font-size: 0.85rem;
    color: var(--text-gray);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Mobile track info */
.player-track-info-mobile {
    margin-top: 0.3rem;
    width: 100%;
    max-width: 100px;
}

.player-track-title-mobile {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 0.1rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.2;
}

.player-track-artist-mobile {
    font-size: 0.6rem;
    color: var(--text-gray);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.1;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.player-button-container {
    display: none;
}

/* Show mobile button container on mobile (always visible) */
@media (max-width: 768px) {
    .radio-player-section.fixed-player.mobile-playing .player-button-container {
        display: flex;
    }
}

/* Hide mobile buttons on desktop */
@media (min-width: 769px) {
    .player-button-container {
        display: none !important;
    }
}

/* Hide desktop buttons on mobile */
@media (max-width: 768px) {
    .player-controls .desktop-play-pause-btn {
        display: none !important;
    }
}

/* Hide desktop stop button on mobile when playing */
.radio-player-section.fixed-player.mobile-playing .desktop-stop-btn {
    display: none !important;
}

#playerEqualizer {
    display: none !important;
    height: 60px;
    gap: 0.4rem;
    opacity: 0;
    visibility: hidden;
}

#playerEqualizer.active {
    display: flex !important;
    opacity: 1;
    visibility: visible;
}

#playerEqualizer .eq-bar {
    width: 8px;
    height: 30px;
    background: var(--gradient-3);
    border-radius: 4px;
    transform-origin: bottom;
}

/* Chaotic animations for each bar - different timing and patterns */
#playerEqualizer .eq-bar:nth-child(1) {
    height: 20px;
    animation: eqBar1 1.6s ease-in-out infinite;
    animation-delay: 0s;
}

#playerEqualizer .eq-bar:nth-child(2) {
    height: 35px;
    animation: eqBar2 2.2s ease-in-out infinite;
    animation-delay: 0.3s;
}

#playerEqualizer .eq-bar:nth-child(3) {
    height: 25px;
    animation: eqBar3 1.9s ease-in-out infinite;
    animation-delay: 0.6s;
}

#playerEqualizer .eq-bar:nth-child(4) {
    height: 40px;
    animation: eqBar4 2.6s ease-in-out infinite;
    animation-delay: 0.4s;
}

#playerEqualizer .eq-bar:nth-child(5) {
    height: 30px;
    animation: eqBar5 1.4s ease-in-out infinite;
    animation-delay: 0.8s;
}

/* Chaotic keyframe animations for each bar */
@keyframes eqBar1 {
    0%, 100% { transform: scaleY(0.4); }
    20% { transform: scaleY(1.8); }
    40% { transform: scaleY(0.6); }
    60% { transform: scaleY(1.5); }
    80% { transform: scaleY(0.8); }
}

@keyframes eqBar2 {
    0%, 100% { transform: scaleY(0.5); }
    15% { transform: scaleY(1.2); }
    30% { transform: scaleY(0.7); }
    50% { transform: scaleY(1.6); }
    70% { transform: scaleY(0.9); }
    85% { transform: scaleY(1.3); }
}

@keyframes eqBar3 {
    0%, 100% { transform: scaleY(0.6); }
    25% { transform: scaleY(1.4); }
    45% { transform: scaleY(0.5); }
    65% { transform: scaleY(1.7); }
    80% { transform: scaleY(0.7); }
}

@keyframes eqBar4 {
    0%, 100% { transform: scaleY(0.3); }
    10% { transform: scaleY(1.5); }
    30% { transform: scaleY(0.8); }
    50% { transform: scaleY(1.2); }
    70% { transform: scaleY(0.6); }
    90% { transform: scaleY(1.6); }
}

@keyframes eqBar5 {
    0%, 100% { transform: scaleY(0.7); }
    20% { transform: scaleY(1.3); }
    40% { transform: scaleY(0.4); }
    60% { transform: scaleY(1.8); }
    75% { transform: scaleY(0.9); }
}

.player-play-pause-btn {
    padding: 0.6rem 1.5rem;
    background: #ff4444;
    border: none;
    border-radius: 50px;
    color: var(--text-light);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-family: 'Poppins', sans-serif;
    position: relative;
    min-width: 80px;
    min-height: 40px;
    white-space: nowrap;
}

.player-play-pause-btn .play-pause-text {
    font-size: 0.9rem;
    display: inline-block;
}

.player-play-pause-btn:hover {
    background: #ff3333;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 68, 68, 0.5);
}

.player-play-pause-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(255, 68, 68, 0.4);
}

/* Desktop play-pause button - capsule */
.player-play-pause-btn.desktop-play-pause-btn {
    padding: 0.6rem 1.5rem;
    min-width: 80px;
    min-height: 40px;
}

.player-stop-btn {
    padding: 0.6rem 1.2rem;
    background: #ff4444;
    border: none;
    border-radius: 50px;
    color: var(--text-light);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-family: 'Poppins', sans-serif;
    position: relative;
    min-width: 50px;
    min-height: 50px;
}

/* Desktop stop button - circular */
.player-stop-btn.desktop-stop-btn {
    width: 50px;
    height: 50px;
    padding: 0;
    border-radius: 50%;
    min-width: 50px;
    min-height: 50px;
}

.player-stop-btn.desktop-stop-btn .stop-text {
    display: none;
}

.player-stop-btn.desktop-stop-btn .stop-icon {
    width: 20px;
    height: 20px;
}

.player-stop-btn .stop-icon {
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 3px;
    display: inline-block;
    flex-shrink: 0;
}

.player-stop-btn .stop-text {
    display: inline-block;
}

.player-stop-btn:hover {
    background: #ff3333;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 68, 68, 0.5);
}

.player-stop-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(255, 68, 68, 0.4);
}

.stations-controls {
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 10;
}

.stations-controls.fade-in-scroll {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.search-box {
    position: relative;
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

.search-input {
    width: 100%;
    max-width: 100%;
    padding: 1rem 4.5rem 1rem 1.5rem;
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: var(--text-light);
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s;
    box-sizing: border-box;
    touch-action: manipulation;
    -webkit-appearance: none;
    -webkit-tap-highlight-color: transparent;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 172, 254, 0.1);
}

.search-clear-btn {
    position: absolute;
    right: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-light);
    font-size: 0.9rem;
    transition: all 0.3s;
    padding: 0;
    z-index: 10;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.search-clear-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.search-clear-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.search-clear-btn span {
    line-height: 1;
    font-weight: 600;
}

.search-go-btn {
    position: absolute;
    right: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    border: none;
    border-radius: 20px;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-light);
    font-size: 0.85rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s;
    z-index: 10;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    box-shadow: 0 2px 8px rgba(0, 162, 255, 0.3);
}

.search-go-btn:hover {
    background: #0099e6;
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 162, 255, 0.4);
}

.search-go-btn:active {
    transform: translateY(-50%) scale(0.95);
    box-shadow: 0 1px 4px rgba(0, 162, 255, 0.3);
}

.search-go-btn span {
    line-height: 1;
}

/* Adjust clear button position when visible */
.search-box:has(.search-clear-btn[style*="display: flex"]) .search-go-btn,
.search-box:has(.search-clear-btn[style*="display: block"]) .search-go-btn {
    right: 3.2rem;
}

.search-icon {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    pointer-events: none;
    transition: opacity 0.3s, visibility 0.3s;
}

/* Hide search icon when clear button is visible */
.search-box:has(.search-clear-btn[style*="display: flex"]) .search-icon,
.search-box:has(.search-clear-btn[style*="display: block"]) .search-icon {
    opacity: 0;
    visibility: hidden;
}

.filters {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    margin-top: 1rem;
}

.btn-favorites {
    padding: 1rem 2rem;
    background: var(--gradient-3);
    border: none;
    border-radius: 50px;
    color: var(--text-light);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.3);
    box-sizing: border-box;
}

.btn-favorites:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 172, 254, 0.5);
}

.btn-favorites .favorites-icon {
    font-size: 1.1rem;
    animation: heartBeat 1.5s ease-in-out infinite;
}

@keyframes heartBeat {
    0%, 100% {
        transform: scale(1);
    }
    10%, 30% {
        transform: scale(1.1);
    }
    20%, 40% {
        transform: scale(1);
    }
}

.btn-favorites .favorites-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    min-width: 24px;
    text-align: center;
}

.filter-select {
    padding: 0.8rem 1.5rem;
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: var(--text-light);
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
    box-sizing: border-box;
    max-width: 100%;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.filter-select:hover {
    border-color: var(--primary-color);
}

.stations-stats {
    text-align: center;
    color: var(--text-gray);
    margin-bottom: 2rem;
    font-size: 1rem;
}

.pagination-top {
    display: flex;
    justify-content: center;
    margin-bottom: 0;
}

.pagination-top .pagination-controls {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.stations-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    margin-bottom: 3rem;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

.station-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 1rem 1rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
    opacity: 0;
    transform: translateY(20px);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 180px;
    cursor: pointer;
    position: relative;
    aspect-ratio: 1;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
    contain: layout style;
}

.station-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.station-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(79, 172, 254, 0.2);
    border-color: var(--primary-color);
}

.station-card.playing {
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(79, 172, 254, 0.4);
    animation: pulseCard 2s ease-in-out infinite;
}

@keyframes pulseCard {
    0%, 100% {
        box-shadow: 0 0 20px rgba(79, 172, 254, 0.4);
    }
    50% {
        box-shadow: 0 0 30px rgba(79, 172, 254, 0.6);
    }
}

.station-logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    flex-shrink: 0;
    margin-bottom: 0;
    max-height: 60%;
    position: relative;
    z-index: 1;
    pointer-events: none;
}

.station-favicon {
    width: 100%;
    max-width: 140px;
    height: auto;
    aspect-ratio: 1;
    border-radius: 12px;
    background: var(--gradient-3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.2);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    pointer-events: none;
}

.station-favicon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.5rem;
}

.station-name {
    text-align: center;
    color: var(--text-light);
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: auto;
    padding: 0.5rem 0.5rem 0 0.5rem;
    line-height: 1.2;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    flex-shrink: 0;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-sizing: border-box;
    opacity: 1 !important;
    visibility: visible !important;
    position: relative;
    z-index: 1;
    pointer-events: none;
}


.station-actions-top {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 100;
    pointer-events: auto;
    width: auto;
    height: auto;
}

.station-actions-bottom {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    z-index: 100;
    pointer-events: auto;
    width: auto;
    height: auto;
}

.btn-favorite-station {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    padding: 0;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    z-index: 101;
    pointer-events: auto;
}

.btn-favorite-station::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
}

.btn-favorite-station:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.btn-favorite-station.is-favorite {
    /* Okrąg pozostaje neutralny, zmienia się tylko serduszko */
}

.btn-favorite-station.is-favorite:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.15);
}

.btn-favorite-station .favorite-icon-card {
    transition: transform 0.3s;
}

.btn-favorite-station:active {
    transform: scale(0.9);
    transition: transform 0.1s;
}

.btn-favorite-station:active .favorite-icon-card {
    transform: scale(1.3);
}

.btn-visit-homepage {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 101;
    pointer-events: auto;
}

.btn-play-station:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(79, 172, 254, 0.4);
}

.btn-play-station.playing {
    background: var(--gradient-2);
    animation: pulsePlaying 2s ease-in-out infinite;
}

.btn-play-station.playing:hover {
    background: var(--gradient-2);
}

@keyframes pulsePlaying {
    0%, 100% {
        box-shadow: 0 5px 20px rgba(245, 87, 108, 0.4);
    }
    50% {
        box-shadow: 0 5px 30px rgba(245, 87, 108, 0.6), 0 0 0 5px rgba(245, 87, 108, 0.1);
    }
}

.btn-play-station .play-icon {
    font-size: 0.8rem;
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.pagination-controls {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-btn {
    padding: 0.8rem 1.2rem;
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text-light);
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 45px;
}

.pagination-btn:hover:not(.disabled):not(.active) {
    border-color: var(--primary-color);
    background: rgba(79, 172, 254, 0.1);
}

.pagination-btn.active {
    background: var(--gradient-3);
    border-color: transparent;
    color: var(--text-light);
}

.pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-dots {
    padding: 0.8rem 0.5rem;
    color: var(--text-gray);
}

.loading-indicator {
    text-align: center;
    padding: 3rem;
    color: var(--text-gray);
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(79, 172, 254, 0.2);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-gray);
}

.no-results h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.notification {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--card-bg);
    padding: 1rem 2rem;
    border-radius: 10px;
    border: 1px solid var(--primary-color);
    color: var(--text-light);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s;
}

.notification.show {
    opacity: 1;
    transform: translateY(0);
}

.nav-link.active {
    color: var(--primary-color);
}

.nav-link.active::after {
    width: 100%;
}

/* Responsive for Pages */
@media (max-width: 768px) {
    .page-title {
        font-size: 2.5rem;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .content-card {
        padding: 1.5rem;
    }

    .stations-page {
        padding: 5rem 0 2rem;
        padding-bottom: 2rem; /* Remove extra padding on mobile */
        overflow-x: hidden;
        max-width: 100vw;
        touch-action: pan-y;
    }

    .stations-controls {
        overflow-x: hidden;
        max-width: 100vw;
        touch-action: pan-y;
    }

    .search-box {
        overflow-x: hidden;
        max-width: 100%;
    }

    .search-input {
        touch-action: manipulation;
        -webkit-appearance: none;
    }

    /* Pagination on mobile - Previous/Next only */
    .pagination {
        margin-top: 2rem;
    }

    .pagination-top .pagination-controls {
        flex-wrap: nowrap;
        justify-content: space-between;
        gap: 0.5rem;
        padding: 0;
    }

    .pagination-controls {
        flex-wrap: nowrap;
        justify-content: space-between;
        gap: 0.5rem;
        padding: 0;
    }

    .pagination-btn {
        padding: 0.7rem 1rem;
        font-size: 0.9rem;
        flex: 0 0 auto;
    }

    .pagination-page-info {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0.7rem 1rem;
        color: var(--text-light);
        font-size: 0.9rem;
        font-weight: 500;
        flex: 1;
        text-align: center;
    }

    .pagination-dots {
        display: none;
    }

    .radio-player-section {
        margin: 1.5rem 0 2rem;
    }

    /* On mobile, player is always visible at bottom */
    .radio-player-section.fixed-player {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        margin: 0;
        z-index: 10000;
        background: rgba(10, 14, 39, 0.95);
        backdrop-filter: blur(10px);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
        padding: 0.6rem 0;
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
        pointer-events: auto;
    }

    .radio-player-section.fixed-player .radio-player-container {
        background: transparent;
        border-radius: 0;
        border: none;
        box-shadow: none;
        padding: 0 1rem;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        height: auto;
        min-height: auto;
        pointer-events: auto;
    }
    
    /* Ensure all player elements are clickable and block clicks to elements below */
    .radio-player-section.fixed-player * {
        pointer-events: auto;
    }

    .radio-player-section.fixed-player.mobile-playing .radio-player-container {
        background: transparent;
        border-radius: 0;
        border: none;
        box-shadow: none;
        padding: 0 1rem;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        height: auto;
        min-height: auto;
        pointer-events: auto;
    }
    
    /* Ensure all player elements are clickable and block clicks to elements below */
    .radio-player-section.fixed-player.mobile-playing * {
        pointer-events: auto;
    }

    .radio-player-section.fixed-player.mobile-playing .player-logo-container {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        flex: 0 0 auto;
        gap: 0.6rem;
        min-width: 0;
    }

    .radio-player-section.fixed-player.mobile-playing .player-station-logo {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
        flex-shrink: 0;
    }

    /* Wrapper for name and track info */
    .radio-player-section.fixed-player.mobile-playing .player-name-and-track-mobile {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        min-width: 0;
        flex: 1 1 auto;
    }

    /* Show station name next to logo on mobile when playing */
    .radio-player-section.fixed-player.mobile-playing .player-logo-container .player-station-name.mobile-name {
        display: block;
        font-size: 0.75rem;
        text-align: left;
        max-width: 180px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        line-height: 1.3;
        color: var(--text-light);
        font-weight: 500;
        margin: 0;
    }

    /* Show track info on mobile (tablets) - below station name */
    .radio-player-section.fixed-player.mobile-playing .player-track-info-mobile {
        display: block;
        margin-top: 0.15rem;
        width: 100%;
        max-width: 180px;
    }

    .radio-player-section.fixed-player.mobile-playing .player-track-title-mobile {
        font-size: 0.65rem;
        font-weight: 600;
        color: var(--text-light);
        margin-bottom: 0.05rem;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        line-height: 1.2;
    }

    .radio-player-section.fixed-player.mobile-playing .player-track-artist-mobile {
        font-size: 0.6rem;
        color: var(--text-gray);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        line-height: 1.1;
    }

    /* Hide desktop info on mobile when playing */
    .radio-player-section.fixed-player.mobile-playing .desktop-info {
        display: none;
    }

    .radio-player-section.fixed-player.mobile-playing .player-controls {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        flex: 1 1 auto;
        flex-shrink: 0;
    }

    .radio-player-section.fixed-player.mobile-playing #playerEqualizer {
        height: 40px;
        display: flex;
        justify-content: center;
        flex-shrink: 0;
    }

    .radio-player-section.fixed-player.mobile-playing #playerEqualizer .eq-bar {
        width: 6px;
        height: 20px;
    }

    .radio-player-section.fixed-player.mobile-playing .player-button-container {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        flex: 0 0 auto;
        min-width: 0;
    }

    .radio-player-section.fixed-player.mobile-playing .player-button-container .player-stop-btn {
        padding: 0;
        width: 60px;
        height: 60px;
        border-radius: 50%;
        background: #ff4444;
        font-size: 0.7rem;
        white-space: nowrap;
        flex-shrink: 0;
        justify-content: center;
        align-items: center;
        min-width: 60px;
        min-height: 60px;
    }

    .radio-player-section.fixed-player.mobile-playing .player-button-container .player-stop-btn .stop-icon {
        width: 24px;
        height: 24px;
        background: rgba(255, 255, 255, 0.9);
        border-radius: 4px;
    }

    .radio-player-section.fixed-player.mobile-playing .player-button-container .player-stop-btn .stop-text {
        display: none;
    }

    .radio-player-section.fixed-player.mobile-playing .player-button-container .player-stop-btn:hover {
        background: #ff3333;
    }
    
    /* Mobile play-pause button - capsule */
    .radio-player-section.fixed-player.mobile-playing .player-button-container .player-play-pause-btn {
        padding: 0.6rem 1.2rem;
        border-radius: 50px;
        background: #ff4444;
        font-size: 0.85rem;
        white-space: nowrap;
        flex-shrink: 0;
        justify-content: center;
        align-items: center;
        min-width: 70px;
        min-height: 40px;
    }
    
    .radio-player-section.fixed-player.mobile-playing .player-button-container .player-play-pause-btn:hover {
        background: #ff3333;
    }

    /* Hide stop button in player-controls on mobile */
    .radio-player-section.fixed-player.mobile-playing .player-controls .player-stop-btn {
        display: none !important;
    }
    
    /* Hide play-pause button in player-controls on mobile */
    .radio-player-section.fixed-player.mobile-playing .player-controls .player-play-pause-btn {
        display: none !important;
    }

    /* Add padding to stations page for fixed player on mobile (always visible) */
    .stations-page {
        padding-bottom: 80px;
    }
    
    /* Add padding to footer so it's visible above the fixed player */
    .footer {
        padding-bottom: 150px;
    }

    .radio-player-container {
        flex-direction: column;
        padding: 1.2rem;
        gap: 1rem;
    }

    .player-logo-container {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .player-station-logo {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }

    .player-info {
        text-align: center;
        width: 100%;
    }

    .player-station-name {
        font-size: 1rem;
    }

    .player-status {
        font-size: 0.85rem;
    }

    .player-controls {
        width: 100%;
        justify-content: center;
        flex-direction: column;
        gap: 0.8rem;
    }

    #playerEqualizer {
        height: 50px;
    }

    .player-stop-btn {
        width: 100%;
        justify-content: center;
    }

    .page-header {
        margin-bottom: 2rem;
    }

    .page-title {
        font-size: 2rem;
    }

    .page-subtitle {
        font-size: 1rem;
    }

    .stations-controls {
        margin-bottom: 1.5rem;
        gap: 1rem;
        display: flex !important;
    }

    .search-box {
        max-width: 100%;
        display: block !important;
    }

    .search-input {
        font-size: 0.9rem;
        padding: 0.8rem 2.5rem 0.8rem 1.2rem;
    }

    .stations-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
        margin-bottom: 2rem;
    }

    .station-card {
        padding: 1.2rem 0.9rem;
        min-height: 160px;
    }

    .station-logo-container {
        max-height: 70%;
    }

    .station-favicon {
        max-width: 160px;
        font-size: 4.5rem;
    }

    .station-name {
        font-size: 0.8rem;
        margin-top: 0.6rem;
        padding: 0 0.3rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .btn-play-station {
        padding: 0.5rem 0.8rem;
        font-size: 0.75rem;
    }

    .filters {
        gap: 0.8rem;
        margin-top: 1rem;
    }

    .btn-favorites {
        width: 100%;
        justify-content: center;
        padding: 0.9rem 1.5rem;
        font-size: 0.95rem;
    }

    .favorites-modal {
        width: 95%;
        padding: 1.5rem;
        max-height: 85vh;
        max-width: calc(100vw - 1rem);
    }

    .favorites-header h2 {
        font-size: 1.5rem;
    }

    .favorites-content {
        grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr));
        gap: 0.8rem;
    }
    
    .btn-favorite-station {
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
    }
    
    .btn-favorite-station::before {
        top: -12px;
        left: -12px;
        right: -12px;
        bottom: -12px;
    }

    .favorite-station-card {
        min-height: 160px;
        padding: 0.8rem;
    }

    .favorite-station-card .station-favicon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }

    .favorite-station-card .station-name {
        font-size: 0.85rem;
    }

    .player-favorite-btn {
        width: 45px;
        height: 45px;
        min-width: 45px;
        min-height: 45px;
        font-size: 1.3rem;
    }
    
    /* Hide favorite button on mobile when playing - conflicts with space */
    .radio-player-section.fixed-player.mobile-playing .player-favorite-btn {
        display: none !important;
    }

    .stations-stats {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    .container {
        padding: 0 1rem;
    }

}

/* Extra small devices */
@media (max-width: 480px) {
    .navbar {
        padding: 0.6rem 0;
    }

    .nav-container {
        padding: 0 0.8rem;
    }

    .logo {
        font-size: 1.05rem;
        letter-spacing: 0.5px;
    }

    .play-btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }

    .stations-page {
        padding: 4rem 0 1.5rem;
        padding-bottom: 1.5rem; /* Remove extra padding on mobile */
        overflow-x: hidden;
        max-width: 100vw;
        touch-action: pan-y;
    }

    .stations-controls {
        overflow-x: hidden;
        max-width: 100vw;
        touch-action: pan-y;
    }

    .search-box {
        overflow-x: hidden;
        max-width: 100%;
    }

    .search-input {
        touch-action: manipulation;
        -webkit-appearance: none;
    }

    /* Pagination on extra small devices - even smaller */
    .pagination-btn {
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
    }

    .pagination-page-info {
        padding: 0.6rem 0.5rem;
        font-size: 0.8rem;
    }

    .radio-player-section {
        margin: 1rem 0 1.5rem;
    }

    /* On mobile, player is always visible at bottom */
    .radio-player-section.fixed-player {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        margin: 0;
        z-index: 10000;
        background: rgba(10, 14, 39, 0.95);
        backdrop-filter: blur(10px);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
        padding: 0.5rem 0;
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
        pointer-events: auto;
    }

    .radio-player-section.fixed-player .radio-player-container {
        background: transparent;
        border-radius: 0;
        border: none;
        box-shadow: none;
        padding: 0 0.6rem;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 0.4rem;
        height: auto;
        min-height: auto;
        width: 100%;
        box-sizing: border-box;
        pointer-events: auto;
    }
    
    /* Ensure all player elements are clickable and block clicks to elements below */
    .radio-player-section.fixed-player * {
        pointer-events: auto;
    }

    .radio-player-section.fixed-player.mobile-playing .radio-player-container {
        background: transparent;
        border-radius: 0;
        border: none;
        box-shadow: none;
        padding: 0 0.6rem;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 0.4rem;
        height: auto;
        min-height: auto;
        width: 100%;
        box-sizing: border-box;
        pointer-events: auto;
    }
    
    /* Ensure all player elements are clickable and block clicks to elements below */
    .radio-player-section.fixed-player.mobile-playing * {
        pointer-events: auto;
    }

    .radio-player-section.fixed-player.mobile-playing .player-logo-container {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        flex: 0 0 auto;
        gap: 0.5rem;
        min-width: 0;
        max-width: 35%;
    }

    .radio-player-section.fixed-player.mobile-playing .player-station-logo {
        width: 55px;
        height: 55px;
        font-size: 1.6rem;
        flex-shrink: 0;
    }

    /* Wrapper for name and track info */
    .radio-player-section.fixed-player.mobile-playing .player-name-and-track-mobile {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        min-width: 0;
        flex: 1 1 auto;
    }

    /* Show station name next to logo on mobile when playing */
    .radio-player-section.fixed-player.mobile-playing .player-logo-container .player-station-name.mobile-name {
        display: block;
        font-size: 0.7rem;
        text-align: left;
        max-width: 150px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        line-height: 1.2;
        color: var(--text-light);
        font-weight: 500;
        margin: 0;
    }

    /* Show track info on mobile - below station name */
    .radio-player-section.fixed-player.mobile-playing .player-track-info-mobile {
        display: block;
        margin-top: 0.1rem;
        width: 100%;
        max-width: 150px;
    }

    .radio-player-section.fixed-player.mobile-playing .player-track-title-mobile {
        font-size: 0.6rem;
        font-weight: 600;
        color: var(--text-light);
        margin-bottom: 0.05rem;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        line-height: 1.1;
    }

    .radio-player-section.fixed-player.mobile-playing .player-track-artist-mobile {
        font-size: 0.55rem;
        color: var(--text-gray);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        line-height: 1;
    }

    /* Hide desktop info on mobile when playing */
    .radio-player-section.fixed-player.mobile-playing .desktop-info {
        display: none;
    }

    .radio-player-section.fixed-player.mobile-playing .player-controls {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        flex: 1 1 auto;
        flex-shrink: 1;
        min-width: 0;
        max-width: 40%;
    }

    .radio-player-section.fixed-player.mobile-playing #playerEqualizer {
        height: 30px;
        display: flex;
        justify-content: center;
        flex-shrink: 0;
        gap: 0.2rem;
    }

    .radio-player-section.fixed-player.mobile-playing #playerEqualizer .eq-bar {
        width: 4px;
        height: 15px;
    }

    .radio-player-section.fixed-player.mobile-playing .player-button-container {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        flex: 0 0 auto;
        min-width: 0;
        max-width: 30%;
    }

    .radio-player-section.fixed-player.mobile-playing .player-button-container .player-stop-btn {
        padding: 0;
        width: 55px;
        height: 55px;
        border-radius: 50%;
        background: #ff4444;
        font-size: 0.6rem;
        white-space: nowrap;
        flex-shrink: 0;
        justify-content: center;
        align-items: center;
        min-width: 55px;
        min-height: 55px;
    }

    .radio-player-section.fixed-player.mobile-playing .player-button-container .player-stop-btn .stop-icon {
        width: 22px;
        height: 22px;
        background: rgba(255, 255, 255, 0.9);
        border-radius: 3px;
    }

    .radio-player-section.fixed-player.mobile-playing .player-button-container .player-stop-btn .stop-text {
        display: none;
    }

    .radio-player-section.fixed-player.mobile-playing .player-button-container .player-stop-btn:hover {
        background: #ff3333;
    }
    
    /* Mobile play-pause button - capsule */
    .radio-player-section.fixed-player.mobile-playing .player-button-container .player-play-pause-btn {
        padding: 0.5rem 1rem;
        border-radius: 50px;
        background: #ff4444;
        font-size: 0.8rem;
        white-space: nowrap;
        flex-shrink: 0;
        justify-content: center;
        align-items: center;
        min-width: 65px;
        min-height: 38px;
    }
    
    .radio-player-section.fixed-player.mobile-playing .player-button-container .player-play-pause-btn:hover {
        background: #ff3333;
    }

    /* Hide stop button in player-controls on mobile */
    .radio-player-section.fixed-player.mobile-playing .player-controls .player-stop-btn {
        display: none !important;
    }
    
    /* Hide play-pause button in player-controls on mobile */
    .radio-player-section.fixed-player.mobile-playing .player-controls .player-play-pause-btn {
        display: none !important;
    }

    .radio-player-container {
        padding: 1rem;
        gap: 0.8rem;
    }

    .player-station-logo {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }

    .player-station-name {
        font-size: 0.9rem;
    }

    .player-status {
        font-size: 0.8rem;
    }

    #playerEqualizer {
        height: 40px;
    }

    #playerEqualizer .eq-bar {
        width: 6px;
    }

    .page-header {
        margin-bottom: 1.5rem;
    }

    .page-title {
        font-size: 1.5rem;
    }

    .page-subtitle {
        font-size: 0.9rem;
    }

    .stations-controls {
        margin-bottom: 1rem;
        gap: 0.8rem;
        display: flex !important;
        padding: 1rem;
    }

    .search-box {
        display: block !important;
    }

    .search-input {
        font-size: 0.85rem;
        padding: 0.7rem 2rem 0.7rem 1rem;
    }

    .station-card {
        padding: 1rem 0.8rem;
        min-height: 150px;
    }

    .station-logo-container {
        max-height: 70%;
    }

    .station-favicon {
        max-width: 140px;
        font-size: 4rem;
    }

    .station-name {
        font-size: 0.75rem;
        margin-top: 0.5rem;
        padding: 0 0.2rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .btn-play-station {
        padding: 0.45rem 0.7rem;
        font-size: 0.7rem;
    }

    .container {
        padding: 0 0.8rem;
    }
    
    /* Add padding to footer so it's visible above the fixed player */
    .footer {
        padding-bottom: 150px;
    }
    
    .player-favorite-btn {
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
        font-size: 1.2rem;
    }
    
    .favorites-header h2 {
        font-size: 1.3rem;
    }
    
    .btn-close-favorites {
        width: 35px;
        height: 35px;
        font-size: 1.3rem;
    }

    .favorite-station-card {
        min-height: 150px;
        padding: 0.7rem;
    }

    .favorite-station-card .station-favicon {
        width: 65px;
        height: 65px;
        font-size: 1.8rem;
    }

    .favorite-station-card .station-name {
        font-size: 0.8rem;
    }
    
    .btn-favorite-station {
        width: 48px;
        height: 48px;
        font-size: 1.3rem;
    }
    
    .btn-favorite-station::before {
        top: -14px;
        left: -14px;
        right: -14px;
        bottom: -14px;
    }
    
    .favorites-modal {
        max-width: calc(100vw - 0.5rem);
        padding: 1rem;
    }
}

