/* Importy czcionek pixel art */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

/* Ogólne style - Pixel Art 8-bit Theme */
:root {
    --primary-color: #bc5c5d;         /* Accent */
    --secondary-color: var(--gray-color);       /* Accent */
    --accent-color: var(--gray-color);          /* Accent */
    --dark-color: #400402;            /* Background */
    --light-color: #f1e9e0;           /* Background */
    --text-color: #c9625f;            /* Primary text */
    --gray-color: #323a4f;            /* Secondary text */
    --border-color: var(--gray-color);          /* Accent border */
    --hover-color: var(--accent-color); /* <-- DODAJ TĘ LINIĘ RĘCZNIE */
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.3);   /* Mocniejszy cień */
    --transition: all 0.2s steps(5);   /* Schodkowa animacja dla efektu pixel */
    --pixel-border: 4px solid var(--gray-color); /* Pixel border accent */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    image-rendering: pixelated; /* Sprawia, że obrazy są wyświetlane w stylu pixelart */
}

html {
    scroll-behavior: smooth;
    background-color: #010b15; /* Fallback dla overscroll */
}

body {
    font-family: 'Press Start 2P', cursive, monospace;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color); /* Fallback color */
    background-image: url('/images/background.webp');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    overflow-x: hidden;
    font-size: 14px; /* Mniejsza czcionka, bo 'Press Start 2P' jest duża */
    padding-top: 84px; /* Wysokość navbara + padding */
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
    padding: 2px 4px;
}

a:hover {
    background-color: var(--primary-color);
    color: var(--light-color);
    transform: translateY(-2px); /* Delikatne przesunięcie */
}

ul {
    list-style: none;
}

li {
    color: var(--text-color);
}

img {
    max-width: 100%;
    height: auto;
    border: var(--pixel-border);
    image-rendering: pixelated;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 60px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 25; /* Above carousel and timeline elements */
}

.section-header h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px;
    border: var(--pixel-border);
    color: var(--light-color);
}

.section-header h2::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 4px;
    background-color: var(--accent-color);
    bottom: -8px;
    left: 0;
}

.section-header p {
    color: var(--gray-color);
    font-size: 0.9rem;
    max-width: 700px;
    margin: 0 auto;
    text-shadow: 1px 1px 0 rgba(0,0,0,0.2);
}

.playlist-subheader {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto 20px;
}

.playlist-subheader h2 {
    font-size: 1.3rem;
    text-transform: uppercase;
    color: var(--text-color);
    text-shadow: 2px 2px 0 rgba(0,0,0,0.2);
    padding: 5px;
    display: inline-block;
    justify-self: center;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    text-align: center;
    font-weight: normal;
    transition: var(--transition);
    border: 4px solid var(--text-color);
    cursor: pointer;
    position: relative;
    background-color: var(--light-color);
    color: var(--text-color);
    margin: 5px;
    text-transform: uppercase;
    font-size: 0.8rem;
    font-family: 'Press Start 2P', cursive, monospace;
    box-shadow: 4px 4px 0 rgba(0,0,0,0.5);
    box-shadow: 0 0 0 2px var(--accent-color), 0 0 8px 2px var(--accent-color);
    position: relative;
}

.btn-outline {
    background-color: transparent;
}

.btn::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 2px solid var(--accent-color);
    animation: pixel-pulse 1s steps(2) infinite;
}

.btn:not(.pixel-glow):hover {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 rgba(0,0,0,0.5);
}

.btn:active {
    transform: translate(4px, 4px);
    box-shadow: none;
}

/* Unified Type2 Buttons */
/* Both primary and secondary will use the gray bg / light text style */
.btn-secondary {
    background-color: var(--gray-color);
    color: var(--light-color);
    border: 4px solid var(--light-color);
    box-shadow: 4px 4px 0 rgba(0,0,0,0.5);
    box-shadow: 0 0 0 2px var(--light-color), 0 0 8px 2px var(--light-color);
}

.btn-primary {
    background-color: transparent;
    color: var(--light-color);
    border: 4px solid var(--light-color);
    box-shadow: 4px 4px 0 rgba(0,0,0,0.5);
    box-shadow: 0 0 0 2px var(--light-color), 0 0 8px 2px var(--light-color);
}
.btn-primary::after,
.btn-secondary::after {
    border-color: var(--light-color);
}
.btn-primary:hover,
.btn-secondary:hover {
    background-color: var(--gray-color);
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 rgba(0,0,0,0.5);
}

/* Keep pixel-glow on hover for Type2 buttons */
.btn-primary.pixel-glow:hover {
    transform: translate(2px, 2px) !important;
    box-shadow: 0 0 0 2px var(--accent-color), 0 0 8px 2px var(--accent-color) !important;
}

.btn-secondary.pixel-glow:hover {
    transform: translate(2px, 2px) !important;
    box-shadow: 0 0 0 2px var(--accent-color), 0 0 8px 2px var(--accent-color) !important;
}

/* Pseudo-element glow for Type2 */
.btn-primary.pixel-glow:hover::after {
    border-color: var(--accent-color) !important;
    animation: pixel-pulse 1s steps(2) infinite !important;
}

.btn-secondary.pixel-glow:hover::after {
    border-color: var(--accent-color) !important;
    animation: pixel-pulse 1s steps(2) infinite !important;
}

/* Minimal buttons (GET_IT) styled like primary */
.btn-minimal {
    background-color: var(--gray-color);
    color: var(--light-color);
    border: 4px solid var(--light-color);
    box-shadow: 0 0 0 2px var(--light-color), 0 0 8px 2px var(--light-color);
}
.btn-minimal::after {
    border-color: var(--light-color);
}
.btn-minimal:hover {
    background-color: var(--gray-color);
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 rgba(0,0,0,0.5);
}

/* Maintain static accent glow for GET_IT on hover */
.btn-minimal.pixel-glow:hover {
    box-shadow: 0 0 0 2px var(--accent-color), 0 0 8px 2px var(--accent-color) !important;
}

/* Type1 Buttons (no extra class) will use default .btn styling */

/* Make outline buttons use primary hover animation */
.btn-outline.pixel-glow:hover {
    transform: translate(2px, 2px);
}
.btn-outline.pixel-glow:hover::after {
    border-color: var(--accent-color) !important;
    animation: pixel-pulse 1s steps(2) infinite !important;
}

/* Navbar z płynnym przejściem */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 10px 0;
    background-color: transparent;
    border-bottom: 4px solid var(--accent-color);
    transform: translateY(0);
    transition: transform 0.3s ease-out, 
                background-color 0.3s ease-out,
                box-shadow 0.3s ease-out;
}

/* Stan początkowy - schowany */
.navbar.hidden {
    transform: translateY(-100%);
}

/* Stan sticky - widoczny */
.navbar.sticky {
    padding: 10px 0;
    background-color: rgba(0, 0, 0, 0.5) !important;
    box-shadow: var(--shadow);
    transform: translateY(0);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 1.2rem;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 5px 10px;
    border: 2px solid var(--text-color);
    display: inline-block;
}

.logo a:hover {
    background-color: var(--accent-color);
    color: var(--dark-color);
}

.navbar.sticky .logo a {
    color: var(--light-color);
    border-color: var(--light-color);
}

.nav-menu {
    display: flex;
}

.nav-menu li {
    margin-left: 20px;
}

.nav-menu a {
    display: inline-block;
    color: var(--text-color);
    font-weight: normal;
    position: relative;
    font-size: 0.8rem;
    text-transform: uppercase;
    padding: 8px;
}

.nav-menu a:hover {
    color: var(--accent-color);
    background-color: transparent;
}

.navbar.sticky .nav-menu a {
    color: var(--light-color);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 4px;
    background-color: var(--accent-color);
    bottom: -5px;
    left: 0;
    transition: var(--transition);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: calc(100% - 4px); /* trimmed by 4px on right */
}

.nav-menu li:last-child a i.fab.fa-instagram {
    font-size: 1.4rem; /* Powiększenie ikony Instagrama */
    vertical-align: middle;
    display: inline-block;
    margin-right: 5px; /* Zwiększenie odstępu między ikoną a podkreślnikiem "_" */
}

.menu-toggle {
    display: none;
    cursor: pointer;
}

.menu-toggle .bar {
    display: block;
    width: 25px;
    height: 4px;
    margin: 5px auto;
    background-color: var(--light-color);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    background-color: transparent; /* Zmienione na przezroczyste */
    padding-top: 80px; /* Zwiększenie paddingu od góry, aby utworzyć 80px odstęp między menu a obrazkiem */
    border-bottom: none;
    text-align: center;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 8px; /* Zmieniono na 8px */
    background-color: var(--gray-color);
}

.hero-content {
    text-align: center;
    color: var(--light-color);
    z-index: 1;
    padding: 20px;
    border: var(--pixel-border);
    background-color: rgba(0, 0, 0, 0.7);
    max-width: 800px;
    margin: 460px auto 80px; /* add 80px gap below content before separator */
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #fff;
    text-shadow: 4px 4px 0 #1a2130;
    visibility: hidden;
}

.hero-content > p {
    visibility: hidden;
}

.hero-content p {
    font-size: 1rem;
    margin-bottom: 20px;
    color: var(--light-color);
}

.hero-content > p:nth-of-type(2)::after {
    content: '|';
    animation: blink 1.5s steps(1) infinite;
    margin-left: 4px;
}

.hero-content > p:nth-of-type(2) {
    margin-bottom: 20px;
}

/* Fire image w sekcji hero */
.fire-image-container {
    position: absolute;
    top: 80px; /* adjust under navbar */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    margin-bottom: 60px;
}

.fire-image {
    max-width: 300px; /* Znacznie większy rozmiar obrazka */
    height: auto;
    image-rendering: pixelated;
    filter: drop-shadow(0 0 15px rgba(194, 94, 158, 0.6));
    animation: flicker 2s infinite alternate;
}

@keyframes flicker {
    0%, 18%, 22%, 25%, 53%, 57%, 100% {
        filter: drop-shadow(0 0 10px rgba(194, 94, 158, 0.5));
    }
    20%, 24%, 55% {
        filter: drop-shadow(0 0 15px rgba(194, 94, 158, 0.8));
    }
}

@keyframes neon-flicker {
    0%, 100% { text-shadow: 0 0 8px #452422, 0 0 16px #452422, 0 0 24px #452422, 0 0 32px #452422; opacity: 1; }
    10%    { text-shadow: none;                                    opacity: 0.8; }
    30%    { text-shadow: 0 0 5px #452422, 0 0 10px #452422, 0 0 15px #452422; opacity: 0.9; }
    50%    { text-shadow: none;                                    opacity: 0.7; }
    70%    { text-shadow: 0 0 12px #452422, 0 0 24px #452422, 0 0 36px #452422; opacity: 1; }
    90%    { text-shadow: none;                                    opacity: 0.85; }
}

/* Listen Section */
.listen {
    background-color: var(--light-color);
    position: relative;
    padding: 80px 0;
}

.section-header.minimal {
    text-align: center;
    margin-bottom: 30px;
}



.section-header.minimal h1,
.section-header.minimal h2,
.section-header.minimal h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--primary-color);
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.2);
    display: inline-block;
    padding: 5px;
    border-left: 4px solid var(--accent-color);
}

.section-header.minimal h2 {
    color: var(--text-color);
}

.music-player {
    background-color: var(--dark-color); /* Przywrócone ciemne tło */
    padding: 20px;
    border: var(--pixel-border);
    display: flex;
    flex-direction: column;
    margin-top: 30px;
    position: relative;
    overflow: hidden;
}

