body {
    font-size: 1.2em;
}

.hidden {
    display: none;
}

.navbar-color {
    background-color: #e5e5e5;
    border-radius: 0px 0px 10px 10px;
}

.nav-link.active {
    font-weight: 500;
}

.main-row {
    margin: 2em 1em 1em 1em;
}

.prompt-examples {
    font-size: 10pt;
}
.prompt-example {
    margin-left: 2em;
}

#troi-hints {
    margin-top: 1.1em;
    border-radius: 10px;
}

.tl-header-row {
    font-weight: bold;
}

.tl-row {
    margin-bottom: -6px;
}

.tl-cover-col {
    margin-right: 5px;
}
.tl-recording-col {
    width: 40%;
    margin-right: 5px;
}
.tl-release-col {
    width: 25%;
    margin-right: 5px;
}
.tl-artist-col {
    width: 25%;
    margin-right: 5px;
}

.cover-art {
    width: 50px;
    height: 50px;
}

.save-playlist {
    float: right;
}

.lb-logo {
    max-height: 60px;
}

#spinner {
    height: 100px;
}

.htmx-indicator {
    display: none;
    transition: display 500ms ease-in;
}
.htmx-request .htmx-indicator {
    display: inline;
}
.htmx-request.htmx-indicator {
    display: inline;
}
.headphones {
    width: 15px;
    filter: invert(86%) sepia(25%) saturate(544%) hue-rotate(207deg)
        brightness(91%) contrast(88%);
}
.purple {
    filter: invert(86%) sepia(25%) saturate(544%) hue-rotate(207deg)
        brightness(91%) contrast(88%);
}
.index-row {
    width: 100%;
}
.index-item {
    height: 125px;
    display: inline;
}

.cover-art-unresolved {
    width: 150px;
    height: 150px;
}

.flex-wrap-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}
.unresolved-release {
    width: 180px;
}
.tag-div {
    width: 125px;
    margin: 1.4em;
}

.player {
    border: 1px solid #ccc;
    background: #593196;
    margin: 1.5em 1em 1.5em 1em;
    width: 70%;
    justify-content: center;
    border-radius: 20px;
}

.player-button {
    margin: 0.5em;
    font-size: 20px !important;
    border-radius: 10px;
}

#save-playlist-div {
    margin: .9em 0 1.1em 0;
    display: none;
    border-radius: 10px;
    background-color: #d4c3eb;
    padding: 1.2em;
}

#progress-bar-div {
    width: 100%;
    margin: 12px;
    border: 2px solid #ccc;
    height: 20px;
    border-radius: 5px;
}

.login-div {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.form-body {
    background-color: #e5e5e5;
    border-radius: 10px;
    padding: 1.2em;
}

.form-buttons {
    margin-bottom: 1.2em;
}

.form-buttons-bottom {
    margin-top: 1.2em;
}

#scan-log {
    height: 100%;
    width: 100%;
    margin-top: 1.2em;
    font-family: monospace;
}

/* Mobile-first responsive styles for LB Radio */
.lb-radio-title {
    margin-bottom: 0.5em;
    font-size: 1.75rem;
}

.lb-radio-form {
    max-width: 100%;
}

.lb-radio-controls {
    gap: 1rem;
}

.prompt-examples {
    font-size: 0.9rem;
    line-height: 1.4;
    margin-top: 1rem;
}

.prompt-example {
    display: inline-block;
    margin-right: 0.75rem;
    margin-bottom: 0.5rem;
    word-break: break-word;
}

#spinner {
    max-width: 120px;
    width: 120px;
    height: auto;
}

.spinner-container {
    min-height: 40px;
}

/* Weekly Jams responsive styles */
.weekly-jams-title {
    margin-bottom: 0.5em;
    font-size: 1.75rem;
}

.weekly-jams-form {
    max-width: 100%;
}

.weekly-jams-fieldset {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    align-items: end;
}

.weekly-jams-input {
    flex: 0 1 auto;
    max-width: 900px;
}

