/* ============================================================
   Miximelo Album Page — Premium Native App Feel
   (Colors and Font Families strictly preserved)
   ============================================================ */

/* NOTE: .horizontal-scroll is already defined globally — do NOT redefine it here */

/* Smooth entrance animation for the page */
.app-page-enter {
    animation: appFadeSlideUp 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    opacity: 0;
    transform: translateY(12px);
}
@keyframes appFadeSlideUp {
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   HERO HEADER (Desktop ≥ 992px)
   ============================================================ */
.album-hero {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 0.75rem 0.75rem 0 0;
    color: #fff;
    padding: 32px 24px 24px;
    display: flex;
    align-items: flex-end;
    gap: 24px;
    min-height: 200px;
}



.album-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.85) 100%);
    z-index: 1;
}

.album-hero-inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    gap: 24px;
    width: 100%;
}

.album-hero-cover {
    flex-shrink: 0;
    width: 160px;
    height: 160px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 12px 32px rgba(0,0,0,0.6);
    transition: transform 0.3s ease;
}
.album-hero-cover:hover {
    transform: scale(1.02);
}

.album-hero-info {
    flex: 1;
    min-width: 0;
}

.album-hero-type {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 6px;
    opacity: 0.8;
}

.album-hero-title {
    font-size: clamp(24px, 3.5vw, 56px);
    font-weight: 900;
    line-height: 1.08;
    margin-bottom: 12px;
    word-break: break-word;
}

.hero-artist-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.hero-artist-row .artist-avatars {
    display: flex;
}

.hero-artist-row .artist-avatars img {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.25);
    margin-right: -6px;
    object-fit: cover;
    transition: border-color 0.2s ease;
}
.hero-artist-row .artist-avatars img:hover {
    border-color: #fff;
    z-index: 2;
}

.hero-artist-row .artist-names {
    font-size: 14px;
    font-weight: 600;
}

.hero-artist-row .artist-names a {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.2s;
}
.hero-artist-row .artist-names a:hover {
    text-decoration: underline;
    opacity: 0.8;
}

.album-hero-meta {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.album-hero-meta .dot::before {
    content: "•";
    margin: 0 4px;
    opacity: 0.5;
}

.new-release-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255,255,255,0.18);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255,255,255,0.25);
}

/* ============================================================
   ACTION BAR
   ============================================================ */
.album-action-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px 24px;
    flex-wrap: wrap;
    background: linear-gradient(to bottom, rgba(0,0,0,0.55), transparent);
}

.album-action-bar .btn-buy {
    background: var(--primary);
    color: #000;
    font-weight: 700;
    border: none;
    border-radius: 50px;
    padding: 12px 32px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.album-action-bar .btn-buy:hover {
    background: #1ed760;
    transform: scale(1.04);
    box-shadow: 0 6px 16px rgba(30, 215, 96, 0.3);
}

.album-action-bar .btn-outline-action {
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255,255,255,0.35);
    border-radius: 50px;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}
.album-action-bar .btn-outline-action:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.08);
    transform: scale(1.02);
}

.album-action-bar .btn-icon {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.65);
    font-size: 20px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}
.album-action-bar .btn-icon:hover {
    color: #fff;
    border-color: #fff;
    background: rgba(255,255,255,0.1);
    transform: scale(1.1);
}

