:root {
    --bg: #f05c5c;
    --accent: #03dac6;
    --text: #e0e0e0;
}

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background: var(--bg);
    color: var(--text);
    font-family: 'Courier New', Courier, monospace;
    overflow: hidden;
}

.view {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    text-align: center;
}

.choice-container {
    display: flex;
    flex-direction: column; /* Stacked vertically */
    gap: 30px;
    margin-top: 40px;
    align-items: center;
    width: 100%; /* Ensures cards fill the landing-content width */
}

.choice-card {
    width: 90vw;
    max-width: 500px;
    aspect-ratio: 16 / 9; /* Keeps the boxes uniform regardless of image size */
    cursor: pointer;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid #222;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.full-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image fills the area without stretching */
    display: block;
    filter: brightness(0.7) grayscale(20%);
    transition: all 0.4s ease;
}

/* INTERACTION EFFECTS */
.choice-card:hover {
    border-color: var(--accent);
    transform: scale(1.02); /* Slight pop-out effect */
    box-shadow: 0 0 30px rgba(3, 218, 198, 0.2);
}

.choice-card:hover .full-img {
    filter: brightness(1) grayscale(0%);
}

.card-content {
    padding: 20px;
    background: linear-gradient(to top, #000, transparent);
    text-align: left;
}

.card-content h2 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--accent);
}

.card-content p {
    margin: 5px 0 0 0;
    font-size: 0.8rem;
    opacity: 0.7;
}

/**/
/* Container for the Solo Grid */
#solo-list {
    display: grid;
    /* Create 2 equal columns that fit inside the container */
    grid-template-columns: repeat(2, 1fr); 
    gap: 12px;
    width: 95%; /* Use percentage instead of vw to be safer */
    max-width: 500px;
    margin: 0 auto; /* Center the grid */
    box-sizing: border-box; /* Crucial: includes padding/border in width */
}

/* Specific styling for Solo Boxes */
.solo-item {
    width: 100% !important; /* Override the 90vw from landing page */
    max-width: none !important;
    aspect-ratio: 1 / 1; /* Make them perfect squares */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid #333;
    padding: 10px;
    box-sizing: border-box;
}

/* Make the solo page scrollable if there are many samples */


#solo-page {
    overflow-y: auto;
    padding: 20px 0;
    display: none; /* Controlled by JS */
    flex-direction: column;
    align-items: center;
}

#solo-page {
    display: none; /* Controlled by JS */
    flex-direction: column;
    height: 100vh;
    width: 100%;
    position: fixed; /* Keeps the whole view locked to the screen */
    top: 0;
    left: 0;
    overflow-y: auto; /* Allows scrolling within the view */
    /* background: #000; */
}

/* 1. Fix the Header Spacing */
#solo-page h2 {
    margin-top: 150px; /* Space for the BACK button and phone notch */
    text-align: center;
    padding: 0 20px;
    font-size: 1.2rem;
    letter-spacing: 2px;
}

.solo-label {
    font-size: 0.8rem;
    color: var(--accent);
    margin-bottom: 5px;
}

.solo-status {
    font-size: 0.6rem;
    opacity: 0.5;
}

/* NAVIGATION BUTTONS */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 45px;
    width: 45px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--accent);
    color: var(--accent);
    border-radius: 50%;
    cursor: pointer;
    z-index: 1000;
    font-size: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.left { left: 20px; }
.right { right: 20px; }

/* USER INFO & PILLS */
#user-info {
    position: fixed; /* Changed from absolute/relative to fixed */
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 500px;
    z-index: 9999; /* Ensure it's above all other layers */
    pointer-events: none;
    display: block !important; /* Force display */
    min-height: 50px; /* Ensure it has a footprint */
}

.user-pill {
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid #444;
    border-radius: 20px;
    font-size: 0.75rem;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    margin: 4px;
    pointer-events: auto;
}

.solo-item {
    position: relative; /* Necessary for absolute positioning of the icon */
}

