:root {
    --color-bg: #000;
    --color-text: #fff;
    --color-accent: rgba(255, 255, 255, 0.08);
    --color-border: rgba(255, 255, 255, 0.2);
    --color-glow: rgba(255, 255, 255, 0.3);
    --color-success: #2bff00;
    --color-error: #ff2b2b;
    --font-main: 'Arial', sans-serif;
    --radius-default: 10px;
    --radius-rounded: 20px;
    --pad-sm: 8px;
    --pad-md: 12px;
    --pad-lg: 20px;
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
}

body {
    margin: 0;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--color-bg);
    font-family: var(--font-main);
}

.ui-panel.middle {
    position: relative;
    transform: scale(1);
    transform-origin: center center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: var(--pad-lg);
    border-radius: var(--radius-default);
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(4px);
    background: rgba(255, 255, 255, 0.03);
    box-shadow: 0 0 10px rgba(255,255,255,0.1);
    box-sizing: border-box;
}

.ui-panel.middle > * {
    margin: 0;
    padding: 0;
    width: 100%;
}

.ui-panel-wrapper {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: max-content;
    height: max-content;
}

.top-left-header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;  /* center profile */
    gap: 5px;
    margin-bottom: 10px; 
    margin: 0 auto 12px auto;
}

.image-box {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    background: rgba(255,255,255,0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.image-box img {
    max-width: 100%;
    max-height: 100%;
}

.label {
    color: var(--color-text);
    font-size: 20px;
    text-align: center;
    text-shadow: 0 0 6px var(--color-glow);
    margin-bottom: 12px;
}

.flex-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin: 0;
}

button.btn {
    padding: 8px 16px;
    margin: 0 2px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 8px;
    background: rgba(255,255,255,0.08);
    color: white;
    cursor: pointer;
    font-size: 14px;
    transition: 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

button.btn:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.5);
    box-shadow: 0 0 15px rgba(255,255,255,0.7);
    transform: scale(1.05);
}

.music-player {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    backdrop-filter: blur(6px);
    background: rgba(255,255,255,0.05);
    box-shadow: 0 0 12px rgba(255,255,255,0.2);
}

.views-box {
    position: absolute;
    top: -12px;
    right: -8px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    z-index: 10;
}

.views-box .image-box {
    width: 20px;
    height: 20px;
    border-radius: 0;            /* optional, remove rounded corners */
    border: none;                 /* remove border */
    background: transparent;      /* remove background */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;                   /* remove padding if any */
    overflow: visible;            /* ensure label isn't cut off */
}

.views-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.controls {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 12px;
}

.btn.icon-btn {
    width: 48px;
    height: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.3);
    padding: 0;
    overflow: hidden;
    transition: 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn.icon-btn:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.5);
    box-shadow: 0 0 15px rgba(255,255,255,0.7);
    transform: scale(1.1);
}

.btn.icon-btn img {
    width: 70%; 
    height: 70%; 
    object-fit: contain; 
    display: block;
}

.progress-container {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

#progress {
    flex: 1;
    height: 8px;
    border-radius: 4px;
    -webkit-appearance: none;
    background: rgba(255,255,255,0.2);
    outline: none;
    cursor: pointer;
}

#progress::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: var(--color-text);
    box-shadow: 0 0 6px var(--color-text);
}

#progress::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: var(--color-text);
    box-shadow: 0 0 6px var(--color-text);
}

#current-time, #duration {
    min-width: 40px;
    text-align: center;
    color: rgba(255,255,255,0.8);
}

.text-sm {
    font-size: 12px;
    text-align: center;
    color: white;
}

canvas#frostedglass {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
}

#enter-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    cursor: pointer;
    user-select: none;
    transition: opacity 0.6s ease;
}

#enter-screen h1 {
    color: white;
    font-size: 3rem;
    text-shadow: 0 0 15px rgba(255,255,255,0.7);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}