.container {
    width: 100%;
    margin: 0 auto;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Scrollbar styling */
.schedule-section::-webkit-scrollbar,
.up-next .upcoming-songs::-webkit-scrollbar,
.vote-cards::-webkit-scrollbar {
    width: 8px;
}

.schedule-section::-webkit-scrollbar-track,
.up-next .upcoming-songs::-webkit-scrollbar-track,
.vote-cards::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 4px;
}

.schedule-section::-webkit-scrollbar-thumb,
.up-next .upcoming-songs::-webkit-scrollbar-thumb,
.vote-cards::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.schedule-section::-webkit-scrollbar-thumb:hover,
.up-next .upcoming-songs::-webkit-scrollbar-thumb:hover,
.vote-cards::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Hover effects */
.vote-cards > div {
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.vote-cards > div:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.03);
}

.currently-playing {
    width: 100%;
    margin-bottom: 0.75rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 0.75rem;
    padding: 1rem;
}

.currently-playing .header-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.currently-playing .song-entry {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.01);
    border-radius: 0.5rem;
}

.currently-playing .song-left {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
}

.currently-playing .song-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.currently-playing .song-name {
    font-size: 1.25rem;
    font-weight: bold;
}

.countdown-section {
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 0.75rem;
    padding: 1rem;
}

.countdown-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    background: rgba(255, 255, 255, 0.01);
    padding: 0.5rem;
    border-radius: 0.5rem;
}

.countdown-item span:first-child {
    font-size: 1.25rem;
    font-weight: bold;
}

.countdown-item .label {
    font-size: 0.75rem;
    opacity: 0.7;
}

.up-next {
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 0.75rem;
    padding: 1rem;
}

.schedule-section {
    width: 100%;
    overflow-y: auto;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 0.75rem;
}

.vote-cards {
    width: 100%;
    padding: 0.75rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.75rem;
}

.vote-card {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 0.75rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.vote-count {
    font-size: 1.5rem;
    font-weight: bold;
}

.vote-buttons {
    display: flex;
    gap: 0.5rem;
}

/* Mobile-first styles */
@media (max-width: 1023px) {
    .container {
        padding: 0.5rem;
        gap: 0.5rem;
        height: auto;
        min-height: 100vh;
    }

    .schedule-section,
    .currently-playing,
    .up-next,
    .countdown-section,
    .vote-cards {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .schedule-section {
        order: 1;
        max-height: 50vh;
    }

    .currently-playing {
        order: 2;
    }

    .currently-playing .song-entry {
        flex-direction: column;
        text-align: center;
        padding: 0.75rem;
    }

    .currently-playing .song-left {
        width: 180px;
        height: 180px;
        margin: 0 auto 1rem;
    }

    .currently-playing .song-details {
        text-align: center;
    }

    .currently-playing .song-name {
        font-size: 1.2rem;
    }

    .countdown-section {
        order: 3;
    }

    .countdown-container {
        gap: 0.35rem;
    }

    .countdown-item {
        padding: 0.35rem;
    }

    .countdown-item span:first-child {
        font-size: 1.1rem;
    }

    .countdown-item .label {
        font-size: 0.7rem;
    }

    .up-next {
        order: 4;
        max-height: 40vh;
    }

    .vote-cards {
        order: 5;
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 0.5rem;
        padding: 0.5rem;
    }

    .vote-card {
        padding: 0.75rem;
    }

    .vote-card h2 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .vote-count {
        font-size: 1.25rem;
    }

    .spotify-button {
        width: 100%;
        margin-top: 0.75rem;
    }
}

/* Desktop layout */
@media (min-width: 1024px) {
    .container {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        grid-template-rows: 1fr auto;
        grid-template-areas: 
            "schedule player list"
            "schedule player list"
            "votes votes votes";
        gap: clamp(0.75rem, 2vw, 1.5rem);
        padding: clamp(0.75rem, 2vw, 1.5rem);
        height: 100vh;
        min-height: 100vh;
        max-height: 100vh;
        overflow: hidden;
    }

    .currently-playing {
        grid-area: player;
        margin: 0;
        height: 100%;
        overflow: hidden;
    }

    .currently-playing .song-entry {
        height: calc(100% - 8rem);
        align-items: flex-start;
    }

    .up-next {
        grid-area: list;
        margin: 0;
        display: flex;
        flex-direction: column;
        height: 100%;
        overflow-y: auto;
    }

    .up-next h2 {
        margin-bottom: 1rem;
        position: sticky;
        top: 0;
        background: inherit;
        padding: 0.5rem 0;
        z-index: 1;
    }

    .up-next .upcoming-songs {
        flex: 1;
        overflow-y: auto;
        padding-right: 0.5rem;
    }

    .schedule-section {
        grid-area: schedule;
        margin: 0;
        display: flex;
        flex-direction: column;
        height: 100%;
        overflow-y: auto;
        grid-row: span 2;
    }

    .schedule-section h2 {
        margin-bottom: 1rem;
        position: sticky;
        top: 0;
        background: inherit;
        padding: 0.5rem 0;
        z-index: 1;
    }

    .schedule-section > div {
        margin-bottom: 0.75rem;
        padding: 1rem;
        border-radius: 0.5rem;
        transition: background-color 0.2s ease;
    }

    .schedule-section > div:hover {
        background: rgba(255, 255, 255, 0.03);
    }

    .schedule-section > div:last-child {
        margin-bottom: 0;
    }

    .vote-cards {
        grid-area: votes;
        grid-template-columns: repeat(6, 1fr);
        height: 100%;
        overflow-y: auto;
    }
}

@media (min-width: 1920px) {
    .container {
        padding: 1.5rem;
        max-width: 1800px;
        margin: 0 auto;
        gap: 1.5rem;
    }
}