.music-player::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        rgba(0, 0, 0, 0.1) 25%,
        transparent 25%,
        transparent 50%,
        rgba(0, 0, 0, 0.1) 50%,
        rgba(0, 0, 0, 0.1) 75%,
        transparent 75%,
        transparent
    );
    background-size: 4px 4px;
    pointer-events: none;
    z-index: 0;
}

.track-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-start;
}

.track-image {
    width: 100%;
    max-width: 280px; 
    position: relative; 
    overflow: hidden;
}

.track-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border: 4px solid var(--secondary-color); 
    display: block;
    transition: var(--transition); 
}

.track-image:hover img {
    transform: scale(1.05); 
}

.track-image a {
    padding: 0;
    display: block;
}

.track-details {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.track-title {
    font-size: 1.5rem;
    color: var(--text-color);
    text-transform: uppercase;
    margin-bottom: 10px;
    border-left: 4px solid var(--accent-color);
    padding-left: 10px;
}

.track-details h3 {
    font-size: 1.2rem;
    color: var(--accent-color);
    margin-bottom: 25px; /* Zwiększam ten margines z 15px na 25px */
    text-transform: uppercase;
}

.track-controls {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    margin-top: 30px; /* Zwiększam ten margines z 10px na 30px */
}

.player-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.player-controls i,
.control-btn i {
    color: var(--text-color);
}

.control-btn {
    width: 50px;
    height: 50px;
    background-color: transparent;
    border: 2px solid var(--accent-color);
    color: var(--light-color);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.play-btn {
    width: 50px; 
    height: 50px; 
    font-size: 1rem;
    color: var(--dark-color);
    background-color: transparent;
}

.play-btn i {
    color: var(--light-color) !important;
}

.control-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 0 var(--accent-color);
}

.play-btn:hover {
    box-shadow: 0 4px 0 #d7d2c6 !important;
}

.progress-container {
    width: 100%;
    height: 20px;
    background-color: transparent;
    border: 2px solid var(--secondary-color);
    position: relative;
}

.progress-container .time {
    margin-top: 10px;
}

.progress-bar {
    height: 100%;
    position: relative;
    background-color: transparent;
}

.progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background-color: var(--accent-color);
    width: 30%;
}

.streaming-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
    border-top: 2px solid var(--secondary-color);
    padding-top: 20px;
}

.streaming-btn {
    display: inline-flex;
    align-items: center;
    background-color: transparent; /* Zmieniono na transparent */
    color: var(--text-color);
    border: 2px solid var(--text-color);
    padding: 8px 15px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.streaming-btn i {
    margin-right: 8px;
    font-size: 1.2rem;
}

.streaming-btn:hover {
    background-color: var(--accent-color);
    color: var(--dark-color);
}

.download-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
    width: 100%;
}

@media (min-width: 768px) {
    .download-buttons {
        flex-direction: row;
    }
}

.track-meta {
    margin-top: 50px;
}

.track-meta p {
    margin-bottom: 10px;
}

/* About Section */
.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-image {
    flex: 1;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.about-image img {
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.about-text p {
    margin-bottom: 25px;
}

.about-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
    margin-bottom: 5px;
}

/* Services Section */
.services {
    background-color: var(--light-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-icon {
    width: 70px;
    height: 70px;
    line-height: 70px;
    background-color: rgba(65, 105, 225, 0.1);
    border-radius: 50%;
    margin: 0 auto 25px;
}

.service-icon i {
    font-size: 30px;
    color: var(--primary-color);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* Portfolio Section */
.portfolio-filters {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    background: none;
    border: none;
    padding: 8px 20px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    margin: 0 5px;
    transition: var(--transition);
    position: relative;
}

.filter-btn::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    transition: var(--transition);
}

.filter-btn.active::after,
.filter-btn:hover::after {
    width: 30px;
}

.filter-btn.active {
    color: var(--primary-color);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.portfolio-item {
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow);
}

.portfolio-img {
    height: 250px;
    overflow: hidden;
}

.portfolio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-item:hover .portfolio-img img {
    transform: scale(1.1);
}

.portfolio-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    transform: translateY(100%);
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-info {
    transform: translateY(0);
}

.portfolio-info h3 {
    margin-bottom: 5px;
}

.portfolio-link {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-link {
    opacity: 1;
    transform: translateY(0);
}

/* Testimonials */
.testimonials {
    background-color: var(--light-color);
}

.testimonial-slider {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.testimonial-slider::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.testimonial-slider::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.testimonial-slider::-webkit-scrollbar-track {
    background: transparent;
}

.testimonial-item {
    flex: 0 0 100%;
    scroll-snap-align: start;
    padding: 20px;
}

.testimonial-content {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    position: relative;
}

.testimonial-content::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50px;
    border-width: 15px 15px 0;
    border-style: solid;
    border-color: white transparent transparent;
}

.testimonial-content p {
    font-style: italic;
    position: relative;
    padding-left: 25px;
}

.testimonial-content p::before {
    content: '\201C';
    font-size: 50px;
    position: absolute;
    left: 0;
    top: -15px;
    color: var(--primary-color);
    opacity: 0.3;
}

.testimonial-author {
    display: flex;
    align-items: center;
    padding-left: 30px;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
}

.author-info h4 {
    margin-bottom: 5px;
}

.author-info p {
    color: var(--gray-color);
    font-size: 0.9rem;
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(65, 105, 225, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.contact-icon i {
    font-size: 24px;
    color: var(--primary-color);
}

.contact-text h3 {
    margin-bottom: 5px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid var(--border-color);
    font-size: 16px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(65, 105, 225, 0.2);
}

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

/* Map */
.map {
    height: 450px;
}

/* Footer */
.footer {
    background-color: transparent;
    color: white;
    padding: 10px 0 !important;  /* was 20px 0 10px */
    position: relative !important;
    z-index: 2000;
}

.footer-content {
    display: grid;
    grid-template-columns: auto auto;
    gap: 40px;
    margin-bottom: 0;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.footer-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 10px !important;  /* was 20px */
    background-image: url('../images/pixel-art/tracks/fire.png');
    background-size: cover;
    background-position: center 20%; /* move image up inside the circle */
    background-repeat: no-repeat;
    box-shadow: 0 0 15px rgba(255, 99, 71, 0.6);
}

.footer-logo img {
    display: none !important;
}

.footer h3 {
    position: relative;
    margin: 0;
    font-size: 1.3rem;
    color: var(--accent-color);
}

.footer h3::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 3px;
    background-color: var(--primary-color);
    bottom: -10px;
    left: 0;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #ccc;
}

.footer-links ul li a:hover {
    color: white;
    padding-left: 5px;
}

.footer-newsletter p {
    margin-bottom: 20px;
}

.footer-newsletter form {
    display: flex;
}

.footer-newsletter input {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 5px 0 0 5px;
}

.footer-newsletter button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0 20px;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: var(--transition);
}

.footer-newsletter button:hover {
    background-color: #2d5bd9;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
}

.social-icons a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.footer-bottom p {
    margin-bottom: 10px;
}

.footer-bottom-links a {
    color: #ccc;
    margin-left: 20px;
}

.footer-bottom-links a:hover {
    color: white;
}

/* Footer social links match nav style */
.footer .social-links {
    display: flex;
    gap: 30px;
    justify-content: center;
    padding: 0;
    list-style: none;
    transform: none; /* reset horizontal nudge */
    margin: 0;
}

.footer .social-links a {
    color: var(--text-color);
    font-weight: normal;
    position: relative;
    font-size: 0.8rem;
    text-transform: uppercase;
    padding: 4px 8px;
    text-decoration: none;
    transition: var(--transition);
}

.footer .social-links a i {
    font-size: 1.4rem;
    vertical-align: middle;
    display: inline-block;
    margin-right: 5px;
}

.footer .social-links a:hover {
    color: var(--accent-color);
    background-color: transparent;
}

.footer .social-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    bottom: -4px;
    left: 0;
    transition: var(--transition);
}

.footer .social-links a:hover::after,
.footer .social-links a.active::after {
    width: 100%;
}

/* Align footer title to the left, keep links centered */
.footer-content h2 {
    justify-self: start;
    text-align: left;
}

.footer-content .social-links {
    justify-self: end;
}

/* Back to top button */
.bg-controls {
    position: fixed;
    bottom: 100px; /* Ustawienie wyżej, aby nie nachodziło na stopkę */
    right: 20px;
    z-index: 9999;
    background-color: var(--dark-color);
    padding: 10px;
    border: var(--pixel-border);
    display: flex;
    align-items: center;
    gap: 10px;
}

.music-player {
    background-color: transparent; /* Zmieniono na transparent */
    padding: 40px;
    border: var(--pixel-border);
    position: relative;
    z-index: 1;
    margin-bottom: 0; /* Usunięto margines dolny */
}

/* Dodatkowy margines na dole strony, aby stopka nie była zasłaniana */
footer {
    padding-bottom: 80px !important;
}

/* Zapewnienie, że stopka jest nad kontrolkami audio */
footer {
    position: relative;
    z-index: 100;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #2d5bd9;
    transform: translateY(-5px);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsiveness */
@media screen and (max-width: 991px) {
    .section-padding {
        padding: 70px 0;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .testimonial-slider {
        max-width: 600px;
    }
}

@media screen and (max-width: 767px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        background-color: white;
        flex-direction: column;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        transition: var(--transition);
        padding: 20px 0;
        text-align: center;
    }
    
    .nav-menu li {
        margin: 15px 0;
    }
    
    .nav-menu a {
        color: var(--text-color);
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .portfolio-filters {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-btn {
        margin-bottom: 10px;
    }
    
    .testimonial-slider {
        max-width: 100%;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-bottom-links {
        justify-content: center;
        margin-top: 10px;
    }
    
    .footer-bottom-links a {
        margin: 0 10px;
    }
}

@media screen and (max-width: 480px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .btn {
        padding: 10px 20px;
    }
    
    .hero-buttons .btn {
        margin-bottom: 10px;
    }
    
    .about-stats {
        flex-direction: column;
    }
    
    .stat-item {
        margin-bottom: 20px;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
}

/* Efekty pixel art i animacje 8-bit */
.pixel-border {
    position: relative;
    display: inline-block;
    padding: 4px;
}

.pixel-border::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 4px solid var(--accent-color);
    z-index: -1;
}

/* Pikselowy kursor */
.pixel-cursor {
    width: 16px;
    height: 16px;
    background-color: var(--accent-color);
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    image-rendering: pixelated;
    box-shadow: 0 0 8px rgba(50, 255, 126, 0.7);
}

/* Efekt glitch dla tekstu */
@keyframes glitch {
    0% {
        transform: translateX(0);
        color: var(--accent-color);
    }
    20% {
        transform: translateX(-2px);
        color: var(--primary-color);
    }
    40% {
        transform: translateX(2px);
        color: var(--secondary-color);
    }
    60% {
        transform: translateX(-2px);
        color: var(--primary-color);
    }
    80% {
        transform: translateX(2px);
        color: var(--accent-color);
    }
    100% {
        transform: translateX(0);
        color: var(--accent-color);
    }
}

.hero-content h1:hover {
    animation: neon-flicker 4s ease-in-out infinite;
    cursor: pointer;
}

/* Animacja pikselowego pojawiania się */
@keyframes pixelate-in {
    0% {
        opacity: 0;
        transform: scale(0.8);
        image-rendering: auto;
    }
    50% {
        opacity: 0.5;
        transform: scale(0.9);
        image-rendering: pixelated;
    }
    100% {
        opacity: 1;
        transform: scale(1);
        image-rendering: pixelated;
    }
}

/* Efekt świecenia dla przycisków */
.pixel-glow {
    box-shadow: 0 0 0 2px var(--accent-color), 0 0 8px 2px var(--accent-color);
    position: relative;
}

.pixel-glow::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 2px solid var(--accent-color);
    animation: pixel-pulse 1s steps(2) infinite;
}

@keyframes pixel-pulse {
    0% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

/* Efekt naciśnięcia przycisku */
.pixel-pressed {
    transform: translateY(4px) !important;
    box-shadow: none !important;
    transition: none !important;
}

/* Efekt dla przesłanych formularzy */
.form-submitted {
    background-color: var(--accent-color);
    color: var(--dark-color);
    transform: translateY(2px);
}

/* Easter egg styles */
.easter-egg-active {
    animation: rainbow-bg 1s steps(4) infinite;
}

@keyframes rainbow-bg {
    0% {
        background-color: var(--dark-color);
    }
    25% {
        background-color: #4b0082;
    }
    50% {
        background-color: #800080;
    }
    75% {
        background-color: #32008f;
    }
    100% {
        background-color: var(--dark-color);
    }
}

/* Pikselowe obrazy */
.pixelated {
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

/* Linie scanline jak na starych monitorach CRT */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15),
        rgba(0, 0, 0, 0.15) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    z-index: 1;
}

/* Dodatkowe stylizacje dla sekcji Listen */
.music-player {
    position: relative;
    overflow: hidden;
}

.music-player::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        rgba(0, 0, 0, 0.1) 25%,
        transparent 25%,
        transparent 50%,
        rgba(0, 0, 0, 0.1) 50%,
        rgba(0, 0, 0, 0.1) 75%,
        transparent 75%,
        transparent
    );
    background-size: 4px 4px;
    pointer-events: none;
    z-index: 0;
}

/* Streaming buttons - styled to match .btn-outline.pixel-glow */
.streaming-btn {
    display: inline-flex; /* Use flex for alignment */
    align-items: center;
    gap: 8px; /* Space between icon and text */
    padding: 6px 12px; /* Slightly smaller padding */
    margin: 5px;
    border: 2px solid var(--text-color);
    cursor: pointer;
    position: relative;
    background-color: transparent; /* Like .btn-outline */
    color: var(--text-color);
    text-transform: uppercase;
    font-size: 0.7rem; /* Keep it small */
    font-family: 'Press Start 2P', cursive, monospace; /* Match .btn font */
    transition: var(--transition);
    z-index: 1;
}

.streaming-btn::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 2px solid transparent;
    transition: var(--transition);
    z-index: -1;
}

.streaming-btn:hover {
    transform: translate(2px, 2px);
    background-color: var(--text-color) !important; /* Correct pink background */
    color: var(--light-color) !important;           /* Correct light text */
    opacity: 1 !important;
}

.streaming-btn:hover::after {
    border-color: var(--text-color) !important; /* Correct pink border glow */
    animation: pixel-pulse 1s steps(2) infinite !important;
}

.streaming-btn i {
    font-size: 1rem; /* Icon size */
}

/* Responsywność dla telefonów mobilnych */
@media screen and (max-width: 767px) {
    .hero-content h1 {
        font-size: 1.5rem;
    }
    
    .section-header h2 {
        font-size: 1.2rem;
    }
    
            .nav-menu.active {
        left: 0; /* Slide in the menu */
        background-color: rgba(1, 11, 21, 0.9); /* Półprzezroczyste ciemne tło */
    }
    
    .track-image img {
        width: 150px;
        height: 150px;
    }
    
    .player-controls {
        gap: 8px;
    }
    
    .control-btn {
        width: 40px;
        height: 40px;
    }
    
    .play-btn {
        width: 48px; 
        height: 48px; 
    }
}

/* Animacja pikselowej krawędzi */
@keyframes pixel-border-animation {
    0%, 100% {
        border-color: var(--primary-color); /* Original Red */
    }
    25% {
        border-color: var(--secondary-color); /* Original Blue/Gray */
    }
    50% {
        border-color: rgba(194, 94, 158, 1); /* New Purplish-Pink */
    }
    75% {
        border-color: var(--accent-color); /* Original Blue/Gray */
    }
}

.hero-content {
    border: 4px solid var(--primary-color);
    animation: pixel-border-animation 8s steps(4) infinite;
}

/* Dodatkowe stylizacje dla sekcji Favourites */
.favourites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
    gap: 20px;
    justify-content: center;
}

.favourite-item {
    background-color: var(--dark-color);
    padding: 20px;
    border: 4px solid var(--accent-color);
    transition: var(--transition);
    position: relative;
}

.favourite-item:hover {
    transform: translateY(-4px);
    border-color: var(--primary-color);
}

.favourite-item h2 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--accent-color);
    text-transform: uppercase;
}

