/* mobile.css - Compact Light Theme */

:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-hover: #e9ecef;
    --text-primary: #212529;
    --text-secondary: #495057;
    --text-muted: #868e96;
    --border-color: #dee2e6;
    --accent-blue: #228be6;
    --accent-green: #40c057;
    --accent-orange: #fd7e14;
    --accent-red: #fa5252;
    --accent-purple: #7950f2;
    --accent-pink: #e64980;
    --accent-teal: #12b886;
    --shadow: 0 1px 3px rgba(0,0,0,0.08);
    --transition: 0.1s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Source Sans Pro', -apple-system, sans-serif;
    font-size: 13px;
    line-height: 1.3;
    color: var(--text-primary);
    background: 
        radial-gradient(ellipse at 0% 0%, rgba(103, 126, 234, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 100% 100%, rgba(18, 184, 134, 0.05) 0%, transparent 50%),
        linear-gradient(180deg, #f8fafc 0%, #eef2f7 50%, #dce3eb 100%);
    height: 100vh;
    overflow: hidden;
}

body.guide-page { overflow: auto; }

/* Header */
header {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    padding: 0.25rem 0.4rem;
    min-height: 44px;
    z-index: 10;
}

.header-content {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping */
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 0.3rem;
}

.title-group {
    flex: 1;
    min-width: 0;
}

.subtitle-stats {
    font-size: 0.5rem;
    color: var(--text-muted);
    margin-top: 0.1rem;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.subtitle-stats .separator:nth-child(n+3) {
    display: none;
}

.subtitle-stats span:nth-child(n+4) {
    display: none; /* Hide extra info on mobile */
}

.logo-title-group {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    flex: 1;
}

.site-logo-text {
    font-family: 'Bungee', sans-serif;
    font-size: 1.2rem;
    background: linear-gradient(135deg, #fa5252, #fd7e14);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.title-group { display: none; }
header h1, header p { display: none; }

.xotel-link { color: var(--accent-blue); text-decoration: none; }

.header-buttons {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

/* Buttons */
.header-btn {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.3rem;
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 36px;
    min-width: 36px;
    text-decoration: none;
}

.header-btn.add-band { background: var(--accent-green); border-color: var(--accent-green); color: #fff; }
.header-btn.chart-btn { background: #FFD700; border-color: #FFD700; color: #333; }
.header-btn.tour-btn { background: linear-gradient(135deg, #FFD700, #FF8C00); border-color: #FFD700; color: #1a1a1a; }
.header-btn.toggle-filters-btn { background: var(--accent-blue); border-color: var(--accent-blue); color: #fff; }
.header-btn.request-change { background: var(--accent-purple, #9b59b6); border-color: var(--accent-purple, #9b59b6); color: #fff; }
.header-btn.master-edit, .header-btn.copy-data { display: none; }
.header-btn i { font-size: 0.85rem; }

/* Hide button text on mobile - show icons only */
.header-btn {
    font-size: 0;
    gap: 0;
}
.header-btn i {
    font-size: 1rem;
}

/* Main */
main {
    padding: 0;
    height: calc(100vh - 44px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

body.guide-page main { padding: 0.4rem; height: auto; overflow: auto; }

/* Meta strip (ex-footer info) */
.meta-strip {
    font-size: 0.58rem;
    color: var(--text-muted);
    opacity: 0.75;
    padding: 0.15rem 0.4rem;
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    flex-shrink: 0;
    justify-content: center;
    background: transparent;
}

.meta-strip span { white-space: nowrap; }
.meta-strip a { color: var(--accent-blue); text-decoration: none; }

/* Controls */
.controls {
    display: none;
    flex-direction: column;
    gap: 0.3rem;
    width: 100%;
    background: var(--bg-primary);
    padding: 0.4rem;
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 44px;
    left: 0;
    right: 0;
    z-index: 100;
    max-height: calc(100vh - 44px);
    overflow-y: auto;
}

.controls.active { display: flex; }
.desktop-only { display: none; }

#search-name {
    font-size: 0.8rem;
    padding: 0.4rem;
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    color: var(--text-primary);
    height: 38px;
    width: 100%;
}

#search-name:focus { outline: none; border-color: var(--accent-blue); }
#search-name::placeholder { color: var(--text-muted); }

/* Select2 */
.select2-container { width: 100% !important; min-height: 38px; }

.select2-selection--single {
    border: 1px solid var(--border-color) !important;
    background: var(--bg-primary) !important;
    height: 38px !important;
    min-height: 38px !important;
    display: flex !important;
    align-items: center !important;
    padding: 0 0.4rem !important;
    border-radius: 0 !important;
}

.select2-selection__rendered {
    font-size: 0.8rem !important;
    color: var(--text-primary) !important;
    line-height: 36px !important;
    padding-right: 20px !important;
}

.select2-selection__placeholder { color: var(--text-muted) !important; }
.select2-selection__arrow { height: 36px !important; width: 20px !important; }
.select2-selection__arrow b { border-color: var(--text-muted) transparent transparent transparent !important; }

.select2-dropdown {
    border: 1px solid var(--border-color) !important;
    background: var(--bg-primary) !important;
    border-radius: 0 !important;
    z-index: 101;
}

.select2-search__field {
    font-size: 0.8rem !important;
    border: 1px solid var(--border-color) !important;
    padding: 0.4rem !important;
    height: 38px !important;
    border-radius: 0 !important;
}

.select2-results__option {
    font-size: 0.8rem;
    padding: 0.4rem;
    min-height: 38px;
    display: flex;
    align-items: center;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background: var(--accent-blue) !important;
    color: #fff !important;
}

.clear-filters-btn {
    font-size: 0.8rem;
    color: #fff;
    background: var(--accent-red);
    border: none;
    cursor: pointer;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 101;
}

/* Table */
.table-wrapper {
    flex: 1;
    overflow: hidden;
    padding: 0;
    position: relative;
    display: flex;
    flex-direction: column;
}

.table-scroll-container {
    flex: 1;
    overflow-y: auto;
    width: 100%;
}

/* Scroll shadow overlays */
.scroll-shadow-top,
.scroll-shadow-bottom {
    position: absolute;
    left: 0;
    right: 4px;
    height: 20px;
    pointer-events: none;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.scroll-shadow-top {
    top: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, transparent 100%);
}

.scroll-shadow-bottom {
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.3) 0%, transparent 100%);
}

.scroll-shadow-top.visible,
.scroll-shadow-bottom.visible {
    opacity: 1;
}

.table-scroll-container::-webkit-scrollbar { width: 4px; }
.table-scroll-container::-webkit-scrollbar-track { background: var(--bg-secondary); }
.table-scroll-container::-webkit-scrollbar-thumb { background: var(--border-color); }

table { width: 100%; border-collapse: collapse; table-layout: fixed; }
thead { display: none; }

tr {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    padding: 0.2rem 0.35rem;
    min-height: 32px;
    gap: 0.25rem;
    animation: fadeInUp 0.3s ease forwards;
    opacity: 0;
}

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

tr:nth-child(1) { animation-delay: 0.02s; }
tr:nth-child(2) { animation-delay: 0.04s; }
tr:nth-child(3) { animation-delay: 0.06s; }
tr:nth-child(4) { animation-delay: 0.08s; }
tr:nth-child(5) { animation-delay: 0.1s; }
tr:nth-child(n+6) { animation-delay: 0.12s; }

tr:nth-child(even) { background: var(--bg-secondary); }
tr:active { 
    background: var(--bg-hover);
    transform: scale(0.99);
}

td {
    display: flex;
    align-items: center;
    padding: 0 0.2rem;
    border: none;
    font-size: 0.8rem;
    color: var(--text-primary);
    min-width: 0;
}

td[data-label="Град"],
td[data-label="Жанр"],
td[data-label="Звучи како"],
td[data-label="Статус"] { display: none; }

/* Show Actions column on mobile */
td[data-label="Акции"] {
    flex-shrink: 0;
    flex: 0 0 auto;
    display: flex;
    flex-wrap: nowrap;
    gap: 0.05rem;
    white-space: nowrap;
    padding: 0;
}

td[data-label="Акции"] button {
    background: transparent;
    border: none;
    color: var(--text-muted);
    width: 20px;
    height: 20px;
    min-width: 20px;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.55rem;
    padding: 0;
}

td[data-label="Акции"] .action-btn { margin: 0; }

td[data-label="Акции"] button:active {
    background: var(--bg-hover);
    transform: scale(0.95);
}

td[data-label="Акции"] button.edit-btn {
    color: var(--accent-blue);
}

td[data-label="Акции"] button.delete-btn {
    color: var(--accent-red);
}

td[data-label="Име"] {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

td[data-label="Линкови"] {
    flex-shrink: 0;
    flex: 0 0 auto;
    display: flex;
    gap: 0.3rem;
    align-items: center;
    white-space: nowrap;
}

td[data-label="Линкови"] a {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.1rem;
    flex-shrink: 0;
    transition: color 0.15s ease, transform 0.15s ease;
}

td[data-label="Линкови"] a:active {
    transform: scale(0.9);
}

td[data-label="Линкови"] a.contact-link {
    display: none;
}

/* Artist preview button */
.artist-preview-btn {
    background: #1DB954;
    border: none;
    border-radius: 50%;
    width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    transition: transform 0.15s ease, background 0.15s ease;
}

.artist-preview-btn i {
    font-size: 6px;
    color: #fff;
}

.artist-preview-btn:active {
    transform: scale(0.9);
}

.artist-preview-btn:disabled {
    opacity: 0.55;
    background: var(--border-color);
    cursor: not-allowed;
}

.artist-preview-btn:disabled:active {
    transform: none;
}

/* Play column */
td[data-label="Преслушај"] {
    flex-shrink: 0;
    flex: 0 0 auto;
    width: 14px;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

td[data-label="Статус"] {
    flex-shrink: 0;
    width: 14px;
    padding: 0;
    justify-content: center;
}

td[data-label="Статус"] > span.status-content {
    width: 14px;
    height: 14px;
    border-radius: 50%;
}

/* Tags */
.genre-item, .sounds-like-item, .city-item {
    background: var(--accent-purple);
    color: #fff;
    padding: 0.1rem 0.25rem;
    font-size: 0.65rem;
    margin: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    height: 18px;
}

.sounds-like-item { background: var(--accent-blue); }
.city-item { background: var(--accent-teal); }

.band-label {
    background: var(--accent-red);
    color: #fff;
    padding: 0.1rem 0.25rem;
    font-size: 0.65rem;
    margin: 0 0.15rem;
    cursor: pointer;
    height: 18px;
    display: inline-flex;
    align-items: center;
}

.band-label.single-char {
    background: transparent;
    color: var(--accent-red);
    font-weight: 700;
    padding: 0.05rem 0.1rem;
}

.missing-data { display: none; }

/* Status */
.status-content {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0;
    line-height: 0;
    color: transparent;
    text-indent: -9999px;
    overflow: hidden;
}

td[data-label="Статус"] > span.status-content::after { display: none; }
td[data-label="Статус"][data-status="Активен"] > span.status-content { background: var(--accent-green); }
td[data-label="Статус"][data-status="Неактивен"] > span.status-content { background: var(--accent-red); }
td[data-label="Статус"][data-status="Можеби"] > span.status-content { background: var(--accent-orange); }
td[data-label="Статус"][data-status="Непознато"] > span.status-content,
td[data-label="Статус"].missing-data > span.status-content { background: var(--text-muted); }

.status-tooltip {
    position: absolute;
    background: var(--text-primary);
    color: #fff;
    font-size: 0.55rem;
    font-weight: 600;
    padding: 0.15rem 0.3rem;
    white-space: nowrap;
    z-index: 102;
    pointer-events: none;
}

/* Footer - hidden */
footer { display: none; }

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background: var(--bg-primary);
    margin: 0;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    width: 100%;
    height: 100%;
    max-height: 100vh;
    overflow-y: auto;
    scrollbar-width: thin;
}

.modal-content::-webkit-scrollbar { width: 4px; }
.modal-content::-webkit-scrollbar-thumb { background: var(--border-color); }

.modal-close {
    color: var(--text-muted);
    position: absolute;
    top: 0.4rem;
    right: 0.4rem;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    padding: 0.4rem;
    z-index: 1002;
}

.modal h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 0.6rem;
    padding-right: 1.5rem;
}

.form-group { margin-bottom: 0.5rem; }

.form-group label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 0.15rem;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 0.4rem;
    font-size: 0.75rem;
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    color: var(--text-primary);
    height: 38px;
}

.form-group input:focus, .form-group select:focus { outline: none; border-color: var(--accent-blue); }

/* Autocomplete dropdown */
.autocomplete-wrapper {
    position: relative;
}

.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 180px;
    overflow-y: auto;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 4px 4px;
    z-index: 100;
    display: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.autocomplete-dropdown.active {
    display: block;
}

.autocomplete-item {
    padding: 0.5rem 0.6rem;
    cursor: pointer;
    font-size: 0.75rem;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:hover,
.autocomplete-item.selected {
    background: var(--bg-secondary);
    color: var(--accent-blue);
}

.autocomplete-item .count {
    color: var(--text-muted);
    font-size: 0.65rem;
    margin-left: 0.3rem;
}

#links-container { margin-bottom: 0.3rem; }

.link-group {
    display: flex;
    gap: 0.3rem;
    margin-bottom: 0.3rem;
    align-items: center;
}

.link-group select, .link-group input { flex: 1; font-size: 0.7rem; height: 38px; }

.link-group .platform-select-wrapper {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
}

.link-group .platform-select-wrapper select {
    flex: 1;
    padding-left: 1.6rem;
}

.link-group .platform-icon {
    position: absolute;
    left: 0.4rem;
    pointer-events: none;
    color: var(--text-secondary);
    font-size: 0.7rem;
    z-index: 1;
}

.link-group button {
    background: var(--accent-red);
    color: #fff;
    border: none;
    padding: 0.3rem;
    cursor: pointer;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-link-btn, #save-band-btn {
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    padding: 0.4rem 0.75rem;
    border: none;
    cursor: pointer;
    background: var(--accent-blue);
    height: 38px;
    width: 100%;
}

#save-band-btn { margin-top: 0.6rem; background: var(--accent-green); }

/* New Release */
.new-release-artists {
    background: var(--bg-primary);
    padding: 0.6rem 0.5rem;
    border-bottom: 1px solid var(--border-color);
    border-left: 4px solid var(--accent-orange);
    display: block;
    flex-shrink: 0;
}

.new-release-artists h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    margin: 0 0 0.4rem 0;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.new-release-icon { color: var(--accent-orange); font-size: 0.85rem; }

.new-release-list {
    list-style: none;
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0.5rem;
    scrollbar-width: thin;
    touch-action: pan-x;
    padding-bottom: 0.3rem;
}

.new-release-list::-webkit-scrollbar { height: 4px; }
.new-release-list::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 2px; }

.new-release-list li {
    font-size: 0.95rem;
    font-weight: 600;
    background: var(--accent-purple);
    padding: 0.5rem 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
    flex-shrink: 0;
    min-height: 48px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.18);
}

.new-release-list li a { 
    color: #fff; 
    text-decoration: none;
    padding: 0.2rem 0;
}
.new-release-list li a:hover { text-decoration: underline; }
.new-release-list li a:active { opacity: 0.8; }
.new-release-list li i { font-size: 0.85rem; color: #fff; }
.new-release-list li .missing-data { color: rgba(255,255,255,0.4); }

/* New Release Section */
#new-release-artists {
    padding: 0.6rem 0.5rem;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
}

/* Content wrapper */
.new-release-content {
    overflow: visible;
}

/* Loading state for new releases */
.loading-releases {
    font-size: 0.55rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.15rem 0;
}

.loading-releases i {
    color: var(--accent-blue);
}

/* Release date styling */
.release-date {
    font-size: 0.55rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.15rem;
}

.release-date i {
    font-size: 0.4rem;
}

/* New Release Grid (with thumbnails) */
.new-release-artists {
    position: relative;
}

/* Horizontal scroll shadows */
.scroll-shadow-left,
.scroll-shadow-right {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 20px;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.scroll-shadow-left {
    left: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.3) 0%, transparent 100%);
}

.scroll-shadow-right {
    right: 0;
    background: linear-gradient(to left, rgba(0,0,0,0.3) 0%, transparent 100%);
}

.scroll-shadow-left.visible,
.scroll-shadow-right.visible {
    opacity: 1;
}

.new-release-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0.6rem;
    scrollbar-width: thin;
    padding: 0.4rem 0;
    touch-action: pan-x;
}

.new-release-grid::-webkit-scrollbar { height: 4px; }
.new-release-grid::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 2px; }

.new-release-card {
    flex-shrink: 0;
    background: var(--bg-secondary);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: stretch;
    min-width: 180px;
    max-width: 220px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

.new-release-card.no-thumbnail {
    min-width: auto;
    max-width: none;
    background: var(--accent-purple);
    padding: 0.5rem 0.8rem;
    min-height: 48px;
    border-radius: 6px;
}

.new-release-card .release-thumbnail-link {
    display: block;
    flex-shrink: 0;
}

.new-release-card .release-thumbnail {
    position: relative;
    width: 72px;
    height: 72px;
    background: var(--bg-primary);
}

.new-release-card .release-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.new-release-card .release-thumbnail .play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.3);
    opacity: 0;
    transition: opacity 0.15s ease;
}

.new-release-card:hover .release-thumbnail .play-overlay {
    opacity: 1;
}

.new-release-card .play-overlay i {
    font-size: 1rem;
    color: #fff;
}

.new-release-card .release-info {
    flex: 1;
    padding: 0.4rem 0.6rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.1rem;
    min-width: 0;
}

.new-release-card .release-info.release-info-compact {
    flex-direction: row;
    align-items: center;
    gap: 0.3rem;
    padding: 0;
}

.new-release-card .release-artist {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.new-release-card.no-thumbnail .release-artist {
    color: #fff;
}

.new-release-card.no-thumbnail .release-artist a {
    color: #fff;
    text-decoration: none;
}

.new-release-card .release-title {
    font-size: 0.75rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none;
}

.new-release-card .release-title:hover {
    color: var(--accent-blue);
}

.new-release-card .release-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.3rem;
    font-size: 0.55rem;
}

.new-release-card .release-views {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.15rem;
}

.new-release-card .release-links {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    margin-left: auto;
    vertical-align: middle;
}

.new-release-card .release-links .streaming-icon {
    color: var(--text-secondary);
    font-size: 0.6rem;
    line-height: 1;
}

/* Preview button */
.new-release-card .preview-btn {
    background: #1DB954;
    border: none;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    line-height: 1;
}

.new-release-card .preview-btn i {
    font-size: 7px;
    color: #fff;
    line-height: 1;
}

.new-release-card .preview-btn:disabled {
    opacity: 0.7;
}

.new-release-card.no-thumbnail .release-links {
    color: rgba(255,255,255,0.7);
}

.new-release-card.no-thumbnail .release-links .streaming-icon {
    color: rgba(255,255,255,0.8);
}

/* Spotify Embed Modal */
.spotify-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
}

.spotify-modal-content {
    position: relative;
    width: 100%;
    max-width: 100%;
    background: #121212;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}

.spotify-modal-close {
    position: absolute;
    top: -36px;
    right: 0;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.spotify-modal-close i {
    font-size: 0.8rem;
}

#spotify-embed-container {
    width: 100%;
}

#spotify-embed-container iframe {
    display: block;
    border-radius: 12px;
}

/* Spotify-specific styles */
.new-release-card .release-thumbnail.no-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1DB954, #191414);
}

.new-release-card .release-thumbnail .spotify-placeholder {
    font-size: 1.5rem;
    color: rgba(255,255,255,0.6);
}

.release-type-badge {
    font-size: 0.4rem;
    font-weight: 500;
    background: var(--accent-green);
    color: #fff;
    padding: 0.05rem 0.2rem;
    border-radius: 2px;
    margin-left: 0.15rem;
    vertical-align: middle;
}

.new-release-card .play-overlay i.fa-spotify {
    color: #1DB954;
}

/* Guide */
.guide-content {
    background: var(--bg-primary);
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.edit-hidden { display: inline-block; }
th.edit-hidden { display: table-cell; }
.master-edit { display: none; }

.action-buttons {
    text-align: center;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 0.05rem;
    white-space: nowrap;
}
.action-btn {
    font-size: 0.75rem;
    color: var(--text-secondary);
    padding: 0;
    margin: 0;
    border: none;
    background: transparent;
    cursor: pointer;
}

.action-btn:hover { color: var(--accent-blue); }
.action-btn.delete-btn { color: var(--text-muted); }
.action-btn.delete-btn:hover { color: var(--accent-red); }

.guide-content h2, .guide-content h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-top: 1.25rem;
    margin-bottom: 0.3rem;
}

.guide-content h3 { font-size: 0.85rem; }
.guide-content p { font-size: 0.75rem; margin-bottom: 0.5rem; line-height: 1.4; color: var(--text-secondary); }
.guide-content ul { list-style: none; padding: 0; margin-bottom: 0.5rem; }
.guide-content li { font-size: 0.75rem; margin-bottom: 0.4rem; display: flex; align-items: flex-start; gap: 0.3rem; color: var(--text-secondary); }
.guide-content a { color: var(--accent-blue); text-decoration: none; }
.guide-content .highlight { font-weight: 600; color: var(--accent-blue); }

.return-link {
    display: inline-flex;
    font-size: 0.7rem;
    font-weight: 600;
    color: #fff;
    background: var(--accent-blue);
    padding: 0.35rem 0.7rem;
    text-decoration: none;
    height: 38px;
    align-items: center;
}

.guide-icon { font-size: 0.75rem; }
.status-icon, .edit-icon, .plus-icon, .pen-icon, .copy-icon { color: #fff; padding: 0.15rem; }
.status-icon { background: var(--accent-green); }
.edit-icon { background: var(--accent-blue); }
.plus-icon { background: var(--accent-green); }
.pen-icon { background: var(--accent-orange); }
.copy-icon { background: var(--accent-purple); }
.guide-list-icon { font-size: 0.65rem; flex-shrink: 0; margin-top: 0.1rem; }

.status-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 0.3rem;
    vertical-align: middle;
}

.status-indicator.active { background: var(--accent-green); }
.status-indicator.inactive { background: var(--accent-red); }
.status-indicator.maybe { background: var(--accent-orange); }
.status-indicator.unknown { background: var(--text-muted); }

/* Loading */
.loading-bar {
    display: none;
    width: 100%;
    height: 2px;
    background: var(--bg-secondary);
    overflow: hidden;
}

.loading-bar.active { display: block; }

.loading-progress {
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
    animation: loadingAnimation 1.5s ease-in-out infinite;
}

@keyframes loadingAnimation {
    0% { width: 0; }
    70% { width: 100%; }
    100% { width: 100%; }
}

/* Dialog */
.dialog-modal-content {
    max-width: 350px;
    width: 90%;
    height: auto;
    max-height: 80vh;
    margin: 10vh auto;
    padding: 0.75rem;
}

#dialog-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 0.6rem;
    text-align: center;
}

#dialog-message {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    text-align: center;
}

#dialog-input-container { margin-bottom: 0.75rem; }

#dialog-input {
    width: 100%;
    padding: 0.4rem;
    font-size: 0.8rem;
    border: 1px solid var(--border-color);
    height: 38px;
}

