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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0a0a0a;
    color: #e0e0e0;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: #111;
    border-bottom: 3px solid #e63329;
    padding: 20px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    height: 50px;
    width: auto;
}

.logo h1 {
    font-size: 2rem;
    color: #fff;
    font-weight: 700;
}

.tagline {
    color: #888;
    margin-top: 5px;
    font-size: 0.95rem;
}

header nav {
    margin-top: 10px;
}

header nav a {
    color: #e63329;
    text-decoration: none;
    font-weight: 600;
}

header nav a:hover {
    color: #ff5a50;
}

/* Main */
main {
    padding: 40px 20px;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge.live {
    background: #e63329;
    color: #fff;
    animation: pulse 2s infinite;
}

.badge.upcoming {
    background: #2a6496;
    color: #fff;
}

.badge.past {
    background: #444;
    color: #aaa;
}

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

/* Events Grid */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.event-card {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 25px;
    position: relative;
    transition: border-color 0.2s;
}

.event-card.active {
    border-color: #e63329;
}

.event-card.upcoming {
    border-color: #2a6496;
}

.event-card h2 {
    font-size: 1.3rem;
    color: #fff;
    margin: 10px 0 8px;
}

.event-card p {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.event-card .dates {
    color: #aaa;
    font-size: 0.85rem;
}

.event-card .preview {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    margin: 15px 0;
    background: #111;
}

/* Button */
.btn {
    display: inline-block;
    background: #e63329;
    color: #fff;
    padding: 10px 22px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 10px;
    transition: background 0.2s;
}

.btn:hover {
    background: #ff5a50;
}

/* Event detail page */
.event-header {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #2a2a2a;
}

.event-header h2 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 10px;
}

.event-header p {
    color: #888;
    margin-bottom: 8px;
}

.event-header .dates {
    font-size: 0.95rem;
    color: #aaa;
}

/* Camera sections */
.camera-section {
    margin-bottom: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid #2a2a2a;
}

.camera-section h3 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e63329;
}

.camera-section h4 {
    font-size: 1.1rem;
    color: #ccc;
    margin: 25px 0 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.camera-section h5 {
    font-size: 0.95rem;
    color: #aaa;
    margin-bottom: 10px;
}

/* Live dot */
.live-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: #e63329;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

/* Latest frame */
.latest-frame {
    margin-bottom: 30px;
}

.latest-img {
    width: 100%;
    max-width: 800px;
    border-radius: 6px;
    border: 1px solid #2a2a2a;
    display: block;
}

.frame-time {
    color: #666;
    font-size: 0.85rem;
    margin-top: 6px;
}

/* Videos */
.timelapse-video {
    width: 100%;
    max-width: 800px;
    border-radius: 6px;
    background: #000;
    display: block;
}

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

.daily-video-card {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 6px;
    padding: 15px;
}

.daily-video-card h5 {
    margin-bottom: 10px;
    color: #ccc;
}

.daily-video-card .timelapse-video {
    max-width: 100%;
}

/* Frames grid */
.day-frames {
    margin-bottom: 25px;
}

.frames-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 8px;
    margin-top: 10px;
}

.frames-grid a img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 3px;
    border: 1px solid #2a2a2a;
    transition: border-color 0.2s;
    display: block;
}

.frames-grid a:hover img {
    border-color: #e63329;
}

/* Notice */
.notice {
    background: #1a1a2e;
    border: 1px solid #2a6496;
    border-radius: 6px;
    padding: 20px;
    color: #aaa;
}

/* No events */
.no-events {
    text-align: center;
    padding: 80px 20px;
    color: #555;
}

/* Footer */
footer {
    background: #111;
    border-top: 1px solid #2a2a2a;
    padding: 20px 0;
    text-align: center;
    color: #555;
    font-size: 0.85rem;
    margin-top: 60px;
}

/* Responsive */
@media (max-width: 768px) {
    .logo h1 {
        font-size: 1.4rem;
    }

    .events-grid {
        grid-template-columns: 1fr;
    }

    .video-grid {
        grid-template-columns: 1fr;
    }

    .frames-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }

    .latest-img,
    .timelapse-video {
        max-width: 100%;
    }
}
