/* Redesigned styles: Black/White/Red accents (Semantic CSS) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800&display=swap');

*, ::before, ::after {
    box-sizing: border-box;
}

:root {
    --color-red: #e11d48;
    --color-black: #000000;
    --color-white: #ffffff;
    --color-light: #f4f4f5;
    --color-gray: #71717a;
    --color-gray-light: #e2e8f0;
    --color-gray-dark: #475569;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--color-white);
    color: var(--color-black);
    line-height: 1.6;
    margin: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Global Typography & Colors */
.text-red { color: var(--color-red); }
.text-center { text-align: center; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.uppercase { text-transform: uppercase; }
.italic { font-style: italic; }

.role-admin { color: var(--color-red); }
.role-deejay { color: #2563eb; }
.role-librarian { color: #16a34a; }
.role-user { color: var(--color-black); }

/* Buttons & Links */
a {
    color: inherit;
    text-decoration: none;
}
a.text-red:hover {
    color: #be123c;
}

.btn-red {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-red);
    color: var(--color-white);
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    transition: background-color 0.15s ease-in-out;
    border: none;
    cursor: pointer;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    min-height: 40px;
}
.btn-red:hover {
    background-color: #be123c;
}

/* Layout Containers */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Auth Pages (Login/Register/Reset) */
.auth-page {
    background-color: var(--color-light);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
}
.auth-container {
    background-color: var(--color-white);
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    width: 24rem; /* 384px */
    border-top: 4px solid var(--color-red);
}
.auth-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
    text-transform: uppercase;
}
.form-group {
    margin-bottom: 1rem;
}
.form-group.mb-6 {
    margin-bottom: 1.5rem;
}
.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}
.form-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}
.form-input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--color-gray-light);
    border-radius: 0.25rem;
}
.form-submit {
    width: 100%;
    margin-top: 1rem;
}
.auth-footer-text {
    margin-top: 1rem;
    text-align: center;
}
.auth-link-small {
    font-size: 0.75rem;
    color: var(--color-gray);
}
.auth-link-small:hover {
    color: var(--color-red);
}
.auth-error {
    color: var(--color-red);
    margin-bottom: 1rem;
    font-size: 0.875rem;
}
.auth-success {
    color: #16a34a;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

/* Header */
.header-main {
    background-color: var(--color-white);
    position: relative;
    z-index: 20;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
}

.header-top {
    position: relative;
    padding-top: 0.5rem;
}

.header-mobile {
    display: flex;
    flex-direction: column;
    width: 100%;
}
.header-mobile-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 0.5rem;
}
.handwriting-logo-mobile {
    max-height: 35px;
    object-fit: contain;
}
.header-nav {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.header-nav-mobile a {
    font-size: 0.75rem;
    min-height: 32px;
}
.user-welcome-mobile {
    text-align: center;
    width: 100%;
    margin-bottom: 0.5rem;
}
.welcome-text {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-red);
    white-space: nowrap;
}
.member-since {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-gray);
    white-space: nowrap;
    margin-left: 0.25rem;
}

.header-desktop {
    display: none;
}

@media (min-width: 1024px) {
    .header-mobile {
        display: none;
    }
    .header-desktop {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        align-items: center;
        width: 100%;
        height: 100%;
        min-height: 100px;
    }

    .header-left {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        height: 100%;
        align-self: center;
    }
    .header-left .member-since {
        font-size: 10px;
        margin-left: 0;
    }

    .header-center {
        display: flex;
        justify-content: center;
        gap: 1rem;
        height: 100%;
        position: relative;
    }
    .bruce-radio-img {
        max-height: 100px;
        margin-bottom: 0px;
        position: relative;
        z-index: 5;
        object-fit: contain;
        align-self: flex-end;
    }
    .bruce-clarence-img {
        transform: translateY(5px);
    }
    .handwriting-logo-desktop {
        max-height: 100px;
        object-fit: contain;
        position: relative;
        z-index: 15;
    }
    .header-logo-container {
        display: flex;
        align-items: center;
        align-self: center;
        height: 100%;
    }

    .header-right {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        height: 100%;
        align-self: center;
    }
}

.header-black-bar {
    background-color: var(--color-black);
    color: var(--color-white);
    position: relative;
    z-index: 10;
    min-height: 45px;
}
.header-black-bar .container {
    padding: 0.5rem 1rem;
    align-items: center;
}