#dialog-input:focus { outline: none; border-color: var(--accent-blue); }

.dialog-buttons { display: flex; justify-content: flex-end; gap: 0.35rem; }

.dialog-btn {
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
    border: none;
    cursor: pointer;
    font-weight: 600;
    height: 38px;
}

.cancel-btn { background: var(--bg-secondary); color: var(--text-primary); border: 1px solid var(--border-color); }
.confirm-btn { background: var(--accent-blue); color: #fff; }

/* PR Form */
#pr-form-container .form-group { margin-bottom: 0.75rem; }
#pr-form-container label { font-size: 0.75rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 0.2rem; display: block; }
#pr-form-container input, #pr-form-container textarea { width: 100%; padding: 0.4rem; font-size: 0.75rem; border: 1px solid var(--border-color); }
#pr-form-container textarea { resize: vertical; min-height: 50px; }
#pr-form-container .form-help { font-size: 0.65rem; color: var(--text-muted); margin-top: 0.15rem; font-style: italic; }

/* Notifications */
.notification-area { position: fixed; top: 10px; right: 10px; z-index: 2000; max-width: 260px; }

.notification {
    background: var(--bg-primary);
    box-shadow: var(--shadow);
    padding: 0.6rem;
    margin-bottom: 0.3rem;
    border-left: 3px solid var(--accent-blue);
    animation: slideIn 0.2s ease-out;
    font-size: 0.75rem;
    color: var(--text-primary);
}

.notification.success { border-left-color: var(--accent-green); }
.notification.error { border-left-color: var(--accent-red); }
.notification.info { border-left-color: var(--accent-blue); }
.notification.warning { border-left-color: var(--accent-orange); }

@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.notification.fade-out { animation: fadeOut 0.2s ease-out forwards; }
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; transform: translateX(100%); } }

