/* ========== Barre de recherche ========== */

.search-bar {
    position: relative;
    margin-bottom: 12px;
}

#search-input {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 0.9rem;
    outline: none;
    box-sizing: border-box;
}

#search-input:focus {
    border-color: var(--accent);
}

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

.search-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 0 0 var(--radius) var(--radius);
    max-height: 300px;
    overflow-y: auto;
    z-index: 200;
}

.search-dropdown.visible {
    display: block;
}

.search-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    cursor: pointer;
    border-bottom: 1px solid var(--border-subtle);
    transition: background 0.15s;
}

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

.search-item:hover {
    background: var(--accent-bg-strong);
}

.search-item.empty {
    color: var(--text-muted);
    cursor: default;
    justify-content: center;
}

.search-item-name {
    font-size: 0.88rem;
    font-weight: 500;
}

.search-item-type {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ========== Logo décoratif ========== */

.search-launcher {
    display: flex;
    justify-content: center;
    padding: 0;
    opacity: 0.3;
}

.search-launcher.hidden {
    display: none;
}

.search-launcher-logo {
    width: 180px;
    height: 180px;
    object-fit: contain;
    filter: drop-shadow(0 0 20px var(--accent-glow));
}

/* ========== Sort controls ========== */

.sort-controls {
    display: flex;
    gap: var(--space-3);
    justify-content: center;
    margin-bottom: 14px;
}



.sort-label {
    display: flex;
    align-items: center;
    font-size: 0.6rem;
    color: var(--text-muted);
    letter-spacing: 0.04em;
    margin-right: 2px;
}

.sort-btn {
    display: inline-flex;
    align-items: flex-end;
    gap: 2px;
    padding: 6px 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.sort-btn:hover {
    border-color: var(--text-muted);
}

.sort-btn.active[data-group="mag"] {
    border-color: #e8c84a;
    background: rgba(232, 200, 74, 0.08);
}

.sort-btn.active[data-group="dur"] {
    border-color: #4ac8e8;
    background: rgba(74, 200, 232, 0.08);
}

.sort-btn .mag-dot {
    width: 6px;
    height: 6px;
}

.dur-bars {
    display: inline-flex;
    align-items: flex-end;
    gap: 2px;
}

.dur-bar {
    display: inline-block;
    width: 4px;
    border-radius: 1px;
    background: var(--border-subtle);
    transition: background 0.2s;
}

.dur-bar.h1 { height: 6px; }
.dur-bar.h2 { height: 10px; }
.dur-bar.h3 { height: 14px; }

.dur-bar.on {
    background: #4ac8e8;
    opacity: 0.35;
}

.dur-bars-inline {
    vertical-align: middle;
    margin-right: 2px;
}
.dur-bars-inline .dur-bar.on {
    opacity: 0.7;
}

.sort-btn.active .dur-bar.on {
    opacity: 1;
}

.sort-btn:not(.active) .mag-dot.filled {
    opacity: 0.4;
}

/* Angular size dots */
.ang-dots {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.ang-dot {
    display: inline-block;
    border-radius: 50%;
    background: var(--border-subtle);
    transition: background 0.2s;
}

.ang-dot.s1 {
    width: 5px; height: 5px;
    background: rgba(232, 200, 74, 0.15) !important;
    border-color: #e8c84a !important;
}
.ang-dot.s2 { width: 8px; height: 8px; }
.ang-dot.s3 { width: 11px; height: 11px; }

.ang-dot.on {
    background: rgba(74, 232, 74, 0.15);
    border: 1.5px solid #4ae84a;
    opacity: 0.5;
}

.sort-btn.active .ang-dot.on {
    opacity: 1;
}

.sort-btn.active[data-group="ang"] {
    border-color: #4ae84a;
    background: rgba(74, 232, 74, 0.08);
}

/* Flipped state (inversé) */
.sort-btn.flipped[data-group="mag"] {
    border-color: #e8c84a;
    background: rgba(232, 200, 74, 0.08);
}

.sort-btn.flipped[data-group="dur"] {
    border-color: #4ac8e8;
    background: rgba(74, 200, 232, 0.08);
}

.sort-btn.flipped[data-group="ang"] {
    border-color: #4ae84a;
    background: rgba(74, 232, 74, 0.08);
}

/* ========== Title + Moon row ========== */

.title-moon-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
}

.title-block {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.title-block h1 {
    margin: 0;
}

.site-coords {
    font-size: 0.75rem;
    color: var(--accent);
    opacity: 0.6;
    margin: 2px 0 0 0;
}

/* Decorative divider */
.section-divider {
    display: flex;
    align-items: center;
    margin: 12px 0;
}

.section-divider span {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.3;
}



/* Moon visual */

.moon-visual {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.moon-icon-wrap {
    position: relative;
    width: 48px;
    height: 48px;
}

.moon-phase-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 50%;
}

.moon-zoom-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.moon-zoom-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
}

.moon-zoom-img {
    width: 280px;
    height: 280px;
    object-fit: contain;
    border-radius: 50%;
}

.moon-zoom-label {
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: 600;
}

.moon-new-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #000;
    border: 1px solid #222;
}

.moon-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 12px rgba(200, 200, 160, 0.15);
}