/* Mobile Black Bar Specifics */
.black-bar-desktop {
    display: none !important;
}
.black-bar-mobile {
    display: flex;
    flex-direction: column;
}
.black-bar-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}
.hamburger-btn {
    background: none;
    border: none;
    color: var(--color-white);
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hamburger-btn svg {
    width: 24px;
    height: 24px;
}
.header-nav-mobile {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.mobile-menu-dropdown {
    width: 100%;
    padding-top: 1rem;
    padding-bottom: 0.5rem;
    display: none;
}
.mobile-menu-dropdown.hidden {
    display: none !important;
}
.sub-nav-mobile {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.sub-nav-mobile .sub-nav-btn {
    width: 100%;
    text-align: center;
    justify-content: center;
    padding: 0.5rem;
}

@media (min-width: 1024px) {
    .black-bar-mobile {
        display: none !important;
    }
    .black-bar-desktop {
        display: flex !important;
        padding: 0.5rem 2rem !important;
    }
    .header-black-bar {
        height: 45px;
    }
}

.sub-nav {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.sub-nav-btn {
    background: var(--color-black);
    border: 1px solid var(--color-white);
    color: var(--color-white);
    font: inherit;
    cursor: pointer;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    transition: all 0.15s ease-in-out;
}
.sub-nav-btn:hover {
    color: var(--color-white);
    background: var(--color-red);
    border-color: var(--color-red);
}

/* Main Content Area */
.main-wrapper {
    padding: 1rem 0 2rem 0;
}
.main-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

@media (min-width: 1024px) {
    main {
        flex-grow: 1;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }
    .main-wrapper {
        padding: 1rem 0;
        flex-grow: 1;
        height: 100%;
        overflow: hidden;
    }
    .main-grid {
        grid-template-columns: 1fr 1fr;
        height: 100%;
    }
    body {
        overflow: hidden;
    }
}

.column-left {
    order: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.column-right {
    order: 2;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.scrollable-column {
    padding: 0 1rem 2rem 1rem;
}

@media (min-width: 1024px) {
    .column-right {
        margin-top: 0;
    }
    .scrollable-column {
        height: 100%;
        overflow-y: auto;
        padding: 0 2rem;
    }
}

/* Sections (Panels) */
.section-panel {
    background-color: var(--color-white);
    padding: 1.5rem;
    border-radius: 0.25rem;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
    border-top: 4px solid var(--color-black);
}
.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    border-bottom: 2px solid var(--color-black);
    padding-bottom: 0.5rem;
    margin-top: 0;
}

/* Tabs */
.tabs {
    display: flex;
    border-bottom: 2px solid var(--color-black);
    margin-bottom: 1rem;
    align-items: flex-end;
}
.tab-link {
    padding: 8px 16px;
    cursor: pointer;
    font-weight: 700;
    text-transform: uppercase;
    border: none;
    background: none;
    outline: none;
}
.tab-link.active {
    background-color: var(--color-black);
    color: var(--color-white);
}
.bigger-tab {
    font-size: 1.1rem;
    padding: 10px 20px;
}
.tab-content {
    display: none;
    margin-top: 1rem;
}
.tab-content.active {
    display: block;
}

/* Track Info (Now Playing) */
.track-info-container {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    position: relative;
    height: 152px; /* 128px (art) + 8px (margin) + 16px (progress) */
}
.album-art-wrapper {
    display: flex;
    flex-direction: column;
    flex: none;
}
.album-art {
    width: 8rem;
    height: 8rem;
    background-color: var(--color-gray-light);
    border-radius: 0.25rem;
    box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-gray-light);
}
.album-art img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}
.progress-container-wrapper {
    margin-top: 0.5rem;
    width: 8rem;
}
.progress-container {
    position: relative;
    width: 100%;
    height: 1rem;
    background-color: var(--color-gray-light);
    border-radius: 0.25rem;
    overflow: hidden;
    border: 1px solid #d1d5db;
    pointer-events: none;
}
.progress-text-base {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--color-black);
    z-index: 10;
}
.progress-bar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background-color: var(--color-red);
    transition: width 1s linear;
    overflow: hidden;
    z-index: 20;
}
.progress-text-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 8rem; /* Matches w-32 */
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--color-white);
}

.track-details {
    flex: 1;
    padding-top: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}
