﻿:root {
    --black: #0c0c0c;   
    /*--spotify-green: #159944;*/
    --spotify-green:#805ad5;

    --spotify-black: #121212;
    --spotify-dark: #181818;
    --spotify-light: #282828;
    --spotify-hover: rgba(255, 255, 255, 0.1);
    --spotify-border: #333333;
    --spotify-text: #FFFFFF;
    --spotify-dim: #B3B3B3;
}

*{
    box-sizing:border-box;
    -webkit-tap-highlight-color:transparent;
}

html,
body{
    margin:0;
    padding:0;
    width:100%;
    height:100%;
    font-family:'Segoe UI',system-ui,-apple-system,sans-serif;
    background:var(--spotify-black);
    color:var(--spotify-text);
}

body{
    display:flex;
    flex-direction:column;
}

html,
body {
    height: 100%;
    margin: 0;
}

* {
    caret-color: var(--spotify-green);
    caret-shape: block;
}
.bg-grad-spinna-music {
    background: linear-gradient(
        to bottom,
        rgba(128, 90, 213, .45) 0%,
        rgba(24, 24, 24, 1) 25%,
        rgba(24, 24, 24, 1) 100%
    );
}

.btn-text-spinna-music.dropdown-toggle {
    
    --bs-btn-color: var(--spotify-green) !important;
    --bs-btn-hover-color: var(--spotify-green);
    --bs-btn-active-color: var(--spotify-green);
    --bs-btn-border-color: transparent;
    --bs-btn-hover-border-color: transparent;
    --bs-btn-active-border-color: transparent;
}

.header-left {
    max-width: 50%;
    display: flex;
    align-items: center;
}
.header-right {
    max-width: 50%;
}

.header-spidey {
    display: block;
    margin-right: 0.71rem;
}

@media (max-width: 575.98px) {
    .header-spidey {
    display:none;
}
}


.track-favorite-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #b3b3b3;
    background: transparent;
    cursor: pointer;
    transition:
        color 150ms ease,
        background-color 150ms ease,
        transform 150ms ease,
        opacity 150ms ease;
}

.track-favorite-btn:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
    transform: scale(1.08);
}

.track-favorite-btn.active {
    color: var(--spotify-green);
}

.track-favorite-btn:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

.track-favorite-btn:disabled {
    cursor: wait;
    opacity: 0.55;
}

.track-favorite-btn.loading {
    pointer-events: none;
}

.list-group-item {
  z-index: 2;
  color: var(--bs-list-group-active-color);
  /*background-color: var(--black);*/
  border-color: var(--spotify-border);
}

.list-group-item.active {
  z-index: 2;
  color: var(--bs-list-group-active-color);
  background-color: var(--bs-list-group-active-bg);
  border-color: var(--spotify-border);
}

.sm-app {
    min-height: 100dvh;

    display: grid;
    grid-template-rows: auto 1fr auto;

    grid-template-areas:
        "header"
        "main"
        "footer";
}



.sm-app-header {
  grid-area: header;
  padding: 10px 20px 0.5rem 10px;
  border-bottom: 1px solid #242424;
  background: #101010;
  flex-shrink: 0;
  
  position: relative;
  z-index: 1030;
}

/* Ensure mobile toggled content renders smoothly on top */
.sm-app-header .navbar-collapse {
  z-index: 1031;
}

/* Fix dropdown alignment on small screens */
@media (max-width: 575.98px) {
  .sm-app-header {
    padding: 0.5rem 10px;
  }
  
/*  .sm-app-header .site-header-subtitle {
    text-align: left !important;
    margin-top: 0.5rem;
  }*/
}

.sm-app-main {
    grid-area: main;
    overflow: auto;
    position: relative;
}

.sm-app-footer {
    grid-area: footer;
}


/* Targets the layout grid only when on the login page */
.body-login-page {
    min-height: 100vh;

}

.body-login-page .sm-app {

    min-height: 100dvh;

    display: grid;


    grid-template-rows: auto 1fr;
    grid-template-areas:
        "header"
        "main";
}

.body-login-page .sm-app-main {
    display: flex;
    align-items: center;
    justify-content: center;

}

/* Ensures any layout footer is hidden */
.body-login-page .sm-app-footer {
    display: none;
}

.album-artwork-lg {
    display: block;
    width: 160px;       
    color: inherit;
}

.album-artwork-md {
    display: block;
    width: 120px;       
    color: inherit;
}

.album-artwork-md img {
    display: block;
    width: 120px;
    color: inherit;
}
 
 .album-artwork-sm {
    display: block;
    width: 80px;       
    color: inherit;
}

 
.album-artwork-sm img {
    display: block;
    width: 80px;
    color: inherit;
}
 
.album-artwork-fluid {
    flex: 0 0 clamp(120px, 25%, 250px);
    align-self: stretch;
}

.album-artwork-fluid img {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: .5rem;
}

