:root {
    --mini-player-height-desktop: 80px;
    --mini-player-height-mobile: 140px;
    /* Dynamic viewport height units - updated by JavaScript */
    --vh: 1vh; /* Fallback to regular vh */
    --visible-viewport-height: 100vh; /* Fallback */
    --actual-player-height: 140px; /* Fallback, updated dynamically by JS */
}

/* Prevent text selection */
* {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Allow text selection in tooltips, input fields, and footer contact paragraph only */
.track[data-description].tooltip-visible::after,
input,
textarea,
.footer-contact p {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

.header {
    text-align: center;
    padding: 25px 20px;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.15) 0%, rgba(0, 204, 51, 0.1) 50%, rgba(0, 0, 0, 0.9) 100%);
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.3), 0 0 10px rgba(0, 204, 51, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 204, 51, 0.03) 2px,
        rgba(0, 204, 51, 0.03) 4px
    );
    animation: matrix-rain 20s linear infinite;
    pointer-events: none;
    z-index: 0;
}

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

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    width: 100%;
}

.artist-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid rgba(255, 107, 53, 0.6);
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.5), 0 0 8px rgba(0, 204, 51, 0.4);
    object-fit: contain;
    background: rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    display: block;
}

.header-text {
    flex: 1;
    min-width: 250px;
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: 0.2em;
    margin-bottom: 12px;
    color: #FF6B35;
    position: relative;
    z-index: 1;
}

.subtitle {
    font-size: 1rem;
    letter-spacing: 0.3em;
    color: #00CC33;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.subtitle a {
    color: #00CC33;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.subtitle a:hover {
    color: #FF6B35;
    text-decoration: underline;
}

.artist-info {
    background: rgba(0, 204, 51, 0.15);
    border: 1px solid rgba(0, 204, 51, 0.5);
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 204, 51, 0.2);
    position: relative;
    overflow: hidden;
}

.artist-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.1) 30%, rgba(0, 204, 51, 0.1) 70%, transparent);
    animation: waterfall-sweep 4s linear infinite;
}

@keyframes waterfall-sweep {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.artist-info h2 {
    color: #00CC33;
    font-size: 2rem;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(0, 204, 51, 0.7), 0 0 20px rgba(255, 107, 53, 0.4);
    position: relative;
    z-index: 1;
}

.artist-info p {
    color: #FF6B35;
    font-size: 1.1rem;
    line-height: 1.8;
}

.album-section {
    display: block;
    margin-bottom: 50px;
    background: rgba(0, 204, 51, 0.15);
    border: 1px solid rgba(0, 204, 51, 0.5);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.7), 0 0 15px rgba(0, 204, 51, 0.2), 0 0 10px rgba(0, 204, 51, 0.15);
    position: relative;
    overflow: hidden;
}

.album-section::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, transparent, rgba(255, 107, 53, 0.5) 30%, rgba(0, 204, 51, 0.5) 70%, transparent);
    animation: waterfall-vertical 3s linear infinite;
}

@keyframes waterfall-vertical {
    0% {
        top: -100%;
    }
    100% {
        top: 100%;
    }
}

.album-art {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.4), 0 0 8px rgba(0, 204, 51, 0.3);
    border: 2px solid rgba(255, 107, 53, 0.5);
    position: relative;
    z-index: 1;
}

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

.album-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #FF6B35;
    margin-bottom: 20px;
    text-shadow: 0 0 15px rgba(255, 107, 53, 0.8), 0 0 25px rgba(0, 204, 51, 0.5);
    position: relative;
    z-index: 1;
}

.album-description {
    color: #FF6B35;
    font-size: 1.05rem;
    line-height: 1.8;
    white-space: pre-line;
}

.albums-section {
    margin-top: 40px;
    margin-bottom: 40px;
}