.reset-icon {
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10; /* Ensure it stays above other elements */
}

.reset-icon:hover {
    color: var(--accent);
    transform: rotate(-45deg); /* Subtle visual feedback */
}

/* We can trigger this from JS by adding a class or just using the inline styles above */
.playing-now {
    border-color: var(--accent) !important;
    background: rgba(3, 218, 198, 0.2) !important;
    box-shadow: 0 0 20px rgba(3, 218, 198, 0.4);
}

.loading-pulse {
    animation: pulse-border 1.5s infinite;
    pointer-events: none; /* Disable clicking while loading */
}

@keyframes pulse-border {
    0% { border-color: #333; }
    50% { border-color: var(--accent); opacity: 0.7; }
    100% { border-color: #333; }
}

/* JAMMING PULSE */
@keyframes pulse {
    0% { box-shadow: 0 0 0px var(--accent); }
    50% { box-shadow: 0 0 20px var(--accent); }
    100% { box-shadow: 0 0 0px var(--accent); }
}

.solo-item {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 0 !important; /* Remove padding so zones can fill the space */
    overflow: hidden;
}

.solo-click-zone {
    padding: 20px;
    flex-grow: 1; /* Fills the card above the progress bar */
    cursor: pointer;
}

.progress-container {
    height: 30px; /* Bigger hit area for easier scrubbing */
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    width: 100%;
    z-index: 10;
}

.progress-bar {
    height: 100%;
    background: #00ffcc;
    width: 0%;
    pointer-events: none;
}

.reset-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 20;
    padding: 10px;
}


/* Subtle feedback while the browser buffers the stream */
.solo-item:active {
    background: rgba(var(--accent-rgb), 0.1);
}

.dot-loader span {
    display: inline-block;
    animation: dot-blink 1.4s infinite both;
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--accent);
}

/* Delay each dot so they animate in a wave */
.dot-loader span:nth-child(2) {
    animation-delay: 0.2s;
}

.dot-loader span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dot-blink {
    0% { opacity: 0.2; transform: translateY(0); }
    20% { opacity: 1; transform: translateY(-3px); }
    100% { opacity: 0.2; transform: translateY(0); }
}

/* Ensure the button stays still while dots animate */
.solo-item.loading-pulse {
    cursor: wait;
}

.jamming-active {
    animation: pulse 2s infinite;
    border: 2px solid var(--accent) !important;
}

.landing-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* This forces the logo and cards to the left */
    width: 90vw;
    max-width: 500px; /* Matches your card's max-width */
}

.main-logo {
    width: 300px; /* Fixed size or percentage */
    height: auto;
    margin-bottom: 20px;
}


/* Adjust for small mobile screens */
@media (max-width: 480px) {
    .main-logo {
        width: 80%;
        margin-bottom: 10px;
    }
}

/* MOBILE OPTIMIZATION */
@media (max-width: 768px) {
    .nav-btn {
        height: 65px;
        width: 65px;
        bottom: 40px;
        top: auto;
        transform: none;
    }
    #user-info { bottom: 120px; }
}

.footer-logos {
    display: flex;
    justify-content: center; /* Centers the group */
    align-items: center;
    gap: 40px;               /* Space between the two logos */
    width: 100%;
    margin-top: 50px;        /* Pushes them down away from the cards */
    padding-bottom: 30px;    /* Extra breathing room at the bottom */
}

.partner-logo {
    height: 80px;            /* Keeps them a uniform, subtle size */
    width: auto;
    opacity: 0.6;            /* Makes them look elegant/professional */
    transition: opacity 0.3s;
    filter: grayscale(100%); /* Optional: makes logos blend with your dark theme */
}

.partner-logo:hover {
    opacity: 1;
    filter: grayscale(0%);   /* Brings color back on hover */
}

/* On very small screens, stack them or reduce gap */
@media (max-width: 480px) {
    .footer-logos {
        gap: 20px;
        margin-top: 30px;
    }
    .partner-logo {
        height: 30px;
    }
}
