/* =========================================
   FM2 Web Radio — Design System
   Modern glassmorphism + dark/light mode
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ---- CSS Custom Properties (Spotify-inspired) ---- */
:root {
    /* Light Mode — Spotify Light */
    --bg-primary: #f5f5f5;
    --bg-secondary: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.85);
    --bg-glass-border: rgba(0, 0, 0, 0.06);
    --bg-hero: linear-gradient(180deg, #535353 0%, #333333 100%);
    --bg-card: #ffffff;
    --bg-card-hover: #f0f0f0;
    --bg-input: #e8e8e8;
    --bg-table-header: #f0f0f0;
    --bg-table-row-alt: #fafafa;
    --bg-badge: rgba(29, 185, 84, 0.1);

    --text-primary: #191414;
    --text-secondary: #535353;
    --text-muted: #878787;
    --text-on-hero: #ffffff;
    --text-link: #1DB954;

    --accent: #1DB954;
    --accent-hover: #1ed760;
    --accent-glow: rgba(29, 185, 84, 0.25);
    --success: #1DB954;
    --success-bg: rgba(29, 185, 84, 0.1);
    --warning: #f59e0b;
    --danger: #e91429;
    --request-color: #e91429;
    --request-bg: rgba(233, 20, 41, 0.08);

    --border: rgba(0, 0, 0, 0.08);
    --border-strong: rgba(0, 0, 0, 0.12);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 0 40px rgba(29, 185, 84, 0.15);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 50%;

    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);

    /* Dynamic hero color — set by JS from album art */
    --hero-color-r: 83;
    --hero-color-g: 83;
    --hero-color-b: 83;
}

/* ---- Dark Mode — Spotify Dark ---- */
[data-theme="dark"] {
    --bg-primary: #121212;
    --bg-secondary: #181818;
    --bg-glass: rgba(18, 18, 18, 0.88);
    --bg-glass-border: rgba(255, 255, 255, 0.06);
    --bg-hero: linear-gradient(180deg, #535353 0%, #121212 100%);
    --bg-card: #181818;
    --bg-card-hover: #282828;
    --bg-input: #282828;
    --bg-table-header: #181818;
    --bg-table-row-alt: #1a1a1a;
    --bg-badge: rgba(29, 185, 84, 0.15);

    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --text-muted: #6a6a6a;
    --text-on-hero: #ffffff;
    --text-link: #1DB954;

    --accent: #1DB954;
    --accent-hover: #1ed760;
    --accent-glow: rgba(29, 185, 84, 0.3);
    --success: #1DB954;
    --success-bg: rgba(29, 185, 84, 0.15);
    --request-color: #e91429;
    --request-bg: rgba(233, 20, 41, 0.12);

    --border: rgba(255, 255, 255, 0.07);
    --border-strong: rgba(255, 255, 255, 0.1);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 60px rgba(29, 185, 84, 0.1);
}

/* ---- Base Reset ---- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background var(--transition), color var(--transition);
}

a {
    color: var(--text-link);
    text-decoration: none;
    transition: color var(--transition);
}
a:hover { color: var(--accent-hover); }

/* ---- Navbar ---- */
.fm2-navbar {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 1050;
    transition: background var(--transition);
}

.fm2-navbar .navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--accent);
    letter-spacing: -0.5px;
}

.fm2-navbar .navbar-brand .brand-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: var(--radius-full);
    margin-left: 4px;
    animation: pulse-dot 2s ease-in-out infinite;
    vertical-align: middle;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

/* ---- Theme Toggle ---- */
.theme-toggle {
    position: relative;
    width: 52px;
    height: 28px;
    border: none;
    border-radius: 14px;
    background: var(--bg-input);
    border: 1px solid var(--border-strong);
    cursor: pointer;
    transition: background var(--transition);
    padding: 0;
    display: flex;
    align-items: center;
}

.theme-toggle .toggle-thumb {
    position: absolute;
    left: 3px;
    width: 22px;
    height: 22px;
    border-radius: var(--radius-full);
    background: var(--accent);
    transition: transform var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

[data-theme="dark"] .theme-toggle .toggle-thumb {
    transform: translateX(24px);
}

/* ---- Auth Buttons ---- */
.btn-auth {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 0.45rem 1.2rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition);
}
.btn-auth:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--accent-glow);
    color: #fff;
}

.user-badge {
    background: var(--bg-badge);
    color: var(--accent);
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

/* ---- Hero / Now Playing Section (Spotify-style dynamic color) ---- */
.now-playing-hero {
    /* Dynamic gradient from album art dominant color */
    background: linear-gradient(
        180deg,
        rgb(var(--hero-color-r), var(--hero-color-g), var(--hero-color-b)) 0%,
        var(--bg-primary) 100%
    );
    padding: 3rem 0 2.5rem;
    position: relative;
    overflow: hidden;
    transition: background 1s ease;
}

.now-playing-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.1) 0%,
        rgba(0, 0, 0, 0.4) 100%
    );
    pointer-events: none;
}