.work-list li, .playlist-list li {
    margin-bottom: 10px;
    border-left: 4px solid var(--secondary-color);
    padding-left: 10px;
}

/* Blink animation dla cursora tekstu */
@keyframes blink {
    0%, 49% {
        opacity: 1;
    }
    50%, 100% {
        opacity: 0;
    }
}

/* Beat items styling */
.beats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)) !important;
    gap: 20px;
    justify-content: center !important;
}

.beat-item {
    border: 4px solid var(--secondary-color);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease !important;
    padding: 30px 20px !important;
    min-height: 380px !important;
}

.beat-item:hover {
    transform: translateY(-4px) !important;
    border-color: var(--accent-color) !important;
    box-shadow: 0 0 10px var(--gray-color) !important;
}

.beat-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.beat-item .beat-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
}

.beat-item:hover .beat-overlay {
    opacity: 1;
}

.play-button {
    width: 48px;
    height: 48px;
    background-color: var(--accent-color);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--dark-color);
    border: 15px solid var(--light-color);
}

/* Cover Flow Effect for Pack Carousels */
#loops-packs-carousel .beat-item,
#beats-packs-carousel .beat-item {
    transform: scale(0.85);
    opacity: 0.6;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

#loops-packs-carousel .beat-item.active-pack,
#beats-packs-carousel .beat-item.active-pack {
    transform: scale(1);
    opacity: 1;
}

#loops-packs-carousel .beat-item:not(.active-pack):hover,
#beats-packs-carousel .beat-item:not(.active-pack):hover {
    opacity: 0.6; /* Keep it dimmed */
}

#loops-packs-carousel .beat-item.active-pack:hover,
#beats-packs-carousel .beat-item.active-pack:hover {
    opacity: 1; /* Keep it bright */
}

/* --- Final Hover Fix for Pack Carousels --- */
/* Override general hover effects to stop non-active items from scaling up */
#loops-packs-carousel .beat-item:not(.active-pack):hover,
#beats-packs-carousel .beat-item:not(.active-pack):hover {
    transform: scale(0.85) !important; /* Keep it small */
    opacity: 0.6 !important; /* Keep it dimmed */
}

/* Ensure the active item stays scaled up on hover */
#loops-packs-carousel .beat-item.active-pack:hover,
#beats-packs-carousel .beat-item.active-pack:hover {
    transform: scale(1) !important; /* Keep it big */
    opacity: 1 !important;
}

/* Buy Section - License Options */
#buy {
    padding-bottom: 40px; /* Reduce bottom space */
}

.licensing-options {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.license-card {
    flex: 1 0 300px;
    background-color: transparent;
    border: 4px solid var(--secondary-color);
    padding: 30px 20px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    color: var(--light-color);
    display: flex;
    flex-direction: column;
    image-rendering: pixelated;
    min-height: 380px !important;
}

.license-card.pixel-animated {
    animation: none !important;
}

.license-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-color);
    box-shadow: 0 0 10px var(--gray-color);
}

.license-card.featured:hover {
    transform: scale(1.05) translateY(-4px);
}

.license-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

.price {
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 20px;
    padding: 10px 0;
    border-top: 2px solid var(--text-color);
    border-bottom: 2px solid var(--text-color);
}

.license-features {
    margin-bottom: 25px;
    text-align: left;
}

.license-features li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
    font-size: 0.8rem;
}

.license-features li:before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

.license-card.featured {
    border-color: var(--accent-color);
    transform: scale(1.05);
    z-index: 2;
}

.featured-tag {
    position: absolute;
    top: -15px;
    right: 20px;
    background-color: var(--accent-color);
    padding: 5px 10px;
    font-size: 0.8rem;
    font-weight: bold;
}

.license-card .btn {
    align-self: center;
    margin: 60px 0 0 0; /* Zwiększony margines górny, reszta 0 */
}

/* Responsive adjustments for license cards */
@media screen and (max-width: 768px) {
    .licensing-options {
        flex-direction: column;
        align-items: center;
    }

    .license-card {
        min-height: auto !important; /* Override desktop's fixed height */
        width: 100%;
        max-width: 400px;
        margin-bottom: 50px; /* Increased margin for safety */
    }
    
    .license-card.featured {
        transform: scale(1);
    }
    
    .license-card.featured:hover {
        transform: translateY(-4px);
    }
}

/*--------------------------------------------------------------
# My Albums Section
--------------------------------------------------------------*/

/*
--------------------------------------------------------------
# My Work Section - REBUILT LAYOUT (2025-06-30)
--------------------------------------------------------------
*/

/* --- Main Panel Container --- */
/* This is the core element, positioned next to the album art. */
#my-albums .album-item .tracklist-panel {
    position: absolute;
    top: 0;
    left: 100%;
    width: 500px;
    height: 380px; /* Strict height matching the album art */
    padding: 20px;
    box-sizing: border-box;

    /* Flexbox Structure for Scrollable Content */
    display: flex;
    flex-direction: column;

    /* Initial Animation State */
    opacity: 0;
    transform: scaleX(0);
    transform-origin: left;
    visibility: hidden; /* Use visibility to control interaction and rendering */
    /* Animate opacity/transform, but delay hiding the element until the animation is over */
    transition: opacity 0.4s ease-out, transform 0.4s ease-out, visibility 0s linear 0.4s;
    z-index: 20;
    will-change: transform;
    color: #ffedd0;
}

/* --- Visible State --- */

/* For devices that can hover, show the panel on hover, but only if it's not already open via a tap. */
@media (hover: hover) {
    #my-albums .album-interactive-area:not(.is-open):hover .tracklist-panel {
        opacity: 1;
        transform: scaleX(1);
        visibility: visible;
        transition-delay: 0s; /* Make visibility appear instantly */
    }
}

/* For any device, when the card is tapped (.is-open is added), show the panel. */
#my-albums .album-interactive-area.is-open .tracklist-panel {
    opacity: 1;
    transform: scaleX(1);
    visibility: visible;
    transition-delay: 0s; /* Make visibility appear instantly */
}

/* --- Tracklist Content (for scrolling) --- */
#my-albums .album-item .tracklist-panel .tracklist-content {
    flex-grow: 1;
    min-height: 0; /* Critical for flexbox scrolling */
    display: flex;
    flex-direction: column;
}

/* Resetting default margins that conflict with flexbox */
#my-albums .album-item .tracklist-panel .tracklist-content h4 {
    margin-block-start: 0;
    margin-block-end: 0.5em; /* A little space below the title */
}

#my-albums .album-item .tracklist-panel .tracklist-content ol {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    list-style-position: inside; /* Ensures list numbers are part of the flex item */
}

#my-albums .album-item .tracklist-panel .tracklist-content li {
    flex-grow: 1; /* Each item grows to fill space */
    display: flex;
    align-items: center; /* Vertically centers the text in the grown-up item */
    padding: 0.5em 0 0.5em 1em; /* Adds vertical padding and keeps left indent */
    white-space: nowrap; /* Prevent titles from wrapping */
}

/* --- Scrollable Tracklist Area --- */
/* This is the flex child that grows and scrolls. */
#my-work .tracklist-content {
    flex-grow: 1; /* CRITICAL: Allows this element to fill available space. */
    overflow-y: auto; /* CRITICAL: Enables scrolling for long tracklists. */
    min-height: 0; /* Fix for flexbox overflow bug in some browsers. */
    padding-right: 10px; /* Space for the scrollbar */
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) transparent;
}

