/* Listen Page - Linktree-inspired Design */

.listen-page {
    background: #8B7A1F;
    min-height: 100vh;
    overflow-y: auto;
    position: relative;
}

.watch-page {
    background: #466630 !important;
}

.watch-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            0deg,
            rgba(0, 0, 0, 0.08) 0px,
            transparent 0.5px,
            transparent 1.5px,
            rgba(0, 0, 0, 0.08) 2px
        ),
        repeating-linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.08) 0px,
            transparent 0.5px,
            transparent 1.5px,
            rgba(0, 0, 0, 0.08) 2px
        ),
        repeating-linear-gradient(
            45deg,
            rgba(0, 0, 0, 0.04) 0px,
            transparent 0.5px,
            transparent 1px,
            rgba(0, 0, 0, 0.04) 1.5px
        );
    pointer-events: none;
    z-index: 0;
    opacity: 1;
    mix-blend-mode: multiply;
}

.connect-page {
    background: #2A6256 !important;
}

.connect-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            0deg,
            rgba(0, 0, 0, 0.08) 0px,
            transparent 0.5px,
            transparent 1.5px,
            rgba(0, 0, 0, 0.08) 2px
        ),
        repeating-linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.08) 0px,
            transparent 0.5px,
            transparent 1.5px,
            rgba(0, 0, 0, 0.08) 2px
        ),
        repeating-linear-gradient(
            45deg,
            rgba(0, 0, 0, 0.04) 0px,
            transparent 0.5px,
            transparent 1px,
            rgba(0, 0, 0, 0.04) 1.5px
        );
    pointer-events: none;
    z-index: 0;
    opacity: 1;
    mix-blend-mode: multiply;
}

.listen-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            0deg,
            rgba(0, 0, 0, 0.08) 0px,
            transparent 0.5px,
            transparent 1.5px,
            rgba(0, 0, 0, 0.08) 2px
        ),
        repeating-linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.08) 0px,
            transparent 0.5px,
            transparent 1.5px,
            rgba(0, 0, 0, 0.08) 2px
        ),
        repeating-linear-gradient(
            45deg,
            rgba(0, 0, 0, 0.04) 0px,
            transparent 0.5px,
            transparent 1px,
            rgba(0, 0, 0, 0.04) 1.5px
        );
    pointer-events: none;
    z-index: 0;
    opacity: 1;
    mix-blend-mode: multiply;
}

.listen-nav {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
}

.nav-logo-link {
    display: block;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    transition: filter 0.2s ease;
}

.nav-logo-link:hover {
    filter: brightness(0) invert(1);
    opacity: 0.95;
}

.nav-logo {
    height: 40px;
    width: auto;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-user-drag: none;
    user-drag: none;
}

.listen-container {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: 120px 20px 40px;
    position: relative;
    z-index: 1;
}