.albums-section h2 {
    font-size: 2rem;
    color: #00CC33;
    margin-bottom: 30px;
    letter-spacing: 0.2em;
    text-shadow: 0 0 10px rgba(0, 204, 51, 0.7), 0 0 20px rgba(255, 107, 53, 0.4);
}

.albums-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.album-item {
    background: rgba(0, 204, 51, 0.15);
    border: 1px solid rgba(0, 204, 51, 0.5);
    border-radius: 6px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;
    display: flex;
    flex-direction: column;
}

.album-item:hover {
    background: rgba(0, 204, 51, 0.25);
    border-color: rgba(0, 204, 51, 0.7);
    box-shadow: 0 0 15px rgba(0, 204, 51, 0.4), 0 0 8px rgba(0, 204, 51, 0.3);
    transform: translateY(-2px);
}

.album-item.active {
    background: rgba(0, 204, 51, 0.3);
    border-color: rgba(0, 204, 51, 0.8);
    box-shadow: 0 0 20px rgba(0, 204, 51, 0.5), 0 0 10px rgba(0, 204, 51, 0.4);
}

.album-item-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.album-item-image {
    width: 150px;
    height: 150px;
    min-width: 150px;
    max-width: 150px;
    object-fit: contain;
    border-radius: 8px;
    border: 2px solid rgba(0, 204, 51, 0.3);
    box-shadow: 0 0 10px rgba(255, 107, 53, 0.3), 0 0 5px rgba(0, 204, 51, 0.2);
    transition: all 0.3s ease;
    align-self: center;
    background: rgba(0, 0, 0, 0.1);
}

.album-item:hover .album-item-image {
    border-color: rgba(255, 107, 53, 0.6);
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.5), 0 0 8px rgba(0, 204, 51, 0.4);
    transform: scale(1.02);
}

.album-item.active .album-item-image {
    border-color: rgba(0, 204, 51, 0.8);
    box-shadow: 0 0 15px rgba(0, 204, 51, 0.5), 0 0 8px rgba(0, 204, 51, 0.4);
}

.album-item-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.album-item-title {
    font-size: 1rem;
    color: #FF6B35;
    margin: 0;
    text-shadow: 0 0 10px rgba(255, 107, 53, 0.7), 0 0 15px rgba(255, 107, 53, 0.4);
    text-align: center;
    line-height: 1.3;
}

.album-item.active .album-item-title {
    color: #00CC33;
    text-shadow: 0 0 10px rgba(0, 204, 51, 0.7), 0 0 15px rgba(0, 204, 51, 0.4);
}

.album-item-description {
    color: #FF6B35;
    font-size: 0.85rem;
    line-height: 1.4;
    margin: 0;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.album-item.active .album-item-description {
    color: #00CC33;
}

.tracks-section {
    margin-top: 40px;
}

.tracks-section.hidden {
    display: none;
}

.tracks-section h2 {
    font-size: 2rem;
    color: #00CC33;
    margin-bottom: 30px;
    letter-spacing: 0.2em;
    text-shadow: 0 0 10px rgba(0, 204, 51, 0.7), 0 0 20px rgba(255, 107, 53, 0.4);
}

.track {
    background: rgba(0, 204, 51, 0.15);
    border: 1px solid rgba(0, 204, 51, 0.5);
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: visible;
}

.track-content {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.track-image {
    width: 150px;
    height: auto;
    min-width: 150px;
    max-width: 150px;
    object-fit: contain;
    border-radius: 8px;
    border: 2px solid rgba(0, 204, 51, 0.3);
    box-shadow: 0 0 10px rgba(255, 107, 53, 0.3), 0 0 5px rgba(0, 204, 51, 0.2);
    transition: all 0.3s ease;
}

.track:hover .track-image {
    border-color: rgba(255, 107, 53, 0.6);
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.5), 0 0 8px rgba(0, 204, 51, 0.4);
    transform: scale(1.02);
}

.track-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.track-description {
    color: #FF6B35;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(0, 204, 51, 0.2);
    text-align: justify;
}

.track-description a {
    color: #00CC33;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.track-description a:hover {
    color: #FF6B35;
}

.track-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 12px;
    width: 100%;
    overflow: visible;
}