/* --- Action Buttons Footer --- */
/* This is the fixed-size flex child at the bottom. */
#my-work .action-buttons {
    flex-shrink: 0; /* CRITICAL: Prevents this element from shrinking. */
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* --- Inner Content Styling --- */
#my-work .tracklist-content h4 {
    margin-top: 0;
    margin-bottom: 15px;
    font-family: var(--font-pixel);
    color: var(--accent-color);
    text-align: center;
    font-size: 1.2rem;
    letter-spacing: 2px;
}

#my-work .tracklist-content ol {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

#my-work .tracklist-content li {
    padding: 5px 0;
    border-bottom: 1px solid rgba(255, 237, 208, 0.2);
    font-family: var(--font-main);
    font-size: 0.9rem;
    white-space: nowrap;
}

#my-work .tracklist-content li:last-child {
    border-bottom: none;
}

/* --- Button Layout --- */
#my-work .download-buy-row,
#my-work .streaming-row {
    display: flex;
    justify-content: center;
    gap: 10px;
}

#my-work .action-buttons .btn {
    flex-grow: 1;
    text-align: center;
}

/* --- Custom Scrollbar --- */
#my-work .tracklist-content::-webkit-scrollbar {
    width: 8px;
}

#my-work .tracklist-content::-webkit-scrollbar-track {
    background: transparent;
}

#my-work .tracklist-content::-webkit-scrollbar-thumb {
    background-color: var(--accent-color);
    border-radius: 4px;
}

/* --- Invisible Hover Bridge --- */
/* This prevents the panel from closing when moving the mouse over the gap. */
#my-albums .album-interactive-area::after {
    content: '';
    position: absolute;
    top: 0;
    left: 100%;
    width: 20px;
    height: 100%;
    z-index: 19;
    pointer-events: none;
}

#my-albums .album-interactive-area:hover::after {
    pointer-events: auto;
}

/* --- Carousel Slide Fix --- */
/* Ensures the parent container has enough height. */
#my-work .carousel-slide {
    min-height: 380px;
    display: flex;
    align-items: center;
}

/* --- Vertical Year Display --- */
.album-item {
    position: relative; /* Needed for absolute positioning of the child */
}

.album-year {
    position: absolute;
    top: 50%;
    left: 0;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: translateY(-50%) translateX(-100%) rotate(180deg);
    padding: 10px 5px;
    color: var(--light-color);
    text-shadow: 0 0 6px var(--light-color), 0 0 15px var(--accent-color);
    font-family: var(--font-pixel);
    font-size: 1.2rem;
    letter-spacing: 2px;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s ease-out, opacity 0.4s ease-out;
    z-index: 10;
}

.album-interactive-area:hover .album-year {
    opacity: 1;
    transform: translateY(-50%) translateX(0) rotate(180deg);
}

@media (max-width: 992px) {
    /* --- Album Tracklist Mobile/Tablet View --- */

    /* 1. Make the card a positioning context and clickable */
    #my-albums .album-interactive-area {
        position: relative;
        cursor: pointer;
    }

    /* 2. Style the panel as a full overlay, hidden by default */
    #my-albums .album-item .tracklist-panel {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        transform: none; /* Reset desktop animation */
        background-color: rgba(1, 11, 21, 0.9); /* Dark, semi-transparent overlay */
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease-in-out;
        display: flex; /* Re-enable flex for vertical centering */
    }

    /* 3. Disable the desktop hover effect on mobile */
    #my-albums .album-interactive-area:hover .tracklist-panel {
        opacity: 0;
        transform: scaleX(0);
    }

    /* 4. Show the panel when .is-open class is present (toggled by JS) */
    #my-albums .album-interactive-area.is-open .tracklist-panel {
        opacity: 1;
        transform: none;
        pointer-events: auto;
    }

    /* 5. Allow text to wrap on mobile and reset vertical padding */
    #my-albums .album-item .tracklist-panel .tracklist-content li {
        white-space: normal;
        padding-top: 0;
        padding-bottom: 0;
    }
}

#my-albums .album-interactive-area {
    position: relative; /* This is the positioning anchor for the tracklist panel */
}

/* Create an invisible 'bridge' to keep the hover state active */
#my-albums .album-interactive-area::after {
    content: '';
    position: absolute;
    top: 0;
    left: 100%;
    width: 0;
    height: 100%;
    transition: width 0s 0.4s; /* Delay the bridge removal */
}

#my-albums .album-interactive-area:hover::after {
    width: var(--panel-width, 0px); /* Use the JS-provided width */
    transition: width 0s;
}

#my-albums .album-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.album-title {
    font-family: var(--font-pixel);
    color: var(--light-color);
    text-shadow: 0 0 6px var(--light-color), 0 0 15px var(--accent-color);
    font-size: 1.1rem; /* Slightly larger than carousel labels */
    margin-bottom: 15px; /* Space between title and card */
    text-align: center;
    animation: neon-flicker-gentle 5s infinite linear;
}

.albu.my-work-carousel .beats-grid {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 20px; /* Odstęp między kartami */
}

/* Wyłączamy perspektywę 3D dla prostszych karuzel, aby nie psuła layoutu */
#loops-packs-carousel .beats-grid,
#beats-packs-carousel .beats-grid {
    perspective: none;
}

.album-cards-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px; /* Odstęp między kartami */
    padding: 20px;
    width: 100%;
    max-width: 1200px; /* Ograniczenie szerokości na dużych ekranach */
    margin: 0 auto; /* Wyśrodkowanie samego kontenera */
}

.download-buy-row.centered {
    justify-content: center;
}

.album-item .action-buttons {
    width: 100%;
    max-width: 380px; /* Match the card width */
    padding: 15px;
    margin-top: 10px;
    box-sizing: border-box;
}

.btn.disabled.sold-out {
    background-color: #5a5a5a !important; /* A lighter gray for visibility */
    color: #ababab !important; /* Light gray text */
    border-color: #444 !important; /* Darker border */
    cursor: not-allowed;
    pointer-events: none; /* Prevents clicks and hover effects */
    text-shadow: none !important;
    box-shadow: none !important;
}

.btn.disabled.sold-out:hover {
    background-color: var(--gray-color) !important;
    color: var(--secondary-color) !important;
    border-color: var(--secondary-color) !important;
    transform: none !important;
}

/* Beat items styling */
.beats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)) !important;
    gap: 20px;
    justify-content: center !important;
}

.beat-item {
    border: 4px solid var(--secondary-color);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease !important;
    padding: 30px 20px !important;
    min-height: 380px !important;
}

.beat-item:hover {
    transform: translateY(-4px) !important;
    border-color: var(--accent-color) !important;
    box-shadow: 0 0 10px var(--gray-color) !important;
}

.beat-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.beat-image img {
    position: absolute !important;
    top: -4px !important;
    left: -4px !important;
    width: calc(100% + 8px) !important;
    height: calc(100% + 8px) !important;
    object-fit: cover !important;
    object-position: center center !important;
    border-bottom: 4px solid var(--accent-color) !important;
}

.play-button {
    width: 48px;
    height: 48px;
    background-color: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--dark-color);
    border: 4px solid var(--light-color);
}

/* Restore outer pixel frames around paintings */
#my-work .beat-item {
    border: var(--pixel-border) !important;
    border-bottom: var(--pixel-border) !important;
    padding-bottom: 20px !important;
}

#my-work .beat-item::after {
    display: none !important;
}

/* Lower beat info (title, meta, and button) in My Work section */
#my-work .beat-item .beat-info {
    margin-top: 5px;
}

/* Adjust My Work spacing */
.beat-item .beat-info h3 {
    position: relative;
    top: -8px; /* lift title up */
    margin-bottom: 4px;
}
.beat-item .beat-info .beat-meta {
    position: relative;
    top: -4px; /* lift meta slightly */
    margin-bottom: 20px; /* add spacing before buttons */
}

/* Match pack images to My Work dimensions */
.pack-image {
    width: 405px;
    height: 380px;
    overflow: visible;
    position: relative !important;
    /* keep center horizontally via container/grid */
}

.pack-image img {
    position: absolute !important;
    top: -40px !important;
    left: -35px !important;
    width: calc 100% !important;
    height: calc 100% !important;
    object-fit: cover !important;
    object-position: left top !important;
    border-bottom: 4px solid var(--accent-color) !important;
}

/* Packs section layout similar to My Work */
.packs-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(380px, 1fr)) !important;
    gap: 20px;
    justify-content: center;
}

.packs-grid .pack-item {
    border: 4px solid var(--secondary-color) !important;
    overflow: hidden;
    min-height: 380px !important;
    padding: 0 20px 30px !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease !important;
}

.packs-grid .pack-item:hover {
    transform: translateY(-4px) !important;
    border-color: var(--accent-color) !important;
    box-shadow: 0 0 10px var(--gray-color);
}

/* Space out playlist items */
#playlists .playlist-item {
    margin-bottom: 2rem;
}

/* General styling for all 'View More' buttons */
.view-more {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 50px;
}

/* Mirror Packs styling in My Work */
#my-work .beats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(380px, 1fr)) !important;
    gap: 20px;
    justify-content: center;
}
#my-work .beat-item {
    border: 4px solid var(--accent-color) !important; /* Neon border */
    box-shadow: 0 0 8px var(--accent-color); /* Neon glow */
    overflow: hidden;
    min-height: 380px !important;
    padding: 0 20px 30px !important;
    transition: border-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out, transform 0.3s ease-in-out; /* Smooth transitions */
}
#my-work .beat-item:hover {
    transform: translateY(-4px) !important;
    border-color: var(--accent-color) !important; /* Keep accent color for border on hover */
    box-shadow: 0 0 15px var(--accent-color), 0 0 5px var(--accent-color) inset; /* Enhanced neon glow on hover */
}

/* Styl dla karty karuzelowej */
#my-work .beat-item.carousel-item {
    transform: scale(0.95);
    opacity: 0.9;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#my-work .beat-item.carousel-item:hover {
    transform: scale(0.97);
    opacity: 1;
}
#my-work .beat-image {
    width: 405px;
    height: 380px;
    overflow: visible;
    position: relative !important;
}
#my-work .beat-image img {
    position: absolute !important;
    top: -40px !important;
    left: -35px !important;
    width: calc 100% !important;
    height: calc 100% !important;
    object-fit: cover !important;
    object-position: left top !important;
    border: -20px !important;
}

/* Increase spacing between pack titles and buttons in Packs section */
#packs .pack-info h3 {
    margin-bottom: 16px;
}

/* Reduce gap between My Work and Buy sections */
#my-work.section-padding {
    padding-bottom: 40px !important;
}
#buy.section-padding {
    padding-top: 40px !important;
}

/* CSS-only tooltip for pack items */
.pack-item[data-tooltip] {
    position: relative;
    overflow: visible !important;
}
.pack-item[data-tooltip]::after {
    content: attr(data-tooltip);
    visibility: hidden;
    opacity: 0;
    white-space: nowrap;
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 10px;
    border: var(--pixel-border);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    transition: opacity 0.2s ease-in-out;
    z-index: 10;
}
.pack-item[data-tooltip]:hover::after {
    visibility: visible;
    opacity: 1;
}

/* Add extra space below playlists before contact section */
#playlists.section-padding {
    padding-bottom: 60px;
}

/* Spacing for packs section "VIEW_ALL_PACKS" button */
#packs .view-more {
    text-align: center;
    margin: 60px 0 !important;
}

/* Carousel */
.carousel {
    position: relative;
    width: 100%;
    overflow: visible;
    margin-left: 266px; /* adjust to align center slide with Ambients pack card */
}
.carousel-track-container {
    overflow: visible;
}

