/* Premium Artist Profile (Mini-Site) Stylesheet */
:root {
    --bg-dark: #0a0a0f;
    --card-bg: rgba(20, 20, 35, 0.65);
    --card-border: rgba(255, 255, 255, 0.08);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-primary: #8b5cf6; /* Violet */
    --accent-secondary: #ec4899; /* Pink */
    --accent-glow: rgba(139, 92, 246, 0.4);
    --gradient-hero: linear-gradient(135deg, #4f46e5, #9333ea, #db2777);
    --font-sans: 'Barlow', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Wrapper */
.rm-artist-profile {
    font-family: var(--font-sans);
    color: var(--text-primary);
    background-color: var(--bg-dark);
    min-height: 100vh;
    padding-bottom: 3rem;
    overflow: hidden;
    background-clip: padding-box;
}

/* Hero Section */
.rm-artist-hero {
    position: relative;
    width: 100%;
    min-height: 360px;
    max-height: 520px;
    border-radius: 16px;
    overflow: hidden;
    background-clip: padding-box;
    margin-bottom: 2rem;
    display: flex;
    align-items: flex-end;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.rm-artist-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-hero);
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.rm-artist-hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(10, 10, 15, 0.95) 0%, rgba(10, 10, 15, 0.4) 60%, rgba(0, 0, 0, 0.1) 100%);
    z-index: 2;
}

.rm-artist-hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    padding: 2.5rem;
    display: flex;
    align-items: flex-start;
    gap: 2rem;
}

.rm-artist-avatar-wrap {
    position: relative;
    width: 160px;
    height: 160px;
    flex: 0 0 auto;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    box-shadow: 0 8px 25px var(--accent-glow);
    animation: pulseGlow 4s infinite alternate;
    margin-top: 8px;
}

.rm-artist-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--bg-dark);
}

.rm-artist-info {
    flex: 1;
    min-width: 0;
}

.rm-artist-name {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin: 0 0 0.5rem 0;
    background: linear-gradient(to right, #ffffff, #e2e8f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.rm-artist-bio-short {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0.5rem;
    max-width: 650px;
    white-space: pre-line;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rm-artist-view-more {
    display: inline-block;
    color: var(--accent-secondary);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    margin-bottom: 1.2rem;
    transition: var(--transition-smooth);
}

.rm-artist-view-more:hover {
    color: var(--text-primary);
    text-decoration: underline;
}

/* Stats */
.rm-artist-stats {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.2rem;
}

.rm-artist-stat-item {
    font-size: 0.95rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.rm-artist-stat-item:hover {
    color: var(--text-primary);
    text-decoration: none;
}

.rm-artist-stat-item strong {
    color: var(--text-primary);
    font-size: 1.1rem;
}

/* Actions in Hero */
.rm-artist-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.rm-artist-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
}

.rm-artist-btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.rm-artist-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5);
    color: #ffffff;
    text-decoration: none;
}

.rm-artist-btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.rm-artist-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    color: var(--text-primary);
    text-decoration: none;
}

/* Sticky Navigation Menu */
.rm-artist-menu {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--card-border);
    margin-bottom: 2.5rem;
}

.rm-artist-menu-list {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
}

.rm-artist-menu-list::-webkit-scrollbar {
    display: none; /* Safari & Chrome */
}

.rm-artist-menu-item {
    flex-shrink: 0;
}

.rm-artist-menu-link {
    display: block;
    padding: 1.2rem 1.5rem;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition-smooth);
    border-bottom: 3px solid transparent;
}

.rm-artist-menu-link:hover {
    color: var(--text-primary);
    text-decoration: none;
}

.rm-artist-menu-link.active {
    color: var(--accent-secondary);
    border-bottom-color: var(--accent-secondary);
}

/* Content Sections */
.rm-artist-section {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 2.5rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    overflow: hidden;
    background-clip: padding-box;
}

.rm-artist-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 1.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 10px;
}

.rm-artist-title span {
    color: var(--accent-primary);
}

/* Responsive Grid */
.rm-artist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

/* Release/Track Cards */
.rm-artist-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    background-clip: padding-box;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.rm-artist-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(139, 92, 246, 0.25);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35);
}

/* Trigger Button styling */
.rm-artist-track-trigger {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
    outline: none;
    text-decoration: none;
}

.rm-artist-track-trigger:focus {
    outline: none;
}

.rm-artist-card-media {
    position: relative;
    width: 100%;
    padding-top: 100%; /* square ratio */
    overflow: hidden;
    background-clip: padding-box;
    background: linear-gradient(135deg, rgba(20, 20, 30, 0.9), rgba(40, 30, 50, 0.9));
}

.rm-artist-card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.rm-artist-card:hover .rm-artist-card-img {
    transform: scale(1.06);
}

.rm-artist-card-fallback-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6, #ec4899);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    text-align: center;
}

.rm-artist-card-fallback-icon {
    font-size: 2.2rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 0.5rem;
}

/* Play Badge Overlay */
.rm-artist-play-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 46px;
    height: 46px;
    background: rgba(139, 92, 246, 0.95);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
    opacity: 0;
    transition: var(--transition-smooth);
    z-index: 10;
}