.moon-light {
    position: absolute;
    top: 0;
    bottom: 0;
    background: #e8e4d4;
    transition: width 0.3s;
}

.moon-dark {
    position: absolute;
    top: 0;
    bottom: 0;
    background: #1a1a26;
    transition: width 0.3s;
}

.moon-info {
    text-align: right;
}

.moon-phase-pct {
    font-size: 1.5rem;
    font-weight: 700;
    color: #e8e4d4;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
}

.moon-trend {
    font-size: 1.1rem;
    color: var(--accent);
    text-shadow: 0 0 8px var(--accent-glow-strong), 0 0 16px var(--accent-border-strong);
}

.moon-rise-set {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 2px;
    display: flex;
    gap: 6px;
}

.moon-event {
    white-space: nowrap;
    font-size: 0.72rem;
}

@media (max-width: 768px) {
    .moon-rise-set {
        flex-direction: column;
        gap: 0;
        line-height: 1.3;
    }
}

/* ========== Night summary ========== */

.night-summary {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
    margin-top: 12px;
    margin-bottom: 4px;
}

.night-summary-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 10px;
}

.night-summary-times {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.night-summary-block {
    text-align: center;
}

.night-summary-block .time {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
}

.night-summary-block .label {
    font-size: 0.72rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

.night-summary-duration {
    text-align: center;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent);
    padding: 6px 0;
    flex: 1;
    background: linear-gradient(90deg, transparent, var(--accent-border), transparent);
}

.night-summary-poses {
    display: flex;
    gap: var(--space-2);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    position: relative;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}
.night-summary-poses.dragging {
    cursor: grabbing;
    scroll-snap-type: none;
}

.night-summary-poses::-webkit-scrollbar { display: none; }

.night-summary-pose {
    flex: 0 0 calc((100% - 4 * var(--space-2)) / 5);
    min-width: 0;
    scroll-snap-align: start;
    text-align: center;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    padding: 8px 4px;
}

/* Mobile : 4 visibles, scroll pour le reste, pas de flèches */
@media (max-width: 768px) {
    .night-summary-pose {
        flex: 0 0 23%;
    }
}


.night-summary-pose .pose-count {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.night-summary-pose .pose-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

.night-summary-pose.recommended {
    border: 2px solid #4caf50;
    background: rgba(76, 175, 80, 0.1);
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.3);
}

.night-summary-pose .pose-recommended.pose-estimated {
    color: var(--accent);
}

.night-summary-pose.recommended-bortle {
    border: 1px solid var(--accent);
    background: var(--accent-bg);
}

.night-summary-pose .pose-recommended {
    font-size: 0.6rem;
    color: #4caf50;
    font-weight: 600;
    margin-top: 2px;
    text-transform: uppercase;
}
.night-summary-pose .pose-topt {
    font-size: 0.55rem;
    color: #4caf50;
    font-weight: 400;
    text-transform: none;
}

.night-summary-reco-note {
    font-size: 0.78rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 2px;
    font-style: italic;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.moon-glyph {
    font-style: normal;
    display: inline-block;
}
@media (max-width: 480px) {
    .night-summary-reco-note { font-size: 0.68rem; }
}
.cal-active-badge {
    display: inline-block;
    font-size: 0.55rem;
    font-weight: 700;
    font-style: normal;
    border-radius: 3px;
    padding: 1px 4px;
    letter-spacing: 0.5px;
    vertical-align: middle;
    line-height: 1.1;
    position: relative;
    top: -1px;
}
.cal-active-badge.cal-color-0 { color: #4caf50; border: 1px solid #4caf50; }
.cal-active-badge.cal-color-1 { color: #e91e90; border: 1px solid #e91e90; }
.cal-active-badge.cal-color-2 { color: #ff9800; border: 1px solid #ff9800; }
.cal-active-badge.cal-color-3 { color: #00bcd4; border: 1px solid #00bcd4; }
.cal-active-badge.cal-color-4 { color: #fdd835; border: 1px solid #fdd835; }

/* ========== Twilight bar ========== */

.twilight-bar {
    margin-top: 10px;
    margin-bottom: 4px;
}

.twilight-strip {
    display: flex;
    height: 28px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 6px;
    border: 1px solid var(--border);
}

.twilight-segment {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    white-space: nowrap;
    overflow: hidden;
    min-width: 0;
}

.twilight-segment.day       { background: var(--tw-day); }
.twilight-segment.civil     { background: var(--tw-civil); }
.twilight-segment.nautical  { background: var(--tw-nautical); }
.twilight-segment.astro     { background: var(--tw-astro); }
.twilight-segment.night     { background: var(--tw-night); }

.twilight-labels {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 6px 0;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.twilight-label {
    display: flex;
    align-items: center;
    gap: 4px;
}

.twilight-group {
    display: flex;
    gap: 6px 14px;
}

.twilight-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.twilight-dot.sunset   { background: var(--tw-day); }
.twilight-dot.civil    { background: var(--tw-civil); }
.twilight-dot.nautical { background: var(--tw-nautical); }
.twilight-dot.astro    { background: var(--tw-astro); }

/* ========== Home controls ========== */

.home-controls {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.home-controls .form-group.inline {
    flex: 1;
    margin-bottom: 0;
}

.home-controls .form-group.inline label {
    font-size: 0.75rem;
    margin-bottom: 2px;
}

.home-controls .form-group.inline select {
    padding: 8px 10px;
    font-size: 0.85rem;
    border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
}
.home-controls .form-group.inline select:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: none;
}

/* Seeing bar */
.seeing-bar {
    margin: 2px 0;
}

.seeing-loading {
    font-size: 0.75rem;
    color: var(--text-secondary);
    opacity: 0.5;
}

.seeing-mode-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    opacity: 0.5;
    margin-bottom: 4px;
    text-align: center;
    width: 100%;
}
.seeing-row-top {
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding-bottom: 6px;
    margin-bottom: 2px;
}
.seeing-btn {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: var(--text-secondary);
    padding: 5px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    cursor: pointer;
}
.seeing-btn:hover {
    background: rgba(255,255,255,0.15);
    color: var(--text-primary);
}
.seeing-btn-inline {
    display: flex;
    align-items: center;
}
.seeing-btn-refresh {
    padding: 2px 6px;
    font-size: 0.7rem;
    border: none;
    background: none;
    filter: grayscale(1) brightness(0.6) sepia(1) hue-rotate(var(--emoji-hue, 220deg)) saturate(3) brightness(1.2);
}
.seeing-refresh {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}
.seeing-ago {
    font-size: 0.6rem;
    color: var(--text-muted);
    opacity: 0.6;
}
.seeing-cloud-toggle {
    cursor: pointer;
}
.seeing-cloud-toggle:hover .seeing-label {
    color: var(--text-primary);
}
.cloud-detail {
    display: none;
    gap: 14px;
}
.cloud-detail-open {
    display: contents;
}

.seeing-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 8px 0;
    font-size: 0.8rem;
    flex-wrap: wrap;
}
@media (min-width: 768px) {
    .seeing-row-top {
        border-bottom: none;
        padding-bottom: 0;
        margin-bottom: 0;
    }
    .seeing-row-top,
    .seeing-row-meteo {
        display: contents;
    }
    .seeing-bar {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        gap: 14px;
        padding: 8px 0;
        font-size: 0.8rem;
    }
}

.seeing-sub-item .seeing-label {
    font-size: 0.58rem;
    opacity: 0.7;
}

.seeing-sub-item .seeing-value {
    font-size: 0.75rem;
    font-weight: 600;
}

.seeing-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.seeing-main {
    flex-shrink: 0;
}

.seeing-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
}

.seeing-value {
    font-weight: 700;
    font-size: 0.85rem;
}

.seeing-dots {
    display: flex;
    gap: 3px;
}

.seeing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.seeing-sub {
    font-size: 0.65rem;
    color: var(--text-secondary);
    opacity: 0.6;
}

.seeing-warn .seeing-value {
    color: #ff8c42;
}

.seeing-warn .seeing-label {
    color: #ff8c42;
}

.controls-label {
    width: 100%;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0;
    display: flex;
    align-items: center;
}

.controls-info {
    margin-left: auto;
    opacity: 0.4;
    cursor: help;
}

.select-icon-img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    vertical-align: middle;
}

.select-with-icon {
    display: flex;
    align-items: center;
    gap: 6px;
}

.select-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.select-with-icon select {
    flex: 1;
    min-width: 0;
}

/* ========== Favoris ========== */

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

.btn-fav {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s, transform 0.2s;
    line-height: 1;
}

.btn-fav:hover {
    color: #e74c6f;
    transform: scale(1.2);
}

.btn-fav.active {
    color: #e74c6f;
}

/* ========== Cards (liste de cibles) ========== */

.card-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px;
    cursor: pointer;
    transition: border-color 0.2s, transform 0.1s;
}

.card:hover {
    border-color: var(--accent);
    transform: translateY(-1px);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.overlay-header h1 {
    font-family: 'Orbitron', sans-serif;
}



.card-title {
    font-size: 1.05rem;
    font-weight: 600;
}

.card-score {
    font-size: 0.85rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-md);
    white-space: nowrap;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    position: relative;
}

.card-score:hover {
    transform: scale(1.15);
}
.card-score.high:hover { box-shadow: 0 0 8px rgba(74, 217, 122, 0.4); }
.card-score.medium:hover { box-shadow: 0 0 8px rgba(217, 168, 74, 0.4); }
.card-score.low:hover { box-shadow: 0 0 8px rgba(217, 74, 74, 0.4); }


.card-score.high {
    background: rgba(74, 217, 122, 0.15);
    color: var(--score-high);
}

.card-score.medium {
    background: rgba(217, 168, 74, 0.15);
    color: var(--score-medium);
}

.card-score.low {
    background: rgba(217, 74, 74, 0.15);
    color: var(--score-low);
}

.card-meta {
    font-size: 0.82rem;
    color: var(--text-secondary);
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
}

.card-indicator {
    display: inline-flex;
    align-items: center;
}

.card-ks {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 0.75rem;
    color: rgba(255, 220, 100, 0.75);
    font-style: italic;
}

.season-bar-wrap {
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 10px 12px 6px;
    margin-top: 8px;
}

.season-bar {
    display: block;
    width: 100%;
}

.ang-dots-inline {
    vertical-align: middle;
}
.ang-dots-inline .ang-dot.on {
    opacity: 0.7;
}

/* ========== Top Picks ========== */

.top-picks {
    margin-bottom: 20px;
}

.top-picks-header,
.discoveries-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.top-picks-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--score-high);
    padding-left: 4px;
    letter-spacing: 0.3px;
}

.shuffle-btn {
    background: none;
    border: 1px solid var(--border-subtle);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.shuffle-btn:hover {
    color: var(--accent);
    border-color: var(--accent);
}

body.night-red .shuffle-btn:hover {
    color: #cc3333;
    border-color: #cc3333;
}

.top-picks-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.card.top-pick {
    border: 1.5px solid var(--score-high);
    box-shadow: 0 0 10px rgba(74, 217, 122, 0.1);
}

.card.top-pick:hover {
    border-color: var(--score-high);
    box-shadow: 0 0 14px rgba(74, 217, 122, 0.2);
}

body.night-red .card.top-pick {
    border-color: #883322;
    box-shadow: 0 0 10px rgba(136, 51, 34, 0.15);
}

/* Discoveries */

.discoveries {
    margin-bottom: 20px;
}

.discoveries-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--score-medium);
    padding-left: 4px;
    letter-spacing: 0.3px;
}