.track:hover {
    background: rgba(0, 204, 51, 0.25);
    border-color: rgba(0, 204, 51, 0.7);
    box-shadow: 0 0 12px rgba(0, 204, 51, 0.4), 0 0 8px rgba(0, 204, 51, 0.3);
}

.play-icon {
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
    background: rgba(0, 204, 51, 0.25);
    border: 1px solid rgba(0, 204, 51, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    box-sizing: border-box;
    /* Ensure icon can scale without clipping */
    position: relative;
    z-index: 10;
    color: #00CC33;
}

.play-icon::before {
    content: '';
    width: 0;
    height: 0;
    border-left: 8px solid currentColor;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    margin-left: 2px;
    transition: all 0.3s ease;
    text-shadow: 0 0 10px rgba(0, 204, 51, 0.9);
}

.play-icon:has(svg)::before {
    display: none;
}

.play-icon svg {
    width: 12px;
    height: 12px;
    display: block;
    fill: currentColor;
}

.play-icon:hover {
    background: rgba(255, 107, 53, 0.35);
    border-color: rgba(255, 107, 53, 0.7);
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.5), 0 0 10px rgba(0, 204, 51, 0.4);
    transform: scale(1.1);
}

.track-title {
    font-size: 1rem;
    font-weight: 500;
    color: #FF6B35;
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    flex-shrink: 1;
    /* Allow play icon to scale without clipping */
    overflow: visible;
    padding: 3px 0;
}

/* Play icon container - allow scaling without clipping */
.track-title .play-icon {
    flex-shrink: 0;
    position: relative;
    z-index: 10;
    pointer-events: auto;
    background: rgba(0, 204, 51, 0.25);
    border: 1px solid rgba(0, 204, 51, 0.5);
    color: #00CC33;
    /* Add margin to allow for scale(1.1) growth - 10% of 24px = 2.4px, use 3px margin on all sides */
    margin: 3px;
    /* Ensure transform origin is centered for scaling */
    transform-origin: center;
}

/* Only clip the text content, not the play icon */
.track-title-text {
    overflow: hidden;
}

.track-title-text {
    overflow: hidden;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
    position: relative;
    display: block;
    max-width: 100%;
    box-sizing: border-box;
}

/* Scroll box container for long text */
.track-title-text.scroll-box {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    padding: 0;
    position: relative;
}

/* Scroll text element inside scroll box */
.track-title-text.scroll-box .scroll-text {
    display: inline-block;
    white-space: nowrap;
}

/* Scroll animation - only on hover, stops when end is visible */
.track:hover .track-title-text.scroll-box .scroll-text {
    animation: scroll-text var(--scroll-duration, 3s) linear forwards;
}

/* Keyframes define the scrolling animation */
@keyframes scroll-text {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(var(--scroll-distance, 0));
    }
}

/* Ensure the track-title container properly clips content */
/* Removed conflicting overflow: hidden - track-title should have overflow: visible to allow icon scaling */

.track-meta {
    display: flex;
    gap: 10px;
    color: #FF6B35;
    font-size: 0.85rem;
    flex-wrap: nowrap;
    align-items: center;
    flex-shrink: 0;
    white-space: nowrap;
}

.track-date,
.track-duration {
    padding: 4px 10px;
    background: rgba(0, 204, 51, 0.15);
    border: 1px solid rgba(0, 204, 51, 0.4);
    border-radius: 4px;
    color: #00CC33;
    text-shadow: 0 0 5px rgba(0, 204, 51, 0.7), 0 0 8px rgba(0, 204, 51, 0.4);
    white-space: nowrap;
}


