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

body {
    background: #0a0a0a;
    color: #e0e0e0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    min-height: 100vh;
    padding: 2rem 1rem;
}

.container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.comic-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

#comic {
    max-width: 800px;
    width: auto;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.date-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#date {
    font-size: 0.875rem;
    color: #666;
    letter-spacing: 0.05em;
}

#history-link {
    font-size: 0.875rem;
    color: #666;
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: color 0.2s ease;
}

#history-link:hover {
    color: #e0e0e0;
}

#history-page h1 {
    font-size: 1.5rem;
    font-weight: 400;
    color: #e0e0e0;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
}

.back-link {
    display: inline-block;
    margin-bottom: 1.5rem;
    color: #666;
    text-decoration: none;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: #e0e0e0;
}

#history-list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.history-item {
    padding: 0.5rem 0;
    text-decoration: none;
    color: #666;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    transition: color 0.2s ease;
}

.history-item:hover {
    color: #e0e0e0;
}

.history-item.today {
    color: #999;
}

/* Loading state */
#comic.loading {
    opacity: 0.5;
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    #history-btn {
        bottom: 1rem;
        right: 1rem;
    }
    
    .modal-content {
        padding: 1.5rem;
    }
    
    #history-list {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
}