.text-preview {
    display: -webkit-box;
    -webkit-line-clamp: 3;   /* Number of lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.preserve-lines {
    white-space: pre-wrap;
}

textarea.form-control {
    resize: none;
}

.artist-label,.collection-label {
    color: var(--spotify-dim);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.action-link {
    color: var(--spotify-green);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    /*margin-right: 0.5rem;*/
}

.bg-spinna-music {
    background-color: var(--spotify-green);
    color: var(--spotify-text);
}

.btn-spinna-music {
    background-color: var(--spotify-green);
    color: #fff; 
}

.btn-spinna-music:hover {
    background-color: var(--spotify-hover) !important;
}

a {
    color: var(--spotify-green);
    text-decoration: none;
}

a:hover,
a:focus,a:hover{
    color: var(--spotify-green);
    text-decoration: none;
}

td {
    vertical-align: middle;
}   


.form-switch .form-check-input:checked {
    background-color: var(--spotify-green);
    border-color: var(--spotify-green);
}

.form-switch .form-check-input {
    background-color: var(--spotify-dark);
}




#trackList .drag-handle {
    cursor: grab;
    user-select: none;
    font-size: 1.25rem;
    line-height: 1;
    color: var(--spotify-green);
}

#trackList .drag-handle:active {
    cursor: grabbing;
}

#trackList .track-position {
    width: 2rem;
    text-align: center;
}

.track-play-btn {
    background: none;
    border: none;
    color: var(--spotify-green);
    cursor: pointer;
    font-size: 1.05rem;
}

.track-favorite-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color:  var(--spotify-green);/* #b3b3b3;*/
    background: transparent;
    cursor: pointer;
    transition:
        color 150ms ease,
        background-color 150ms ease,
        transform 150ms ease,
        opacity 150ms ease;
}

.track-favorite-btn:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
    transform: scale(1.08);
}

.track-favorite-btn.active {
    color: var(--spotify-green);
}

.track-favorite-btn:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

.track-favorite-btn:disabled {
    cursor: wait;
    opacity: 0.55;
}

.track-favorite-btn.loading {
    pointer-events: none;
}

/* APP LAYOUT */

.app{
    display:grid;
    grid-template-columns:1fr 320px;
    flex:1;
    min-height:0;
    gap:10px;
    padding:10px;
    overflow:hidden;
}

/* MAIN COLUMN */
/* WHOLE COLUMN SCROLLS */

.main{
    background:var(--spotify-dark);
    border-radius:12px;
    display:flex;
    flex-direction:column;
    overflow-y:auto;
    overflow-x:hidden;
    position:relative;
}

/* RIGHT PANEL */

.right-panel{
    background:var(--spotify-dark);
    border-radius:12px;
    overflow-y:auto;
    overflow-x:hidden;
    padding:18px;
}

/* HEADER */

.site-header{
    height:74px;
    display:flex;
    align-items:flex-end;
    gap:16px;
    padding:0 30px;
    border-bottom:1px solid #242424;
    background:#101010;
    flex-shrink:0;
}

.site-header-title{
    font-size:1.45rem;
    font-weight:800;
    letter-spacing:-.4px;
    line-height:1;
}

.site-header-title span{
    color:var(--spotify-green);
}

.site-header-tagline{
    margin-top:6px;
    color:var(--spotify-dim);
    font-size:.82rem;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

.site-header-subtitle{
    margin-left:auto;
    color:var(--spotify-dim);
    font-size:.9rem;
}

/* Header links: ensure they appear white and are readable against the dark header */
.site-header-subtitle a{
    color: #ffffff; /* white links in header */
    text-decoration: none;
}
.site-header-subtitle a:hover,
.site-header-subtitle a:focus{
    color: var(--spotify-green);
    text-decoration: underline;
}

/* Site title link styling */
.site-title-link{
    color: #ffffff;
    text-decoration: none;
    font-weight: 800;
}
.site-title-link:hover,
.site-title-link:focus{
    /*color: var(--spotify-green);*/
    text-decoration: none;
}
.site-header-title span{
    color: var(--spotify-green);
}

/* HERO WITH 3D FLIP ARCHITECTURE */
.hero{
    padding:25px 30px 28px 30px;
   /* background:linear-gradient(
        to bottom,
      rgba(128, 90, 213, .45),
        rgba(24,24,24,1)
    );
 */   flex-shrink:0;
}

.hero-top{
    display:flex;
    align-items:center;
    gap:22px;
}

.hero-logo{
    width:112px;
    height:112px;
    perspective: 600px;
    flex-shrink:0;
    box-shadow:0 16px 35px rgba(0,0,0,.35);
    border-radius:18px;
}

.hero-logo-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 18px;
}

.hero-logo.flipped .hero-logo-inner {
    transform: rotateY(180deg);
}

.hero-logo-front,
.hero-logo-back {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 18px;
    overflow: hidden;
    background: #000;
}

.hero-logo-back {
    transform: rotateY(180deg);
}

.hero-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hero-label{
    color:var(--spotify-dim);
    font-size:.8rem;
    font-weight:700;
    letter-spacing:.08em;
    text-transform:uppercase;
    margin-bottom:0;
}