/* SVG Animation for playing track - use a separate element instead of ::after to avoid conflict with tooltip */
.track.playing {
    border-color: rgba(0, 204, 51, 0.7);
    background: rgba(0, 204, 51, 0.15);
    box-shadow: 0 0 25px rgba(0, 204, 51, 0.4), 0 0 15px rgba(255, 107, 53, 0.3), inset 0 0 20px rgba(0, 204, 51, 0.12);
    overflow: visible;
    position: relative;
}

/* Effects wrapper to contain visual effects with overflow hidden */
.track.playing .track-effects-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
    border-radius: 6px;
}

.track.playing .wave-sweep-overlay {
    content: '';
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(0, 204, 51, 0.3) 20%,
            rgba(0, 204, 51, 0.5) 50%,
            rgba(0, 204, 51, 0.3) 80%,
            transparent 100%);
    pointer-events: none;
    z-index: 0;
    border-radius: 6px;
}

.track.playing .wave-sweep-overlay.wave-sweep-1 {
    left: -100%;
    animation: wave-sweep 5s linear infinite;
}

.track.playing .wave-sweep-overlay.wave-sweep-2 {
    left: -100%;
    animation: wave-sweep 5s linear infinite 2.5s;
}

.track.playing .track-header {
    position: relative;
    z-index: 1;
}

.track.playing .track-title {
    color: #FF6B35;
    text-shadow: 0 0 10px rgba(255, 107, 53, 0.8), 0 0 15px rgba(255, 107, 53, 0.5);
}

.track.playing .track-header {
    overflow: visible;
}

@keyframes wave-sweep {
    0% {
        left: -100%;
    }

    100% {
        left: 200%;
    }
}

.track.playing .track-wave-animation {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 60px;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 0;
    opacity: 1;
    overflow: hidden;
    border-radius: 6px;
}

.track .track-header {
    position: relative;
    overflow: visible;
}

.track.playing .track-wave-animation svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Particle effect in the background - Matrix waterfall style */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(0, 204, 51, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 107, 53, 0.08) 0%, transparent 50%),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 50px,
            rgba(0, 204, 51, 0.02) 50px,
            rgba(0, 204, 51, 0.02) 52px
        );
    pointer-events: none;
    z-index: -1;
    animation: matrix-background 15s linear infinite;
}

@keyframes matrix-background {
    0% {
        background-position: 0 0, 0 0, 0 0;
    }
    100% {
        background-position: 0 0, 0 0, 50px 0;
    }
}

/* Bitcoin Donation Icon - Base styles */
.bitcoin-donation {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 107, 53, 0.2);
    border: 2px solid rgba(255, 107, 53, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease, top 0.1s ease, opacity 0.3s ease;
    z-index: 1000;
    box-shadow: 0 0 12px rgba(255, 107, 53, 0.4), 0 0 8px rgba(255, 107, 53, 0.3);
}

/* Bitcoin Donation Icon for scroll - normal position */
.bitcoin-donation-scroll {
    /* Position updated dynamically by JS */
}

/* Bitcoin Donation Icon for sidebar - centered in sidebar */
.bitcoin-donation-sidebar {
    position: absolute;
    top: 20px;
    left: 50%;
    right: auto;
    transform: translateX(-50%) scale(1);
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: auto;
}

/* Show sidebar button when subtitles are active */
.subtitles-modal.active .bitcoin-donation-sidebar {
    opacity: 1;
    visibility: visible;
}

.bitcoin-donation-sidebar.visible {
    opacity: 1;
    visibility: visible;
}

/* Hide scroll button when sidebar is active */
.bitcoin-donation-scroll.hidden {
    opacity: 0;
    visibility: hidden;
}

.bitcoin-donation:hover {
    background: rgba(255, 107, 53, 0.3);
    border-color: rgba(255, 107, 53, 0.7);
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.6), 0 0 12px rgba(255, 107, 53, 0.5);
    transform: scale(1.1);
}