.weekly-jams-button {
    flex-shrink: 0;
    margin-top: auto;
}

/* Mobile styles */
@media (max-width: 768px) {
    .spinner-container {
        min-height: 25px !important;
        margin: 0.25rem 0 !important;
    }
    
    .lb-radio-title {
        font-size: 1.5rem;
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .lb-radio-controls {
        flex-direction: column !important;
        gap: 1rem;
        align-items: stretch !important;
    }
    
    .lb-radio-controls > div {
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
    }
    
    .lb-radio-controls .col-7,
    .lb-radio-controls .col {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .form-control-lg, .form-select-lg {
        font-size: 1rem;
        padding: 0.75rem;
        width: 100% !important;
    }
    
    .btn-lg {
        width: 100%;
        font-size: 1.1rem;
        padding: 0.75rem 1rem;
    }
    
    .prompt-examples {
        font-size: 0.85rem;
        text-align: left;
        padding: 0 10px;
    }
    
    .prompt-example {
        display: block;
        margin: 0.5rem 0;
        padding: 0.5rem 0.75rem;
        background-color: #f8f9fa;
        border-radius: 0.375rem;
        text-decoration: none;
        border: 1px solid #e9ecef;
        color: #495057;
        transition: all 0.15s ease-in-out;
    }
    
    .prompt-example:hover {
        background-color: #e9ecef;
        text-decoration: none;
        color: #212529;
        transform: translateY(-1px);
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
    
    /* Weekly Jams mobile */
    .weekly-jams-title {
        font-size: 1.5rem;
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .weekly-jams-fieldset {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .weekly-jams-input {
        width: 100%;
        min-width: auto;
    }
    
    .weekly-jams-input input {
        width: 100% !important;
        font-size: 1rem;
        padding: 0.75rem;
    }
    
    .weekly-jams-button button {
        width: 100%;
        font-size: 1.1rem;
        padding: 0.75rem 1rem;
    }
}

/* Small mobile styles */
@media (max-width: 480px) {
    .lb-radio-title {
        font-size: 1.25rem;
    }
    
    .form-control-lg, .form-select-lg, .btn-lg {
        font-size: 0.95rem;
        padding: 0.65rem;
    }
    
    .prompt-examples {
        padding: 0 5px;
    }
    
    /* Weekly Jams small mobile */
    .weekly-jams-title {
        font-size: 1.25rem;
    }
    
    .weekly-jams-input input,
    .weekly-jams-button button {
        font-size: 0.95rem;
        padding: 0.65rem;
    }
}

/* Playlist table responsive styles */
@media (max-width: 768px) {
    .save-playlist-fieldset {
        flex-direction: column !important;
        gap: 1rem !important;
        align-items: stretch !important;
        padding: 1rem;
    }
    
    .save-playlist-fieldset label {
        font-weight: bold;
        margin-bottom: 0.25rem;
        align-self: flex-start !important;
    }
    
    .save-playlist-fieldset input[type="text"],
    .save-playlist-fieldset select {
        width: 100% !important;
        margin-bottom: 0.5rem;
    }
    
    .save-playlist-fieldset button {
        width: 100% !important;
        margin-top: 0.5rem;
    }
    
    #save-playlist-close-button {
        position: absolute !important;
        top: 10px !important;
        right: 15px !important;
        align-self: flex-start !important;
    }
    
    #save-playlist-div {
        position: relative;
        padding: 1rem;
        margin: 1rem 0;
    }
    
    #playlist-table {
        font-size: 0.875rem;
    }
    
    #playlist-table th,
    #playlist-table td {
        padding: 0.5rem 0.25rem;
        vertical-align: middle;
    }
    
    .cover-art {
        width: 40px;
        height: 40px;
        object-fit: cover;
    }
    
    .tl-release-col,
    .tl-artist-col {
        max-width: 150px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    .save-playlist-fieldset input,
    .save-playlist-fieldset select,
    .save-playlist-fieldset button {
        font-size: 1rem;
        padding: 0.75rem;
    }
    
    .save-playlist-fieldset {
        padding: 0.5rem;
    }
    
    #playlist-table th:first-child,
    #playlist-table td:first-child {
        display: none; /* Hide cover column on very small screens */
    }
    
    #playlist-table {
        font-size: 0.75rem;
    }
    
    #playlist-table th,
    #playlist-table td {
        padding: 0.25rem 0.1rem !important;
        vertical-align: middle;
    }
    
    .tl-release-col,
    .tl-artist-col {
        max-width: 80px;
        font-size: 0.7rem;
    }
    
    .table-responsive {
        margin: 0;
        padding: 0;
    }
}