/* Reset margin-left for the beats carousel to avoid conflict with JS centering */
#beats-carousel-new.carousel, /* If #beats-carousel-new has the .carousel class */
.my-work-carousel.carousel { /* Or if .my-work-carousel has the .carousel class - adjust as needed */
    margin-left: 0px;
}
.carousel-track {
    display: flex;
    align-items: center;
    transition: transform 0.5s ease-in-out;
    list-style: none;
    padding: 0;
    margin: 0;
}
.carousel-slide {
    margin: 0 10px;
    opacity: 0.5;
    transform: scale(0.8);
    transition: transform 0.5s ease, opacity 0.5s ease;
    flex-shrink: 0; /* Zapobiega kurczeniu się slajdów */
}

#contact .carousel-slide {
    width: 60%;
}

.my-work-carousel .carousel-slide {
    width: 390px; /* .beat-card-v2 (375px) + border (8px) + scale(1.02) space */
    margin: 0px 30px; /* Zachowujemy obecne marginesy zewnętrzne */
    display: flex;
    justify-content: center; /* Centrujemy .beat-card-v2 w poziomie */
}
.carousel-slide.current-slide {
    opacity: 1;
    transform: scale(1.02); /* Subtle scale effect matching other carousels */
    z-index: 2; /* Lower z-index to not interfere with UI elements */
}
.carousel-slide img {
    width: 100%;
    display: block;
    filter: drop-shadow(0 0 10px #1a2130);
}
.carousel-btn {
    /* Ogólne style WYGLĄDU przycisków - BEZ POZYCJONOWANIA */
    background: rgba(0,0,0,0.7); /* Lekko ciemniejsze tło dla lepszego kontrastu poświaty */
    color: #fff; /* Białe strzałki */
    padding: 10px 12px; /* Dopasowany padding */
    cursor: pointer;
    border: 2px solid var(--accent-color);
    box-shadow: 0 0 8px var(--accent-color);
    border-radius: 4px; /* Opcjonalnie: lekkie zaokrąglenie rogów, pasuje do neonu */
    transition: box-shadow 0.3s ease-in-out, border-color 0.3s ease-in-out, background-color 0.3s ease-in-out; /* Płynne przejścia */
    /* Mobile performance optimizations */
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

/* POZYCJONOWANIE zostało przeniesione do bardziej specyficznych reguł poniżej */

/* Override alignment for My Work carousel: align first slide with heading */
.my-work-carousel {
    width: 100%;
    max-width: 100%; /* Użyj pełnej szerokości */
    margin: 0 auto; /* Wyśrodkuj karuzelę */
    border: none; /* Upewnij się, że nie ma obramowania */
}

.my-work-carousel .carousel-track-container {
    overflow: visible; /* Pokaż sąsiednie slajdy */
}

/* Background animations container */
#bg-animations {
    display: none !important;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: -1;
}

@keyframes drop {
    0%   { top: -32px; opacity: 1; }
    80%  { top: 80%; opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

/* Ensure droplets are confined to home section */
#home {
    position: relative;
    overflow: hidden;
}

/* CRT scanlines overlay disabled for smooth background */

/* Audio enable prompt overlay */
#audio-overlay {
    position: fixed;
    bottom: 130px;
    left: 49.95%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: var(--light-color);
    padding: 6px 12px;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.8rem;
    border: 1px solid var(--primary-color);
    border-radius: 3px;
    pointer-events: auto;
    z-index: 2000;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

/* Fixed-width centered wrapper */
.site-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Full-bleed sections: span full viewport for backgrounds/separators */
.site-wrapper > section {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

/* Smooth background for home section */

/* --- Responsive Styles --- */
@media (max-width: 768px) {
    /* Hide only background audio player and audio overlay on mobile to prevent overlapping */
    #bg-audio-controls {
        display: none !important; /* Completely hidden on mobile */
    }
    
    #audio-overlay {
        display: none !important; /* Hide "Click me :)" overlay on mobile */
    }
    
    /* Zapobieganie horizontal scroll na całej stronie */
    body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }
    
    html {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }
    
    .site-wrapper {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }
    
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .social-links {
        display: flex; /* Ensure flex context for ordering */
        flex-direction: column;
        align-items: center;
        margin-top: 5px; /* Further reduced space */
        padding-left: 0; /* Remove default list padding */
        list-style: none; /* Remove list bullets */
    }

    /* Reorder links for mobile view: shortest to longest */
    .social-links li:nth-child(3) { order: 1; } /* Spotify */
    .social-links li:nth-child(5) { order: 2; } /* YouTube */
    .social-links li:nth-child(1) { order: 3; } /* Instagram */
    .social-links li:nth-child(2) { order: 4; } /* SoundCloud */
    .social-links li:nth-child(4) { order: 5; } /* Mail */

    .social-links li {
        margin-bottom: 0px; /* Further reduced space */
    }
    
    /* Prevent email text wrapping to keep icon aligned */
    .social-links li a[href^="mailto:"] {
        white-space: nowrap; /* Prevent text wrapping */
        overflow: hidden; /* Hide overflow if needed */
        text-overflow: ellipsis; /* Add ... if text is too long */
        max-width: 280px; /* Reasonable max width for mobile */
        display: inline-block; /* Allow width control */
    }

    .footer-logo {
        margin-bottom: 5px; /* Further reduced space */
    }

    /* --- Reliable Footer Collision Avoidance --- */
    /* Default, resting position for the player and overlay */
    #bg-audio-controls,
    #audio-overlay {
        transition: bottom 0.3s ease-in-out;
    }

    /* When the footer is visible, move elements up */
    body.footer-visible #bg-audio-controls {
        bottom: 280px; /* Adjust this value to sit perfectly above your footer */
    }

    body.footer-visible #audio-overlay {
        bottom: 340px; /* Adjust this value to sit perfectly above the player */
    }

    /* Zapobieganie overflow w sekcji my-work na mobile */
    #my-work {
        overflow: hidden !important;
    }
    
    #my-work .container {
        overflow: hidden !important;
    }
    
    /* Ukryj elementy karuzeli wychodzące poza kontener na mobile */
    #my-work .carousel,
    #my-work .beats-carousel,
    #my-work .my-work-carousel {
        overflow: hidden !important;
    }
    
    #my-work .carousel-track-container,
    #my-work .beats-carousel-container {
        overflow: hidden !important;
    }
    
    /* Mobile responsive carousel slides - fit in viewport with visible borders */
    .my-work-carousel .carousel-slide {
        width: calc(100vw - 40px) !important; /* More space for real device border visibility */
        max-width: 385px !important; /* Smaller max-width to ensure borders fit */
        margin: 0 8px !important; /* More margin on mobile for real device border space */
    }
    
    /* Remove scale effect on mobile to prevent border clipping */
    .my-work-carousel .carousel-slide.current-slide {
        transform: none !important; /* No scale on mobile - prevents border clipping */
    }

}
#home {
    background-color: transparent !important; /* Zmieniono na transparent */
    background-image: none !important; /* To może być potrzebne, jeśli tło body ma też obrazek */
}
#home::before {
    display: none !important;
    content: none !important;
    background: none !important;
}

/* Restore side borders on first and last beat-items in #my-work */
#my-work .beats-grid .beat-item:first-child {
    border-left: var(--pixel-border) !important;
}
#my-work .beats-grid .beat-item:last-child {
    border-right: var(--pixel-border) !important;
}

/* Show side borders in My Work carousel by overriding inline overflow */
.my-work-carousel .beats-grid {
    display: flex !important;
    gap: 20px;
    transition: transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1) !important; /* Płynna animacja z lekkim ease-in-out */
    overflow-x: visible !important; /* Allow content to overflow this container */
}

/* Persistent frame edges for My Work carousel */
.my-work-carousel {
    position: relative !important;
    overflow: visible;
}

/* Show price above button */
#packs .pack-info .pack-price {
    display: block;
    margin: 8px 0;
}

/* Background audio controls */
#bg-audio-controls {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    padding: 4px;
    border: var(--pixel-border);
    z-index: 1000;
}
#bg-audio-controls .control-btn i {
    font-size: 1.2rem;
    cursor: pointer;
}
#bg-volume-slider {
    width: 80px;
    cursor: pointer;
}

/* My Work: horizontal streaming link buttons */
.my-work-carousel .carousel-slide .beat-info .streaming-links {
    display: flex;
    gap: 6px;
    margin-top: 8px;
    position: relative; /* Bring links above the overlay */
    z-index: 2;         /* Ensure it's on top */
}
.my-work-carousel .carousel-slide .beat-info .streaming-links .streaming-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    padding: 4px 6px;
    white-space: nowrap;
}


.my-work-carousel .carousel-slide .beat-info .streaming-links .streaming-btn i {
    font-size: 1rem;
}

/* My Work: two links on top, SoundCloud below centered */
.my-work-carousel .carousel-slide .beat-info .streaming-links {
    flex-wrap: wrap;
}
.my-work-carousel .carousel-slide .beat-info .streaming-links .streaming-btn:nth-child(1) {
    order: 1;
}
.my-work-carousel .carousel-slide .beat-info .streaming-links .streaming-btn:nth-child(3) {
    order: 2;
}
.my-work-carousel .carousel-slide .beat-info .streaming-links .streaming-btn:nth-child(2) {
    order: 3;
    margin: 4px 0 0 4px;
}

/* Listen Section */
.listen {
    background-color: var(--light-color);
    position: relative;
    padding: 80px 0;
}

.page-divider {
    margin: 0;
    border: none;
    height: 8px;
    background-color: var(--gray-color);
}

/* Contact Section Divider */
.contact.section-padding {
    border-bottom: 8px solid var(--gray-color);
}

/* Disable hover scale animation and transition for the specific track image inside the listen section */
#listen .track-image img {
    transition: none !important;
}
#listen .track-image:hover img {
    transform: none !important;
}

/* Two-column layout for contact section */
#contact .contact-container {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 20px !important;
    align-items: start !important;
}
#contact .contact-image {
    display: flex !important;
    justify-content: center;
    align-items: center;
    align-self: start !important;
}
#contact .contact-image img {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
}

/* Bottom-align send button in contact form */
#contact .contact-form {
    display: block;
}
#contact .contact-form form {
    display: block;
}
#contact .contact-form form button {
    margin-top: initial;
}

.volume-slider,
#bg-volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 80px;
    height: 8px;
    background: linear-gradient(
        to right,
        var(--gray-color) 0%,
        var(--gray-color) 100%,
        var(--light-color) 100%,
        var(--light-color) 100%
    );
    border: 2px solid var(--secondary-color);
    cursor: pointer;
    outline: none;
    margin: 0 10px;
}
.volume-slider::-webkit-slider-thumb,
#bg-volume-slider::-webkit-slider-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent-color);
    border: 2px solid var(--gray-color);
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    margin-top: -1px; /* center thumb on track */
}
.volume-slider::-moz-range-thumb,
#bg-volume-slider::-moz-range-thumb,
.volume-slider::-ms-thumb,
#bg-volume-slider::-ms-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent-color);
    border: 2px solid var(--gray-color);
    cursor: pointer;
    margin-top: -1px; /* center thumb on track */
}

/* Spotify embed pixel-art styling */
.playlist-embed {
    display: inline-block;
    border: var(--pixel-border);
    background: var(--dark-color);
    padding: 8px;
    margin: 20px 0;
}
.playlist-embed iframe {
    border-radius: 0 !important;
    border: none !important;
    background: transparent !important;
    filter: contrast(150%) saturate(150%);
}