.bitcoin-donation-sidebar:hover {
    transform: translateX(-50%) scale(1.1);
}

.bitcoin-donation::before {
    content: '₿';
    position: absolute;
    top: 50%;
    left: 50%;
    padding-top: 5px;
    transform: translate(-50%, -50%);
    font-size: 1.75em;
    color: #FF6B35;
    text-shadow: 0 0 12px rgba(255, 107, 53, 0.9), 0 0 8px rgba(255, 107, 53, 0.6);
    font-weight: bold;
    font-family: 'Courier New', 'Courier', monospace;
    letter-spacing: 0;
    line-height: 1;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    position: relative;
    background: rgba(10, 10, 10, 0.95);
    border: 2px solid rgba(0, 204, 51, 0.6);
    border-radius: 12px;
    padding: 34px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 0 30px rgba(0, 204, 51, 0.5), 0 0 15px rgba(255, 107, 53, 0.4);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: #00CC33;
    font-size: 28px;
    cursor: pointer;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(0, 204, 51, 0.25);
    box-shadow: 0 0 12px rgba(0, 204, 51, 0.6), 0 0 8px rgba(0, 204, 51, 0.4);
}

.modal h2 {
    color: #00CC33;
    font-size: 1.53rem;
    margin-bottom: 17px;
    letter-spacing: 0.1em;
    text-shadow: 0 0 12px rgba(0, 204, 51, 0.7), 0 0 20px rgba(255, 107, 53, 0.4);
}

.donation-info {
    margin-bottom: 21px;
    padding: 13px;
    background: rgba(0, 204, 51, 0.12);
    border: 1px solid rgba(0, 204, 51, 0.4);
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 204, 51, 0.2);
}

.donation-amount {
    color: #00CC33;
    font-size: 1.28rem;
    font-weight: bold;
    margin-bottom: 7px;
    text-shadow: 0 0 12px rgba(0, 204, 51, 0.8), 0 0 20px rgba(0, 204, 51, 0.5);
}

.donation-artist {
    color: #00CC33;
    font-size: 1.1rem;
    margin-bottom: 5px;
    opacity: 0.9;
    text-shadow: 0 0 10px rgba(0, 204, 51, 0.7), 0 0 15px rgba(0, 204, 51, 0.4);
}

.donation-type {
    color: #00CC33;
    font-size: 0.9rem;
    opacity: 0.8;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-shadow: 0 0 8px rgba(0, 204, 51, 0.6);
}

.qr-code-container {
    background: #FFFFFF;
    padding: 17px;
    border-radius: 8px;
    margin: 17px auto;
    display: inline-block;
    border: 2px solid rgba(0, 204, 51, 0.4);
    box-shadow: 0 0 18px rgba(0, 204, 51, 0.4), 0 0 10px rgba(0, 204, 51, 0.3);
}

.qr-code-container canvas,
.qr-code-container img {
    display: block;
    max-width: 213px;
    height: auto;
}

.bitcoin-address {
    margin-top: 17px;
    padding: 10px;
    background: rgba(0, 204, 51, 0.15);
    border: 1px solid rgba(0, 204, 51, 0.4);
    border-radius: 6px;
    color: #00CC33;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    word-break: break-all;
    text-shadow: 0 0 8px rgba(0, 204, 51, 0.7), 0 0 12px rgba(0, 204, 51, 0.4);
}

.copy-button {
    margin-top: 13px;
    padding: 9px 17px;
    background: rgba(0, 204, 51, 0.25);
    border: 1px solid rgba(0, 204, 51, 0.5);
    border-radius: 6px;
    color: #00CC33;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: block;
    width: 100%;
    max-width: 200px;
    margin-left: auto;
    margin-right: auto;
    min-height: 38px;
    box-sizing: border-box;
}

.copy-button:hover {
    background: rgba(0, 204, 51, 0.35);
    box-shadow: 0 0 15px rgba(0, 204, 51, 0.6), 0 0 10px rgba(0, 204, 51, 0.4);
}

