/* BREAKDOWN MUSIC — estilo principal */
:root {
    --bd-bg: #0f0f0f;
    --bd-panel: #161616;
    --bd-card-bg: #1a1a1a;
    --bd-text: #f0ece3;
    --bd-text-muted: #a0a0a0;
    --bd-accent: #e63946;
    --bd-accent-hover: #c1121f;
    --bd-sidebar-w: 220px;
    --bd-sidebar-w-collapsed: 72px;
    --bd-font: 'Inter', sans-serif;
    --bd-font-logo: 'Frank Ruhl Libre', serif;
}

html,
body {
    background: var(--bd-bg);
    color: var(--bd-text);
    overflow-x: hidden;
    font-family: var(--bd-font);
}

a {
    color: inherit;
}

a:visited {
    color: var(--bd-text);
}

a:hover {
    color: var(--bd-accent);
}

input[type="search"]:focus {
    color: #eee;
}

/* barra superior */
.bd-topbar {
    height: 64px;
    background: var(--bd-bg);
    border-bottom: 1px solid #222;
    z-index: 50;
}

.bd-burger {
    background: none;
    border: none;
    color: var(--bd-text);
    font-size: 1.4rem;
    cursor: pointer;
}

.bd-logo {
    font-family: var(--bd-font-logo);
    font-size: 1.3rem;
    font-weight: 700;
    white-space: nowrap;
}

.bd-logo i {
    color: var(--bd-accent);
}

.bd-avatar {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--bd-accent), #6a1b1b);
}

/* buscador */
.bd-search-wrap {
    flex: 1;
    max-width: 640px;
}

.bd-search-form {
display: flex;
  align-items: center;
  background: var(--bd-panel);
  border: 1px solid #2a2a2a;
  border-radius: 24px;
  padding: 6px 8px 6px 18px;
  position: relative;
}

.bd-search-form:focus-within {
    border-color: #fff;
}

.bd-search-form input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--bd-text);
    font-size: .9rem;
    outline: none;
}

.bd-search-form input::placeholder {
    color: #777;
}

.bd-search-btn {
    background: var(--bd-accent);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bd-search-btn:hover {
    background: var(--bd-accent-hover);
}

/* resultados de búsqueda live */
#bd-search-results .bd-result-item {
    padding: 10px 16px;
    cursor: pointer;
    font-size: .85rem;
    display: flex;
    justify-content: space-between;
    color: var(--bd-text-muted);
    border-bottom: 1px solid #222;
    transition: background 0.15s;
}

#bd-search-results .bd-result-item:last-child {
    border-bottom: none;
}

#bd-search-results .bd-result-item:hover {
    background: #222;
    color: var(--bd-text);
}

#bd-search-results .bd-result-item span:last-child {
    color: var(--bd-text-muted);
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #2a2a2a;
    padding: 2px 10px;
    border-radius: 12px;
}

/* Layout general */
.bd-layout {
    min-height: calc(100vh - 64px);
}

.bd-sidebar {
    width: var(--bd-sidebar-w);
    flex-shrink: 0;
    background: var(--bd-bg);
    padding: 1.25rem .5rem;
    transition: width .28s ease;
    overflow: hidden;
}

.bd-sidebar.collapsed {
    width: var(--bd-sidebar-w-collapsed);
}

.bd-nav-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 14px;
    border-radius: 8px;
    color: var(--bd-text-muted);
    text-decoration: none;
    font-size: .85rem;
    font-weight: 600;
    white-space: nowrap;
    margin-bottom: 4px;
}

.bd-nav-link i {
    font-size: 1.2rem;
    width: 22px;
    text-align: center;
    flex-shrink: 0;
}

.bd-nav-link:hover,
.bd-nav-link.active {
    background: #222;
    color: var(--bd-text);
}

.bd-sidebar.collapsed .bd-nav-label {
    display: none;
}

.bd-main {
    flex: 1;
    padding: 1.5rem 2rem;
    min-width: 0;
}

/* Home pills */
.bd-pill {
    background: var(--bd-panel);
    border: 1px solid #2a2a2a;
    color: var(--bd-text);
    padding: 8px 18px;
    border-radius: 20px;
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
}

.bd-pill:hover,
.bd-pill.active {
    background: var(--bd-accent);
    border-color: var(--bd-accent);
}

