/* ============================================================
   BANNER — matches gallery page style
   ============================================================ */
/* Background is handled globally by the fixed ::before layer in akiramedia.css
   (pinned, cover, centred, no tiling — identical on desktop and mobile). */
.title {
    text-align: center;
    color: whitesmoke;
}
.title h1 {
    padding-top: 5vh;
    text-align: center;
    font-size: 3rem;
    font-family: var(--akira-font);
    font-weight: var(--akira-weight);
    font-variation-settings: var(--akira-settings);
}
.subtitle {
    text-align: center;
}
.subtitle h2 {
    text-align: center;
    font-size: 2rem;
    font-family: var(--akira-font);
    font-weight: var(--akira-weight);
    font-variation-settings: var(--akira-settings);
}
.description {
    text-align: center;
}
.description h3 {
    font-size: 1.2rem;
    font-family: var(--akira-font);
    font-weight: var(--akira-weight);
    font-variation-settings: var(--akira-settings);
}
body[data-bs-theme="light"] .title h1,
body[data-bs-theme="light"] .subtitle h2,
body[data-bs-theme="light"] .description h3 {
    color: whitesmoke;
}
body[data-bs-theme="dark"] .title h1,
body[data-bs-theme="dark"] .subtitle h2,
body[data-bs-theme="dark"] .description h3 {
    color: black;
}
.themebutton { text-align: center; }
/* ============================================================
   AKIRA.MEDIA — Mixes Page
   ============================================================ */
/* === Album Grid — max 3 per row, centred === */
#albumGrid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 28px;
    padding: 30px 40px;
    margin: 0 auto;
    max-width: 1000px;
}
.album-card {
    width: 280px;
    flex-shrink: 0;
}
@media (max-width: 660px) {
    .album-card { width: calc(50% - 14px); min-width: 140px; }
}
@media (max-width: 400px) {
    .album-card { width: 100%; }
}
.album-card {
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(0,0,0,0.25);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.album-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.4);
}
.album-cover {
    width: 100%;
    aspect-ratio: 1;
    background-size: cover;
    background-position: center;
    background-color: rgba(255,255,255,0.1);
}
.album-cover.no-cover {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}
.album-info {
    padding: 12px 14px;
}
.album-title {
    font-family: var(--akira-font);
    font-weight: var(--akira-weight);
    font-variation-settings: var(--akira-settings);
    font-size: 0.95rem;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
body[data-bs-theme="light"] .album-title { color: whitesmoke; }
body[data-bs-theme="dark"]  .album-title { color: black; }
.album-meta, .album-tracks {
    font-family: var(--akira-font);
    font-weight: var(--akira-weight);
    font-variation-settings: var(--akira-settings);
    font-size: 0.78rem;
    opacity: 0.65;
}
body[data-bs-theme="light"] .album-meta,
body[data-bs-theme="light"] .album-tracks { color: whitesmoke; }
body[data-bs-theme="dark"]  .album-meta,
body[data-bs-theme="dark"]  .album-tracks { color: black; }
/* === Persistent Player — inline below banner === */
#persistentPlayer {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 40px;
    margin: 0 auto 10px;
    max-width: 1000px;
    border-radius: 14px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
body[data-bs-theme="light"] #persistentPlayer {
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.15);
}
body[data-bs-theme="dark"] #persistentPlayer {
    background: rgba(0,0,0,0.15);
    border: 1px solid rgba(0,0,0,0.15);
}
#mixesWrap { padding-top: 0; }
#playerAlbumArt {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    background-size: cover;
    background-position: center;
    background-color: rgba(255,255,255,0.2);
    flex-shrink: 0;
}
#playerInfo {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}
#playerTrackTitle {
    font-family: var(--akira-font);
    font-weight: var(--akira-weight);
    font-variation-settings: var(--akira-settings);
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
#playerAlbumTitle {
    font-family: var(--akira-font);
    font-weight: var(--akira-weight);
    font-variation-settings: var(--akira-settings);
    font-size: 0.72rem;
    opacity: 0.65;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
body[data-bs-theme="light"] #playerTrackTitle,
body[data-bs-theme="light"] #playerAlbumTitle { color: whitesmoke; }
body[data-bs-theme="dark"]  #playerTrackTitle,
body[data-bs-theme="dark"]  #playerAlbumTitle { color: black; }
#playerControls {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}
#playerControls button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 8px;
    opacity: 0.8;
    transition: opacity 0.2s, background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