/* Footer */
.footer {
    background: rgba(5, 5, 5, 0.95);
    border-top: 1px solid rgba(0, 204, 51, 0.4);
    margin-top: 60px;
    padding: 40px 20px 20px;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.5), 0 -2px 10px rgba(0, 204, 51, 0.2);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 800px;
    margin: 0 auto 30px;
    justify-items: center;
}

.footer-section {
    text-align: center;
}

.footer-section h3 {
    color: #00CC33;
    font-size: 1.2rem;
    margin-bottom: 12px;
    letter-spacing: 0.1em;
    text-shadow: 0 0 12px rgba(0, 204, 51, 0.7), 0 0 20px rgba(255, 107, 53, 0.4);
}

.footer-section p {
    color: #FF6B35;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.footer-bottom {
    border-top: 1px solid rgba(0, 204, 51, 0.3);
    padding-top: 20px;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-bottom p {
    color: #FF6B35;
    font-size: 0.85rem;
    margin: 5px 0;
    opacity: 0.8;
}

.footer-bottom a {
    color: #00CC33;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: #FF6B35;
    text-decoration: underline;
}

.footer-version {
    font-size: 0.7rem !important;
    opacity: 0.6;
}

.footer-disclaimer {
    font-size: 0.75rem !important;
    opacity: 0.7;
    font-style: italic;
}

/* Mini Player */
.mini-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(5, 5, 5, 0.98);
    border-top: 2px solid rgba(0, 204, 51, 0.5);
    padding: 15px 20px;
    padding-bottom: calc(15px + env(safe-area-inset-bottom));
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 1500;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.7), 0 -2px 15px rgba(0, 204, 51, 0.3);
    backdrop-filter: blur(10px);
}

@media (max-width: 768px) {
    .mini-player {
        /* On mobile, use top positioning based on visible viewport height */
        /* This ensures the player sticks to the bottom of the VISIBLE viewport */
        /* not the layout viewport, so it works when iOS toolbar hides/shows */
        /* Use actual player height (dynamically measured) for accurate positioning */
        position: fixed !important;
        bottom: auto !important;
        top: calc(var(--vh, 1vh) * 100 - var(--actual-player-height, var(--mini-player-height-mobile))) !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
    }
}

body.mini-player-visible {
    padding-bottom: var(--mini-player-height-desktop);
}

@media (max-width: 768px) {
    body.mini-player-visible {
        padding-bottom: var(--actual-player-height, var(--mini-player-height-mobile));
    }
}

.mini-player.hidden {
    display: none;
}

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

.mini-player-title {
    color: #00CC33;
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
    text-shadow: 0 0 10px rgba(0, 204, 51, 0.7), 0 0 15px rgba(0, 204, 51, 0.4);
}

.mini-player-time {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: #00CC33;
    overflow: visible;
}

.mini-player-progress {
    flex: 1;
    height: 4px;
    background: rgba(0, 204, 51, 0.25);
    border-radius: 2px;
    position: relative;
    cursor: pointer;
    margin: 0 10px;
    touch-action: manipulation;
    overflow: visible;
    --mini-player-knob-size: 12px;
}

.mini-player-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #00CC33, #FF6B35);
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px rgba(0, 204, 51, 0.8), 0 0 8px rgba(255, 107, 53, 0.6);
    position: relative;
}

.mini-player-progress.dragging .mini-player-progress-bar {
    transition: none;
}

.mini-player-progress-bar::after {
    content: '';
    position: absolute;
    right: calc(var(--mini-player-knob-size) / -2);
    top: 50%;
    width: var(--mini-player-knob-size);
    height: var(--mini-player-knob-size);
    margin-top: calc(var(--mini-player-knob-size) / -2);
    background: #00CC33;
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(0, 204, 51, 0.9), 0 0 8px rgba(255, 107, 53, 0.7);
    opacity: 1;
    transition: opacity 0.2s ease, transform 0.1s ease;
    pointer-events: none;
}

