/* ===================================================================
   BANDA DETAIL STYLES - Spotify/SoundCloud Profile Style
   =================================================================== */

:root {
    --primary-color: #ff6b35;
    --secondary-color: #004e89;
    --accent-color: #f7b801;
    --dark-bg: #1a1a1a;
    --light-bg: #f5f5f5;
    --card-bg: #ffffff;
    --text-primary: #333333;
    --text-secondary: #666666;
    --border-radius: 12px;
    --transition: 0.3s ease;
}

/* Container */
.banda-detail-container {
    background: var(--light-bg);
    min-height: 100vh;
}

.videos-public-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:20px}.public-video-card{min-width:0}.public-video-card h3{margin:10px 0 6px}.public-video-card p{margin:0 0 8px}.public-video-play,.public-video-card iframe{display:block;width:100%;aspect-ratio:16/9;border:0;border-radius:10px;background:#1a1a1a;overflow:hidden}.public-video-play{position:relative;padding:0;cursor:pointer}.public-video-play img{width:100%;height:100%;object-fit:cover}.public-video-play span{position:absolute;inset:0;display:grid;place-items:center;color:#fff;font-size:3rem;text-shadow:0 2px 8px #000}

/* Hero Section */
.banda-hero {
    position: relative;
    height: 400px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}

.banda-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-background-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4) blur(8px);
}

.hero-background-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.5) 100%);
}

.banda-hero-content {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: flex-end;
    gap: 40px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px 40px;
}

.banda-hero-image {
    flex-shrink: 0;
}

.band-profile-image {
    width: 200px;
    height: 200px;
    border-radius: calc(var(--border-radius) * 2);
    object-fit: cover;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    border: 4px solid white;
}

.band-profile-image-placeholder {
    width: 200px;
    height: 200px;
    border-radius: calc(var(--border-radius) * 2);
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    border: 4px solid white;
}

.banda-hero-info {
    flex: 1;
    color: white;
}

.banda-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin: 0 0 20px 0;
    font-family: 'Outfit', sans-serif;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.banda-genres {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 30px;
}

.genre-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.banda-stats {
    display: flex;
    gap: 40px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 4px;
}

/* Main Content Layout */
.banda-main {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px;
}

/* Sidebar */
.banda-sidebar {
    position: relative;
}

.sidebar-section {
    background: white;
    border-radius: var(--border-radius);
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 100px;
}

.sidebar-section h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 24px 0;
    color: var(--text-primary);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 12px;
}

.info-item {
    margin-bottom: 20px;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.info-value {
    margin: 0;
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 500;
}

.status-active {
    color: #22c55e;
}

.status-limited {
    color: #f59e0b;
}

.status-suspended {
    color: #ef4444;
}

/* Content Sections */
.banda-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.content-section {
    background: white;
    border-radius: var(--border-radius);
    padding: 32px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 24px 0;
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 12px;
}

/* Biografía */
.biografia-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
    font-family: 'Inter', sans-serif;
}

.biografia-text p {
    margin: 0 0 16px 0;
}

.biografia-text p:last-child {
    margin-bottom: 0;
}