.now-playing-content {
    position: relative;
    z-index: 2;
}

.np-label {
    text-transform: uppercase;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.np-label .live-indicator {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: var(--radius-full);
    animation: pulse-dot 1.5s ease-in-out infinite;
    box-shadow: 0 0 8px var(--success);
}

/* Cover Art */
.cover-wrapper {
    position: relative;
    width: 220px;
    height: 220px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    flex-shrink: 0;
    transition: transform var(--transition-slow);
}

.cover-wrapper:hover {
    transform: scale(1.03);
}

.cover-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cover-wrapper .cover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.3) 100%);
}

/* Song Info */
.np-song-info {
    color: var(--text-on-hero);
}

.np-title {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.2;
    margin-bottom: 0.3rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.np-artist {
    font-size: 1.15rem;
    font-weight: 500;
    opacity: 0.9;
    margin-bottom: 0.75rem;
}

.np-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.np-meta .meta-tag {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    padding: 0.25rem 0.65rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
    border: 1px solid rgba(255,255,255,0.1);
}

/* Progress Bar */
.progress-wrapper {
    margin-top: 1.5rem;
}

.progress-track {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 3px;
    transition: width 1s linear;
    position: relative;
}

.progress-track:hover .progress-fill {
    background: var(--accent);
}

.progress-fill::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: var(--radius-full);
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity var(--transition);
}

.progress-track:hover .progress-fill::after {
    opacity: 1;
}

.progress-times {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.55);
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

/* ---- Section Cards ---- */
.section-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all var(--transition);
}

.section-card:hover {
    box-shadow: var(--shadow-md);
}

.section-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.section-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-title .icon {
    font-size: 1.1rem;
}

/* ---- History Table ---- */
.history-list {
    padding: 0;
}

.history-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1.5rem;
    border-bottom: 1px solid var(--border);
    transition: background var(--transition);
}

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

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

.history-cover {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-input);
}

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

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

.history-info .h-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.history-info .h-artist {
    font-size: 0.8rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.history-time {
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
    font-weight: 500;
}

.history-duration {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* ---- Queue List ---- */
.queue-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1.5rem;
    border-bottom: 1px solid var(--border);
    transition: background var(--transition);
}

.queue-item:last-child { border-bottom: none; }
.queue-item:hover { background: var(--bg-card-hover); }

.queue-index {
    width: 24px;
    height: 24px;
    background: var(--bg-badge);
    color: var(--accent);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    flex-shrink: 0;
}

.queue-cover {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-input);
}

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

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

.queue-info .q-title {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.queue-info .q-artist {
    font-size: 0.78rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---- Library Section ---- */
.library-search-bar {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
}

.search-input-wrapper {
    position: relative;
}

.search-input-wrapper .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.9rem;
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 0.7rem 1rem 0.7rem 2.5rem;
    background: var(--bg-input);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: inherit;
    transition: all var(--transition);
    outline: none;
}

.search-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
    background: var(--bg-secondary);
}

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

/* Library Table */
.library-table-wrapper {
    overflow-x: auto;
}

.library-table {
    width: 100%;
    border-collapse: collapse;
}

.library-table th {
    background: var(--bg-table-header);
    padding: 0.75rem 1rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-strong);
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
    transition: color var(--transition);
    position: sticky;
    top: 0;
}

.library-table th:hover {
    color: var(--accent);
}

.library-table th.sorted {
    color: var(--accent);
}

.library-table th .sort-arrow {
    margin-left: 4px;
    font-size: 0.65rem;
    opacity: 0.4;
}

.library-table th.sorted .sort-arrow {
    opacity: 1;
}

.library-table td {
    padding: 0.7rem 1rem;
    font-size: 0.88rem;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.library-table tbody tr {
    transition: background var(--transition);
}

.library-table tbody tr:nth-child(even) {
    background: var(--bg-table-row-alt);
}

.library-table tbody tr:hover {
    background: var(--bg-card-hover);
}

.library-table .cell-cover {
    width: 40px;
}

.library-table .cell-cover img {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    object-fit: cover;
    display: block;
}

.library-table .cell-actions {
    white-space: nowrap;
    width: 100px;
}

/* Action Buttons */
.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.85rem;
    transition: all var(--transition);
    background: transparent;
}

.btn-request {
    color: var(--request-color);
}
.btn-request:hover {
    background: var(--request-bg);
    transform: scale(1.1);
}

.btn-queue {
    color: var(--accent);
}
.btn-queue:hover {
    background: var(--bg-badge);
    transform: scale(1.1);
}

.btn-queue:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none !important;
}