/* Playlists grid layout */
.playlists-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    justify-items: center;
}
#playlists .container {
    max-width: 1400px;
    margin: 0 auto;
}
.playlist-item {
    width: 100%; /* ensure full-width inside grid cells */
    box-sizing: border-box; /* Add box-sizing to playlist-item selectors */
}

/* Playlist cards styling to match Pack items */
#playlists .playlists-container .playlist-item {
    border: var(--pixel-border);
    background: var(--dark-color);
    overflow: hidden;
    min-height: 520px !important;
    margin-bottom: 0 !important;
    position: static !important;
    width: 100%;
    height: 100%;
    margin: 0 0 20px !important;
    border-radius: 0 !important;
    display: flex;
    flex-direction: column;
    justify-content: stretch;
    align-items: stretch;
    padding: 0 !important;
    box-sizing: border-box; /* Add box-sizing to playlist-item selectors */
}

/* Playlist item header styling */
.playlist-title {
    font-family: 'Press Start 2P', monospace;
    text-align: center;
    font-size: 1.1rem;
    color: #ffedd0;
    margin: 0 0 0 0;
    letter-spacing: 1px;
    text-shadow: 2px 2px 0 #1a2130, 0 0 8px var(--accent-color);
    background-color: var(--dark-color);
    background-image: url('../images/playlist-bg.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    border: var(--pixel-border);
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 8px 16px;
    border-radius: 0;
    box-shadow: 0 2px 0 #1a2130;
    position: relative;
    left: 0;
    overflow: hidden; /* hide overlay overflow */
    filter: contrast(150%) saturate(150%); /* Apply the same contrast/saturation filter from embeds to playlist-title backgrounds */
}

/* Stripe overlay for playlist titles */
.playlist-title::before {
    content: '';
    pointer-events: none;
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 2;
    background: repeating-linear-gradient(
        0deg,
        rgba(0,0,0,0.09) 0px,
        rgba(0,0,0,0.09) 2px,
        transparent 2px,
        transparent 4px
    );
}

/* Custom backgrounds for individual playlist titles */
.playlist-title.playlist-2025-beats {
    background-image: url('../images/pixel-art/tracks/playlist_b_2025.png');
    --bg-y-offset: 0px; /* override --bg-y-offset if needed */
}
.playlist-title.playlist-2025-ambients {
    background-image: url('../images/pixel-art/tracks/playlist_a_2025.png');
    --bg-y-offset: 0px;
}
.playlist-title.playlist-2024-beats {
    background-image: url('../images/pixel-art/tracks/playlist_b_2024.png');
    --bg-y-offset: 0px;
}
.playlist-title.playlist-2024-ambients {
    background-image: url('../images/pixel-art/tracks/playlist_a_2024.png');
    --bg-y-offset: 0px;
}
.playlist-title {
    background-position: center var(--bg-y-offset);
}

/* Remove inner embed wrapper border & padding */
.playlist-embed {
    display: block;
    border: var(--pixel-border);
    background: var(--dark-color);
    padding: 8px;
    margin: 0;
    border-radius: 0 !important;
    overflow: hidden;
    position: relative;
}
.playlist-embed::after {
    content: '';
    pointer-events: none;
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 2;
    background: repeating-linear-gradient(
        0deg,
        rgba(0,0,0,0.09) 0px,
        rgba(0,0,0,0.09) 2px,
        transparent 2px,
        transparent 4px
    );
    mix-blend-mode: multiply;
    opacity: 0.6;
    border-radius: 0 0 0 0;
}

/* Ensure embed covers full card */
#playlists .playlists-container .playlist-item {
    position: static !important;
    padding: 8px 20px 30px 20px !important;
    overflow: hidden;
    display: block;
}
#playlists .playlists-container .playlist-item .playlist-embed {
    width: 152%;
    height: 150%;
    margin: -70px;
    padding: 50px;
    border-radius: 0 !important;
    overflow: visible;
}
#playlists .playlist-embed iframe {
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    background: transparent !important;
    display: block;
}

/* Override Spotify embed border-radius and clip overflow to remove visible rounding */
#playlists .playlist-embed {
    border-radius: 0 !important;
    overflow: hidden !important;
}
#playlists .playlist-embed iframe {
    border-radius: 0 !important;
}

/* Expand iframe by 4px each side to cover rounding behind card border */
#playlists .playlist-embed {
    overflow: hidden;
}
#playlists .playlist-embed iframe {
    margin: -4px !important;
    width: calc(100% + 8px) !important;
    height: calc(100% + 8px) !important;
}

/* Carousel in My Work */
.my-work-carousel {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    margin: 0 auto;
    overflow: visible; /* Przywrócenie oryginalnej wartości, aby naprawić górną karuzelę */
}

.my-work-carousel .carousel-container {
    overflow: visible;
    padding: 20px 0;
}

.my-work-carousel#my-work .beats-grid {
    position: relative;
    width: 100%;
    height: 450px; /* Wysokość musi być wystarczająca, aby pomieścić karty */
    margin-top: 40px;
    perspective: 1200px; /* Włączamy perspektywę 3D dla dzieci */
    transform-style: preserve-3d; /* Zachowaj transformacje 3D dzieci */
}

.my-work-carousel .carousel-btn,
#contact .carousel .carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--gray-color);
    color: var(--light-color);
    border: 4px solid var(--light-color);
    box-shadow: 0 0 0 2px var(--light-color), 0 0 8px 2px var(--light-color);
    padding: 10px;
    cursor: pointer;
    z-index: 10;
    font-size: 1.5rem;
    line-height: 1;
    height: 50px;
    width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.my-work-carousel .carousel-btn:disabled,
#contact .carousel .carousel-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: translateY(-50%) scale(1);
}

.my-work-carousel .carousel-btn::after,
#contact .carousel .carousel-btn::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 2px solid var(--accent-color);
    animation: pixel-pulse 1s steps(2) infinite;
}

.my-work-carousel .carousel-btn:hover:not(:disabled),
#contact .carousel .carousel-btn:hover:not(:disabled) {
    transform: translateY(-50%) scale(1.05);
}

.my-work-carousel .carousel-btn.prev,
#contact .carousel .carousel-btn.prev { left: 10px; }

.my-work-carousel .carousel-btn.next,
#contact .carousel .carousel-btn.next { right: 10px; }

/* Ensure My Work carousel nav buttons are always above overlays and clickable */
.my-work-carousel .carousel-btn {
    z-index: 9999 !important;
    pointer-events: auto !important;
    /* Disable default touch gestures on arrow buttons to avoid unintended behaviors */
    touch-action: none;
}

/* Carousel Labels for My Work section */
.carousel-labels {
    position: relative; /* Added for absolute positioning of child */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    margin-top: 20px;
}

.carousel-labels span {
    font-family: var(--font-pixel);
    color: var(--light-color);
    text-shadow: 0 0 6px var(--light-color), 0 0 15px var(--accent-color); /* Base lighter shadow */
    font-size: 0.9rem;
    animation: neon-flicker-gentle 5s infinite linear; /* Faster, more controlled animation */
    transition: transform 0.3s ease, text-shadow 0.3s ease;
}

#beats-timeline,
.beats-timeline {
    display: flex;
    gap: 12px;
    width: 100%;
    justify-content: center;
    align-items: center;
}

.timeline-year {
    font-family: var(--font-pixel);
    font-size: 0.9rem;
    letter-spacing: 1px;
    color: var(--light-color);
    padding: 6px 10px;
    border: 1px solid var(--light-color);
    background: transparent;
    cursor: pointer;
    text-shadow: 0 0 6px var(--light-color), 0 0 15px var(--accent-color);
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, text-shadow 0.2s ease;
}

.timeline-year:hover,
.timeline-year.is-active {
    background-color: var(--light-color);
    color: var(--dark-color);
    text-shadow: none;
}

#latest-beats-btn, #previous-beats-btn, #middle-beats-btn {
    cursor: pointer;
}

#middle-beats-btn {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

#latest-beats-btn:hover, #previous-beats-btn:hover {
    transform: scale(1.05);
    text-shadow: 0 0 8px var(--light-color), 0 0 20px var(--accent-color);
}

#middle-beats-btn:hover {
    transform: translateX(-50%) scale(1.05);
    text-shadow: 0 0 8px var(--light-color), 0 0 20px var(--accent-color); /* Brighter glow on hover */
}

@keyframes neon-flicker-gentle {
    0%, 79% {
        /* Long 'on' state */
        text-shadow: 0 0 6px var(--light-color), 0 0 15px var(--accent-color);
        opacity: 1;
    }
    80%, 90% {
        /* 'Dim' state */
        text-shadow: 0 0 3px var(--light-color), 0 0 8px var(--accent-color);
        opacity: 0.8;
    }
    91% {
        /* Quick flicker 'off' */
        text-shadow: 0 0 3px var(--light-color), 0 0 8px var(--accent-color);
        opacity: 0.7;
    }
    92%, 99% {
        /* Back to 'dim' */
        text-shadow: 0 0 3px var(--light-color), 0 0 8px var(--accent-color);
        opacity: 0.8;
    }
    100% {
        /* Back to 'on' */
        text-shadow: 0 0 6px var(--light-color), 0 0 15px var(--accent-color);
        opacity: 1;
    }
}

/* Unified mobile swipe message styles */
.mobile-swipe-message {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.7);
    color: #f1e9e0;
    padding: 8px 16px;
    border-radius: 4px;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.6rem;
    z-index: 1000;
    text-align: center;
    pointer-events: none;
    opacity: 1;
    white-space: nowrap;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.mobile-swipe-message.fade-out {
    opacity: 0;
    transform: translateX(-50%) translateY(-10px);
}

.mobile-swipe-message.hidden {
    display: none;
}

/* Mobile scroll stabilization - prevent page jumping during swipe gestures */
html, body {
    overscroll-behavior: none;
    -webkit-overflow-scrolling: touch;
    /* HARDCORE: Disable all default touch behaviors on physical devices */
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Carousel touch optimization - HARDCORE: Disable ALL touch gestures */
.my-work-carousel, .gallery-carousel, #clean-beats-container, #loops-packs-carousel, #beats-packs-carousel {
    touch-action: none !important; /* NUCLEAR: Block ALL touch gestures including iOS Safari back swipe */
    /* HARDCORE: Force disable all default behaviors */
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
    /* Prevent iOS bounce/refresh gestures */
    -webkit-overflow-scrolling: auto;
    overscroll-behavior: contain;
}

/* HARDCORE: Disable iOS Safari specific gestures */
@supports (-webkit-touch-callout: none) {
    #clean-beats-container {
        /* iOS Safari specific fixes */
        -webkit-overflow-scrolling: auto !important;
        overflow: hidden;
        position: relative;
        /* NUCLEAR: Prevent iOS back swipe at all costs */
        -webkit-user-drag: none;
        -webkit-tap-highlight-color: rgba(0,0,0,0);
        touch-action: none !important;
        /* Block iOS Safari navigation gestures */
        -webkit-touch-callout: none !important;
        -webkit-user-select: none !important;
        /* Prevent any scrolling or bouncing */
        overscroll-behavior: none !important;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Also apply to all children to prevent event bubbling */
    #clean-beats-container * {
        touch-action: none !important;
        -webkit-touch-callout: none !important;
        -webkit-user-select: none !important;
    }
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .my-work-carousel .beat-item {
        width: 65vw; /* Match the gallery carousel for a consistent look */
        flex-shrink: 0; /* Prevent items from shrinking */
        margin: 0 10px; /* Add horizontal margin for spacing, like in the gallery */
    }
    
    .my-work-carousel .carousel-btn,
    #contact .carousel .carousel-btn {
        padding: 10px;
        height: 45px;
        width: 45px;
    }
    
    /* Meta informacje na mobile - mniejsze i bardziej kompaktowe */
    .beat-info-header .beat-meta {
        gap: 10px;
        margin-top: 6px;
        font-size: 0.6rem;
    }
}