/* Tour Overlay - Mobile */
.tour-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3000;
    pointer-events: none;
}

.tour-overlay.active {
    display: block;
}

.tour-overlay::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    pointer-events: auto;
}

.tour-highlight {
    position: absolute;
    box-shadow: 0 0 0 4000px rgba(0, 0, 0, 0.6);
    border-radius: 4px;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 3001;
}

.tour-highlight::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border: 2px solid #FFD700;
    border-radius: 5px;
    animation: tour-pulse 1.5s ease-in-out infinite;
}

@keyframes tour-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.tour-tooltip {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    top: auto !important;
    transform: none !important;
    background: var(--bg-primary);
    border-radius: 12px 12px 0 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.25);
    max-width: none;
    min-width: auto;
    z-index: 3002;
    pointer-events: auto;
    animation: tour-slide-up 0.3s ease;
}

@keyframes tour-slide-up {
    from { opacity: 0; transform: translateY(100%); }
    to { opacity: 1; transform: translateY(0); }
}

.tour-tooltip::before {
    display: none;
}

.tour-tooltip-content {
    padding: 1rem;
    max-height: 40vh;
    overflow-y: auto;
}

.tour-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.tour-description {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.tour-description strong {
    color: var(--text-primary);
}

.tour-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.tour-progress {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.tour-buttons {
    display: flex;
    gap: 0.5rem;
}

.tour-btn-skip,
.tour-btn-prev,
.tour-btn-next {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    min-height: 38px;
}

.tour-btn-skip {
    background: transparent;
    color: var(--text-muted);
}

.tour-btn-prev {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.tour-btn-prev:disabled {
    opacity: 0.4;
}

.tour-btn-next {
    background: linear-gradient(135deg, #FFD700, #FF8C00);
    color: #1a1a1a;
}

.tour-btn-next i {
    color: inherit;
    margin-left: 0.25rem;
}

.tour-btn-prev i {
    margin-right: 0.25rem;
}

/* ==================== DARK MODE ==================== */
body.dark-mode {
    --bg-primary: #1a1a2e;
    --bg-secondary: #16213e;
    --bg-hover: #1f3460;
    --text-primary: #eee;
    --text-secondary: #aaa;
    --text-muted: #777;
    --border-color: #2d3a5a;
    background: 
        radial-gradient(ellipse at 0% 0%, rgba(103, 126, 234, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 100% 100%, rgba(18, 184, 134, 0.08) 0%, transparent 50%),
        linear-gradient(180deg, #1a1a2e 0%, #121929 50%, #0a101c 100%);
}

body.dark-mode tr:nth-child(even) {
    background: var(--bg-secondary);
}

body.dark-mode tr:hover {
    background: var(--bg-hover);
}

body.dark-mode .select2-selection--single {
    background: var(--bg-primary) !important;
    border-color: var(--border-color) !important;
}

body.dark-mode .select2-selection__rendered {
    color: var(--text-primary) !important;
}

body.dark-mode .select2-dropdown {
    background: var(--bg-primary) !important;
    border-color: var(--border-color) !important;
}

body.dark-mode .select2-search__field {
    background: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
    border-color: var(--border-color) !important;
}

body.dark-mode .select2-results__option {
    color: var(--text-primary);
}

body.dark-mode .modal-content {
    background: var(--bg-primary);
    border-color: var(--border-color);
}

body.dark-mode .modal-content input,
body.dark-mode .modal-content select,
body.dark-mode .modal-content textarea {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-color: var(--border-color);
}

body.dark-mode .tour-tooltip {
    background: var(--bg-primary);
    border-color: var(--border-color);
}

/* Dark mode toggle button */
.dark-mode-toggle {
    background: var(--bg-primary) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
    padding: 0.35rem 0.5rem !important;
    font-size: 0.85rem !important;
}

.dark-mode-toggle:hover {
    background: var(--bg-hover) !important;
}

body.dark-mode .dark-mode-toggle {
    background: #2d3a5a !important;
}
