.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: #000;
    z-index: 9999;
    transition: width 0.1s ease-out;
    display: none;
}

.list-section {
    margin-bottom: 1.75rem;
    text-align: left;
}

.list-section h2,
.list-section h3 {
    font-size: 1rem;
    border-bottom: 1px solid #000;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.badge {
    font-size: 0.7rem;
    background: #000;
    color: #f8f9fa;
    padding: 4px 10px;
    border-radius: 999px;
    font-weight: 600;
}

.count {
    color: #6c757d;
    font-size: 0.85rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
    align-items: stretch;
}

.entry {
    background-color: #f8f9fa;
    border: 1px solid #000;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: opacity 0.8s ease, transform 0.8s ease, border-color 0.15s ease;
    opacity: 0;
    transform: translateY(24px);
}

.entry.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.entry:hover {
    transform: translateY(-2px);
    border-color: #000;
}

.entry img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    display: block;
    background: #000;
    border-bottom: 1px solid #000;
}

.entry .info {
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex: 1;
    justify-content: space-between;
}

.entry a {
    color: #000;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    min-height: 2.6em;
}

.entry a:hover {
    color: #0d6efd;
}

.meta {
    color: #6c757d;
    font-size: 0.8rem;
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
}

.score {
    color: #d39e00;
    font-weight: 700;
}

.progress-wrap {
    margin-top: 0.4rem;
}

.progress-bar-track {
    width: 100%;
    height: 6px;
    background: #e9ecef;
    border-radius: 999px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: #000;
    border-radius: 999px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.72rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

#status {
    color: #6c757d;
    padding: 1.5rem 0;
    text-align: center;
}

#status .error {
    color: #dc3545;
}

.intro {
    margin-bottom: 0.75rem;
}

.intro a {
    color: #000;
    text-decoration: underline;
}

.toggle-footer {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.toggle-button {
    background: #000;
    color: #f8f9fa;
    border: 1px solid #000;
    padding: 0.65rem 1.2rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    transition: background 0.2s ease, color 0.2s ease, transform 0.1s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.toggle-button:hover {
    background: #222;
    transform: translateY(-1px);
}