.hero h1{
    margin:0;
    font-size:3.4rem;
    font-weight:900;
    letter-spacing:-1.6px;
    line-height:1;
}

/* Container adjustment to vertically align the avatar inline with text */
.album-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center; /* Ensures the text and image align perfectly on their center axis */
    gap: 8px;
    margin-top: 16px;
    color: var(--spotify-dim);
    font-size: .95rem;
}

/* Spotify-style circular avatar design constraints */
.album-artist-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #000;
    flex-shrink: 0;
}

.album-artist-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.album-meta strong{
    color:#fff;
}

.album-dot{
    color:var(--spotify-dim);
}

/* TRACKS */

.track-header{
    display:grid;
    grid-template-columns:60px 1fr 120px;
    padding:0 25px 12px 25px;
    color:var(--spotify-dim);
    font-size:.8rem;
    border-bottom:1px solid #2a2a2a;
    margin-bottom:8px;
    flex-shrink:0;
    gap:10px;
}

.track-list{
    padding:0 0 20px 0;
}

/* track in list*/
.track{
    display:grid;
    grid-template-columns:75px 1fr 30px;
    align-items:center;
    gap:10px;
    padding:12px 25px;
    /*border-radius:8px;*/
    cursor:pointer;
    transition:.15s;
}

.track:hover{
    background:var(--spotify-hover);
}

.track.active{
    background:#805ad522;
}

.track-number {
    color: var(--spotify-dim);
    text-align: center;
    font-size: .9rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.track-header-number {
    color: var(--spotify-dim);
    text-align: center;
    font-size: .9rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}



@media (max-width: 568px) {
    .track-number { display: none;}
    .track-header-number { display: none; }

}

.track-main{
    display:flex;
    align-items:center;
    gap:14px;
    min-width:0;
}

.track-cover{
    width:44px;
    height:44px;
    border-radius:6px;
    overflow:hidden;
    background:#000;
    flex-shrink:0;
}

.track-cover img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.track-info{
    min-width:0;
}

.track-title{
    font-weight:600;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

.track-artist{
    color:var(--spotify-dim);
    font-size:.9rem;
    margin-top:4px;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

.track-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.track-duration{
    text-align:right;
    color:var(--spotify-dim);
    font-size:.9rem;
    padding-right:10px;
}

.track-favorite {
    color: var(--spotify-green);
    cursor: pointer;
    font-size: 1.5rem;
}



.album-card {
    display: block;
    width: 160px;          /* Every card same width */
    color: inherit;
}

.album-card .card {
    width: 160px;
    height: 290px;         /* Every card same height */
    transition: .2s;
}

.album-card:hover .card {
    /*transform: translateY(-4px);*/
    box-shadow: var(--bs-box-shadow-lg);
    background-color: var(--spotify-hover) !important;

}

.album-cover {
    width: 100%;
    aspect-ratio: 1 / 1;   /* Always square */
    object-fit: cover;     /* Crop instead of stretching */
}

.album-card .card-body {
    height: 70px;
    overflow: hidden;
}

.album-card .card-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.album-card .card-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* FOOTER */

.album-footer{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
    padding:18px 28px 22px 28px;
    border-top:1px solid #242424;
    color:var(--spotify-dim);
    font-size:.8rem;
    line-height:1.5;
    flex-wrap:wrap;
}

.album-footer-left,
.album-footer-right{
    opacity:.75;
}

/* TRACK LOADING */

.track-loading{
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background:rgba(18,18,18,.82);
    backdrop-filter:blur(8px);
    display:none;
    align-items:center;
    justify-content:center;
    flex-direction:column;
    gap:18px;
    z-index:200;
}

.track-loading.active{
    display:flex;
}

.track-loading-spinner{
    width:52px;
    height:52px;
    border-radius:50%;
    border:4px solid rgba(255,255,255,.08);
    border-top-color:var(--spotify-green);
    animation:spin 1s linear infinite;
}

.track-loading-text{
    color:#fff;
    font-size:1rem;
    font-weight:600;
}

@keyframes spin{
    to{
        transform:rotate(360deg);
    }
}
/* RIGHT PANEL - BASE CARD STYLE */

.artist-card{
    width:100%;
    border:0;
    text-align:left;
    cursor:pointer;
    background:var(--spotify-light);
    color:var(--spotify-text);
    border-radius:16px;
    padding:18px;
    transition:.15s;
    position: relative;
    display: flex;
    flex-direction: column;
    margin-bottom: 18px;
}

.artist-card:hover{
    background:var(--spotify-hover);
    transform:translateY(-2px);
}

/* SPOTIFY STYLE FULL-BLEED VARIANT */

.artist-card-bleed {
    aspect-ratio: 1 / 1.15;
    padding: 0;
    overflow: hidden;
    background: #000;
}

.artist-card-bleed:hover {
    background: transparent;
}

.artist-card-bleed .artist-card-label{
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 3;
    color:#fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.6);
    margin-bottom:0;
}

.artist-card-bleed .artist-card-image{
    position: absolute;
    inset: 0;
    width:100%;
    height:100%;
    z-index: 1;
}

.artist-card-bleed .artist-card-image img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
    transition: transform 0.3s ease;
}

.artist-card-bleed:hover .artist-card-image img {
    transform: scale(1.03);
}

/* Text overlay at the bottom with a dark blend gradient */
.artist-card-content-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 40px 16px 16px 16px;
    background: linear-gradient(to top, rgba(24,24,24,1) 0%, rgba(24,24,24,0.85) 45%, rgba(24,24,24,0) 100%);
    display: flex;
    flex-direction: column;
}

.artist-merch-card{}
/* SHARED ELEMENT STYLES */

.artist-card-label{
    color:var(--spotify-dim);
    font-size:.78rem;
    font-weight:800;
    letter-spacing:.08em;
    text-transform:uppercase;
    margin-bottom:14px;
}

.artist-card-title{
    font-size:1.35rem;
    font-weight:800;
    margin-bottom:4px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.artist-card-preview{
    color:var(--spotify-dim);
    font-size:.88rem;
    line-height:1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.artist-card-more{
    margin-top:8px;
    color:#fff;
    font-size:.8rem;
    font-weight:700;
}

/* MODALS */

.artist-modal,
.art-modal{
    position:fixed;
    inset:0;
    z-index:9999;
    display:none;
    align-items:center;
    justify-content:center;
}

#artist-modal-toggle:checked ~ #artistModal,
#production-modal-toggle:checked ~ #productionModal,
#art-modal-toggle:checked ~ #artModal,
#merch-modal-toggle:checked ~ #merchModal{
    display:flex;
}

/* Glassmorphic overlay for cohesive dark-blend matching */
.artist-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Modal Surface */
.artist-modal-content {
    position: relative;
    z-index: 2;
    width: min(720px, 90vw);
    max-height: 85vh;
    background: #181818;
    border-radius: 16px;
    border: 1px solid #282828;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.6);
    overflow-y: auto;
    overflow-x: hidden;
}

/* Structured layout card inside the modal */
.artist-modal-card {
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* Content Container with defensive padding */
.artist-modal-text {
    padding: 32px;
}

.artist-modal-text h2 {
    margin: 0 0 16px 0;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--spotify-text);
}

.artist-modal-text p {
    margin: 0 0 16px 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--spotify-dim);
}

.artist-modal-text p:last-child {
    margin-bottom: 0;
}

/* Uniform Label Typography matching your sidebar themes */
.art-label {
    color: var(--spotify-green);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

/* Image bounding constraints */
#artistModalImage {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid #282828;
}

/* Clean UI Close Anchor matching Spotify design standards */
.art-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
    z-index: 10;
}