/* Absolutnie proste podejście do karuzeli - zaczynając od zera */
.beats-carousel {
    position: relative;
    width: 100%;
    max-width: 1220px; /* Zwiększono z 1200px o 20px (po 10px z każdej strony) */
    margin: 0 auto !important;
    overflow: hidden;
    padding: 0 6px !important; /* Add 6px horizontal padding */
    overflow: visible !important; /* Ensure this is the clipping boundary */
}

.beats-carousel-container {
    position: relative;
    width: 100%; 
    padding: 20px 10px !important; /* T:20, R:10, B:20, L:10 */
    overflow: visible !important; /* Allow content to overflow this container */
}

.beats-grid.beats-track {
    display: flex;
    gap: 20px;
    flex-wrap: nowrap;
    position: relative;
    left: 0 !important; /* KRYTYCZNE - zawsze zaczynamy od lewej krawędzi */
    /* Usunięto transform: translateX(0) !important, aby JavaScript mógł zmieniać transform */
}

/* KARTY W KARUZELI - JEDNOLINIOWY UKŁAD */
#my-work .beats-grid {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important; /* Karty nie zawijają się - układ karuzeli */
    gap: 10px !important; /* Zmniejszony odstęp między kartami */
    width: auto !important; /* Auto width, aby mogło się rozciągać poza kontener */
    padding: 20px 0 !important;
    margin: 0 0 0 0 !important; /* USUNIĘTO - Duży margines nie jest już potrzebny */
    /* transform: translateX(30px); */ /* USUNIĘTE - Karuzela ma się zaczynać od lewej */
    overflow-x: visible !important; /* Allow content to overflow this container */
    width: max-content !important; /* Aby kontener rozciągał się na wszystkie karty */
}

/* Karty beatów w karuzeli - oryginalny rozmiar */
.beat-item {
    flex: 0 0 380px !important; /* Oryginalna szerokość zgodnie z designem */
    width: 380px !important;
    height: auto !important;
    min-height: 380px !important;
    margin-right: 5px !important; /* Zmniejszony odstęp między kartami */
    padding: 30px 20px !important;
    box-sizing: border-box !important;
    position: relative !important;
    border: 4px solid var(--secondary-color) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

/* Efekt uniesienia przy najechaniu */
.beat-item:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2) !important;
}

/* Powrót do normalnej kolorystyki - usunięcie żółtego podświetlenia */
.beat-item:first-child {
    border-color: var(--secondary-color) !important;
    background-color: transparent !important;
}

/* Pierwsza karta zawsze widoczna na początku */
.beat-item:first-child {
    margin-left: 0 !important;
}

/* Przyciski karuzeli dla beatów */
.beats-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--gray-color);
    color: var(--light-color);
    border: 4px solid var(--light-color);
    box-shadow: 0 0 0 2px var(--light-color), 0 0 8px 2px var(--light-color);
    padding: 15px;
    cursor: pointer;
    z-index: 10;
    font-size: 1.2rem;
    line-height: 1;
    height: 60px;
    width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.beats-carousel-btn::after {

/* OSTATECZNA, BEZPIECZNA POPRAWKA DLA KARUZELI W GALERII */
#gallery-carousel {
    grid-column: 1 / -1; /* Rozciąga karuzelę na całą szerokość siatki rodzica */
    width: 100%; /* Gwarantuje zajęcie pełnej szerokości */
    box-sizing: border-box; /* Zapobiega problemom z rozmiarem przez padding/border */
    position: relative; /* Upewnia się, że przyciski pozycjonują się względem niej */
    overflow: visible;
}

/* OSTATECZNA, PRZETESTOWANA POPRAWKA DLA KARUZELI W GALERII */
#gallery-carousel {
    grid-column: 1 / -1; /* 1. Rozciąga karuzelę na całą szerokość siatki rodzica. */
    position: relative;  /* 2. Ustawia ją jako "dom" dla przycisków. */
    width: 100%;         /* 3. Gwarantuje, że zajmie całą dostępną przestrzeń. */
    box-sizing: border-box; /* 4. Zapobiega problemom z rozmiarem. */
}

/* Powiększenie przycisków dla głównej karuzeli na desktopie */
@media (min-width: 769px) {
    .my-work-carousel:not(#loops-packs-carousel):not(#beats-packs-carousel) .carousel-btn {
        width: 80px;
        height: 80px;
        font-size: 2.5rem;
    }
}






    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 2px solid var(--accent-color);
    animation: pixel-pulse 1s steps(2) infinite;
}

.beats-carousel-btn:hover {
    transform: translateY(-50%) scale(1.05);
}

.beats-carousel {
    position: relative !important;
    width: 100% !important;
    max-width: 1220px !important;
    margin: 0 auto !important;
    padding: 0 6px !important; /* Usuwamy padding */
}

.beats-carousel-container {
    width: 100% !important;
    padding: 20px 10px !important; /* T:20, R:10, B:20, L:10 */
    overflow: visible !important; /* Allow content to overflow this container */
}

.beats-grid.beats-track {
    width: 100% !important;
}

/* Identyczne style dla obu przycisków */
.beats-carousel-btn {
    position: absolute !important;
    top: 300px !important; /* Obniżone przyciski */
    transform: none !important; /* Usunięcie transform, które może powodować różnice */
    z-index: 999 !important; /* BARDZO wysoki z-index aby być ponad wszystkim */
    width: 60px !important;
    height: 60px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 24px !important;
    color: var(--light-color) !important;
    background-color: var(--gray-color) !important;
    border: 4px solid var(--light-color) !important;
    box-shadow: 0 0 0 2px var(--light-color), 0 0 8px 2px var(--light-color) !important;
}

/* Pozycja lewego przycisku */
.beats-carousel-btn.beats-prev { 
    left: 20px !important;
}

/* Pozycja prawego przycisku */
.beats-carousel-btn.beats-next { 
    right: 10px !important;
}

/* STYLIZACJA KART W KARUZELI #my-work (CENTERED) */
#my-work .beats-grid .beat-item {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    margin: auto; /* Centrowanie w poziomie */
    width: 380px;
    min-height: 380px;
    padding: 30px 20px;
    box-sizing: border-box;
    border: 4px solid var(--secondary-color);
    background-color: var(--background-color);
}

/* Ensure beat-item transitions smoothly within the new carousel structure */
#beats-carousel-new .beat-item {
    transition: transform 0.5s ease, opacity 0.5s ease;
}



/* Force transparent background for #listen section */
#listen {
    background-color: transparent !important;
    position: relative; /* Potrzebne dla pozycjonowania ::after */
}

/* Separator na dole sekcji #listen */
#listen::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 8px; /* Zmieniono na 8px */
    background-color: var(--gray-color);
}

/* --- Style dla Nowej Karty Bitu (beat-card-v2) --- */

/* Kontener karty */
.beat-card-v2 {
    width: 375px; /* Węższa */
    height: 625px; /* Dłuższa - proporcje jak flora2.png */
    flex-shrink: 0;
    position: relative; /* Potrzebne do pozycjonowania nakładki */
    overflow: hidden; /* Ukrywamy wszystko, co wystaje */
    border-radius: 4px; /* Dopasowujemy do obrazka */
}

.beat-card-v2::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    box-sizing: border-box;
    /* No border by default - only in carousel */
    animation: pixel-pulse 1s steps(2) infinite; /* Animacja koloru linii */
    pointer-events: none; /* Aby nie blokować interakcji */
    z-index: -1; /* Behind content by default */
    border-radius: inherit; /* Dziedziczy zaokrąglenie z .beat-card-v2 */
}



.beat-card-v2 img {
    width: 100%; /* Full width by default */
    height: 100%; /* Full height by default */
    object-fit: cover; /* Obrazek pokrywa kontener, przycinając nadmiar */
    display: block;
    filter: drop-shadow(0 0 10px #1a2130);
    border-radius: 4px;
    /* No margin by default */
}

/* Image adjustments only for beats carousel in my-work section */
#my-work .carousel-track-container .beat-card-v2 img {
    width: calc(100% - 16px); /* Space for border only in my-work beats carousel */
    height: calc(100% - 16px); /* Space for border only in my-work beats carousel */
    margin: 8px; /* Margin only in my-work beats carousel for border visibility */
}

/* Remove outer border from beat-item in my-work carousel - keep only inner border */
#my-work .carousel-slide .beat-item {
    border: none !important; /* Remove outer border - we only want inner border from ::after */
}

/* Use box-shadow instead of border - box-shadow is NOT clipped by overflow:hidden */
#my-work .carousel-track-container .beat-card-v2::after {
    border: none; /* Remove border that gets clipped */
    box-shadow: inset 0 0 0 4px var(--secondary-color); /* Inset box-shadow acts like border but isn't clipped */
    animation: pixel-pulse 1s steps(2) infinite; /* Keep animation */
    z-index: 10;
}

/* Główna nakładka z informacjami - tylko dla kart z bitami w #my-work */
#my-work .beat-info-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    text-align: center;
    background: linear-gradient(to top, rgba(17, 20, 28, 0) 0%, rgba(17, 20, 28, 0) 100%);
    color: #ffedd0;
    padding: 20px 20px 30px 20px;
    box-sizing: border-box;
    transition: background 0.4s ease-in-out;
    pointer-events: none; /* Allow clicks to pass through unless on interactive children */
}

/* Re-enable interactivity for specific overlay children */
#my-work .beat-info-overlay .beat-info-header,
#my-work .beat-info-overlay .beat-overlay-controls,
#my-work .beat-info-overlay .action-buttons,
#my-work .beat-info-overlay .streaming-links {
    pointer-events: auto;
}

/* Ukrycie i przesunięcie zawartości nakładki domyślnie */
#my-work .beat-info-overlay .beat-info-header,
#my-work .beat-info-overlay .beat-overlay-controls,
#my-work .beat-info-overlay .action-buttons {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out;
}

/* Pokazanie tła i zawartości po najechaniu */
#my-work .beat-card-v2:hover .beat-info-overlay {
    background: linear-gradient(to top, rgba(17, 20, 28, 0.95) 20%, rgba(17, 20, 28, 0) 70%);
}

#my-work .beat-card-v2:hover .beat-info-overlay .beat-info-header,
#my-work .beat-card-v2:hover .beat-info-overlay .beat-overlay-controls,
#my-work .beat-card-v2:hover .beat-info-overlay .action-buttons {
    opacity: 1;
    transform: translateY(0);
}

/* Opóźnienie dla przycisków akcji dla płynniejszego efektu */
#my-work .beat-card-v2:hover .beat-info-overlay .action-buttons { 
    transition-delay: 0.1s; 
}

/* Style dla nowego nagłówka w nakładce - uproszczony */
.beat-info-header {
    margin-bottom: 20px;
    order: -1;
}

.beat-info-header h3 {
    font-size: 1.4rem;
    margin: 0;
    color: var(--light-color);
    text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
    text-align: center;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    max-width: 100%;
}

/* Subtelne meta informacje pod tytułem */
.beat-info-header .beat-meta {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 8px;
    font-size: 0.7rem;
    color: rgba(255, 237, 208, 0.8);
    font-family: 'Press Start 2P', monospace;
}

.beat-info-header .beat-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.beat-info-header .beat-meta i {
    display: none; /* Ukrywamy ikony - tylko tekst */
}

/* Kontrolki w dolnej nakładce - uproszczone */
.beat-overlay-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 5;
}

