* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Custom fonts */
@font-face {
    font-family: 'Bricolage Condensed';
    src: url('fonts/BricolageGrotesque48ptCondensed.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Bricolage Light';
    src: url('fonts/BricolageGrotesqueLight.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

body {
    background: #000;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    font-family: 'Inter', sans-serif;
    color: #fff;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 0;
}

/* Discord icon */
.discord-icon {
    position: fixed;
    top: 30px;
    left: 30px;
    width: 220px;
    height: auto;
    opacity: 0.6;
    z-index: 10;
}

.page-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    width: 100%;
    max-width: 587px;
    padding: 20px;
    position: relative;
    z-index: 1;
    margin: 0 auto;
    min-height: 100vh;
}

.logo {
    width: 180px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Progress bar */
.progress-container {
    width: calc(100% - 40px);
    max-width: 300px;
    height: 10px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 5px;
    overflow: hidden;
    margin: 8px auto 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #97DCFF, #FFFFFF);
    border-radius: 5px;
    transition: width 0.5s ease;
    box-shadow: 0 0 10px rgba(151, 220, 255, 0.5);
}

.container {
    width: 100%;
}

.queue-box {
    position: relative;
    width: 587px;
    min-height: 684px;
    padding: 50px 45px;
    margin: 0 auto;
}

.queue-box-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    backdrop-filter: blur(148px);
    -webkit-backdrop-filter: blur(148px);
    clip-path: url(#queue-shape-clip);
}

.queue-box-shape {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.queue-box-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Position display */
.position-display {
    text-align: center;
    padding: 8px 0 16px;
}

.position-numbers {
    font-family: 'Bricolage Condensed', sans-serif;
    line-height: 1;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
}

.position-current {
    font-size: 128px;
    color: #FFFFFF;
}

.position-separator {
    font-size: 64px;
    color: #CECDD0;
}

.position-total {
    font-size: 64px;
    color: #CECDD0;
}

.position-label {
    font-family: 'Bricolage Light', sans-serif;
    font-size: 16px;
    color: #CECDD0;
    margin-top: 4px;
}

/* Separator */
.separator {
    width: calc(100% - 40px);
    height: auto;
    margin: 12px 20px;
    opacity: 0.3;
}

/* Info section */
.info-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 20px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-label {
    font-family: 'Bricolage Light', sans-serif;
    font-size: 16px;
    color: #ffffff;
}

.info-value {
    font-family: 'Bricolage Condensed', sans-serif;
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.value-white {
    color: #FFFFFF;
    font-size: 32px;
}

.value-gray {
    color: #CECDD0;
    font-size: 16px;
}

/* Queue Grid */
.queue-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

.queue-row {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.queue-card {
    position: relative;
    width: 57px;
    height: 57px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.queue-card:hover {
    transform: scale(1.05);
}

.card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: opacity 0.3s ease;
}

.card-avatar {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    border-radius: 10px;
    object-fit: cover;
    transition: transform 0.3s ease, opacity 0.3s ease;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

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

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

/* Current player highlight */
.queue-card.you {
    position: relative;
    animation: pulse 2s ease-in-out infinite;
    z-index: 100;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.here-indicator {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 2px;
    z-index: 10;
    width: 80px;
    height: auto;
}

.card-overflow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Bricolage Condensed', sans-serif;
    font-size: 24px;
    color: #FFFFFF;
    font-weight: bold;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.info-label {
    font-size: 14px;
    opacity: 0.6;
    color: #ffffff;
}

.info-value {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.queue-list {
    padding: 16px 0;
    max-height: 200px;
    overflow-y: auto;
}

.queue-player {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
}

.queue-player.you {
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.queue-player-position {
    width: 28px;
    height: 28px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(139, 92, 246, 0.2);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #a78bfa;
}

.queue-player-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #374151;
}

.queue-player-name {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.queue-player-priority {
    font-size: 11px;
    color: #6b7280;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.footer {
    padding-top: 24px;
}

.loading-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.loading-progress {
    height: 100%;
    width: 30%;
    background: linear-gradient(90deg, #8b5cf6, #a78bfa);
    border-radius: 2px;
    animation: loading 2s ease-in-out infinite;
}

@keyframes loading {
    0% {
        transform: translateX(-100%);
    }

    50% {
        transform: translateX(233%);
    }

    100% {
        transform: translateX(-100%);
    }
}

.queue-list::-webkit-scrollbar {
    width: 4px;
}

.queue-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.queue-list::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.5);
    border-radius: 2px;
}