.rm-artist-card:hover .rm-artist-play-badge {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    background: var(--accent-secondary);
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.5);
}

.rm-artist-card-body {
    padding: 0.8rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.rm-artist-card-title {
    font-size: 12px !important;
    line-height: 1.35;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Audio Player Widget */
.rm-artist-media-player-wrapper {
    background: rgba(15, 15, 25, 0.9);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    overflow: hidden;
    background-clip: padding-box;
}

.rm-artist-player-container {
    overflow: hidden;
    background-clip: padding-box;
    border-radius: 8px;
}

.rm-artist-player-title {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent-secondary);
    margin-bottom: 10px;
    font-weight: 700;
}

/* Videos Specific adjustments */
.rm-artist-video-media {
    position: relative;
    width: 100%;
    padding-top: 56.25% !important; /* 16:9 ratio */
    overflow: hidden;
    background-clip: padding-box;
    background: #000;
}

/* Links & Networks Section */
.rm-artist-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    justify-content: flex-start;
}

.rm-artist-social-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.rm-artist-social-badge:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.08);
    text-decoration: none;
    color: #ffffff;
}

/* Brand colors */
.rm-artist-social-badge.brand-soundcloud:hover { border-color: #ff5500; box-shadow: 0 0 15px rgba(255, 85, 0, 0.35); }
.rm-artist-social-badge.brand-spotify:hover { border-color: #1ed760; box-shadow: 0 0 15px rgba(30, 215, 96, 0.35); }
.rm-artist-social-badge.brand-youtube:hover { border-color: #ff0000; box-shadow: 0 0 15px rgba(255, 0, 0, 0.35); }
.rm-artist-social-badge.brand-instagram:hover { border-color: #e1306c; box-shadow: 0 0 15px rgba(225, 48, 108, 0.35); }
.rm-artist-social-badge.brand-facebook:hover { border-color: #1877f2; box-shadow: 0 0 15px rgba(24, 119, 242, 0.35); }
.rm-artist-social-badge.brand-tiktok:hover { border-color: #ff0050; box-shadow: 0 0 15px rgba(255, 0, 80, 0.35); }
.rm-artist-social-badge.brand-x:hover { border-color: #ffffff; box-shadow: 0 0 15px rgba(255, 255, 255, 0.25); }
.rm-artist-social-badge.brand-generic:hover { border-color: var(--accent-primary); box-shadow: 0 0 15px rgba(139, 92, 246, 0.35); }

.rm-artist-social-badge span {
    font-size: 1.2rem;
}

/* Contact Card Section */
.rm-artist-contact-card {
    text-align: center;
    padding: 3rem 2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    max-width: 650px;
    margin: 0 auto;
}

.rm-artist-contact-heading {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
}

.rm-artist-contact-text {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 1.8rem;
}

/* Animations */
@keyframes pulseGlow {
    from {
        box-shadow: 0 8px 25px rgba(139, 92, 246, 0.35);
    }
    to {
        box-shadow: 0 8px 35px rgba(236, 72, 153, 0.55);
    }
}

/* Mobile & Responsive Adjustments */
@media (max-width: 991px) {
    .rm-artist-hero {
        min-height: 400px;
        max-height: none;
    }
    .rm-artist-hero-content {
        flex-direction: column;
        align-items: center;
        padding: 2rem;
        justify-content: center;
        text-align: center;
        gap: 1.5rem;
    }
    .rm-artist-avatar-wrap {
        width: 140px;
        height: 140px;
        margin-top: 0;
    }
    .rm-artist-info {
        display: flex;
        flex-direction: column;
        align-items: center;
        min-width: 0;
        width: 100%;
    }
    .rm-artist-name {
        font-size: 2.8rem;
    }
    .rm-artist-stats {
        justify-content: center;
    }
    .rm-artist-actions {
        justify-content: center;
    }
    .rm-artist-section {
        padding: 2rem;
    }
}

@media (max-width: 575px) {
    .rm-artist-hero {
        min-height: 320px;
        border-radius: 0;
        margin-left: -15px;
        margin-right: -15px;
        width: calc(100% + 30px);
        max-height: none;
    }
    .rm-artist-hero-content {
        padding: 1.5rem 1rem;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    .rm-artist-avatar-wrap {
        width: 110px;
        height: 110px;
        margin-top: 0;
    }
    .rm-artist-name {
        font-size: 2.2rem;
    }
    .rm-artist-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 1rem;
    }
    .rm-artist-section {
        padding: 1.5rem;
        border-radius: 12px;
    }
    .rm-artist-menu-link {
        padding: 1rem;
        font-size: 0.9rem;
    }
    .rm-artist-socials {
        justify-content: center;
    }
    .rm-artist-social-badge {
        padding: 10px 18px;
        font-size: 0.9rem;
    }
}

/* Cinema Mode Effect */
body {
    transition: background-color 1.2s ease-in-out, background-image 2.5s ease-in-out 1.5s !important;
}

body.cinema-mode {
    background-color: #000000 !important;
    background-image: none !important;
}