.art-close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

/* Mobile responsive alignment overrides */
@media(max-width: 768px) {
    .artist-modal-text {
        padding: 22px;
    }
    .artist-modal-text h2 {
        font-size: 1.5rem;
    }
}

/* PLAYER */
.player{
    height:auto;
    /* min-height:125px; */
    background:#000;
    border-top:1px solid #222;
    display:flex;
    flex-direction:column;
    padding:12px 25px 12px 25px;
    gap:14px;
    flex-shrink:0;
}

.player-row-top {
    width: 100%;
    display: none;
/*    opacity: 0;
    transform: translateY(-20px);
    transition: transform 0.3s ease, opacity 0.3s ease;
    transition-behavior: smooth;
    transition-duration: 3s;

    @starting-style {
        opacity: 0;
    }*/
}

.player-row-bottom{
    display:grid;
    grid-template-columns:320px 1fr 320px;
    align-items:center;
    width:100%;
    gap:20px;
}

.player-left{
    display:flex;
    align-items:center;
    gap:14px;
    overflow:hidden;
}

.player-left-cover{
    width:52px;
    height:52px;
    perspective: 400px;
    flex-shrink:0;
    cursor:pointer;
    position:relative;
}

.artist-card.artist-card-bleed,
.artist-card.production-card {
    cursor: pointer;
}

.player-cover-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 8px;
}

.player-left-cover.flipped .player-cover-inner {
    transform: rotateY(180deg);
}

.player-cover-front,
.player-cover-back {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 8px;
    overflow: hidden;
    background: #111;
}

.player-cover-back {
    transform: rotateY(180deg);
}

.player-left-cover img {
    width:100%;
    height:100%;
    object-fit:cover;
}

.player-track{
    min-width:0;
}