.song-title {
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.2;
    margin-top: -0.25rem;
    margin-bottom: 0;
}
.song-artist {
    font-size: 1rem;
    color: var(--color-gray-dark);
    font-weight: 600;
    line-height: 1.2;
    margin-top: 0.1rem;
    margin-bottom: 0;
}
.song-album {
    font-size: 0.875rem;
    color: var(--color-gray);
    font-style: italic;
    line-height: 1.2;
    margin-top: 0.1rem;
    margin-bottom: 0;
}
.song-requester {
    font-size: 0.75rem;
    color: var(--color-gray);
    font-weight: 700;
    text-transform: uppercase;
    margin-top: 0.5rem;
    margin-bottom: 0;
}
.edit-badge-wrapper {
    text-align: right;
    margin-top: auto;
    padding-bottom: 0.25rem;
}
.edit-badge-btn {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    background-color: var(--color-black);
    color: var(--color-white);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.15s ease;
}
.edit-badge-btn:hover {
    background-color: var(--color-red);
}

/* Audio Player & Icons Layout */
.player-container {
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 1rem;
}
.audio-player-wrapper {
    flex-grow: 1;
}
.audio-player {
    width: 100%;
    height: 2rem;
}
.external-players {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    flex-shrink: 0;
}
.player-icon img {
    width: 1.5rem;
    height: 1.5rem;
    filter: grayscale(100%);
    transition: filter 0.15s ease;
}
.player-icon:hover img {
    filter: grayscale(0%);
}
.player-warning-text {
    font-size: 0.75rem;
    color: var(--color-gray-500);
    text-align: center;
    margin-top: 0.5rem;
}
.player-warning-text a {
    color: var(--color-gray-500);
    text-decoration: underline;
}
.player-warning-text a:hover {
    color: var(--color-red);
}

/* Lists (Queue/History) */
.list-container {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 350px;
    overflow-y: auto;
}
.list-item {
    padding: 0.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f1f5f9;
}
.list-item:last-child {
    border-bottom: none;
}
.list-item-info {
    display: flex;
    flex-direction: column;
}
.list-item-title {
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
}
.list-item-artist {
    color: var(--color-gray);
    font-size: 0.75rem;
    font-weight: 600;
}
.list-item-time {
    font-size: 10px;
    color: #9ca3af;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.05em;
}
.list-item-requester {
    font-size: 0.65rem;
    color: var(--color-red);
    font-weight: 700;
    text-transform: uppercase;
    padding-top: 0.25rem;
}

/* Online Fans */
.online-users-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
}
.online-user-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #f9fafb;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    border: 1px solid var(--color-gray-light);
}
.online-user-info {
    display: flex;
    flex-direction: column;
}
.online-user-ip {
    font-size: 0.65rem;
    color: var(--color-gray);
    font-family: monospace;
    line-height: 1;
    margin-top: 0.1rem;
}
.online-user-avatar {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 9999px;
    object-fit: cover;
}

/* Chat Section */
.chat-section-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.chat-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: -0.05em;
    border-bottom: 2px solid var(--color-black);
    padding-bottom: 0.5rem;
    margin-top: 0;
}
.chat-input-container {
    margin-bottom: 1rem;
}
.chat-textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--color-gray-light);
    border-radius: 0.25rem;
    resize: none;
    font-size: 0.875rem;
    min-height: 38px;
    max-height: none;
    overflow-y: hidden;
    line-height: 1.4;
    font-family: inherit;
}
.chat-login-prompt {
    text-align: center;
    color: var(--color-gray);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}
.chat-messages-container {
    flex-grow: 1;
    overflow-y: auto;
    padding-right: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Chat Bubbles */
.chat-bubble {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 10px 14px;
    border-radius: 6px;
    background-color: #f8fafc;
    border: 1px solid #f1f5f9;
}
.chat-avatar-wrapper {
    flex: none;
    padding-top: 0.25rem;
}
.chat-avatar {
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    object-fit: cover;
    border: 1px solid #d1d5db;
}
.chat-content-wrapper {
    flex: 1;
    min-width: 0;
}
.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
}
.chat-author {
    text-transform: uppercase;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: -0.05em;
}
.chat-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.chat-timestamp {
    font-size: 9px;
    color: #9ca3af;
    font-weight: 700;
}
.delete-msg {
    background-color: var(--color-red);
    color: white;
    cursor: pointer;
    font-size: 0.65rem;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    visibility: hidden;
    line-height: 1;
    font-weight: bold;
    padding-bottom: 1px;
}
.chat-bubble:hover .delete-msg {
    visibility: visible;
}
.delete-msg:hover {
    background-color: var(--color-black);
}
.chat-text {
    font-size: 0.875rem;
    line-height: 1.6;
    word-break: break-word;
    color: #374151;
    font-weight: 500;
}

