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

body{
    background:#111827;
    color:#f3f4f6;
    font-family:Arial, Helvetica, sans-serif;
}

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

header{
    position:sticky;
    top:0;
    z-index:100;
    background:#1f2937;
    padding:15px;
    display:flex;
    gap:10px;
    align-items:center;
}

.thump-small{
    display:grid;
    grid-template-columns:repeat(auto-fill, minmax(320px, 1fr));
    gap:20px;

    align-items:start;
}


.logo{
    font-size:24px;
    font-weight:bold;
}

.logo a{
    color:white;
}

.searchbox{
    flex:1;
}


.wallpaper-stats{
    margin:20px 0;
    padding:12px;

    background:#1f2937;
    border-radius:10px;

    text-align:center;
    color:#d1d5db;
    font-size:14px;
}


.searchbox input{
    width:100%;
    padding:10px;
    border:none;
    border-radius:10px;
    background:#374151;
    color:white;
}

.menu-button{
    font-size:28px;
}

.quicknav{
    display:flex;
    gap:10px;
    padding:10px;
    overflow-x:auto;
    background:#18212f;
}

.quicknav a{
    background:#293445;
    padding:8px 14px;
    border-radius:20px;
    white-space:nowrap;
}

.container{
    padding:15px;
}

.wallpaper-grid{
    display:grid;
    grid-template-columns:1fr;
    gap:18px;
}

.wallpaper-single{
    max-width:100%;
    max-height:100%;
    margin:auto;
}

.wallpaper-image img{
    width:100%;
    max-height:100%;
    object-fit:contain;
    background:#000;
}

.full-image{
    width:100%;
    height:100%;
    border-radius:18px;
}

.wallpaper-single h1{
    margin:20px 0 10px;
}

.wallpaper-single p{
    color:#cbd5e1;
    line-height:1.6;
}

.wallpaper-actions{
    display:flex;
    gap:12px;
    margin-top:20px;
}

.download-button,
.share-button{
    flex:1;
    display:flex;
    align-items:center;
    justify-content:center;

    padding:14px;
    border:none;
    border-radius:12px;

    background:#3b82f6;
    color:#fff;

    font-size:16px;
    font-weight:600;
    text-decoration:none;

    cursor:pointer;
    transition:all .2s ease;
}

.download-button:hover,
.share-button:hover{
    background:#2563eb;
}

.download-button:active,
.share-button:active{
    transform:scale(0.98);
}


footer{
    margin-top:40px;
    padding:30px 15px;
    text-align:center;
    color:#9ca3af;
}

@media (min-width:700px){

    .wallpaper-grid{
        grid-template-columns:repeat(2,1fr);
    }

}

@media (min-width:1100px){

    .wallpaper-grid{
        grid-template-columns:repeat(3,1fr);
    }

}

.category-description{
    margin:10px 0 20px;
    color:#9ca3af;
    line-height:1.5;
}


input[disabled] {
    background: #eee;
    cursor: not-allowed;
}

.tag{
    display:inline-block;

    margin:4px;
    padding:8px 12px;

    background:#1f2937;
    color:#e5e7eb;

    border-radius:999px;

    text-decoration:none;
    font-size:14px;
}

.tag:hover{
    background:#3b82f6;
}

#loading{
    text-align:center;
    padding:30px 0;
    color:#9ca3af;
    font-size:14px;
}

.mobile-menu{
    position:fixed;

    top:60px;
    left:0;
    right:0;

    display:none;
    flex-direction:column;

    background:#1f2937;

    padding:15px;

    z-index:999;
}

.mobile-menu.active{
    display:flex;
}

.mobile-menu a{
    padding:12px;

    border-radius:10px;

    background:#111827;

    margin-bottom:8px;

    color:#fff;
}

.mobile-menu a:hover{
    background:#374151;
}

.menu-button{
    font-size:28px;
    cursor:pointer;
}

.tag-cloud{
    margin:20px 0;
}

.tag-cloud .tag{
    transition:0.2s;
}

.tag-cloud .tag:hover{
    transform:translateY(-2px);
}

.tag{
    display:inline-block;

    margin:6px;
    padding:10px 14px;

    border-radius:999px;

    background:#1f2937;
}

.card-stats{
    display:flex;
    justify-content:flex-start;
    gap:12px;

    margin-top:8px;
    font-size:12px;
    color:#9ca3af;
}

.card-stats span{
    display:flex;
    align-items:center;
    gap:4px;
}

.container h2{
    margin-top:30px;
    margin-bottom:12px;
}

.container h3{
    margin-top:20px;
    margin-bottom:8px;
}

.container p,
.container li{
    line-height:1.7;
    color:#d1d5db;
}

.container ol,
.container ul{
    margin:15px 0 15px 25px;
}

.prompt-content{
    display:none;
}

.prompt-content.active{
    display:block;
}

.prompt-box{
    margin-top:20px;
    padding:15px;
    background:#1f2937;
    border-radius:12px;
}

.prompt-box pre{
    white-space:pre-wrap;
    word-break:break-word;
    margin-bottom:15px;
}

.collections-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

.collections-page h1 {
    font-size: 32px;
    margin-bottom: 10px;
}

.collections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.collection-card {
    display: block;
    padding: 20px;
    border-radius: 12px;
    background: #f5f5f5;
    text-decoration: none;
    color: #111;
    transition: 0.2s;
}

.collection-card:hover {
    transform: translateY(-3px);
    background: #eee;
}

.collection-title {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 8px;
}

.collection-desc {
    font-size: 13px;
    color: #666;
}

.hero-wallpaper img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.rank-item img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

.rank-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.rank-item img {
    flex-shrink: 0;
    width: 300px; /* of 350px */
    height: auto;
    object-fit: cover;
}


.collection-ranking{
    display:grid;
    grid-template-columns:repeat(auto-fill, minmax(220px, 1fr));
    gap:20px;

    align-items:start;
}