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

body {
    font-family:
        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
        sans-serif;
    background: #0d0d0d;
    color: #e0e0e0;
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

header {
    margin-bottom: 2.5rem;
    text-align: center;
}

header h1 {
    font-size: 2rem;
    color: #ff6b35;
    letter-spacing: 0.05em;
}

header h1 a {
    color: inherit;
    text-decoration: none;
}

.subtitle {
    color: #888;
    font-size: 0.95rem;
    margin-top: 0.25rem;
}

.last-check {
    color: #555;
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #666;
    font-style: italic;
}

.release-block {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.release-header {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.release-header h2 {
    font-size: 1.3rem;
    color: #fff;
}

.release-date {
    color: #888;
    font-size: 0.85rem;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0.65rem 1rem;
    border-radius: 8px;
    text-align: center;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.2s;
    overflow: hidden;
    cursor: default;
}

.btn-complete {
    background: #1e3a2a;
    border: 1px solid #2d5a3d;
    color: #7dcea0;
    cursor: pointer;
}

.btn-complete:hover {
    background: #254a34;
    border-color: #3d7a5d;
}

.btn-downloading {
    background: #1a2a3a;
    border: 1px solid #2a4a6a;
    color: #7db8de;
    white-space: nowrap;
}

.btn-downloading .progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: rgba(100, 160, 220, 0.15);
    transition: width 0.5s;
    z-index: 0;
}

.btn-downloading .btn-label,
.btn-downloading .btn-pct {
    position: relative;
    z-index: 1;
}

.btn-downloading .btn-pct {
    font-size: 0.75rem;
    margin-left: 0.5rem;
    opacity: 0.7;
}

.btn-pending {
    background: #1a1a1a;
    border: 1px solid #333;
    color: #555;
}

.btn-failed {
    background: #3a1a1a;
    border: 1px solid #5a2a2a;
    color: #de7d7d;
}

.release-notes-link {
    display: inline-block;
    color: #ff6b35;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.25rem 0;
    border-bottom: 1px solid transparent;
}

.release-notes-link:hover {
    border-bottom-color: #ff6b35;
}

.release-notes-content {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    padding: 2rem;
    line-height: 1.7;
}

.release-notes-content h1 {
    font-size: 1.4rem;
    color: #ff6b35;
    margin: 1.5rem 0 0.75rem;
}

.release-notes-content h1:first-child {
    margin-top: 0;
}

.release-notes-content h2 {
    font-size: 1.1rem;
    color: #ccc;
    margin: 1.25rem 0 0.5rem;
}

.release-notes-content ul {
    padding-left: 1.5rem;
    margin: 0.5rem 0;
}

.release-notes-content li {
    margin: 0.25rem 0;
    color: #bbb;
}

.release-notes-content code {
    background: #2a2a2a;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.85em;
}

.release-notes-content hr {
    border: none;
    border-top: 1px solid #333;
    margin: 1.5rem 0;
}

.release-notes-content .date {
    color: #888;
    font-size: 0.85em;
}

.release-notes-content a {
    color: #ff6b35;
    text-decoration: none;
}

.release-notes-content a:hover {
    text-decoration: underline;
}

.release-notes-content mark {
    background: #3a2a10;
    color: #f0c060;
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
}

footer {
    margin-top: 2rem;
    text-align: center;
}

footer a {
    color: #ff6b35;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
    .container {
        padding: 1rem;
    }

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

    .release-header {
        flex-direction: column;
        gap: 0.25rem;
    }
}
