/* Component imports */
@import "components/player-pk_Yczk.css";
@import "components/loading-0juxgNT.css";

/* Spotify-inspired Dark Theme - Mobile First */
:root {
    --bg-base: #121212;
    --bg-elevated: #181818;
    --bg-highlight: #282828;
    --bg-card: #1a1a1a;
    --bg-card-hover: #282828;
    --primary: #1DB954;
    --primary-dark: #1aa34a;
    --primary-light: #1ed760;
    --text-base: #ffffff;
    --text-subdued: #a7a7a7;
    --text-muted: #6a6a6a;
    --border-color: #333;
    --white: #ffffff;
    --danger: #e91429;
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --shadow: 0 8px 24px rgba(0,0,0,.5);
    --shadow-lg: 0 16px 48px rgba(0,0,0,.5);
    --transition: all 0.2s ease;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 14px;
}

body {
    font-family: 'Circular', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--bg-base);
    color: var(--text-base);
    line-height: 1.6;
    min-height: 100vh;
    padding-bottom: 90px;
}

body.menu-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Container */
.container {
    width: 100%;
    padding: 0 1rem;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 1400px;
        padding: 0 2rem;
    }
}

/* Navbar */
.navbar {
    background: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    gap: 1rem;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-base);
}

.navbar-logo {
    font-size: 1.75rem;
}

.navbar-title {
    display: none;
}

@media (min-width: 768px) {
    .navbar-title {
        display: inline;
    }
    .navbar-brand {
        font-size: 1.5rem;
    }
    .navbar-logo {
        font-size: 2rem;
    }
}

.navbar-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    order: 3;
}

.navbar-toggle span {
    width: 22px;
    height: 2px;
    background: var(--text-base);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.navbar-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.navbar-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.navbar-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
}

@media (min-width: 768px) {
    .navbar-toggle {
        display: none;
    }
}

.navbar-menu {
    position: fixed;
    top: 57px;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: calc(100vh - 57px);
    background: var(--bg-base);
    flex-direction: column;
    padding: 0;
    gap: 0;
    display: none;
    z-index: 999;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.navbar-menu.active {
    display: flex;
    transform: translateX(0);
}

.navbar-menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-color);
}

@media (min-width: 768px) {
    .navbar-menu {
        position: static;
        display: flex !important;
        flex-direction: row;
        background: transparent;
        padding: 0;
        gap: 0.5rem;
        width: auto;
        height: auto;
        transform: none;
        transition: none;
    }
    .navbar-menu::before {
        display: none;
    }
}

.navbar-link {
    color: var(--text-subdued);
    font-weight: 600;
    padding: 1.25rem 1.5rem;
    border-radius: 0;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
    font-size: 1rem;
}

.navbar-link:hover {
    color: var(--text-base);
    background: var(--bg-highlight);
}

.navbar-link.active {
    color: var(--text-base);
    background: var(--bg-highlight);
}

@media (min-width: 768px) {
    .navbar-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
        border-radius: var(--border-radius);
        border-bottom: none;
    }
}

.navbar-search {
    flex: 1;
    max-width: 100%;
    display: flex;
    order: 2;
}

@media (min-width: 768px) {
    .navbar-search {
        max-width: 350px;
        order: 0;
        margin: 0 1rem;
    }
}

.navbar-search-input {
    flex: 1;
    padding: 0.625rem 1rem;
    background: var(--bg-highlight);
    border: none;
    border-radius: 500px;
    color: var(--text-base);
    font-size: 0.875rem;
    transition: var(--transition);
}

.navbar-search-input::placeholder {
    color: var(--text-muted);
}

.navbar-search-input:focus {
    outline: none;
    background: var(--bg-card-hover);
    box-shadow: 0 0 0 2px var(--primary);
}

.navbar-search-btn {
    display: none;
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 150px);
    padding: 1.5rem 0;
}

@media (min-width: 768px) {
    .main-content {
        padding: 2rem 0;
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(180deg, #1DB954 0%, var(--bg-base) 100%);
    padding: 2rem 0 3rem;
    margin: -1.5rem -1rem 1.5rem;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 768px) {
    .hero {
        padding: 3rem 0 4rem;
        margin: -2rem 0 2rem;
        border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
    }
}

.hero-title {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 4rem;
    }
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--text-subdued);
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .hero-subtitle {
        font-size: 1.25rem;
    }
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 500px;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary);
    color: var(--bg-base);
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: scale(1.04);
}

.btn-secondary {
    background: transparent;
    color: var(--text-base);
    border: 1px solid var(--text-subdued);
}

.btn-secondary:hover {
    border-color: var(--text-base);
    transform: scale(1.04);
}

.btn-play {
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: 50%;
    font-size: 1.25rem;
}

@media (min-width: 768px) {
    .btn-play {
        width: 56px;
        height: 56px;
        font-size: 1.5rem;
    }
}

/* Cards */
.card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 1rem;
    transition: var(--transition);
    cursor: pointer;
}

.card:hover {
    background: var(--bg-card-hover);
}

@media (min-width: 768px) {
    .card {
        padding: 1.25rem;
    }
}

.card-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
}

.card-image-rounded {
    border-radius: 50%;
}