@media (min-width: 769px) {
    .listen-container {
        max-width: 400px;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .streaming-links {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

.streaming-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.streaming-link {
    background: #ffffff !important;
    border: none !important;
    border-radius: 0 !important;
    text-decoration: none !important;
    transition: background-color 0.2s ease !important;
    display: block !important;
    width: 100%;
    max-width: 100%;
    box-shadow: 
        inset 0 0 0 2px #000000,
        inset 0 0 0 4px #ffffff,
        inset 0 0 0 6px #000000,
        2px 2px 0 0 #000000,
        4px 4px 0 0 #000000 !important;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transform: none !important;
    padding: 18px 20px !important;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    box-sizing: border-box;
}

.streaming-link:hover {
    background: #d5d5d5 !important;
    transform: none !important;
    box-shadow: 
        inset 0 0 0 2px #000000,
        inset 0 0 0 4px #d5d5d5,
        inset 0 0 0 6px #000000,
        2px 2px 0 0 #000000,
        4px 4px 0 0 #000000 !important;
    border: none !important;
}

.streaming-link:active {
    background: #A5953D !important;
    transform: none !important;
    box-shadow: 
        inset 0 0 0 2px #000000,
        inset 0 0 0 4px #A5953D,
        inset 0 0 0 6px #000000,
        1px 1px 0 0 #000000,
        2px 2px 0 0 #000000 !important;
}

.streaming-link:focus {
    outline: none;
}

.link-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    min-width: 0;
}

.link-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.platform-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.streaming-link.spotify .platform-icon {
    color: #1DB954;
}

.streaming-link.soundcloud .platform-icon {
    color: #FF5500;
}

.streaming-link.apple-music .platform-icon {
    color: #FA243C;
}

.streaming-link.bandcamp .platform-icon {
    color: #629AA0;
}

.streaming-link.audius .platform-icon {
    color: #0DCCFF;
}

.link-text {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #000000;
    text-transform: none;
    letter-spacing: -0.3px;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.streaming-link:hover .link-text {
    color: #000000;
}

.link-arrow {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 32px !important;
    font-weight: 400;
    color: #000000 !important;
    opacity: 1 !important;
    flex-shrink: 0;
    transition: color 0.2s ease;
    line-height: 1;
    display: inline-block;
}

.streaming-link:hover .link-arrow {
    color: #000000 !important;
    opacity: 1 !important;
}

/* Responsive */
@media (max-width: 768px) {
    .listen-nav {
        top: 15px;
        left: 15px;
    }

    .nav-logo {
        height: 35px;
    }

    .nav-logo-link:hover {
        filter: brightness(0) invert(1);
        opacity: 0.95;
    }

    .listen-container {
        padding: 100px 25px 30px;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .streaming-links {
        width: 100%;
        max-width: none;
        gap: 10px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .streaming-link {
        width: 100%;
        max-width: 100%;
        margin: 0;
        box-sizing: border-box;
    }

    .link-content {
        padding: 14px 16px;
        min-width: 0;
        box-sizing: border-box;
    }

    .link-text {
        font-family: 'PxPlus ToshibaSat 8x14', 'Press Start 2P', 'Courier New', monospace !important;
        font-size: 24px !important;
        font-weight: normal !important;
        letter-spacing: 0 !important;
        text-transform: lowercase !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        -webkit-text-size-adjust: 100% !important;
        text-size-adjust: 100% !important;
        flex: 1;
        min-width: 0;
    }

    .link-arrow {
        font-family: 'PxPlus ToshibaSat 8x14', 'Press Start 2P', 'Courier New', monospace !important;
        font-size: 28px !important;
        font-weight: normal !important;
        color: #000000 !important;
        opacity: 1 !important;
        flex-shrink: 0 !important;
        -webkit-text-size-adjust: 100% !important;
        text-size-adjust: 100% !important;
    }

    /* Ensure button styling is consistent on mobile */
    .streaming-link {
        background: #ffffff !important;
        box-shadow: 
            inset 0 0 0 2px #000000,
            inset 0 0 0 4px #ffffff,
            inset 0 0 0 6px #000000,
            2px 2px 0 0 #000000,
            4px 4px 0 0 #000000 !important;
    }

    .streaming-link:hover {
        background: #d5d5d5 !important;
        box-shadow: 
            inset 0 0 0 2px #000000,
            inset 0 0 0 4px #d5d5d5,
            inset 0 0 0 6px #000000,
            2px 2px 0 0 #000000,
            4px 4px 0 0 #000000 !important;
    }

    .streaming-link:active {
        background: #A5953D !important;
        box-shadow: 
            inset 0 0 0 2px #000000,
            inset 0 0 0 4px #A5953D,
            inset 0 0 0 6px #000000,
            1px 1px 0 0 #000000,
            2px 2px 0 0 #000000 !important;
    }
}

/* Extra small devices */
@media (max-width: 360px) {
    .listen-container {
        padding: 60px 15px 30px;
    }

    .link-content {
        padding: 12px 14px;
    }

    .link-text {
        font-size: 22px !important;
    }

    .link-arrow {
        font-size: 26px !important;
        color: #000000 !important;
        opacity: 1 !important;
    }
}