.mini-player-progress:hover .mini-player-progress-bar::after,
.mini-player-progress.dragging .mini-player-progress-bar::after {
    transform: scale(1.2);
}

.mini-player-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mini-player-btn {
    background: rgba(0, 204, 51, 0.25);
    border: 1px solid rgba(0, 204, 51, 0.5);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #00CC33;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.mini-player-btn:hover {
    background: rgba(0, 204, 51, 0.35);
    border-color: rgba(0, 204, 51, 0.7);
    box-shadow: 0 0 15px rgba(0, 204, 51, 0.5), 0 0 10px rgba(0, 204, 51, 0.4);
    transform: scale(1.1);
}

.mini-player-btn.active {
    background: rgba(0, 204, 51, 0.6);
    border-color: rgba(0, 204, 51, 0.9);
    box-shadow: 0 0 20px rgba(0, 204, 51, 0.7), 0 0 12px rgba(255, 107, 53, 0.5);
}

.mini-player-btn#miniPlayerSubtitlesToggle:not(.active) {
    opacity: 0.5;
    filter: grayscale(100%);
}

.mini-player-btn.play-pause {
    width: 45px;
    height: 45px;
    font-size: 1.4rem;
    border-width: 2px;
}

.mini-player-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.mini-player-btn.close-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.mini-player-btn.play-pause svg {
    width: 24px;
    height: 24px;
}

@media (max-width: 1200px) {
    .container {
        padding-left: 20px;
        padding-right: 70px;
    }
}

@media (max-width: 768px) {
    .album-section {
        grid-template-columns: 1fr;
    }

    .header h1 {
        font-size: 2rem;
    }

    .header-content {
        flex-direction: column;
        gap: 20px;
    }

    .artist-image {
        width: 100px;
        height: 100px;
    }

    .albums-section h2 {
        font-size: 1.5rem;
    }

    .albums-list {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }

    .album-item {
        padding: 12px;
    }

    .album-item-content {
        gap: 10px;
    }

    .album-item-image {
        width: 120px;
        height: 120px;
        min-width: 120px;
        max-width: 120px;
    }

    .album-item-title {
        font-size: 0.9rem;
    }

    .album-item-description {
        font-size: 0.75rem;
    }

    .track-header {
        flex-wrap: nowrap;
        gap: 8px;
    }

    .track-title {
        min-width: 0;
        flex: 1;
        overflow: hidden;
    }

    .track-title-text {
        overflow: hidden;
        white-space: nowrap;
        flex: 1;
        min-width: 0;
        display: inline-block;
    }

    .track-date {
        display: none;
    }

    .track-meta {
        flex-shrink: 0;
    }

    .bitcoin-donation {
        top: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
    }

    .bitcoin-donation-sidebar {
        top: 15px;
        left: 50%;
    }

    .bitcoin-donation::before {
        font-size: 1.5em;
        font-family: 'Courier New', 'Courier', monospace;
    }

    .modal-content {
        padding: 26px 17px;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
    }

    .footer-section {
        text-align: center;
    }

    .mini-player {
        padding: 18px 15px;
        padding-bottom: calc(18px + env(safe-area-inset-bottom));
        flex-wrap: wrap;
        min-height: 90px;
    }

    .mini-player-info {
        width: 100%;
        margin-bottom: 12px;
    }

    .mini-player-title {
        font-size: 1rem;
        margin-bottom: 6px;
    }

    .mini-player-time {
        font-size: 0.85rem;
    }

    .mini-player-progress {
        width: 100%;
        height: 10px;
        margin: 8px 0 12px 0;
        padding: 8px 0;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        position: relative;
        overflow: visible;
        --mini-player-knob-size: 16px;
    }

    .mini-player-progress::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 0;
        right: 0;
        height: 10px;
        transform: translateY(-50%);
        background: rgba(0, 204, 51, 0.25);
        border-radius: 5px;
        z-index: 1;
    }

    .mini-player-progress-bar {
        height: 10px;
        border-radius: 5px;
        position: absolute;
        top: 50%;
        left: 0;
        right: 0;
        transform: translateY(-50%);
        z-index: 2;
        transition: width 0.1s linear;
    }

    .mini-player-progress.dragging .mini-player-progress-bar {
        transition: none;
    }

    .mini-player-progress-bar::after {
        content: '';
        position: absolute;
        right: calc(var(--mini-player-knob-size) / -2);
        top: 50%;
        width: var(--mini-player-knob-size);
        height: var(--mini-player-knob-size);
        margin-top: calc(var(--mini-player-knob-size) / -2);
        background: #00CC33;
        border-radius: 50%;
        box-shadow: 0 0 12px rgba(0, 204, 51, 1), 0 0 8px rgba(255, 107, 53, 0.8);
        opacity: 1;
        transition: opacity 0.2s ease;
    }

    .mini-player-controls {
        width: 100%;
        justify-content: center;
        gap: 15px;
    }

    .mini-player-btn {
        width: 48px;
        height: 48px;
        font-size: 1.3rem;
    }

    .mini-player-btn.play-pause {
        width: 56px;
        height: 56px;
        font-size: 1.6rem;
    }

}