/* Home secciones y títulos */
.bd-section {
    margin-bottom: 2.5rem;
}

.bd-section-title {
    font-family: var(--bd-font);
    font-size: 1.9rem;
    font-weight: 800;
    margin: 0;
    letter-spacing: -.5px;
}

.bd-section-eyebrow {
    font-size: .75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--bd-accent);
    font-weight: 700;
    display: block;
    margin-bottom: 2px;
}

.bd-section-controls {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.bd-carousel-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}

.bd-more-btn {
    background: transparent;
    border: 1px solid #444;
    color: var(--bd-text);
    border-radius: 20px;
    padding: 7px 20px;
    font-size: .8rem;
    font-weight: 600;
    white-space: nowrap;
}

.bd-more-btn:hover {
    background: var(--bd-text);
    color: var(--bd-bg);
    border-color: var(--bd-text);
}

/* Carrusel */
.bd-carousel-track {
    display: flex;
    gap: 16px;
    overflow-x: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 6px 2px 14px;
}

.bd-carousel-track::-webkit-scrollbar {
    display: none;
}

.bd-carousel-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid #444;
    color: var(--bd-text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: .9rem;
    flex-shrink: 0;
}

.bd-carousel-btn:hover {
    background: var(--bd-text);
    color: var(--bd-bg);
    border-color: var(--bd-text);
}

.bd-carousel-btn:disabled {
    opacity: .3;
    cursor: default;
    background: transparent;
}

/* Cards */
.bd-card {
    flex: 0 0 200px;
    min-width: 0;
    text-decoration: none;
    color: var(--bd-text);
    cursor: pointer;
    display: block;
}

.bd-card-thumb-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
}

.bd-card-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease, opacity .35s ease;
}

.bd-card:hover .bd-card-thumb {
    transform: scale(1.05);
    opacity: .75;
}

.bd-card-title {
    font-size: .88rem;
    font-weight: 600;
    margin: 8px 0 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bd-card-sub {
    font-size: .76rem;
    color: var(--bd-text-muted);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Botón play hover sobre card */
.bd-play-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--bd-accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    border: none;
    opacity: 0;
    transform: translateY(8px) scale(.8);
    transition: opacity .2s ease, transform .2s ease;
    cursor: pointer;
    z-index: 2;
}

.bd-card:hover .bd-play-btn {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.bd-play-btn:hover {
    background: var(--bd-accent-hover);
}

/* Single album y canción */
.bd-single-info {
    flex: 0 0 340px;
    position: sticky;
    top: 1.5rem;
}

.bd-single-cover {
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .6);
    margin-bottom: 1.25rem;
}

.bd-single-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bd-single-title {
    font-weight: 800;
    font-size: 1.7rem;
    line-height: 1.15;
    margin-bottom: .5rem;
}

.bd-single-meta-line {
    font-size: .82rem;
    color: var(--bd-text-muted);
    margin-bottom: .25rem;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.bd-single-desc {
    font-size: .85rem;
    color: var(--bd-text-muted);
    line-height: 1.5;
    margin: .75rem 0 1.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bd-single-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--bd-text-muted);
    font-size: .85rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    text-decoration: none;
}

.bd-single-breadcrumb:hover {
    color: var(--bd-text);
}

.bd-single-breadcrumb i {
    color: var(--bd-accent);
}

/* CTA */
.bd-action-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #242424;
    border: none;
    color: var(--bd-text);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.bd-action-btn:hover {
    background: #333;
}

.bd-action-btn.active {
    color: var(--bd-accent);
}

/* Tracklist scroll */
.bd-single-tracklist {
    flex: 1;
    min-width: 0;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    padding-right: 8px;
}

.bd-single-tracklist::-webkit-scrollbar {
    width: 6px;
}

.bd-single-tracklist::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 3px;
}

/* Filas de tracklist */
.bd-track-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: .7rem .5rem;
    border-radius: 8px;
    cursor: pointer;
}

.bd-track-row:hover {
    background: #1a1a1a;
}

.bd-track-num {
    width: 24px;
    text-align: center;
    color: var(--bd-text-muted);
    font-size: .85rem;
    flex-shrink: 0;
}