.album-action-bar .purchased-pill {
    background: rgba(29,185,84,0.15);
    color: var(--primary);
    border: 1.5px solid var(--primary);
    border-radius: 50px;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ============================================================
   TRACKS SECTION (Desktop)
   ============================================================ */
.album-tracks-section {
    padding: 8px 24px 0;
}

.tracks-col-header {
    display: grid;
    grid-template-columns: 40px 1fr minmax(70px, auto) minmax(70px, auto) 40px;
    align-items: center;
    padding: 6px 8px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 4px;
    color: rgba(255,255,255,0.45);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.track-item {
    display: grid;
    grid-template-columns: 40px 1fr minmax(70px, auto) minmax(70px, auto) 40px;
    align-items: center;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.18s ease;
    position: relative;
    gap: 4px;
}
.track-item:hover {
    background: rgba(255,255,255,0.07);
}
.track-item.track-playing {
    background: rgba(255,255,255,0.1);
}

/* Track Number / Play Icon / Waveform */
.track-num {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.track-index {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    transition: opacity 0.2s ease;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    font-weight: 500;
}

.track-play-icon {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.1s ease;
    cursor: pointer;
    font-size: 1.6rem;
    color: #1db954;
    filter: drop-shadow(0 0 2px rgba(0,0,0,0.5));
}

.track-item:hover .track-index { opacity: 0; }
.track-item:hover .track-play-icon { opacity: 1; }
.track-play-icon:hover { transform: translate(-50%, -50%) scale(1.15); color: #1ed760; }

.track-item.track-playing .track-index,
.track-item.track-playing .track-play-icon {
    display: none !important;
}

.waveform {
    display: none;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    align-items: flex-end;
    gap: 3px;
    height: 14px;
}
.waveform span {
    width: 3px;
    background: var(--primary);
    display: inline-block;
    border-radius: 1px;
    animation: wave 0.7s infinite ease-in-out;
}
.waveform span:nth-child(1) { animation-delay: 0s; }
.waveform span:nth-child(2) { animation-delay: 0.15s; }
.waveform span:nth-child(3) { animation-delay: 0.30s; }
.waveform span:nth-child(4) { animation-delay: 0.45s; }

@keyframes wave {
    0%, 100% { height: 4px; }
    50% { height: 14px; }
}
.track-item.track-playing .waveform { display: flex !important; }

/* Track Info */
.track-info {
    min-width: 0;
    padding-right: 12px;
}

.track-title {
    font-size: 15px;
    font-weight: 500;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}
.track-item.track-playing .track-title { color: var(--primary); }
.track-item.track-playing .track-num { color: var(--primary); }

.track-artists {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.track-artists a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    transition: color 0.2s;
}
.track-artists a:hover {
    color: #fff;
    text-decoration: underline;
}

.track-price-cell, .track-duration-cell {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    text-align: right;
    padding-right: 8px;
    white-space: nowrap;
}

/* Track Menu & Dropdowns */
.track-menu-cell {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: relative;
}

.track-menu-btn {
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.45);
    font-size: 18px;
    padding: 8px 6px;
    min-width: 44px;
    min-height: 44px;
    cursor: pointer;
    transition: color 0.18s, background 0.18s;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.track-menu-btn:hover {
    color: #fff;
    background: rgba(255,255,255,0.1);
}

/* Force dropdowns to render above everything without clipping */
.track-item, .track-menu-cell, .dropdown, .album-tracks-section {
    overflow: visible !important;
}

.dropdown-menu-dark {
    background-color: #282828;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 8px 32px rgba(0,0,0,0.6);
    min-width: 220px;
    border-radius: 8px;
    padding: 4px 0;
    z-index: 9999 !important;
}
.dropdown-menu-dark .dropdown-item {
    color: #fff;
    padding: 10px 16px;
    font-size: 14px;
    border-radius: 4px;
    margin: 0 4px;
    transition: background 0.15s;
}
.dropdown-menu-dark .dropdown-item:hover {
    background-color: rgba(255,255,255,0.1);
}
.dropdown-menu-dark .dropdown-item i {
    margin-right: 10px;
    width: 18px;
    text-align: center;
    opacity: 0.8;
}
.dropdown-divider { 
    border-color: rgba(255,255,255,0.1); 
    margin: 4px 0;
}

/* Badges */
.quality-badge {
    font-size: 9px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 4px;
    vertical-align: middle;
    letter-spacing: 0.5px;
}
.quality-hq { background: var(--primary); color: #000; }
.quality-sq { background: rgba(255,255,255,0.2); color: #fff; }
.quality-preview { background: #e22134; color: #fff; }

.owned-badge {
    font-size: 9px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    vertical-align: middle;
    letter-spacing: 0.5px;
}

/* ============================================================
   LOWER SECTIONS
   ============================================================ */
.album-lower {
    padding: 24px 24px 40px;
}

.section-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: rgba(255,255,255,0.45);
    margin-bottom: 12px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.section-title { 
    font-size: 20px; 
    font-weight: 700; 
    margin: 0; 
    color: #fff;
}
.see-all {
    font-size: 12px;
    font-weight: 700;
    color: rgba(255,255,255,0.45);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.2s;
}
.see-all:hover { color: #fff; }

/* Cards (Similar Albums / More by Artist) */
.card-item {
    flex: 0 0 150px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease;
}
.card-item:hover { transform: translateY(-4px); }

.card-cover {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 8px;
    aspect-ratio: 1/1;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.card-item:hover .card-cover img { transform: scale(1.05); }

.card-title { 
    font-size: 13px; 
    font-weight: 600; 
    margin-bottom: 2px; 
    color: #fff;
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis; 
}
.card-subtitle { 
    font-size: 12px; 
    color: rgba(255,255,255,0.5); 
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis; 
}
.card-info { 
    text-decoration: none; 
    color: inherit; 
    display: block; 
}

/* Premium / Preview Strips */
.premium-strip, .preview-strip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 4px;
}
.premium-strip {
    background: rgba(93,252,137,0.08);
    border: 1px solid rgba(93,252,137,0.3);
    color: #5dfc89;
}
.preview-strip {
    background: rgba(255,210,127,0.08);
    border: 1px solid rgba(255,210,127,0.25);
    color: #ffd27f;
}

/* Additional Artists Card */
.artist-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 8px;
    transition: background 0.2s ease;
}
.artist-card:hover { background: rgba(255,255,255,0.05); }
.artist-card img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}
.artist-card-name {
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    transition: color 0.2s;
}
.artist-card-name:hover { color: var(--primary); }
.artist-card-role { 
    font-size: 12px; 
    color: rgba(255,255,255,0.5); 
}

/* Copyright */
.copyright-line { 
    font-size: 12px; 
    color: rgba(255,255,255,0.35); 
    margin-bottom: 4px; 
}

/* ============================================================
   FAQ ACCORDION
   ============================================================ */
.album-faqs { margin-top: 2rem; }
#albumFAQAccordion { display: flex; flex-direction: column; gap: 10px; }

.accordion-item {
    border: 1px solid rgba(255,255,255,0.08) !important;
    border-radius: 12px !important;
    overflow: hidden;
    background: rgba(255,255,255,0.04);
    transition: all 0.25s ease;
}
.accordion-item:hover { background: rgba(255,255,255,0.07); }

.accordion-button {
    background: transparent !important;
    color: #e2e8f0 !important;
    font-weight: 500;
    font-size: 14px;
    padding: 16px 18px;
    border: none !important;
    box-shadow: none !important;
    transition: background 0.2s, color 0.2s;
}
.accordion-button::after { 
    filter: invert(1); 
    opacity: 0.6; 
    transition: opacity 0.2s;
}
.accordion-button:not(.collapsed) { 
    color: var(--primary) !important; 
    background: rgba(255,255,255,0.06) !important;
}
.accordion-button:not(.collapsed)::after { opacity: 1; }

.accordion-body {
    padding: 0 18px 18px;
    font-size: 13.5px;
    line-height: 1.75;
    color: #b3b3b3;
    word-break: break-word;
    overflow-wrap: anywhere;
}

/* ============================================================
   MOBILE STYLES (≤ 991px)
   ============================================================ */
.desktop-only { display: none; }
.mobile-only  { display: block; }

@media (min-width: 992px) {
    .desktop-only { display: block; }
    .mobile-only  { display: none; }
}

.album-mobile-header {
    position: relative;
    overflow: hidden;
    color: #fff;
    border-radius: 0;
}

.album-mobile-header::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.95));
    z-index: 1;
}
.album-mobile-inner {
    position: relative;
    z-index: 2;
    padding: 1.5rem 1rem;
    text-align: center;
}
.album-mobile-cover {
    display: flex;
    justify-content: center;
    margin-bottom: 1.2rem;
}
.album-mobile-cover img {
    width: 65%;
    max-width: 240px;
    border-radius: 1rem;
    box-shadow: 0 12px 32px rgba(0,0,0,0.6);
}
.album-mobile-title {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}
.album-mobile-meta {
    font-size: 13px;
    color: rgba(255,255,255,0.65);
    margin-top: 6px;
}

.miximelo-artist-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}
.miximelo-artist-display .artist-images { display: flex; }
.miximelo-artist-display .artist-images img {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid rgba(0,0,0,0.5);
    margin-right: -6px;
    object-fit: cover;
}
.miximelo-artist-display .artist-names { font-size: 14px; font-weight: 600; }
.miximelo-artist-display .artist-names a { color: rgba(255,255,255,0.9); text-decoration: none; }
.miximelo-artist-display .artist-names a:hover { text-decoration: underline; }

.album-mobile-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 20px;
}
.mobile-action-btn {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 50px;
    transition: background 0.2s;
}
.mobile-action-btn:hover { background: rgba(255,255,255,0.1); }

.mobile-buy-btn {
    background: var(--primary);
    color: #000;
    border: none;
    border-radius: 50px;
    padding: 10px 24px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.mobile-buy-btn:hover {
    transform: scale(1.04);
    box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}

/* Mobile Track List */
.mobile-track-item {
    display: flex;
    align-items: center;
    padding: 10px 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.18s;
    background: transparent !important;
    gap: 12px;
}
.mobile-track-item:hover, .mobile-track-item:active { 
    background: rgba(255,255,255,0.08) !important; 
}
.mobile-track-info { flex: 1; min-width: 0; }
.mobile-track-title {
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 6px;
}
.mobile-track-artists {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mobile-track-artists a { color: rgba(255,255,255,0.5); text-decoration: none; }
.mobile-track-artists a:hover { color: #fff; }

/* Mobile Dropdown Safety */
.dropdown-menu {
    max-height: 70vh;
    overflow-y: auto;
    overscroll-behavior: contain;
    z-index: 9999 !important;
}