@media (max-width: 380px) {
    #playlist-table {
        font-size: 0.7rem;
    }
    
    #playlist-table th,
    #playlist-table td {
        padding: 0.2rem 0.05rem !important;
    }
    
    .tl-release-col,
    .tl-artist-col {
        max-width: 70px;
        font-size: 0.65rem;
    }
    
    .fa-radio {
        font-size: 0.8rem;
    }
}

/* Player responsive styles */
.player-buttons-row {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    width: 100%;
    gap: 0.5em;
}

#progress-bar-div {
    width: calc(100% - 24px);
    margin: 12px;
    border: 2px solid #ccc;
    height: 20px;
    border-radius: 5px;
}

/* Desktop - keep original spacing and width */
@media (min-width: 993px) {
    .player {
        width: 70% !important; /* Original desktop width */
    }
    
    .player-buttons-row {
        justify-content: center;
        gap: 0.5em;
    }
}

@media (max-width: 992px) {
    .player {
        width: 85% !important;
    }
    
    .player-button {
        margin: 0.3em !important;
        font-size: 18px !important;
        padding: 0.5em 0.75em !important;
    }
    
    .player-buttons-row {
        gap: 0.3em;
    }
}

@media (max-width: 768px) {
    .player {
        width: 95% !important;
        margin: 0.75em 0.5em !important;
    }
    
    .player-button {
        margin: 0.25em !important;
        font-size: 16px !important;
        padding: 0.4em 0.6em !important;
        min-width: 45px;
    }
    
    #progress-bar-div {
        height: 18px !important;
    }
    
    .player-buttons-row {
        gap: 0.25em;
        justify-content: space-around;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .player-buttons-row::-webkit-scrollbar {
        display: none;
    }
}

@media (max-width: 576px) {
    .player {
        width: 100% !important;
        margin: 0.5em 0 !important;
        padding: 0.5em;
        border-radius: 15px !important;
        flex-direction: column !important;
    }
    
    .player-button {
        margin: 0.2em !important;
        font-size: 15px !important;
        padding: 0.35em 0.5em !important;
        min-width: 42px;
        flex-shrink: 0;
    }
    
    #progress-bar-div {
        height: 16px !important;
        margin: 8px 12px !important;
    }
    
    .player-buttons-row {
        gap: 0.2em;
    }
}

@media (max-width: 480px) {
    .player-button {
        margin: 0.15em !important;
        font-size: 14px !important;
        padding: 0.3em 0.4em !important;
        min-width: 38px;
    }
    
    #progress-bar-div {
        height: 14px !important;
    }
    
    .player-buttons-row {
        gap: 0.15em;
    }
}

/* Only allow button wrapping on very small screens */
@media (max-width: 350px) {
    .player-buttons-row {
        flex-wrap: wrap;
        overflow-x: visible;
        justify-content: center;
    }
    
    .player-button {
        margin: 0.1em !important;
        font-size: 13px !important;
        padding: 0.25em 0.35em !important;
        min-width: 35px;
    }
}

/* Share button styles */
.share-button {
    color: #6c757d;
    text-decoration: none;
    font-size: 1.2em;
    vertical-align: middle;
    margin-left: 10px;
    transition: color 0.2s ease;
}

.share-button:hover {
    color: #007bff;
    text-decoration: none;
}

.share-button:active {
    color: #0056b3;
}

.share-message {
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}