.player-track-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.player-track-title{
    font-weight:600;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

.track-action-btn {
    background: none;
    border: none;
    color: var(--spotify-dim);
    cursor: pointer;
    font-size: 0.85rem;
    padding: 2px 4px;
    transition: color 0.15s;
}

.track-action-btn:hover {
    color: #fff;
}

.track-action-btn.active {
    color: var(--spotify-green) !important;
}

.player-track-artist{
    font-size:.85rem;
    color:var(--spotify-dim);
    margin-top:4px;
}

.player-center{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
}

.controls{
    display:flex;
    align-items:center;
    gap:22px;
}

.controls button{
    background:none;
    border:none;
    color:#fff;
    cursor:pointer;
    font-size:1.15rem;
}

.controls button:hover{
    color:var(--spotify-green);
}

.play-btn{
    width:42px;
    height:42px;
    border-radius:50%;
    border:none;
    background:var(--spotify-green)!important;
    color:#000!important;
    font-size:1rem;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
}

.wave-row{
    display:flex;
    align-items:center;
    width:100%;
    gap:14px;
}

.time{
    width:45px;
    text-align:center;
    font-size:.78rem;
    color:var(--spotify-dim);
    font-variant-numeric: tabular-nums;
}

#waveform{
    flex:1;
}

.player-right{
    display:flex;
    justify-content:flex-end;
    align-items:center;
    gap:18px;
}

.player-right button{
    background:none;
    border:none;
    color:var(--spotify-dim);
    cursor:pointer;
    font-size:1.05rem;
}

.player-right button:hover{
    color:#fff;
}

#downloadBtn{
    display:block;
 }

/* MODAL */

.art-modal{
    position:fixed;
    inset:0;
    z-index:9999;
    display:none;
    align-items:center;
    justify-content:center;
}

.art-modal.active{
    display:flex;
}

.art-modal-backdrop{
    position:absolute;
    inset:0;
    background:rgba(0,0,0,.88);
    backdrop-filter:blur(8px);
}

.art-modal-content{
    position:relative;
    z-index:2;
    width:min(1400px,92vw);
    max-height:90vh;
    overflow:auto;
}

.art-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:30px;
}

.art-panel{
    background:#181818;
    border-radius:18px;
    padding:22px;
}

.art-panel img{
    width:100%;
    border-radius:14px;
    display:block;
    background:#000;
}

.art-close-btn{
    position:fixed;
    top:24px;
    right:24px;
    width:52px;
    height:52px;
    border-radius:50%;
    border:none;
    background:rgba(255,255,255,.12);
    color:#fff;
    font-size:1.2rem;
    cursor:pointer;
}

/* MOBILE */
@media(max-width:568px){

    html,
    body{
        overflow:auto;
    }

    .app{
        grid-template-columns:1fr;
        overflow:visible;
    }

    .right-panel{
        display:none;
    }

    /* HERO SECTION STACKED AND LARGED FOR MOBILE */
    .hero {
        padding: 12px 0;
    }

   .hero-top {
    flex-direction: column;
    align-items: stretch; /* Changed from center to allow full-width alignment */
    text-align: left;     /* Changed from center to left-align typography */
    gap: 20px;
}

.hero-top > div:last-child {
    width: 100%;          /* Matches the exact width of your scaled hero-logo */
    max-width: 90vw;     /* Keeps constraints identical to the artwork */
    margin: 0 auto;      /* Aligns the container bounds perfectly with the art box */
}

.hero-logo {
    width: 100%;
    height: auto;
    max-width: 90vw;
    aspect-ratio: 1 / 1;
    margin: 0 auto;       /* Keeps the large artwork centered on the screen */
}

.album-meta {
    justify-content: flex-start; /* Ensures items layout left-to-right */
    font-size: 0.8rem;
}

    .player{
        padding:16px 14px;
        gap:10px;
    }
/* .player-row-top {
        display: none !important;
    } */



    .player-row-bottom{
        display: flex !important;
             align-items: center !important;
        justify-content: space-between  !important;
        width: 100% !important;
        gap: 10px !important;
    } 

    .player-left {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: start !important;
        width: 100% !important;
        height: 52px !important;
        gap: 14px !important;
    }

    .home-player-left-cover {
        width: 52px !important;
        height: 52px !important;
    }
    
    .player-left-cover {
        width: 52px !important;
        height: 52px !important;
    }

    .player-track {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        height: 52px !important;
        text-align: left !important;
    }


    .player-track-title {
        line-height: 1.2 !important;
        margin: 0 !important;
    }

    .player-track-artist {
        line-height: 1.2 !important;
        margin: 0 !important;
        margin-top: 2px !important;
    }

    .player-center {
        width: auto !important;
    }

    .player-right{
        display:none !important;
    }

    .track-action-btn {
        display: none;
    }
/* #prevBtn, #nextBtn {
        display: none;
    } */

/*    .site-header-subtitle{
        display:none;
    }
*/
    .hero h1{
        font-size:2.25rem;
    }

    

    .track-header{
        grid-template-columns: 1fr 72px;
    }

    .track {
  display: grid;
          grid-template-columns: 1fr 72px;
  align-items: center;
  gap: 10px;
  padding: 10px 0px;
  border-radius: 8px;
  cursor: pointer;
  transition: .15s;
}

    .art-grid{
        grid-template-columns:1fr;
    }

    .album-footer{
        flex-direction:column;
        align-items:flex-start;
        gap:8px;
        padding-bottom:26px;
    }
}