/* Subtitles panel - vertical sidebar on the right */
.subtitles-modal {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1400;
    pointer-events: none;
    background: transparent;
    transform: translateX(100%);
    transition: transform 0.4s ease-in-out, padding-bottom 0.3s ease;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    padding-bottom: 0;
}

.subtitles-modal.active {
    transform: translateX(0);
}

.subtitles-modal.hidden {
    display: none;
}

.subtitles-content {
    background: rgba(0, 0, 0, 0.85);
    color: #FFFFFF;
    padding: 20px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
    border-left: 2px solid rgba(0, 204, 51, 0.5);
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: center;
    width: 100%;
    height: 100%;
    word-wrap: break-word;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease 0.2s, visibility 0.3s ease 0.2s;
    box-sizing: border-box;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
    position: relative;
    box-shadow: -5px 0 20px rgba(0, 204, 51, 0.2);
}

.subtitle-wrapper {
    max-width: 100%;
    width: calc(100% - 20px);
    padding: 0 10px;
    font-size: inherit;
    line-height: inherit;
    display: block;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: break-word;
}

.subtitles-modal.active .subtitles-content {
    opacity: 1;
    visibility: visible;
}

.subtitle-highlighted {
    background-color: transparent;
    color: #00CC33;
    font-weight: normal;
    display: inline;
    word-wrap: break-word;
    transition: color 0.3s ease;
    text-shadow: 0 0 8px rgba(0, 204, 51, 0.8), 0 0 12px rgba(255, 107, 53, 0.5);
}

.subtitle-remaining {
    color: #FFFFFF;
    display: inline;
    word-wrap: break-word;
    transition: color 0.3s ease;
}

@media (max-width: 768px) {
    .subtitles-modal {
        width: 200px;
        z-index: 1499;
        height: 100vh;
        top: 0;
        margin: 0;
        padding: 0;
        padding-bottom: 0;
    }

    .subtitles-content {
        font-size: 0.95rem;
        padding: 15px;
        padding-bottom: calc(10px + env(safe-area-inset-bottom));
        min-height: 0;
        line-height: 1.6;
        border-bottom: none;
        overflow-y: auto;
        overflow-x: hidden;
    }

    .subtitle-wrapper {
        width: calc(100% - 30px);
        padding: 0 5px;
    }

    .subtitle-highlighted,
    .subtitle-remaining {
        display: inline;
        word-wrap: break-word;
        white-space: normal;
        font-size: inherit;
        word-break: break-word;
        overflow-wrap: break-word;
    }
}