* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #0a0a0a;
    color: #ffffff;
    font-family: 'DM Sans', sans-serif;
    min-height: 100vh;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

main {
    background-color: #111;
    border: 1px solid #222;
    border-radius: 16px;
    padding: 2.5rem;
    max-width: 900px;
    width: 100%;
    margin-top: 3rem;
}

h1 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.back {
    display: inline-block;
    color: #666;
    text-decoration: none;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.back:hover {
    color: #fff;
}

.sets {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.set-card {
    display: block;
    padding: 0.75rem 1rem;
    background-color: #111;
    border: 1px solid #222;
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    font-size: 0.875rem;
    transition: background-color 0.2s, border-color 0.2s;
}

.header {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.home-link {
    color: #555;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: color 0.2s;
}

.home-link:hover {
    color: #888;
}

.set-card:hover {
    background-color: #1a1a1a;
    border-color: #444;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.75rem;
}

.grid-item {
    background-color: #111;
    border: 1px solid #222;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}

.grid-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: opacity 0.2s;
}

.grid-item img:hover {
    opacity: 0.8;
}

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

.close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0.6;
}

.close:hover {
    opacity: 1;
}

a {
    color: inherit;
    text-decoration: none;
}