/* tablet*/
@media(min-width:568px) and (max-width: 1000px){

       html,
    body{
        overflow:auto;
    }

    .app{
        grid-template-columns:1fr;
        overflow:visible;
    }

    .right-panel{
        display:none;
    }

    .player{
        padding:16px 14px;
        gap:14px;
    }

    .player-row-top {
        display: block !important;
    }
    
    .player-row-bottom{
         display:grid;
    grid-template-columns:1fr 1fr 1fr;
    align-items:center;
    width:100%;
    gap:20px;} 

    .player-left {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: start !important;
        width: 100% !important;
        height: 52px !important;
        gap: 14px !important;
    }

    .player-left-cover {
        width: 52px !important;
        height: 52px !important;
    }

    .player-track {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        height: 52px !important;
        text-align: left !important;
    }


    .player-track-title {
        line-height: 1.2 !important;
        margin: 0 !important;
    }

    .player-track-artist {
        line-height: 1.2 !important;
        margin: 0 !important;
        margin-top: 2px !important;
    }

    .player-center {
        width: auto !important;

    }
/* .player-right{
        display:none !important;
    } */

/*    .site-header-subtitle{
        display:none;
    }*/

    .hero h1{
        font-size:2.25rem;
    }

    .hero-logo{
        width:82px;
        height:82px;
    }


    .track-header,
    .track{
        grid-template-columns:42px 1fr 72px;
    }

    .art-grid{
        grid-template-columns:1fr;
    }

    .album-footer{
        flex-direction:column;
        align-items:flex-start;
        gap:8px;
        padding-bottom:26px;
    }
}

.volume-control{
    display:flex;
    align-items:center;
    gap:10px;
}

#volumeSlider{
    width:110px;
    accent-color:var(--spotify-green);
    cursor:pointer;
}

.production-card{
    margin-top:18px;
}

.production-preview{
    color:var(--spotify-dim);
    font-size:.95rem;
    line-height:1.55;
}

.production-modal-card{
    grid-template-columns:1fr;
    max-width:820px;
    margin:0 auto;
}

.production-text{
    max-width:720px;
}

.track-actions {
    text-align: right;
    padding-right: 10px;
}


/*help-page*/

    .help-page {
        max-width: 1200px;
    }

    .help-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 3.25rem;
        height: 3.25rem;
        flex: 0 0 3.25rem;
        border-radius: 0.85rem;
        background-color: var(--bs-primary-bg-subtle);
        color: var(--bs-primary-text-emphasis);
        font-size: 1.5rem;
    }

    .help-page .card {
        background-color: var(--bs-body-bg);
    }

    .help-page .accordion-item,
    .help-page .accordion-button {
        background-color: transparent;
        color: var(--bs-body-color);
    }

    .help-page .accordion-button {
        padding-left: 0;
        padding-right: 0;
        font-weight: 600;
        box-shadow: none;
    }

    .help-page .accordion-button:not(.collapsed) {
        color: var(--spotify-green);
    }

    .help-page .accordion-body {
        padding-left: 0;
        padding-right: 0;
        color: var(--bs-secondary-color);
        line-height: 1.7;
    }



    /* Artist merch */

.merch-card {
    display: block;
    height: 100%;
    color: inherit;
    border-radius: 1rem;
    overflow: hidden;
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.merch-card:hover {
    color: inherit;
    transform: translateY(-6px);
    border-color: rgba(var(--bs-success-rgb), 0.6);
    box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.16);
}

.merch-image-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: var(--bs-tertiary-bg);
}

.merch-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.merch-card:hover .merch-image {
    transform: scale(1.05);
}

.merch-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bs-tertiary-bg);
    color: var(--bs-secondary-color);
}

.merch-image-placeholder span {
    font-size: 4rem;
    opacity: 0.35;
}

.merch-info {
    padding: 1rem 1.1rem 1.2rem;
}

.merch-type {
    color: var(--bs-secondary-color);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.35rem;
}

.merch-name {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.merch-price {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--bs-success);
}

.merch-price small {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--bs-secondary-color);
}

.merch-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--bs-tertiary-bg);
    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.merch-card:hover .merch-arrow {
    background: var(--bs-success);
    color: white;
    transform: translateX(3px);
}

.merch-stock-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 2;
}

.merch-image-count {
    position: absolute;
    right: 0.75rem;
    bottom: 0.75rem;
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 0.75rem;
    backdrop-filter: blur(5px);
}

.merch-sold-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1;
}

.merch-sold-overlay span {
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.merch-empty {
    background: var(--bs-tertiary-bg);
    border: 1px solid var(--bs-border-color);
}









.shared-badge {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow:
        0 0 6px rgba(255, 255, 255, 0.15),
        inset 0 0 6px rgba(255, 255, 255, 0.05);
    animation: sharedBadgeGlow 6s ease-in-out infinite;
}

.shared-badge::after {
    content: "";
    position: absolute;
    top: -100%;
    left: -50%;
    width: 30%;
    height: 300%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.8),
        transparent
    );
    transform: rotate(25deg);
    animation: sharedBadgeShine 10s ease-in-out infinite;
}

