body {
    background-color: #f8fafc;
    color: #0f172a;
    font-family: system-ui, -apple-system, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

nav {
    background-color: #0f172a;
    color: white;
    padding: 1rem;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    flex-shrink: 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.brand {
    font-weight: 900;
    text-transform: uppercase;
    font-style: italic;
    text-decoration: none;
    color: white;
    font-size: 1.25rem;
}

.breadcrumbs {
    border-left: 1px solid #334155;
    padding-left: 1rem;
    font-size: 0.875rem;
    color: #94a3b8;
    overflow-x: auto;
    white-space: nowrap;
}

.breadcrumbs a {
    color: #94a3b8;
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: white;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 2rem 1rem 8rem 1rem;
    box-sizing: border-box;
    flex-grow: 1;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.item-card {
    background: white;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 1.5rem;
    text-align: center;
    text-decoration: none;
    color: inherit;
    box-sizing: border-box;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
    overflow: visible;
}

.item-card:hover {
    transform: translateY(-4px);
    border-color: #3b82f6;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.icon-wrapper {
    width: 4.5rem;
    height: 4.5rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.custom-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.name-label {
    font-weight: bold;
    font-size: 0.85rem;
    line-height: 1.3;
    word-break: break-all;
    margin-bottom: 0.5rem;
    display: block;
    width: 100%;
}

.meta-label {
    font-size: 0.7rem;
    color: #64748b;
    text-transform: uppercase;
    font-family: monospace;
    margin-bottom: 0.5rem;
}

.download-btn {
    background-color: #2563eb;
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 0.5rem 1.25rem;
    border-radius: 0.5rem;
    margin-top: auto;
    text-decoration: none;
    display: inline-block;
}

.download-btn:hover {
    background-color: #1d4ed8;
}

.hash-box {
    font-size: 0.6rem;
    font-family: monospace;
    color: #64748b;
    margin-top: 0.75rem;
    word-break: break-all;
    background: #f1f5f9;
    padding: 0.4rem;
    border-radius: 0.35rem;
    width: 100%;
    box-sizing: border-box;
}

.date-label {
    font-size: 0.6rem;
    color: #94a3b8;
    margin-top: 0.5rem;
}

.empty-msg {
    text-align: center;
    padding: 5rem 1rem;
    border: 2px dashed #e2e8f0;
    border-radius: 1.5rem;
    color: #94a3b8;
}