.beat-overlay-controls .control-btn {
    margin: 0 5px;
    border: none !important;
    padding: 0 !important;
    background: transparent !important;
    /* Rozmiar i inne podstawowe style dziedziczone z globalnego .control-btn */
    /* lub zdefiniowane w css/styles.css */
    width: 40px; 
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    border-radius: 50%; /* Dodane dla pewności, jeśli globalnie nie ma */
}

/* Timeline slider dla przewijania w beacie */
.beat-overlay-controls .timeline-slider {
    width: 120px;
    margin-left: 15px;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: var(--gray-color);
    border-radius: 3px;
    outline: none;
    cursor: pointer;
    transition: background 0.3s ease;
    z-index: 10;
    position: relative;
    pointer-events: auto;
}

.beat-overlay-controls .timeline-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    background: var(--light-color);
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid var(--accent-color);
    transition: transform 0.2s ease;
}

.beat-overlay-controls .timeline-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.beat-overlay-controls .timeline-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: var(--light-color);
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid var(--accent-color);
    transition: transform 0.2s ease;
}

.beat-overlay-controls .timeline-slider::-moz-range-thumb:hover {
    transform: scale(1.1);
}
        
/* Ukrywamy prev/next buttons dla minimalistycznego wyglądu */
.beat-overlay-controls .prev-btn,
.beat-overlay-controls .next-btn {
    display: none;
}

.beat-overlay-controls .play-button {
    border: 2px solid var(--light-color) !important;
}

.beat-overlay-controls .play-button i {
    color: var(--light-color);
}

/* Przyciski akcji w dolnej nakładce - uproszczone */
.action-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 15px;
}

/* Przywracamy download-buy-row z oboma przyciskami */
.download-buy-row {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 280px; /* Ograniczamy szerokość dla lepszego wyglądu */
    margin: 0 auto;
}

/* Stylizujemy przyciski DOWNLOAD i BUY */
.download-buy-row .btn {
    font-size: 0.9rem;
    padding: 10px 16px;
    flex: 1;
    margin: 0 5px;
    text-align: center;
}

.action-buttons .btn,
.action-buttons .streaming-btn {
    text-align: center;
    /* Wspólne style dla .btn dziedziczone z css/styles.css */
    /* Poniżej specyficzne dostosowania rozmiaru/paddingu */
}

.action-buttons .btn { /* Download i Buy */
    font-size: 0.85rem; 
    padding: 8px 15px;
}

.download-buy-row .btn:first-child { /* Przycisk DOWNLOAD */
    margin-left: 2px;
}

.action-buttons .streaming-btn { /* Spotify, YouTube, SoundCloud */
    font-size: 0.75rem;
    padding: 6px 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 80px;
    text-align: center;
}

/* .action-buttons .streaming-btn i { } - niepotrzebne, gap załatwia sprawę */

/* Variant contrast: Spotify white outline/fill */
.action-buttons .streaming-btn.spotify {
    border-color: var(--light-color) !important;
    color: var(--light-color) !important;
}
.action-buttons .streaming-btn.spotify i {
    color: inherit !important;
}
.action-buttons .streaming-btn.spotify:hover {
    background-color: var(--light-color) !important;
    color: var(--dark-color) !important;
}
.action-buttons .streaming-btn.spotify:hover i {
    color: inherit !important;
}
.action-buttons .streaming-btn.spotify:hover::after {
    border-color: var(--light-color) !important;
}

/* YouTube & SoundCloud: transparent by default, fill on hover */
.action-buttons .streaming-btn.youtube,
.action-buttons .streaming-btn.soundcloud {
    background-color: transparent !important;
    border-color: var(--primary-color) !important;
    color: var(--primary-color) !important;
}
.action-buttons .streaming-btn.youtube i,
.action-buttons .streaming-btn.soundcloud i {
    color: inherit !important;
}
.action-buttons .streaming-btn.youtube:hover,
.action-buttons .streaming-btn.soundcloud:hover {
    background-color: var(--primary-color) !important;
    color: var(--light-color) !important;
    border-color: var(--primary-color) !important;
}
.action-buttons .streaming-btn.youtube:hover i,
.action-buttons .streaming-btn.soundcloud:hover i {
    color: inherit !important;
}

.action-buttons .streaming-btn.youtube:hover::after,
.action-buttons .streaming-btn.soundcloud:hover::after {
    border-color: var(--primary-color) !important;
}

/* Przywracamy separator i streaming links */
.action-button-separator {
    width: calc(100% - 40px);
    height: 1px;
    background-color: var(--light-color);
    margin: 15px auto;
    opacity: 0.5;
}

.streaming-links-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: 100%;
    flex-wrap: wrap;
}
/* --- Koniec stylów dla Nowej Karty Bitu --- */

/* --- Style dla kart w karuzeli paczek (z nakładką) --- */
.pack-card {
    position: relative; /* Konieczne dla pozycjonowania nakładki */
    overflow: hidden;
}

/* Nakładka informacyjna */
.pack-info-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Wyrównanie zawartości do dołu */
    align-items: center; /* Centrowanie w poziomie */
    padding: 30px;
    box-sizing: border-box;
    text-align: center;
    background: linear-gradient(to top, rgba(17, 20, 28, 0) 0%, rgba(17, 20, 28, 0) 50%); /* Początkowo przezroczysty gradient */
    transition: background 0.4s ease-in-out;
}

/* Ukrycie zawartości nakładki domyślnie */
.pack-info-overlay > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out;
}

/* Pokazanie nakładki i jej zawartości po najechaniu */
.pack-card:hover .pack-info-overlay {
    background: linear-gradient(to top, rgba(17, 20, 28, 0.95) 20%, rgba(17, 20, 28, 0) 70%);
}

.pack-card:hover .pack-info-overlay > * {
    opacity: 1;
    transform: translateY(0);
}

/* Opóźnienia animacji dla płynniejszego efektu */
.pack-card:hover .pack-description { transition-delay: 0.1s; }
.pack-card:hover .pack-price { transition-delay: 0.2s; }
.pack-card:hover .btn { transition-delay: 0.3s; }

/* Style tekstu w nakładce */
.pack-title {
    font-size: 1.4rem;
    color: var(--light-color);
    margin-bottom: 10px;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
}

.pack-description {
    font-size: 1rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
    text-shadow: 0.25px 0 0 #fff, -0.25px 0 0 #fff, 0 0.25px 0 #fff, 0 -0.25px 0 #fff;
}

.pack-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--accent-color);
    margin-bottom: 25px;
    text-shadow: 0.25px 0 0 #fff, -0.25px 0 0 #fff, 0 0.25px 0 #fff, 0 -0.25px 0 #fff;
}

/* Upewnienie się, że obrazek wypełnia całą kartę */
.pack-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Korekta pozycji ikony play dla lepszego wizualnego wycentrowania */
.beat-overlay-controls .play-button .fa-play {
    position: relative;
    left: 1px;
}

/* --- Resetowanie stylów dla .beat-item w karuzeli paczek --- */
#loops-packs-carousel .beat-item,
#beats-packs-carousel .beat-item {
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    width: auto !important;
    height: auto !important;
    min-height: unset !important;
    margin: 0 15px; /* Zapewnia odstęp między kartami */
    flex-shrink: 0; /* Zapobiega kurczeniu się elementów w kontenerze flex */
   background: linear-gradient(to top, rgba(17, 20, 28, 0) 0%, rgba(17, 20, 28, 0) 50%); /* Początkowo przezroczysty gradient */
    transition: background 0.4s ease-in-out;
}

/* Ukrycie zawartości nakładki domyślnie */
.pack-info-overlay > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out;
}

/* Pokazanie nakładki i jej zawartości po najechaniu */
.pack-card:hover .pack-info-overlay {
    background: linear-gradient(to top, rgba(17, 20, 28, 0.95) 20%, rgba(17, 20, 28, 0) 70%);
}

.pack-card:hover .pack-info-overlay > * {
    opacity: 1;
    transform: translateY(0);
}

/* Opóźnienia animacji dla płynniejszego efektu */
.pack-card:hover .pack-description { transition-delay: 0.1s; }
.pack-card:hover .pack-price { transition-delay: 0.2s; }
.pack-card:hover .btn { transition-delay: 0.3s; }

/* Style tekstu w nakładce */
.pack-title {
    font-size: 1.4rem;
    color: var(--light-color);
    margin-bottom: 10px;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
}

.pack-description {
    font-size: 1rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
    text-shadow: 0.5px 0 0 #fff, -0.5px 0 0 #fff, 0 0.5px 0 #fff, 0 -0.5px 0 #fff;
}

.pack-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--accent-color);
    margin-bottom: 25px;
    text-shadow: 0.5px 0 0 #fff, -0.5px 0 0 #fff, 0 0.5px 0 #fff, 0 -0.5px 0 #fff;
}

/* Upewnienie się, że obrazek wypełnia całą kartę */
.pack-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Korekta pozycji ikony play dla lepszego wizualnego wycentrowania */
.beat-overlay-controls .play-button .fa-play {
    position: relative;
    left: 1px;
}

/* --- Resetowanie stylów dla .beat-item w karuzeli paczek --- */
#loops-packs-carousel .beat-item,
#beats-packs-carousel .beat-item {
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    width: auto !important;
    height: auto !important;
    min-height: unset !important;
    margin: 0 15px; /* Zapewnia odstęp między kartami */
    flex-shrink: 0; /* Zapobiega kurczeniu się elementów w kontenerze flex */
}

/* Przyciemnienie nakładki dla nieaktywnych, najechanych kart w karuzeli */
.packs-carousel .beat-item:not(.active-pack):hover .pack-info-overlay {
    filter: brightness(0.6);
    transition: filter 0.3s ease-in-out;
}

/* ============================================
   MOBILE SCROLL FIX - PACKS CAROUSELS
   Override touch-action blocks for packs carousels
   ============================================ */
@media (max-width: 768px) {
    /* AUTO-CENTER + TOUCH FIX: Allow both scroll and swipe for loops packs carousel */
    #loops-packs-carousel {
        /* AUTO-CENTER: Same as beats carousel */
        width: 100vw;
        max-width: none;
        margin: 0;
        left: 50%;
        transform: translateX(-50%);
        /* TOUCH FIX */
        touch-action: auto !important; /* Override line 3512 touch-action: none */
    }
    
    /* NUCLEAR FIX: Override any deeper carousel optimization blocks for loops */
    #loops-packs-carousel,
    #loops-packs-carousel *,
    #loops-packs-carousel .my-work-carousel,
    #loops-packs-carousel .beats-grid,
    #loops-packs-carousel .beat-item {
        touch-action: auto !important; /* Force allow all touch gestures */
    }
    
    /* AUTO-CENTER + TOUCH FIX: Allow both scroll and swipe for beats packs carousel */
    #beats-packs-carousel {
        /* AUTO-CENTER: Same as beats carousel */
        width: 100vw;
        max-width: none;
        margin: 0;
        left: 50%;
        transform: translateX(-50%);
        /* TOUCH FIX */
        touch-action: auto !important; /* Override line 3512 touch-action: none */
    }
    
    /* NUCLEAR FIX: Override any deeper carousel optimization blocks for beats */
    #beats-packs-carousel,
    #beats-packs-carousel *,
    #beats-packs-carousel .my-work-carousel,
    #beats-packs-carousel .beats-grid,
    #beats-packs-carousel .beat-item {
        touch-action: auto !important; /* Force allow all touch gestures */
    }
}

/* BACKUP: Also override iOS-specific @supports query for packs carousels */
@supports (-webkit-touch-callout: none) {
    @media (max-width: 768px) {
        #loops-packs-carousel,
        #loops-packs-carousel *,
        #beats-packs-carousel,
        #beats-packs-carousel * {
            touch-action: auto !important; /* Override iOS Safari blocks */
            overflow: visible !important; /* Override potential overflow hidden */
        }
    }
}