@keyframes sharedBadgeGlow {
    0%,
    100% {
        border-color: rgba(255, 255, 255, 0.3);
        box-shadow: 0 0 5px rgba(255, 255, 255, 0.15);
    }

    50% {
        border-color: rgba(255, 255, 255, 0.9);
        box-shadow:
            0 0 10px rgba(255, 255, 255, 0.45),
            0 0 20px rgba(255, 255, 255, 0.15);
    }
}

@keyframes sharedBadgeShine {
    0%,
    60% {
        left: -50%;
    }

    100% {
        left: 130%;
    }
}












#playerCoverFrontImg {
    display: none;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
}

/*
#playerCoverButton:has(#playerCoverFrontImg[style*="display: none"]) {
    border: 0;
    outline: 0;
    box-shadow: none;
    background: transparent;
}

*/














    .artist-hero {
        height: clamp(320px, 52vh, 520px);
        background: #111;
    }

    .artist-hero-image {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

    .artist-hero-overlay {
        position: absolute;
        inset: 0;
        background: linear-gradient( to top, rgba(0, 0, 0, .9) 0%, rgba(0, 0, 0, .35) 55%, rgba(0, 0, 0, .15) 100% );
    }

    .artist-hero-content {
        position: relative;
        z-index: 2;
        height: 90%; /* oli fix */
        display: flex;
        align-items: end;
        color: #fff;
    }

    .artist-title {
        line-height: .95;
        letter-spacing: -.045em;
        text-shadow: 0 3px 20px rgba(0, 0, 0, .45);
    }


    .artist-track-row {
        min-height: 58px;
        transition: background-color .15s ease;
    }

    .artist-track-row:hover {
        background-color: rgba(128, 128, 128, .12);
    }

    .artist-track-position {
        width: 40px;
        flex: 0 0 40px;
    }

    .artist-track-play {
        width: 32px;
        height: 32px;
        color: inherit;
    }

    .artist-track-play:hover {
        color: #1ed760;
    }

    .artist-track-info {
        min-width: 0;
    }

    .artist-track-duration {
        width: 60px;
        flex: 0 0 60px;
        text-align: right;
        font-variant-numeric: tabular-nums;
    }

    /* ARTIST PICK */

    .artist-pick-card {
        display: flex;
        align-items: stretch;
        gap: 1.25rem;
        /*        max-width: 620px; */
        padding: 1rem;
        border-radius: .75rem;
        background: rgba(128, 128, 128, .08);
        transition: background-color .2s ease, transform .2s ease;
    }

    .artist-pick-card:hover {
        background: rgba(128, 128, 128, .14);
    }

    .artist-pick-image-wrapper {
        width: 120px;
        flex: 0 0 120px;
        aspect-ratio: 1;
        overflow: hidden;
        border-radius: .5rem;
        background: rgba(128, 128, 128, .15);
        box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
    }

    .artist-pick-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .artist-pick-content {
        min-width: 0;
        flex-grow: 1;
        padding: .25rem 0;
    }

    .artist-pick-avatar {
        width: 28px;
        height: 28px;
        border-radius: 50%;
        object-fit: cover;
    }

    /* COLLECTIONS */

    .artist-collection-card {
        padding: .75rem;
        border-radius: .6rem;
        transition: background-color .2s ease, transform .2s ease;
    }

    .artist-collection-card:hover {
        background-color: rgba(128, 128, 128, .10);
    }

    .artist-collection-image-wrapper {
        position: relative;
        aspect-ratio: 1;
        overflow: hidden;
        border-radius: .5rem;
        background: rgba(128, 128, 128, .15);
        box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
    }

    .artist-collection-image {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .25s ease;
    }

    .artist-collection-card:hover .artist-collection-image {
        transform: scale(1.025);
    }

    .artist-collection-play {
        position: absolute;
        right: .7rem;
        bottom: .7rem;
        opacity: 0;
        transform: translateY(8px);
        transition: opacity .2s ease, transform .2s ease;
    }

    .artist-collection-card:hover .artist-collection-play {
        opacity: 1;
        transform: translateY(0);
    }

    .artist-collection-play-button {
        width: 46px;
        height: 46px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: #1ed760;
        color: #000;
        box-shadow: 0 6px 16px rgba(0, 0, 0, .35);
    }

    /* MERCH */

    .artist-merch-card {
        padding: .75rem;
        border-radius: .6rem;
        transition: background-color .2s ease;
    }

    .artist-merch-card:hover {
        background-color: rgba(128, 128, 128, .10);
    }

    .artist-merch-image-wrapper {
        aspect-ratio: 1;
        overflow: hidden;
        border-radius: .5rem;
        background: rgba(128, 128, 128, .15);
        box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
    }

    .artist-merch-image {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .25s ease;
    }

    .artist-merch-card:hover .artist-merch-image {
        transform: scale(1.025);
    }

    /* ABOUT */

    .artist-about-card {
        min-height: 320px;
        background: #111;
        color: #fff;
    }

    .artist-about-image {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .artist-about-overlay {
        position: absolute;
        inset: 0;
        background: linear-gradient( 90deg, rgba(0, 0, 0, .92) 0%, rgba(0, 0, 0, .72) 45%, rgba(0, 0, 0, .30) 100% );
    }

    .artist-about-content {
        z-index: 2;
        max-width: 750px;
    }

    .artist-about-text {
        line-height: 1.7;
        color: rgba(255, 255, 255, .85);
    }

    .preserve-lines {
        white-space: pre-line;
    }

    
    @media (max-width: 767.98px) {

        .artist-hero {
            height: 360px;
        }

        .artist-title {
            font-size: clamp(3rem, 14vw, 5rem);
        }

        .artist-track-position {
            width: 30px;
            flex-basis: 30px;
        }

        .artist-track-duration {
            width: 48px;
            flex-basis: 48px;
        }

        .artist-collection-card,
        .artist-merch-card {
            padding: .35rem;
        }

        .artist-collection-play {
            display: none;
        }

        .artist-pick-card {
            gap: 1rem;
            padding: .75rem;
        }

        .artist-pick-image-wrapper {
            width: 120px;
            flex-basis: 120px;
        }
    }

    @@media (max-width: 480px) {

        .artist-pick-image-wrapper {
            width: 96px;
            flex-basis: 96px;
        }
    }

    .artwork-image-card {
    position: relative;
}

.artwork-drag-handle {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 2rem;
    height: 2rem;

    border-radius: 0.375rem;

    background: rgba(0, 0, 0, 0.65);
    color: white;

    cursor: grab;
}

.artwork-drag-handle:active {
    cursor: grabbing;
}

.artwork-sort-ghost {
    opacity: 0.35;
}

.artwork-sort-chosen .artwork-image-card {
    transform: scale(1.02);
}


#saveStatus {
    display: none;

    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    z-index: 9999;

    min-width: 250px;
    max-width: 90vw;

    text-align: center;

    box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.4);
}