/* Pagination */
.library-pagination {
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 0.75rem;
}

.pagination-info {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 500;
}

.pagination-buttons {
    display: flex;
    gap: 0.35rem;
}

.btn-page {
    min-width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    padding: 0 0.5rem;
}

.btn-page:hover:not(:disabled):not(.active) {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--bg-badge);
}

.btn-page.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

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

/* ---- Login Modal ---- */
.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.modal-header {
    border-bottom: 1px solid var(--border);
    padding: 1.25rem 1.5rem;
}

.modal-header .modal-title {
    font-weight: 700;
    color: var(--text-primary);
}

.modal-header .btn-close {
    filter: var(--text-primary);
}

.modal-body {
    padding: 1.5rem;
}

.modal-body .form-label {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
}

.modal-body .form-control {
    background: var(--bg-input);
    border: 1.5px solid var(--border);
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    padding: 0.65rem 1rem;
    font-family: inherit;
    transition: all var(--transition);
}

.modal-body .form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
    background: var(--bg-secondary);
}

.modal-footer {
    border-top: 1px solid var(--border);
    padding: 1rem 1.5rem;
}

/* Request Modal */
.request-modal-song {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-input);
    border-radius: var(--radius-md);
    margin-bottom: 1.25rem;
}

.request-modal-song img {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.request-modal-song .rm-title {
    font-weight: 700;
    color: var(--text-primary);
}

.request-modal-song .rm-artist {
    font-size: 0.88rem;
    color: var(--text-secondary);
}

/* ---- Toast / Notification ---- */
.fm2-toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;
    min-width: 300px;
    max-width: 420px;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
    color: #fff;
    box-shadow: var(--shadow-lg);
    transform: translateY(120%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.fm2-toast.show {
    transform: translateY(0);
    opacity: 1;
}

.fm2-toast.toast-success { background: linear-gradient(135deg, #059669, #10b981); }
.fm2-toast.toast-error { background: linear-gradient(135deg, #dc2626, #ef4444); }
.fm2-toast.toast-info { background: linear-gradient(135deg, #4f46e5, #7c3aed); }

.fm2-toast .toast-icon { font-size: 1.2rem; }

/* ---- Empty State ---- */
.empty-state {
    padding: 3rem 1.5rem;
    text-align: center;
    color: var(--text-muted);
}

.empty-state .empty-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    opacity: 0.4;
}

.empty-state p {
    font-size: 0.9rem;
}

/* ---- Skeleton Loader ---- */
.skeleton {
    background: linear-gradient(90deg, var(--bg-input) 25%, var(--bg-card-hover) 50%, var(--bg-input) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

@keyframes skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ---- Requested Badge ---- */
.badge-requested {
    background: var(--request-bg);
    color: var(--request-color);
    padding: 0.15rem 0.5rem;
    border-radius: 12px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: var(--text-secondary); }

/* ---- Responsive ---- */
@media (min-width: 1200px) {
    .now-playing-hero { padding: 4.5rem 0 4rem; }
    .cover-wrapper { width: 300px; height: 300px; }
    .np-title { font-size: 3rem; margin-bottom: 0.5rem; letter-spacing: -1px; }
    .np-artist { font-size: 1.4rem; }
    .progress-wrapper { max-width: 600px; }
}

@media (max-width: 768px) {
    .now-playing-hero { padding: 2rem 0 1.5rem; }
    .cover-wrapper { width: 160px; height: 160px; }
    .np-title { font-size: 1.4rem; }
    .np-artist { font-size: 1rem; }
    .history-item { padding: 0.75rem 1rem; }
    .queue-item { padding: 0.6rem 1rem; }
    .library-table th, .library-table td { padding: 0.6rem 0.75rem; }
    .section-header { padding: 1rem; }
    .fm2-toast { left: 1rem; right: 1rem; min-width: auto; bottom: 1rem; }
}

@media (max-width: 576px) {
    .cover-wrapper { width: 140px; height: 140px; }
    .np-title { font-size: 1.2rem; }
    .np-meta .meta-tag { font-size: 0.65rem; padding: 0.2rem 0.5rem; }
    .library-table .hide-mobile { display: none; }
}

/* ---- Fade In Animation ---- */
.fade-in-up {
    animation: fadeInUp 0.5s ease-out forwards;
}

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

/* ---- Cover placeholder ---- */
.cover-placeholder {
    width: 100%;
    height: 100%;
    background: #282828;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.3);
    font-size: 3rem;
}

/* ---- Footer ---- */
.fm2-footer {
    text-align: center;
    padding: 2rem 0;
    color: var(--text-muted);
    font-size: 0.8rem;
    border-top: 1px solid var(--border);
    margin-top: 2rem;
}

/* dark mode btn-close override */
[data-theme="dark"] .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}