/* System Messages */
@keyframes systemMessagePulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.chat-system-bubble {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px 14px;
    margin: 4px 0;
    text-align: center;
    animation: systemMessagePulse 1.5s ease-in-out infinite;
}
.chat-system-content {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: transparent;
}
.chat-system-text {
    font-size: 0.85rem;
    line-height: 1.5;
    color: #6b7280;
    font-style: italic;
    word-break: break-word;
}
.chat-system-bubble:hover .delete-msg {
    visibility: visible;
}

/* Scrollbars */
.scrollbar-thin::-webkit-scrollbar { height: 4px; width: 4px; }
.scrollbar-thin::-webkit-scrollbar-track { background: #f1f1f1; }
.scrollbar-thin::-webkit-scrollbar-thumb { background: #ccc; border-radius: 10px; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #888; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #555; }

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
}
#confirm-modal, #alert-modal {
    z-index: 1100;
}
.modal-content {
    background-color: var(--color-white);
    margin: 5% auto;
    padding: 2rem;
    border: 4px solid var(--color-black);
    width: 90%;
    max-width: 900px;
    border-radius: 0.5rem;
    position: relative;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}
.modal-content.small-modal {
    max-width: 400px;
}
.modal-content.medium-modal {
    max-width: 700px;
}
.close-modal {
    position: absolute;
    right: 1.5rem;
    top: 1rem;
    color: var(--color-black);
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}
.close-modal:hover {
    color: var(--color-red);
}
.modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    border-bottom: 2px solid var(--color-black);
    padding-bottom: 0.5rem;
    margin-top: 0;
}
.modal-title.no-border {
    border-bottom: none;
}
.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1.5rem;
}
.modal-actions.center {
    justify-content: center;
}
.btn-outline {
    padding: 0.5rem 1rem;
    border: 1px solid var(--color-gray-light);
    border-radius: 0.25rem;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    cursor: pointer;
    background: var(--color-white);
}

