/* ============================================
   BUTTONS
   ============================================ */

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.btn:disabled { 
    opacity: 0.5; 
    cursor: not-allowed; 
}

.btn-primary { background: #0f3460; color: white; }
.btn-success { background: #28a745; color: white; }
.btn-danger { background: #dc3545; color: white; }
.btn-secondary { background: #6c757d; color: white; }
.btn-info { background: #17a2b8; color: white; }
.btn-warning { background: #ffc107; color: #000; }

.theme-toggle-btn {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9em;
    transition: all 0.3s;
    margin-right: 10px;
}

.theme-toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 85, 104, 0.4);
}

.clear-filters-btn {
    background: var(--card-border);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 600;
    transition: all 0.3s ease;
}

.clear-filters-btn:hover {
    background: var(--warning);
    color: white;
    border-color: var(--warning);
    transform: translateY(-2px);
}

/* ============================================
   BADGES & TAGS
   ============================================ */

.status-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.75em;
    font-weight: 600;
    flex-shrink: 0;
    text-transform: uppercase;
}

.status-active { 
    background: #d4edda; 
    color: #155724; 
}

.status-inactive {
    background: rgba(108, 117, 125, 0.15);
    color: #6c757d;
    border: 1px solid rgba(108, 117, 125, 0.3);
}

.status-live {
    background: var(--danger);
    color: white;
    animation: pulse 2s infinite;
}

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #dc3545;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    animation: pulse 2s infinite;
    margin-right: 8px;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    animation: blink 1s infinite;
}

.live-count {
    background: var(--danger);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 600;
    animation: pulse 2s infinite;
    border: none;
    transition: all 0.3s ease;
}

.live-count:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.4);
}

#djFilterPill {
    background: var(--success);
    animation: none;
    white-space: nowrap;
}

#djFilterPill:not(.active) {
    background: #9146ff;
    opacity: 1;
}

#djFilterPill:not(.active):hover {
    background: #772ce8;
}

.new-badge {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: 700;
    margin-left: 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    animation: pulse 2s infinite;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

/* ============================================
   GENRE & REGION TAGS
   ============================================ */

.genre-tag {
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    color: #1a237e;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    margin: 2px;
    display: inline-block;
}

.genre-tag.genre-playing {
    background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%);
    color: white;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(76, 175, 80, 0.4);
    border: 1px solid #4caf50;
}

.genre-tag.genre-not-playing {
    opacity: 0.65;
    background: rgba(158, 158, 158, 0.25);
    color: #adb5bd;
    border: 1px solid rgba(158, 158, 158, 0.3);
}

.region-tag {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8em;
    margin: 2px;
    display: inline-block;
    font-weight: 600;
    border: 1px solid;
}

.region-tag.region-NA {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border-color: #28a745;
}

.region-tag.region-EU {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    color: #e65100;
    border-color: #ff9800;
}

.region-tag.region-OCE {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
    color: white;
}

.region-tag.region-JP {
    background: linear-gradient(135deg, #cfe2ff 0%, #9ec5fe 100%);
    color: #084298;
    border-color: #0d6efd;
}

/* ============================================
   CARDS (DJ Directory)
   ============================================ */

.dj-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    width: 100%;
}

.dj-grid .dj-card {
    width: auto;
    max-width: 100%;
}

.dj-card {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 20px;
    transition: all 0.3s ease;
    height: 280px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px var(--shadow);
}

.dj-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px var(--shadow);
    border-color: var(--secondary);
}

.dj-card.new-dj {
    border: 2px solid var(--info);
    box-shadow: 0 4px 16px rgba(23, 162, 184, 0.3);
    position: relative;
}

.dj-card.new-dj::before {
    content: '🆕';
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 24px;
    animation: bounce 1s infinite;
    z-index: 10;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    flex-shrink: 0;
}

.card-header .dj-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    font-weight: bold;
    color: white;
}

.dj-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid #dee2e6;
}