.discoveries-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.card.discovery {
    border: 1.5px solid var(--score-medium);
    box-shadow: 0 0 10px rgba(217, 168, 74, 0.1);
}

.card.discovery:hover {
    border-color: var(--score-medium);
    box-shadow: 0 0 14px rgba(217, 168, 74, 0.2);
}

body.night-red .card.discovery {
    border-color: #664422;
    box-shadow: 0 0 10px rgba(102, 68, 34, 0.15);
}

/* Card body layout */

.card-body {
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.card-framing {
    flex-shrink: 0;
    background: rgba(10, 10, 15, 0.5);
    border-radius: 4px;
    padding: 2px;
    border: 1px solid var(--border);
}

.card-framing svg {
    display: block;
}

.framing-preview-large {
    display: flex;
    justify-content: center;
    background: rgba(5, 5, 10, 0.6);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--space-2);
    margin-bottom: 16px;
}

.framing-preview-large svg {
    display: block;
}

.score-framing-section {
    margin-bottom: 4px;
}

/* Catalog badges */

.cat-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 3px;
    letter-spacing: 0.3px;
}

.cat-messier { background: rgba(74, 217, 122, 0.2); color: #4ad97a; }
.cat-ngc     { background: rgba(74, 144, 217, 0.2); color: #4a90d9; }
.cat-ic      { background: rgba(138, 74, 217, 0.2); color: #b88adb; }
.cat-sh2     { background: rgba(217, 74, 74, 0.2); color: #d97a7a; }
.cat-barnard { background: rgba(160, 140, 100, 0.2); color: #a08c64; }
.cat-other   { background: rgba(100, 100, 100, 0.2); color: #888; }

body.night-red .cat-messier,
body.night-red .cat-ngc,
body.night-red .cat-ic,
body.night-red .cat-sh2,
body.night-red .cat-barnard {
    background: rgba(120, 40, 40, 0.2);
    color: #aa4444;
}

/* Magnitude dots */

.mag-dots {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.mag-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.mag-dot.filled {
    background: #e8c84a;
    box-shadow: 0 0 3px rgba(232, 200, 74, 0.5);
}

.mag-dot.empty {
    background: var(--bg-input);
    border: 1px solid var(--border);
}


