:root {
    --deep-ocean: #0a1628;
    --ocean-surface: #1a3a5c;
    --teal: #2a9d8f;
    --light-teal: #4ecdc4;
    --white: #e0f2f1;
    --accent: #e76f51;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, var(--deep-ocean) 0%, var(--ocean-surface) 100%);
    color: var(--white);
    min-height: 100vh;
}

.hero {
    text-align: center;
    padding: 4rem 1rem;
    background: rgba(0,0,0,0.2);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.tagline {
    font-size: 1.2rem;
    opacity: 0.8;
}

.live-banner {
    background: linear-gradient(90deg, #d63031, #e17055);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    transition: all 0.3s ease;
}

.live-banner.hidden { display: none; }

.live-badge {
    background: white;
    color: #d63031;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.875rem;
    animation: pulse 2s infinite;
}

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

.live-info h3 { margin: 0; font-size: 1.1rem; }
.live-info p { margin: 0; opacity: 0.9; font-size: 0.9rem; }

.watch-live-btn {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background: white;
    color: #d63031;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    font-size: 0.9rem;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-left: auto;
}

.watch-live-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

section { margin-bottom: 3rem; }

section h2 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: var(--light-teal);
}

#map {
    height: 400px;
    border-radius: 8px;
    background: #1a3a5c;
}

.feed {
    display: grid;
    gap: 1rem;
}

.sighting-card {
    background: rgba(255,255,255,0.05);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--teal);
    transition: background 0.2s;
}

.sighting-card:hover { background: rgba(255,255,255,0.08); }

.sighting-card .source {
    font-size: 0.75rem;
    text-transform: uppercase;
    opacity: 0.6;
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.sighting-card .source.reddit { border-left-color: #ff4500; }
.sighting-card .source.tiktok { border-left-color: #ff0050; }
.sighting-card .source.manual { border-left-color: var(--accent); }

.sighting-card h3 { margin-bottom: 0.5rem; font-size: 1.1rem; }
.sighting-card p { opacity: 0.85; line-height: 1.5; margin-bottom: 0.5rem; }

.sighting-card .location {
    color: var(--light-teal);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.sighting-card .time {
    font-size: 0.8rem;
    opacity: 0.5;
}

.sighting-card a {
    color: var(--light-teal);
    word-break: break-all;
}

form {
    display: grid;
    gap: 1rem;
    max-width: 600px;
}

input, textarea {
    padding: 0.75rem;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    background: rgba(0,0,0,0.2);
    color: white;
    font-size: 1rem;
    font-family: inherit;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--teal);
}

textarea { min-height: 100px; resize: vertical; }

button {
    padding: 0.75rem 1.5rem;
    background: var(--teal);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
    font-weight: 600;
}

button:hover { background: var(--light-teal); }

.loading { opacity: 0.6; text-align: center; padding: 2rem; }

@media (max-width: 768px) {
    .hero h1 { font-size: 2rem; }
    .live-banner { flex-direction: column; align-items: flex-start; }
    .watch-live-btn { margin-left: 0; margin-top: 0.5rem; }
}

/* --- photo support for ingested sightings --- */
.sighting-photo {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
    background: #0f2438;
}
.sighting-card { overflow: hidden; }
.sighting-body { padding: 4px 0 0; }