.dj-avatar:hover {
    transform: scale(1.1);
    border-color: #0f3460;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

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

.dj-name {
    font-size: 1.2em;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dj-ign {
    color: var(--text-secondary);
    font-size: 0.85em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dj-name-link {
    color: inherit;
    text-decoration: none;
    font-weight: 700;
}

.dj-name-link:hover {
    color: #0f3460;
    text-decoration: underline;
}

.dj-name-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.card-content {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 12px;
    padding-right: 5px;
}

.card-content::-webkit-scrollbar {
    width: 4px;
}

.card-content::-webkit-scrollbar-track {
    background: var(--card-border);
    border-radius: 10px;
}

.card-content::-webkit-scrollbar-thumb {
    background: var(--text-secondary);
    border-radius: 10px;
}

/* ============================================
   LIVE CARDS - UPDATED FOR 4 COLUMNS
   ============================================ */

.live-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    max-width: 100%;
}

/* Force 4 columns on large screens */
@media (min-width: 1600px) {
    .live-cards-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* 3 columns on medium-large screens */
@media (max-width: 1599px) and (min-width: 1200px) {
    .live-cards-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 2 columns on tablets */
@media (max-width: 1199px) and (min-width: 768px) {
    .live-cards-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 1 column on mobile */
@media (max-width: 767px) {
    .live-cards-container {
        grid-template-columns: 1fr;
    }
}

/* Update the 2000px rule */
@media (min-width: 2000px) {
    .live-cards-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

.live-cards-container::-webkit-scrollbar {
    height: 8px;
}

.live-cards-container::-webkit-scrollbar-track {
    background: var(--card-border);
    border-radius: 10px;
}

.live-cards-container::-webkit-scrollbar-thumb {
    background: var(--danger);
    border-radius: 10px;
}

.live-card {
    min-width: 320px;
    background: var(--card-bg);
    border: 2px solid var(--danger);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px var(--shadow);
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 420px;
}

.live-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px var(--shadow);
}

.live-card.new-dj {
    border-color: #ff6b6b;
    box-shadow: 0 4px 16px rgba(255, 107, 107, 0.3);
}

/* Updated live indicator - remove "LIVE" text, just dot + eye + count */
.live-indicator-overlay {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(220, 53, 69, 0.95);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Pulsing red dot */
.live-indicator-overlay::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #ffffff;
    border-radius: 50%;
    animation: blink 1s infinite;
}

/* Updated card content - flex layout */
.live-card-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 12px;
}

.live-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.stream-thumbnail {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    flex-shrink: 0;
}

.stream-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Spacer to push socials to bottom */
.live-card-spacer {
    flex: 1;
    min-height: 10px;
}

/* Genre tags in live cards */
.live-card .genre-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.live-card .genre-tag {
    background: var(--success);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: 600;
}

/* Favorite button positioning */
.live-card .favorite-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.live-card .favorite-btn:hover {
    transform: scale(1.15);
    background: rgba(0, 0, 0, 0.8);
}

.live-card .favorite-btn.favorited {
    background: rgba(255, 193, 7, 0.9);
    border-color: #ffc107;
}

/* Lifestream button in live cards */
.live-card .lifestream-btn {
    background: rgba(102, 126, 234, 0.1);
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.live-card .lifestream-btn:hover {
    background: rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.5);
    transform: scale(1.1);
}

/* ============================================
   SOCIAL LINKS
   ============================================ */

.social-links {
    display: flex;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
    flex-shrink: 0;
}

/* Social links stick to bottom in live cards */
.live-card .social-links {
    display: flex;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
    flex-shrink: 0;
    margin-top: auto;
    flex-wrap: wrap;
}

.social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--card-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1em;
}

.social-link:hover {
    background: var(--secondary);
    color: white;
    transform: translateY(-3px);
}

.socials-cell {
    padding: 8px !important;
    line-height: 1.8;
    vertical-align: top;
}

.social-item {
    padding: 3px 0;
    font-size: 13px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
}

.social-item a {
    color: #0066cc;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.social-item a:hover {
    color: #0052a3;
    text-decoration: underline;
    transform: translateX(2px);
}

/* ============================================
   FILTERS
   ============================================ */

.filters-section {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 0 7px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px var(--shadow);
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group label {
    color: var(--text-primary);
    font-size: 0.95em;
    font-weight: 600;
}

.filter-group select {
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 0.95em;
    background: var(--input-bg);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.filter-group select:focus {
    outline: none;
    border-color: var(--secondary);
}

select {
    padding: 10px 15px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 14px;
    width: 100%;
}

/* ============================================
   FORMS & MODALS
   ============================================ */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active { 
    display: flex; 
}

.modal-content {
    background: white;
    color: var(--text-primary);
    border-radius: 16px;
    padding: 35px;
    max-width: 800px;
    width: 90%;
    min-width: 300px;
    max-height: 90vh;
    overflow-y: auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 0 20px 0;
    border-bottom: 2px solid #dee2e6;
    margin-bottom: 20px;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5em;
    color: #1a1a2e;
    display: flex;
    align-items: center;
    gap: 8px;
}

.close-btn {
    background: none;
    border: none;
    font-size: 32px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    border-radius: 4px;
    line-height: 1;
}

.close-btn:hover {
    color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
    transform: scale(1.1);
}

.form-group { 
    margin-bottom: 20px; 
}

.form-group label { 
    display: block; 
    margin-bottom: 8px; 
    font-weight: 600; 
}

.form-group input, 
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
}

.genre-selector {
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    background: #f8f9fa;
}

.genre-list {
    max-height: 300px;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px;
    padding: 10px;
    background: white;
    border-radius: 6px;
    margin-top: 10px;
}

.genre-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
}

.genre-checkbox input { 
    width: 18px; 
    height: 18px; 
    cursor: pointer; 
}

.genre-checkbox label { 
    cursor: pointer; 
    margin: 0; 
}

.selected-genres {
    margin-top: 10px;
    padding: 10px;
    background: white;
    border-radius: 6px;
}

/* ============================================
   TABS
   ============================================ */

.tab-buttons {
    display: flex;
    background: var(--card-border);
    padding: 0;
    gap: 0;
    border-radius: 15px 15px 0 0;
    margin: -30px -30px 20px -30px;
    overflow: hidden;
}

.tab-btn {
    padding: 15px 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 0.95em;
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    flex: 1;
    text-align: center;
}

.tab-btn:hover {
    color: var(--text-primary);
    background: rgba(102, 126, 234, 0.1);
}

.tab-btn.active {
    color: var(--primary);
    background: var(--card-bg);
    border-bottom-color: var(--primary);
}

.main-tab-btn.active {
    color: var(--primary) !important;
    background: var(--card-bg) !important;
    border-bottom-color: var(--primary) !important;
}

.main-tab-btn:hover {
    color: var(--text-primary) !important;
    background: rgba(102, 126, 234, 0.1) !important;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.tab-content h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 20px;
}

.tab-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* ============================================
   PAGINATION
   ============================================ */

.pagination-container {
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    background: #f8f9fa;
    border-top: 1px solid #ddd;
}

.pagination-info {
    font-size: 14px;
    color: #6c757d;
}

.pagination {
    display: flex;
    gap: 5px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.page-btn {
    padding: 8px 12px;
    border: 2px solid #dee2e6;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
    min-width: 40px;
    text-align: center;
}

.page-btn:hover:not(:disabled) {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.page-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-ellipsis {
    padding: 8px 4px;
    color: #6c757d;
}

/* ============================================
   VENUE MODAL & BADGES
   ============================================ */

.venue-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.venue-badge:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.05);
}

.venue-copy-btn {
    background: rgba(102, 126, 234, 0.1);
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s;
    margin-left: auto;
}

.venue-copy-btn:hover {
    background: rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.5);
    transform: scale(1.1);
}

/* ============================================
   LOADING SKELETONS
   ============================================ */

.skeleton-card {
    background: var(--card-bg);
    border: 2px solid var(--card-border);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 2px 8px var(--shadow);
    height: 320px;
    display: flex;
    flex-direction: column;
}

.skeleton-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.skeleton-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(
        90deg,
        var(--card-border) 25%,
        var(--border-color) 50%,
        var(--card-border) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.skeleton-line {
    height: 16px;
    background: linear-gradient(
        90deg,
        var(--card-border) 25%,
        var(--border-color) 50%,
        var(--card-border) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
    margin: 8px 0;
}

.skeleton-line.short { width: 60%; }
.skeleton-line.medium { width: 80%; }

.skeleton-badges {
    display: flex;
    gap: 8px;
    margin: 12px 0;
}

.skeleton-badge {
    width: 80px;
    height: 28px;
    background: linear-gradient(
        90deg,
        var(--card-border) 25%,
        var(--border-color) 50%,
        var(--card-border) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 14px;
}

.skeleton-badge.small { width: 50px; }

.skeleton-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 12px 0;
}

.skeleton-tag {
    width: 60px;
    height: 24px;
    background: linear-gradient(
        90deg,
        var(--card-border) 25%,
        var(--border-color) 50%,
        var(--card-border) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 6px;
}

.skeleton-socials {
    display: flex;
    gap: 8px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.skeleton-social {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(
        90deg,
        var(--card-border) 25%,
        var(--border-color) 50%,
        var(--card-border) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* ============================================
   DIFF VIEW (Edit Suggestions)
   ============================================ */

.diff-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 15px 0;
    padding: 15px;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 8px;
}

.diff-column {
    padding: 12px;
    border-radius: 6px;
}

.diff-column.old {
    background: rgba(220, 53, 69, 0.1);
    border: 2px solid rgba(220, 53, 69, 0.3);
}

.diff-column.new {
    background: rgba(40, 167, 69, 0.1);
    border: 2px solid rgba(40, 167, 69, 0.3);
}

.diff-column h4 {
    margin: 0 0 10px 0;
    font-size: 0.9em;
    text-transform: uppercase;
    font-weight: 700;
}

.diff-column.old h4 {
    color: var(--danger);
}

.diff-column.new h4 {
    color: var(--success);
}

.diff-field {
    margin: 8px 0;
    font-size: 0.9em;
}

.diff-field strong {
    display: block;
    margin-bottom: 4px;
    color: var(--text-primary);
}

/* ============================================
   MISC
   ============================================ */

.last-seen {
    font-size: 0.75em;
    margin-top: -4px;
    margin-bottom: 8px;
    font-weight: 500;
}

.last-seen-live { color: #dc3545; }
.last-seen-recent { color: #28a745; }
.last-seen-medium { color: #ffc107; }
.last-seen-old { color: #6c757d; }

.release-note {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}

.release-note:last-child {
    border-bottom: none;
}

.release-note h4 {
    color: #0f3460;
    margin-bottom: 15px;
    font-size: 18px;
}

.release-note ul {
    margin-left: 20px;
    line-height: 1.8;
}

.release-note li {
    margin-bottom: 8px;
}

.release-note strong {
    color: #0f3460;
}

kbd {
    background: #f4f4f4;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 2px 6px;
    font-family: monospace;
    font-size: 0.9em;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* ============================================
   TWITCH EMBED
   ============================================ */

#twitchEmbedContainer {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#twitchEmbed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
}

/* Mobile: Stack stream and chat vertically */
@media (max-width: 768px) {
    #twitchEmbed {
        padding-bottom: 100%;
    }
}

/* ============================================
   CURRENTLY PLAYING CARD GLOW
   ============================================ */

.live-card.currently-playing {
    border-color: #9146ff !important;
    box-shadow: 0 0 20px rgba(145, 70, 255, 0.6), 0 4px 12px var(--shadow) !important;
    animation: pulse-purple 2s infinite;
}

@keyframes pulse-purple {
    0%, 100% { 
        box-shadow: 0 0 20px rgba(145, 70, 255, 0.6), 0 4px 12px var(--shadow);
    }
    50% { 
        box-shadow: 0 0 30px rgba(145, 70, 255, 0.9), 0 8px 24px var(--shadow);
    }
}

/* Dark mode */
body.dark-mode .live-card.currently-playing {
    box-shadow: 0 0 25px rgba(145, 70, 255, 0.8), 0 4px 12px rgba(0, 0, 0, 0.5) !important;
}

body.dark-mode .live-card.currently-playing {
    animation: pulse-purple-dark 2s infinite;
}

@keyframes pulse-purple-dark {
    0%, 100% { 
        box-shadow: 0 0 25px rgba(145, 70, 255, 0.8), 0 4px 12px rgba(0, 0, 0, 0.5);
    }
    50% { 
        box-shadow: 0 0 35px rgba(145, 70, 255, 1.0), 0 8px 24px rgba(0, 0, 0, 0.5);
    }
}

/* ============================================
   HEADER BUTTON IMPROVEMENTS
   ============================================ */

.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-btn {
    padding: 10px 16px;
    font-size: 0.9em;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 40px;
}

/* Ghost button style for secondary actions */
.header-btn.ghost {
    background: transparent !important;
    border: 2px solid var(--border-color);
    color: var(--text-primary);
}

.header-btn.ghost:hover {
    background: var(--card-bg) !important;
    border-color: var(--secondary);
}

/* Primary action (sign-in) */
.header-btn.primary {
    background: var(--secondary);
    color: white;
    border: 2px solid var(--secondary);
}

.header-btn.primary:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* User profile button (when signed in) */
.header-btn.user-profile {
    background: var(--secondary);
    color: white;
    padding: 6px 12px 6px 6px;
}

.header-btn.user-profile:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

/* Twitch purple for sign-in button */
.header-btn.twitch {
    background: #9146FF;
    color: white;
    border: 2px solid #9146FF;
}

.header-btn.twitch:hover {
    background: #772CE8;
    border-color: #772CE8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(145, 70, 255, 0.4);
}

/* User avatar button (compact) */
.header-btn.user-avatar {
    background: #9146FF;
    color: white;
    padding: 4px;
    border: 2px solid #9146FF;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-btn.user-avatar:hover {
    background: #772CE8;
    border-color: #772CE8;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(145, 70, 255, 0.4);
}

.header-btn.user-avatar img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

/* ============================================
   STREAM FILTER TOGGLE SWITCH (COMPACT)
   ============================================ */

.stream-filter-container {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--card-border);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 6px 12px;
    height: 36px; /* Match other buttons */
}

.stream-filter-label {
    font-size: 0.85em;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}

.stream-filter-label .icon {
    font-size: 1em;
    display: flex;
    align-items: center;
}

.stream-filter-label .count {
    font-weight: 700;
    color: var(--text-primary);
}

/* Toggle Switch (Smaller) */
.toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
    background: #6c757d;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.toggle-switch.active {
    background: var(--success);
}

.toggle-switch::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-switch.active::before {
    transform: translateX(20px);
}

.toggle-switch:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

/* Icons inside toggle (smaller) */
.toggle-switch::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 6px;
    transform: translateY(-50%);
    font-size: 10px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    font-family: 'Font Awesome 6 Brands';
    font-weight: 400;
}

.toggle-switch::after {
    content: '\f1e8'; /* Twitch logo */
}

.toggle-switch.active::after {
    content: '🎵';
    font-family: inherit;
    left: auto;
    right: 6px;
    opacity: 1;
}

/* ============================================
   OPEN VENUES SIDEBAR
   ============================================ */

.open-venues-trigger {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--card-border);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 6px 12px;
    height: 36px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85em;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
}

.open-venues-trigger:hover {
    background: var(--card-bg);
    border-color: var(--secondary);
    transform: translateY(-2px);
}

.open-venues-trigger .icon {
    font-size: 1em;
}

.open-venues-trigger .count {
    font-weight: 700;
}

.open-venues-sidebar {
    position: fixed;
    top: 0;
    right: -320px; /* Hidden by default */
    width: 320px;
    height: 100vh;
    background: var(--card-bg);
    border-left: 2px solid var(--border-color);
    box-shadow: -4px 0 12px var(--shadow);
    transition: right 0.3s ease;
    z-index: 999;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.open-venues-sidebar.open {
    right: 0;
}

.open-venues-sidebar-header {
    padding: 20px;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.open-venues-sidebar-header h3 {
    margin: 0;
    font-size: 1.2em;
    color: var(--text-primary);
}

.open-venues-sidebar-close {
    background: transparent;
    border: none;
    font-size: 24px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px 8px;
    transition: all 0.3s;
    border-radius: 4px;
}

.open-venues-sidebar-close:hover {
    background: var(--card-border);
    color: var(--text-primary);
}

.open-venues-sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.open-venues-sidebar-content::-webkit-scrollbar {
    width: 6px;
}

.open-venues-sidebar-content::-webkit-scrollbar-track {
    background: var(--card-border);
}

.open-venues-sidebar-content::-webkit-scrollbar-thumb {
    background: var(--text-secondary);
    border-radius: 3px;
}

.venue-sidebar-card {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.venue-sidebar-card:hover {
    border-color: var(--secondary);
    transform: translateX(-4px);
    box-shadow: 0 4px 12px var(--shadow);
}

.venue-sidebar-card.matched {
    border-color: var(--success);
    background: rgba(40, 167, 69, 0.05);
}

.venue-sidebar-card.unmatched {
    border-color: var(--warning);
    background: rgba(255, 193, 7, 0.05);
}

.venue-sidebar-name {
    font-weight: 700;
    font-size: 1em;
    color: var(--text-primary);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.venue-sidebar-address {
    font-size: 0.85em;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.venue-sidebar-djs {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.venue-sidebar-dj {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    background: rgba(220, 53, 69, 0.1);
    border-radius: 6px;
    font-size: 0.85em;
}

.venue-sidebar-dj-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7em;
    font-weight: bold;
    color: white;
    flex-shrink: 0;
}

.venue-sidebar-dj-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.venue-sidebar-dj-name {
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
}

.venue-sidebar-footer {
    padding: 15px 20px;
    border-top: 2px solid var(--border-color);
    flex-shrink: 0;
}

.venue-sidebar-footer button {
    width: 100%;
    padding: 12px;
    background: var(--secondary);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.venue-sidebar-footer button:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

/* Overlay for mobile */
.open-venues-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.open-venues-overlay.open {
    opacity: 1;
    pointer-events: all;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .open-venues-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .open-venues-sidebar.open {
        right: 0;
    }
}

/* ============================================
   COLLAPSIBLE FILTERS
   ============================================ */

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.filters-header:hover {
    background: var(--card-border);
}

.filters-content {
    padding: 0 20px 20px 20px;
    animation: slideDown 0.3s ease;
}

.filters-content.collapsed {
    display: none !important;
}

#filtersToggleIcon {
    transition: transform 0.3s ease;
}

#filtersToggleIcon.expanded {
    transform: rotate(180deg);
}

/* Active filters count badge */
#activeFiltersCount::before {
    content: '(';
}

#activeFiltersCount::after {
    content: ')';
}

#activeFiltersCount:empty::before,
#activeFiltersCount:empty::after {
    content: '';
}

/* ============================================
   3-WAY DIRECTORY TOGGLE
   ============================================ */

.directory-toggle-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin: 0 7px 20px 7px;
}

.directory-toggle {
    display: inline-flex;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 15px;
    padding: 4px;
    gap: 4px;
    overflow: hidden;
    box-shadow: 0 2px 8px var(--shadow);
}

.directory-toggle-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 11px;
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    background: transparent;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.directory-toggle-btn:hover {
    background: rgba(102, 126, 234, 0.1);
    color: var(--text-primary);
}

.directory-toggle-btn.active {
    background: var(--secondary);
    color: white;
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
}

.directory-toggle-btn .count {
    font-size: 0.9em;
    opacity: 0.9;
}

/* View toggle (Card/Table) */
.view-toggle-btn {
    background: var(--secondary);
    color: white;
    border: 2px solid var(--secondary);
    border-radius: 10px;
    padding: 10px 16px;
    font-size: 0.9em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.view-toggle-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* Mobile: Icon-only toggle */
@media (max-width: 768px) {
    .directory-toggle-btn {
        padding: 10px 12px;
        font-size: 1.2em;
    }
    
    .directory-toggle-btn .label {
        display: none; /* Hide text on mobile */
    }
    
    .directory-toggle-btn .count {
        font-size: 0.75em;
    }
}

/* Admin Dropdown Menu */
.admin-dropdown-item {
    width: 100%;
    text-align: left;
    padding: 12px 16px;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 0.95em;
    font-weight: 500;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.admin-dropdown-item:hover {
    background: rgba(102, 126, 234, 0.15);
    color: var(--secondary);
    transform: translateX(4px);
}

.admin-dropdown-item:active {
    background: rgba(102, 126, 234, 0.25);
}

/* ============================================
   RELEASE NOTES - MODERN CARD STYLE
   ============================================ */

.release-version {
    margin-bottom: 40px;
    border: 2px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    background: var(--card-bg);
}

.version-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.version-header h3 {
    margin: 0;
    font-size: 1.5em;
}

.version-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.feature-category {
    padding: 25px 30px;
    border-bottom: 1px solid var(--border-color);
}

.feature-category:last-child {
    border-bottom: none;
}

.feature-category h4 {
    margin: 0 0 20px 0;
    color: var(--text-primary);
    font-size: 1.2em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
}

.feature-card {
    background: rgba(102, 126, 234, 0.05);
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    gap: 15px;
    transition: all 0.2s;
}

.feature-card:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.feature-icon {
    font-size: 2em;
    flex-shrink: 0;
}

.feature-content {
    flex: 1;
}

.feature-content strong {
    display: block;
    color: var(--text-primary);
    margin-bottom: 5px;
    font-size: 1.05em;
}

.feature-content p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9em;
    line-height: 1.4;
}

.feature-tag {
    display: inline-block;
    background: var(--secondary);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75em;
    font-weight: 600;
    margin-top: 8px;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature-item {
    display: flex;
    gap: 12px;
    align-items: start;
    padding: 12px;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 8px;
}

.feature-bullet {
    font-size: 1.3em;
    flex-shrink: 0;
}

.feature-item strong {
    display: block;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.feature-item p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9em;
}

.technical-details {
    padding: 20px 30px;
    background: rgba(0, 0, 0, 0.02);
}

.technical-details summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--text-primary);
    padding: 10px;
    border-radius: 8px;
    transition: background 0.2s;
}

.technical-details summary:hover {
    background: rgba(102, 126, 234, 0.1);
}

.technical-details ul {
    margin-top: 15px;
    padding-left: 20px;
}

.technical-details li {
    color: var(--text-secondary);
    margin-bottom: 8px;
    line-height: 1.5;
}

/* Dark mode adjustments */
.dark-mode .feature-card {
    background: rgba(102, 126, 234, 0.08);
}

.dark-mode .feature-item {
    background: rgba(255, 255, 255, 0.03);
}

.dark-mode .technical-details {
    background: rgba(255, 255, 255, 0.02);
}

/* ============================================
   USER AVATAR BUTTON
   ============================================ */

.header-btn.user-avatar {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--secondary);
    transition: all 0.3s;
}

.header-btn.user-avatar:hover {
    transform: scale(1.1);
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(102, 126, 234, 0.5);
}

.header-btn.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Settings Modal Radio Button Styling */
#settingsModal input[type="radio"]:checked + div,
#settingsModal input[type="radio"]:checked ~ span {
    color: var(--secondary);
}

#settingsModal label:has(input:checked) {
    border-color: var(--secondary) !important;
    background: rgba(102, 126, 234, 0.05);
}