body[data-bs-theme="light"] #playerControls button { color: whitesmoke; }
body[data-bs-theme="dark"]  #playerControls button { color: black; }
#playerControls button svg { display: block; }
#playerControls button:hover { opacity: 1; background: rgba(255,255,255,0.15); }
#playerProgress {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 2;
    min-width: 0;
}
#playerCurrentTime, #playerDuration {
    font-family: var(--akira-font);
    font-size: 0.72rem;
    flex-shrink: 0;
    opacity: 0.7;
}
body[data-bs-theme="light"] #playerCurrentTime,
body[data-bs-theme="light"] #playerDuration { color: whitesmoke; }
body[data-bs-theme="dark"]  #playerCurrentTime,
body[data-bs-theme="dark"]  #playerDuration  { color: black; }
#playerProgressBar {
    flex: 1;
    height: 4px;
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
}
#playerProgressFill {
    height: 100%;
    background: whitesmoke;
    border-radius: 2px;
    width: 0%;
    transition: width 0.5s linear;
    pointer-events: none;
}
body[data-bs-theme="dark"] #playerProgressFill { background: black; }
/* EQ Canvas */
#eqCanvas {
    width: 80px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 4px;
}
/* === Album Modal === */
.album-modal-overlay {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.album-modal-overlay.open {
    opacity: 1;
    pointer-events: all;
}
.album-modal-content {
    position: relative;
    width: 100%;
    max-width: 900px;
    max-height: 95vh;
    overflow-y: auto;
    border-radius: 16px;
    padding: 36px;
}
body[data-bs-theme="light"] .album-modal-content {
    background: rgba(51,86,150,0.95);
    color: whitesmoke;
}
body[data-bs-theme="dark"] .album-modal-content {
    background: rgba(157,95,105,0.95);
    color: black;
}
.album-modal-close {
    position: absolute;
    top: 5px;
    right: 5px;
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    opacity: 0.6;
    line-height: 1;
}
body[data-bs-theme="light"] .album-modal-close { color: whitesmoke; }
body[data-bs-theme="dark"]  .album-modal-close { color: black; }
.album-modal-close:hover { opacity: 1; }
.album-modal-header {
    display: flex;
    gap: 28px;
    margin-bottom: 28px;
    align-items: flex-start;
    flex-wrap: nowrap;
}
.modal-cover-wrap {
    position: relative;
    width: 180px;
    height: 180px;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
}
.modal-cover {
    width: 100%;
    height: 100%;
    border-radius: 0;
    background-size: cover;
    background-position: center;
    background-color: rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    transition: opacity 0.3s ease;
}
.modal-eq-canvas {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
}
.modal-meta h2 {
    font-family: var(--akira-font);
    font-weight: var(--akira-weight);
    font-variation-settings: var(--akira-settings);
    font-size: 1.6rem;
    margin-bottom: 8px;
    word-break: break-word;
}
.modal-meta > div {
    font-family: var(--akira-font);
    font-variation-settings: var(--akira-settings);
    font-size: 0.85rem;
    opacity: 0.75;
    margin-bottom: 3px;
}
.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    flex-wrap: wrap;
}
.btn-play-album, .btn-download-album {
    font-family: var(--akira-font);
    font-weight: var(--akira-weight);
    font-variation-settings: var(--akira-settings);
    border: none;
    border-radius: 8px;
    padding: 8px 18px;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: opacity 0.2s;
}
.btn-play-album {
    background: rgba(255,255,255,0.9);
    color: #333;
}
.btn-download-album {
    background: rgba(255,255,255,0.2);
    color: inherit;
    border: 1px solid rgba(255,255,255,0.4);
}
.btn-play-album:hover, .btn-download-album:hover { opacity: 0.85; }
/* Tracklist */
.modal-tracklist { border-top: 1px solid rgba(255,255,255,0.15); padding-top: 16px; }
body[data-bs-theme="dark"] .modal-tracklist { border-top-color: rgba(0,0,0,0.15); }
.track-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s;
}
.track-row:hover { background: rgba(255,255,255,0.1); }
.track-row.playing { background: rgba(255,255,255,0.18); }
body[data-bs-theme="dark"] .track-row:hover   { background: rgba(0,0,0,0.1); }
body[data-bs-theme="dark"] .track-row.playing { background: rgba(0,0,0,0.18); }
.track-num {
    font-family: var(--akira-font);
    font-variation-settings: var(--akira-settings);
    font-size: 1rem;
    opacity: 0.5;
    min-width: 24px;
    text-align: right;
}
.track-title {
    flex: 1;
    font-family: var(--akira-font);
    font-weight: var(--akira-weight);
    font-variation-settings: var(--akira-settings);
    font-size: 1rem;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.track-type {
    font-family: var(--akira-font);
    font-variation-settings: var(--akira-settings);
    font-size: 1rem;
    opacity: 0.5;
}
.track-dur {
    font-family: var(--akira-font);
    font-variation-settings: var(--akira-settings);
    font-size: 1rem;
    opacity: 0.6;
}
.track-playing-icon {
    font-size: 0.75rem;
    width: 16px;
    text-align: center;
}
/* Footer */
footer {
    text-align: center;
    padding: 30px 20px;
    font-family: var(--akira-font);
    font-weight: var(--akira-weight);
    font-variation-settings: var(--akira-settings);
    font-size: 0.8rem;
    opacity: 0.4;
}
body[data-bs-theme="light"] footer { color: whitesmoke; }
body[data-bs-theme="dark"]  footer { color: black; }
/* Mobile */
@media (max-width: 768px) {
    /* Album grid */
    #albumGrid { gap: 14px; padding: 16px; }
    .album-card { width: calc(50% - 7px); }
    /* Modal — padded from top and bottom, centred */
    .album-modal-overlay { padding: 16px; align-items: center; }
    .album-modal-content {
        max-height: 85vh!important;
        padding: 20px;
        border-radius: 14px;
    }
    /* Modal header — cover stacked above meta */
    .album-modal-header { flex-direction: column; gap: 12px; }
    .modal-cover-wrap {
        width: 100%;
        aspect-ratio: 1;
		height: 100%;
    }
    /* Player — wrap onto two lines */
    #persistentPlayer {
        flex-wrap: wrap;
        height: auto;
        padding: 10px 12px;
        gap: 8px;
    }
    #playerAlbumArt { width: 38px; height: 38px; }
    #playerInfo { flex: 1; min-width: 0; }
    #playerControls { flex-shrink: 0; }
    /* Progress bar — full width on own line */
    #playerProgress {
        display: flex !important;
        width: 100%;
        order: 10;
        flex-basis: 100%;
    }
    /* EQ canvas — full width below progress */
    #eqCanvas {
        display: block !important;
        width: 100%;
        height: 30px;
        order: 11;
        flex-basis: 100%;
    }
}
@media (max-width: 400px) {
    .album-card { width: 100%; }
}