#saveStatus:not(:empty) {
    display: block;
}


/* Hide only the description text */
.gslide-description .gslide-desc {
    display: none !important;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}

  @view-transition {
    navigation: auto;
  }

  
  ::view-transition-group(root) {
    animation-duration: 0.5s;
    animation-timing-function: ease;
  }


.sm-artist-img-sm {
    width: 32px;
    height: 32px;
    object-fit: cover;
    border-radius: 50%;
    display: inline-block;
}

.sm-artist-img-md {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 50%;
    display: inline-block;
}

.sm-panel-bg {
    background: rgba(128, 128, 128, .08);
    }

textarea.sm-textrea-sm {
    min-height: 6rem !important;
}

textarea.sm-textrea-md {
    min-height: 10rem !important;
}

textarea.sm-textrea-lg {
    min-height: 15rem !important;
}

.sm-merch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
}

.sm-merch-grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 10px;
    border-radius: 8px;
    outline: 1px solid rgba(255, 255, 255, 0.1);
}

.sm-merch-grid-item > a {
    display: block;
    width: 100%;
    min-width: 0;
}
.sm-merch-grid-item img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
}

.sm-merch-grid-item-name {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    text-align: center;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sm-merch-image-wrapper {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto;
}

.sm-merch-image-wrapper img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.sm-merch-grid-item-price {
    position: absolute;
    right: 6px;
    bottom: 6px;

    padding: 3px 7px;
    border-radius: 6px;

    background: rgba(0, 0, 0, 0.75);
    color: #fff;

    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
}

.sm-panel-feature {
        padding: 1rem;
   
    }

a.sm-disabled {
    pointer-events: none;
    opacity: 0.65;
}

.alert-spinna-music, .alert-purple {
    --bs-alert-color: #e9d5ff;
    --bs-alert-bg: #2e1065;
    --bs-alert-border-color: #652de4;

    color: var(--bs-alert-color);
    background-color: var(--bs-alert-bg);
    border: 2px solid var(--bs-alert-border-color);
}

/* wwwroot/css/site.css */
.log-viewer {
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0.5rem;
    overflow: auto;
    max-height: calc(100vh - 180px);
    padding: 1rem;
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.85rem;
    line-height: 1.5;
}

.log-line {
    white-space: pre-wrap;
    word-break: break-word;
    padding: 2px 6px;
}

.log-error {
    color: #ff6b6b;
    background: rgba(255, 0, 0, 0.08);
    border-left: 3px solid #dc3545;
}

.log-fatal {
    color: #fff;
    background: rgba(220, 53, 69, 0.45);
    border-left: 3px solid #ff0000;
    font-weight: bold;
}

.log-warning {
    color: #ffc107;
}

.log-info {
    color: #d8d8d8;
}

.log-debug {
    color: #777;
}