/* Demo Player */
.demo-player {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    border-radius: var(--border-radius);
    padding: 24px;
    color: white;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.player-button {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    flex-shrink: 0;
}

.player-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.player-button.playing {
    background: rgba(255, 255, 255, 0.4);
}

.progress-bar {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
    cursor: pointer;
}

.progress-fill {
    height: 100%;
    background: white;
    width: 0%;
    transition: width 0.1s linear;
}

.player-time {
    font-size: 0.85rem;
    font-weight: 500;
    min-width: 40px;
    text-align: right;
}

/* Temas, likes y comentarios */
.temas-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.tema-card {
    min-width: 0;
    padding: 24px;
    overflow: hidden;
    border: 1px solid #e1e5eb;
    border-radius: var(--border-radius);
    background: linear-gradient(145deg, #fff, #f7f9fb);
    box-shadow: 0 10px 28px rgba(14, 23, 38, 0.07);
    scroll-margin-top: 100px;
}

.tema-heading {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.tema-heading h3 {
    margin: 0 0 6px;
    color: var(--text-primary);
    font-size: 1.35rem;
}

.tema-heading-copy { min-width: 0; }

.tema-heading-copy h3,
.tema-artist {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tema-artist {
    margin: 0 0 5px;
    color: var(--secondary-color);
    font-size: 0.9rem;
    font-weight: 700;
}

.tema-cover {
    width: 72px;
    height: 72px;
    flex: 0 0 72px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: none;
}

.tema-cover-placeholder {
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: #fff;
    font-size: 2rem;
}

.tema-meta {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.tema-status {
    color: #b45309;
    font-weight: 700;
}

.tema-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    margin: 10px 0 18px;
    padding-top: 14px;
    border-top: 1px solid #e5e5e5;
}

.streaming-notice {
    margin: 8px 2px 14px;
    color: var(--text-secondary);
    font-size: 0.76rem;
    line-height: 1.45;
}

.tema-creditos {
    margin: 14px 0;
    color: var(--text-secondary);
    font-size: 0.84rem;
}

.comments-link,
.tema-owner-actions a {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    gap: 7px;
    color: var(--text-secondary);
    font-size: 0.86rem;
    font-weight: 700;
    text-decoration: none;
}

.comments-link:hover { color: var(--primary-color); }

.tema-more {
    position: relative;
    margin-left: auto;
}

.tema-more summary {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 50%;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: 800;
    list-style: none;
}

.tema-more summary::-webkit-details-marker { display: none; }
.tema-more summary:hover { background: #edf0f4; color: var(--text-primary); }
.tema-more summary:focus-visible { outline: 3px solid #197eae; outline-offset: 2px; }

.tema-more-menu {
    position: absolute;
    z-index: 4;
    top: calc(100% + 5px);
    right: 0;
    display: grid;
    min-width: 190px;
    padding: 7px;
    border: 1px solid #dfe3e8;
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.16);
}

.tema-more-menu a {
    padding: 10px;
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.84rem;
    text-decoration: none;
}

.tema-more-menu a:hover { background: #f2f4f7; }

.tema-owner-actions { margin-top: 12px; }

.tema-card .sonar-audio-player { margin-top: 2px; }
}

.social-integrity-notice {
    margin: 18px 0 6px;
    padding: 11px 14px;
    border-left: 3px solid #19c7d8;
    border-radius: 4px;
    background: rgba(25, 199, 216, 0.08);
    color: #31565b;
    font-size: 0.88rem;
    line-height: 1.5;
}

.like-form {
    margin: 0;
}

.like-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border: 1px solid #ddd;
    border-radius: 999px;
    background: #fff;
    color: #555;
    font-weight: 700;
}

.like-button:hover,
.like-button.liked {
    border-color: #ef4444;
    background: #fff1f2;
    color: #dc2626;
}

.like-button:disabled {
    opacity: 0.55;
}

.like-icon {
    font-size: 1.15rem;
}

.like-login,
.interaction-login a {
    color: var(--primary-color);
    font-weight: 700;
}

.interaction-login {
    color: var(--text-secondary);
}

.comments-block {
    padding-top: 18px;
    border-top: 1px solid #e5e5e5;
}

.comments-block h4 {
    margin: 0 0 14px;
    color: var(--text-primary);
}

.comment-form {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
}

.comment-form textarea {
    width: 100%;
    resize: vertical;
    padding: 12px;
    border: 1px solid #d7d7d7;
    border-radius: 8px;
    font: inherit;
}

.comment-form button {
    width: fit-content;
    justify-self: end;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.comment-item {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 12px;
    border-radius: 8px;
    background: #fff;
    color: var(--text-primary);
}

.comment-item time {
    margin-left: 8px;
    color: #888;
    font-size: 0.78rem;
}

.comment-item p {
    margin: 6px 0 0;
    color: var(--text-secondary);
}

.comment-delete {
    padding: 5px 9px;
    background: transparent;
    color: #b91c1c;
    font-size: 0.78rem;
}

.no-comments {
    margin: 0;
    color: #888;
    font-size: 0.9rem;
}

/* Integrantes */
.integrantes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
}

.integrante-card {
    background: #f9f9f9;
    border-radius: var(--border-radius);
    overflow: hidden;
    text-align: center;
    transition: all var(--transition);
    border: 1px solid #eee;
}

.integrante-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.integrante-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.integrante-image-placeholder {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.integrante-rol {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 16px 16px 8px;
    color: var(--text-primary);
}

.integrante-instrumentos {
    font-size: 0.9rem;
    color: var(--primary-color);
    margin: 0 16px 12px;
    font-weight: 600;
}

.integrante-descripcion {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0 16px 16px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Galería */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 24px;
}

.gallery-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    aspect-ratio: 1;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

.gallery-item:hover .gallery-image {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-link {
    width: 56px;
    height: 56px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all var(--transition);
}

.gallery-link:hover {
    background: var(--accent-color);
    transform: scale(1.1);
}

/* Back Button */
.back-button-container {
    max-width: 1400px;
    margin: 40px auto 0;
    padding: 0 40px 40px;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: white;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: all var(--transition);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.back-button:hover {
    background: var(--primary-color);
    color: white;
    transform: translateX(-6px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .banda-main {
        grid-template-columns: 1fr;
    }

    .banda-hero-content {
        flex-direction: column;
        gap: 24px;
        padding: 0 20px 20px;
    }

    .band-profile-image,
    .band-profile-image-placeholder {
        width: 150px;
        height: 150px;
    }

    .banda-title {
        font-size: 2.5rem;
    }

    .banda-stats {
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .banda-hero {
        height: 300px;
    }

    .banda-hero-content {
        padding: 0 16px 16px;
    }

    .band-profile-image,
    .band-profile-image-placeholder {
        width: 120px;
        height: 120px;
    }

    .banda-title {
        font-size: 2rem;
    }

    .banda-genres {
        gap: 8px;
        margin-bottom: 16px;
    }

    .genre-badge {
        font-size: 0.85rem;
        padding: 6px 12px;
    }

    .banda-hero-info {
        gap: 16px;
    }

    .banda-main {
        padding: 20px;
        gap: 20px;
    }

    .sidebar-section {
        position: static;
    }

    .content-section {
        padding: 20px;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .integrantes-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 16px;
    }

    .integrante-image,
    .integrante-image-placeholder {
        height: 150px;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 16px;
    }

    .back-button-container {
        padding: 0 20px 20px;
    }
}

@media (max-width: 480px) {
    .banda-hero {
        height: 250px;
    }

    .banda-hero-content {
        flex-direction: column;
        padding: 0 12px 12px;
        gap: 16px;
    }

    .band-profile-image,
    .band-profile-image-placeholder {
        width: 100px;
        height: 100px;
        border-width: 3px;
    }

    .banda-title {
        font-size: 1.5rem;
        margin-bottom: 12px;
    }

    .banda-stats {
        flex-direction: row;
        gap: 20px;
        justify-content: space-around;
    }

    .stat-value {
        font-size: 1.4rem;
    }

    .banda-main {
        padding: 12px;
    }

    .content-section {
        padding: 16px;
    }

    .section-title {
        font-size: 1.2rem;
    }

    .tema-card {
        padding: 14px;
    }

    .tema-heading {
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 14px;
    }

    .tema-cover {
        width: 60px;
        height: 60px;
        flex-basis: 60px;
    }

    .tema-heading h3 { font-size: 1.12rem; }
    .tema-meta { font-size: 0.78rem; }

    .tema-actions { flex-wrap: wrap; gap: 8px; }
    .tema-more { margin-left: auto; }
    .like-button,
    .comments-link { min-height: 44px; }
    .streaming-notice { margin-inline: 0; }

    .comment-item {
        flex-direction: column;
    }

    .integrantes-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}