.card-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-text {
    color: var(--text-subdued);
    font-size: 0.875rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-body {
    padding: 0;
}

.card-footer {
    padding-top: 1rem;
    margin-top: 1rem;
    border-top: 1px solid var(--border-color);
}

/* Grid - Mobile First */
.grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 640px) {
    .grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }
}

@media (min-width: 768px) {
    .grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1024px) {
    .grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 1.5rem;
    }
}

@media (min-width: 1280px) {
    .grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

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

@media (min-width: 768px) {
    .grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Section */
.section {
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .section {
        margin-bottom: 3rem;
    }
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .section-header {
        margin-bottom: 1.5rem;
    }
}

.section-title {
    font-size: 1.25rem;
    font-weight: 700;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 1.5rem;
    }
}

.section-link {
    color: var(--text-subdued);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: var(--transition);
}

.section-link:hover {
    color: var(--text-base);
}

/* Manager Card */
.manager-card {
    background: var(--bg-elevated);
    border-radius: var(--border-radius);
    padding: 1.25rem;
    border-left: 3px solid var(--primary);
}

.manager-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-base);
    margin-bottom: 0.5rem;
}

.manager-contacts {
    color: var(--text-subdued);
    font-size: 0.9375rem;
    line-height: 1.7;
}

.manager-contacts a {
    color: var(--primary);
    transition: var(--transition);
}

.manager-contacts a:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

/* Promoters Grid */
.promoters-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .promoters-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
}

@media (min-width: 1024px) {
    .promoters-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.promoter-card {
    background: var(--bg-elevated);
    border-radius: var(--border-radius);
    padding: 1.25rem;
    border-left: 3px solid var(--primary);
    transition: var(--transition);
}

.promoter-card:hover {
    background: var(--bg-highlight);
}

.promoter-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.promoter-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.promoter-photo-placeholder {
    background: linear-gradient(135deg, var(--primary) 0%, var(--bg-highlight) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

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

.promoter-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-base);
    margin-bottom: 0.25rem;
}

.promoter-badge {
    display: inline-block;
    font-size: 0.75rem;
    color: var(--primary);
    background: rgba(29, 185, 84, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.promoter-description {
    color: var(--text-subdued);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.promoter-contacts {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.6;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
}

/* Page Header */
.page-header {
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .page-header {
        display: flex;
        align-items: flex-end;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }
}

.page-header-image {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .page-header-image {
        width: 200px;
        height: 200px;
        margin-bottom: 0;
    }
}

@media (min-width: 1024px) {
    .page-header-image {
        width: 232px;
        height: 232px;
    }
}

.page-header-content {
    flex: 1;
}

.page-header-type {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.page-header-title {
    font-size: 2rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .page-header-title {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    .page-header-title {
        font-size: 4rem;
    }
}

.page-header-meta {
    color: var(--text-subdued);
    font-size: 0.875rem;
}

.page-header-meta a {
    color: var(--text-base);
    font-weight: 600;
}

.page-header-meta a:hover {
    text-decoration: underline;
}

/* Song List */
.song-list {
    display: flex;
    flex-direction: column;
}

.song-item {
    display: grid;
    grid-template-columns: 16px 1fr auto;
    gap: 1rem;
    padding: 0.5rem;
    border-radius: var(--border-radius);
    align-items: center;
    transition: var(--transition);
}

.song-item:hover {
    background: var(--bg-highlight);
}

@media (min-width: 768px) {
    .song-item {
        grid-template-columns: 32px 6fr 4fr 2fr minmax(100px, 1fr);
        padding: 0.5rem 1rem;
    }
}

.song-number {
    color: var(--text-subdued);
    font-size: 0.875rem;
    text-align: center;
}

.song-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.song-cover {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
}

.song-details {
    min-width: 0;
}

.song-title {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.song-artist {
    color: var(--text-subdued);
    font-size: 0.875rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.song-album,
.song-date,
.song-plays {
    display: none;
    color: var(--text-subdued);
    font-size: 0.875rem;
}

@media (min-width: 768px) {
    .song-album,
    .song-plays {
        display: block;
    }
}

.song-duration {
    color: var(--text-subdued);
    font-size: 0.875rem;
    text-align: right;
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 500px;
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--bg-highlight);
    color: var(--text-base);
}

.badge-primary {
    background: rgba(29, 185, 84, 0.2);
    color: var(--primary);
}

/* Alert */
.alert {
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.alert-success {
    background: rgba(29, 185, 84, 0.2);
    color: var(--primary-light);
}

.alert-error {
    background: rgba(233, 20, 41, 0.2);
    color: #ff6b6b;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.empty-state-text {
    color: var(--text-subdued);
}

/* Footer */
.footer {
    background: var(--bg-base);
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    margin-top: 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-content {
        grid-template-columns: 2fr repeat(3, 1fr);
    }
}

.footer-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-logo {
    font-size: 1.5rem;
}

.footer-heading {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-subdued);
    margin-bottom: 1rem;
}

.footer-text {
    color: var(--text-subdued);
    font-size: 0.875rem;
    line-height: 1.6;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-subdued);
    font-size: 0.875rem;
    transition: var(--transition);
}

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

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.75rem;
}

/* Utilities */
.text-primary { color: var(--primary); }
.text-subdued { color: var(--text-subdued); }
.text-center { text-align: center; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