.bd-track-num .bd-play-btn-track {
    background: none;
    border: none;
    color: var(--bd-text-muted);
    font-size: .9rem;
    padding: 0;
    cursor: pointer;
    transition: color 0.2s;
}

.bd-track-num .bd-play-btn-track:hover,
.bd-track-row:hover .bd-track-num .bd-play-btn-track {
    color: var(--bd-text);
}

.bd-track-like {
    background: none;
    border: none;
    color: var(--bd-text-muted);
    font-size: 1.05rem;
    opacity: 0;
    transition: opacity .15s;
    flex-shrink: 0;
}

.bd-track-row:hover .bd-track-like {
    opacity: 1;
}

.bd-track-like.active {
    opacity: 1;
    color: var(--bd-accent);
}

/* Card de canciones */
.bd-song-card {
    transition: background 0.15s;
}

.bd-song-card:hover {
    background: #1a1a1a;
}

.bd-song-card:hover .bd-play-btn-track {
    opacity: 1 !important;
}

.bd-song-thumb-wrap .bd-play-btn-track {
    opacity: 0;
}

.bd-song-thumb-wrap:hover .bd-play-btn-track {
    opacity: 1;
}

/* Grid de canciones en archive */
.bd-song-grid {
    display: flex;
    flex-direction: column;
    gap: .25rem;
}

.bd-song-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 1.5rem 0;
    color: var(--bd-text-muted);
    font-size: .82rem;
}

.bd-song-loader .spinner-border {
    width: 1rem;
    height: 1rem;
    border-width: 2px;
}

.bd-song-end {
    text-align: center;
    padding: 1.5rem 0;
    color: #555;
    font-size: .8rem;
}

/* Hero del artista */
.bd-artist-hero {
    min-height: 420px;
    display: flex;
    align-items: flex-end;
    background-size: cover;
    background-position: center;
    margin: -1.5rem -2rem 2rem;
}

.bd-artist-hero-overlay {
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, .95) 10%, rgba(0, 0, 0, .55) 55%, transparent 100%);
    padding: 3rem 2rem 2rem;
}

.bd-artist-name {
    font-weight: 800;
    font-size: 3rem;
    letter-spacing: -1.5px;
    margin: 0 0 .25rem;
    line-height: 1;
}

.bd-artist-audience {
    color: var(--bd-text-muted);
    font-size: .9rem;
    margin-bottom: 1rem;
}

.bd-artist-bio {
    color: #ddd;
    font-size: .9rem;
    line-height: 1.6;
    margin-bottom: .25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bd-artist-bio.expanded {
    -webkit-line-clamp: unset;
}

.bd-artist-bio-toggle {
    background: none;
    border: none;
    color: var(--bd-text-muted);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 0;
    margin-bottom: 1.25rem;
}

.bd-artist-bio-toggle:hover {
    color: var(--bd-text);
}

/* Botones del artista */
.bd-btn-pill {
    background: #242424;
    border: 1px solid #333;
    color: var(--bd-text);
    border-radius: 20px;
    padding: 9px 18px;
    font-size: .82rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.bd-btn-pill:hover {
    background: #2f2f2f;
}

.bd-btn-subscribe {
    background: transparent;
    border: 1px solid var(--bd-accent);
    color: var(--bd-accent);
    border-radius: 20px;
    padding: 9px 20px;
    font-size: .82rem;
    font-weight: 700;
}

.bd-btn-subscribe:hover,
.bd-btn-subscribe.active {
    background: var(--bd-accent);
    color: #fff;
}

/* Filas de canciones del artista */
.bd-artist-song-row:hover {
    background: #161616;
    color: inherit;
}

.bd-artist-song-like {
    background: none;
    border: none;
    color: var(--bd-text-muted);
    flex-shrink: 0;
    opacity: 0;
    transition: opacity .15s;
    font-size: 1rem;
}

.bd-artist-song-row:hover .bd-artist-song-like {
    opacity: 1;
}

.bd-artist-song-like.active {
    opacity: 1;
    color: var(--bd-accent);
}

/* FAQ */
.accordion-item {
    background: var(--bd-card-bg);
    border: 1px solid #2a2a2a;
}

.accordion-item:hover {
    border-color: var(--bd-accent);
}

.accordion-button {
    color: var(--bd-text);
    background: var(--bd-card-bg);
}

.accordion-button:not(.collapsed) {
    color: var(--bd-text);
    background: var(--bd-card-bg);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
}

.accordion-button::after {
    filter: invert(1) brightness(0.8);
}

.accordion-body {
    background: var(--bd-panel);
    border-top: 1px solid #2a2a2a;
    color: var(--bd-text-muted);
    line-height: 1.7;
}

/* Reproductor */
.bd-player-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--bd-panel);
    border-top: 1px solid #2a2a2a;
    padding: 10px 1rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, .8);
    height: 80px;
    transition: height 0.3s ease;
    z-index: 1060;
}

