

a {
    color: inherit;
}


h1 {
    margin: 0;
    font-size: 20px;
}
.controls {
    display: flex;
    gap: 8px;
    flex: 1;
    justify-content: flex-end;
}
.controls input[type="search"],
.controls select {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 12px;
    padding: 10px;
    min-width: 160px;
    outline: none;
}
main {
    max-width: 1100px;
    margin: auto;
    padding: 16px;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 8px;
    margin: 8px auto 0;
    max-width: 1100px;
    padding: 0 0 16px 20px;
}
.tab {
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: var(--bgtext);
    cursor: pointer;
    font-size: 14px;
    color: var(--muted);
}
.tab.active {
    background: var(--accent);
    color: var(--bgtext);
    border-color: var(--accent);
}

section {
    margin: 26px 0;
}
.section-head {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    border: none;
    background: transparent;
    border-radius: 10px;
    cursor: pointer;
}
.section-head:hover {
    background: #eef2ff;
}
.section-title {
    font-size: 18px;
    font-weight: 600;
}
.arrow {
    font-size: 18px;
    color: var(--muted);
}
.grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(1, minmax(0, 1fr));
}
@media (min-width: 640px) {
    .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (min-width: 960px) {
    .grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.card {
    display: block;
    padding: 14px;
    text-decoration: none;
    box-shadow: var(--shadow);
    transition: transform 0.08s ease;
}
.card:hover {
    transform: translateY(-1px);
}
.card .top {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.favicon,
.favicon-fallback {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    border: 1px solid var(--line);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 12px;
    background: #eef2ff;
    color: var(--accent);
}
.favicon {
    object-fit: contain;
    background: #fff;
}
.title-row {
    display: flex;
    align-items: center;
    gap: 6px;
}
.title {
    font-weight: 600;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}
.host {
    font-size: 10px;
    color: var(--muted);
    background: #f1f5f9;
    border: 1px solid var(--line);
    padding: 2px 8px;
    border-radius: 999px;
    white-space: nowrap;
}
.desc {
    color: #334155;
    font-size: 14px;
    margin: 0.35rem 0 0;
}

.fade {
    animation: fade 0.25s ease both;
}
@keyframes fade {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}