/* Modal Form Grid */
.modal-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
@media (min-width: 1024px) {
    .modal-form-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Profile Modal Specifics */
.avatar-preview-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}
@media (min-width: 1024px) {
    .avatar-preview-container {
        flex-direction: row;
        align-items: flex-start;
    }
}
.avatar-preview-box {
    width: 12rem;
    height: 12rem;
    background-color: #f3f4f6;
    border: 2px dashed #d1d5db;
    border-radius: 0.25rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.avatar-preview-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.avatar-upload-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.avatar-drop-zone {
    padding: 2rem;
    border: 2px dashed var(--color-black);
    border-radius: 0.25rem;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.15s;
}
.avatar-drop-zone:hover, .avatar-drop-zone.drag-active {
    background-color: #f9fafb;
}

/* Edit Song Modal Specifics */
.edit-art-preview-large {
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
    aspect-ratio: 1 / 1;
    background-color: #f3f4f6;
    border: 2px solid var(--color-gray-light);
    border-radius: 0.5rem;
    overflow: hidden;
    margin-bottom: 0.5rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}
.edit-art-preview-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.discogs-suggestions-full {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    max-height: 40vh;
    overflow-y: auto;
    padding: 0.5rem;
}
@media (min-width: 768px) {
    .discogs-suggestions-full {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}
.discogs-result-large {
    cursor: pointer;
    border: 2px solid transparent;
    padding: 4px;
    background: var(--color-white);
    border-radius: 0.25rem;
    transition: all 0.2s;
}
.discogs-result-large:hover {
    border-color: var(--color-red);
    transform: scale(1.05);
}
.discogs-result-large img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    margin-bottom: 0.25rem;
    border-radius: 0.125rem;
}
.discogs-result-large p {
    font-size: 10px;
    font-weight: 700;
    text-align: center;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.discogs-result-large p.year {
    font-size: 9px;
    font-weight: 400;
    color: var(--color-gray);
}

/* Request Modal Specifics */
.request-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid var(--color-black);
    margin-bottom: 1rem;
}
.request-back-btn {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-red);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-bottom: 0.5rem;
}
.category-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}
@media (min-width: 1024px) {
    .category-cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
.category-card {
    padding: 1rem;
    border: 2px solid var(--color-black);
    border-radius: 0.25rem;
    cursor: pointer;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}
.category-card:hover {
    background-color: var(--color-black);
    color: var(--color-white);
}
.album-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
    max-height: 50vh;
    overflow-y: auto;
    padding: 2px;
}
@media (min-width: 1024px) {
    .album-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
.album-card {
    cursor: pointer;
}
.album-card-art {
    aspect-ratio: 1 / 1;
    background-color: #f3f4f6;
    margin-bottom: 0.5rem;
    overflow: hidden;
    border: 1px solid var(--color-gray-light);
    box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
    transition: border-color 0.15s;
}
.album-card:hover .album-card-art {
    border-color: var(--color-black);
}
.album-card-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.album-card:hover .album-card-art img {
    transform: scale(1.05);
}
.album-card h4 {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.album-card p {
    font-size: 9px;
    color: var(--color-gray);
    font-weight: 700;
    margin: 0;
}
.song-list-container {
    max-height: 50vh;
    overflow-y: auto;
}
.song-table {
    width: 100%;
    text-align: left;
    font-size: 0.875rem;
    border-collapse: collapse;
}
.song-table th {
    padding: 0.5rem 0;
    text-transform: uppercase;
    font-weight: 700;
    border-bottom: 2px solid var(--color-black);
}
.song-table td {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f3f4f6;
}
.song-table tr:hover td {
    background-color: #f9fafb;
}

/* Footer */
.footer-main {
    background-color: var(--color-black);
    color: var(--color-white);
    padding: 2rem 0;
    text-align: center;
}
@media (min-width: 1024px) {
    .footer-main {
        margin-top: 0;
    }
}
.footer-text {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0;
}

/* Utility Classes kept for specific JS toggling/needs */
.hidden { display: none !important; }

/* Additional Semantic Classes to replace inline styles */

/* Modals & Forms Additions */
.modal-form-label-sm {
    font-size: 0.75rem;
}
.modal-form-input-disabled {
    background-color: #f3f4f6;
}
.avatar-upload-instruction {
    font-size: 0.875rem;
    font-weight: 600;
    margin: 0;
}
.avatar-drop-zone-text {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}
.camera-actions-wrapper {
    display: flex;
    gap: 0.5rem;
}
.camera-action-btn {
    flex: 1;
    background: var(--color-black);
    color: var(--color-white);
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
}
.camera-video-preview {
    width: 100%;
    background: var(--color-black);
    border-radius: 0.25rem;
}
.take-photo-btn {
    margin-top: 0.5rem;
}
.password-form-wrapper {
    max-width: 24rem;
    margin: 0 auto;
}
.form-input-bold {
    font-weight: 600;
}
.form-input-red-border {
    font-weight: 600;
    border-color: var(--color-red);
}
.form-group-no-margin {
    margin: 0;
}

/* Modals general */
.modal-margin-bottom {
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}
.modal-btn-padded {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}
.modal-btn-padded-lg {
    padding-left: 2rem;
    padding-right: 2rem;
}
.modal-form-grid-gap {
    gap: 1.5rem;
}
.modal-form-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Request Modal */
.request-modal-title {
    margin: 0;
}
.category-card-title {
    font-weight: 700;
    text-transform: uppercase;
}
.category-card-subtitle {
    font-size: 10px;
    font-style: italic;
}

/* App.js dynamically generated elements */
.table-empty-row {
    padding: 2rem 0;
    text-align: center;
    color: var(--color-gray);
}
.table-cell-title {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 11px;
}
.table-cell-album {
    color: var(--color-gray-dark);
    font-weight: 600;
    font-style: italic;
    font-size: 11px;
}
.table-cell-action {
    text-align: right;
}
.request-song-btn {
    font-size: 10px;
    min-height: auto;
    padding: 0.25rem 0.5rem;
}
.online-users-empty {
    color: var(--color-gray);
    font-style: italic;
}
.album-grid-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem 0;
}
.discogs-search-msg {
    width: 100%;
    text-align: center;
    font-size: 9px;
    padding: 1rem 0;
}