.bd-player-bar.visible {
    display: block;
}

.bd-player-thumb {
    width: 56px;
    height: 56px;
    border-radius: 4px;
    object-fit: cover;
    background: #222;
    flex-shrink: 0;
}

.bd-player-progress {
    flex: 1;
    height: 4px;
    background: #333;
    border-radius: 2px;
    cursor: pointer;
    position: relative;
    transition: height 0.2s;
}

.bd-player-progress:hover {
    height: 6px;
}

.bd-player-progress-bar {
    height: 100%;
    background: var(--bd-accent);
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s linear;
}

.bd-player-progress:hover .bd-player-progress-bar {
    background: #fff;
}

.bd-player-bar.minimized {
    height: 60px;
}

.bd-player-bar.minimized .bd-player-progress,
.bd-player-bar.minimized .bd-player-thumb {
    display: none;
}

.bd-player-toggle .bi-chevron-down {
    display: inline-block;
    transition: transform 0.3s ease;
}

.bd-player-bar.minimized .bd-player-toggle .bi-chevron-down {
    transform: rotate(180deg);
}

.bd-player-bar.empty .bd-player-progress {
    opacity: .3;
    pointer-events: none;
}

/* Footer */
.bd-footer {
    border-top: 1px solid #1e1e1e;
    margin-top: 3rem;
    padding: 1.5rem 0 2rem;
    font-size: .78rem;
    color: #555;
}

.bd-footer a {
    color: #777;
}

.bd-footer a:hover {
    color: var(--bd-text);
}

/* Animaciones */
.fade-in-up {
    animation: fadeInUp 0.2s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Media queries */
@media (max-width: 991px) {
    .bd-sidebar {
        position: fixed;
        left: 0;
        top: 64px;
        bottom: 0;
        z-index: 80;
        width: 0;
        padding: 0;
    }

    .bd-sidebar.open {
        width: 220px;
        padding: 1.25rem .5rem;
    }

    .bd-search-wrap {
        max-width: none;
    }

    .bd-logo span {
        display: none;
    }

    .bd-main {
        padding: 1.25rem 1rem;
    }
}

@media (max-width: 768px) {
    .bd-section-title {
        font-size: 1.4rem;
    }

    .bd-card {
        flex: 0 0 150px;
    }

    .bd-pill {
        font-size: .7rem;
        padding: 6px 12px;
    }

    .bd-artist-hero {
        margin: -1.25rem -1rem 1.5rem;
        min-height: 300px;
    }

    .bd-artist-name {
        font-size: 2rem;
    }

    .bd-single-info {
        position: static;
        flex: 1 1 auto;
        width: 100%;
    }

    .bd-single-tracklist {
        max-height: none;
        overflow-y: visible;
    }

    .bd-search-filters {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 4px;
    }

    .bd-player-bar {
        height: 70px;
        padding: 6px .5rem;
    }

    .bd-player-thumb {
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 576px) {
    .bd-card {
        flex: 0 0 130px;
    }

    .bd-more-btn {
        padding: 4px 12px;
        font-size: .7rem;
    }

    .bd-carousel-btn {
        width: 30px;
        height: 30px;
        font-size: .75rem;
    }

    .bd-player-bar {
        height: 64px;
    }

    .bd-player-thumb {
        display: none;
    }
}
/* Modal en reproductor */

#bdSongModal .modal-dialog {
    max-width: 92%;
    width: 92%;
    height: 90vh;
    margin: 5vh auto;
}

#bdSongModal .modal-content {
    height: 100%;
    border-radius: 12px;
}

#bdSongModal .modal-body {
    overflow-y: auto;
    padding: 2rem;
}
/*Arreglo card con focus activo*/
a:focus {
  outline: none;
  color: var(--bd-text);
}