body {
    background-color: #1a1a1a;
    color: #e0e0e0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    margin: 0;
    padding: 0;
    line-height: 1.4;
}

.logo a { 
    background: url(/img/logo.png) no-repeat center;
    display: block; 
    width: 200px;
    height: 45px;
    background-size: contain;
    transition: opacity 0.2s;
}

.logo a:hover { 
    opacity: 0.8;
}

.menu {
    margin-right: 10px;
    display: flex;
    gap: 5px;
}

.menu a {
    padding: 12px 18px;
    text-decoration: none;
    display: block;
    border-radius: 4px;
    transition: all 0.2s;
    font-weight: 500;
}

.menu a:hover {
    background-color: #ff9800;
    color: #fff;
    transform: translateY(-1px);
}

.menu-button {
    display: none;
    background-color: #242424;
    color: #ff9800;
    padding: 12px;
    font-size: 17px;
    border: none;
    cursor: pointer;
    background: url(/img/menu.svg) no-repeat center;
    background-size: 24px;
    width: 48px;
    height: 48px;
    border-radius: 4px;
    transition: background-color 0.2s;
}
  
.menu-button:hover {
    background-color: #333;
}

.popup-menu {
    display: none;
    position: fixed;
    top: 60px;
    right: 5px;
    background-color: #242424;
    min-width: 200px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    z-index: 6;
    border-radius: 8px;
    overflow: hidden;
}

.popup-menu a {
    padding: 14px 20px;
    text-decoration: none;
    display: block;
    text-align: center;
    border-bottom: 1px solid #333;
    transition: background-color 0.2s;
}

.popup-menu a:last-child {
    border-bottom: none;
}

.popup-menu a:hover {
    background-color: #ff9800;
    color: #fff;
}

ul, li {
    list-style: none;
    margin: 0;
    padding: 0;
}
    
a {
    color: #ff9800;
    text-decoration: none;
}
    
a:hover {
    color: #ffa726;
}
    
h2 {
    font-size: 18px;
    margin: 4px;
}
    
p {
    margin: 5px;
    padding: 5px;
    line-height: 1.6;
}

.infos {
    padding: 20px;
    text-align: left;  
    margin: 10px 5px;
    background-color: #242424;
    border-radius: 8px;
    line-height: 1.8;
}

.infos p {
    line-height: 1.8;
    color: #b0b0b0;
}
    
.infos a {
    text-decoration: underline;
}

.h2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
}

.h2-title {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.h2-count {
    margin-left: 10px;
    flex-shrink: 0;
}

h1 {
    display: inline-block;
    font-size: 24px;
    margin: 5px;
    padding: 5px;
    font-weight: 600;
    color: #fff;
}

.h1-bar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    margin: 5px 0;
    margin-top: 60px;
    background: linear-gradient(180deg, #242424 0%, transparent 100%);
}

.top-menu {
    background-color: #242424;
    position: fixed;
    top: 0;
    margin: 0 auto;
    width: 100%;
    z-index: 5;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    height: 60px;
}
  
.top-menu a {
    font-weight: 500;
}
  
#videoPrev {
    pointer-events: none;
    width: 100%;
    height: 100%;
    border-radius: 6px;
    object-fit: cover;
    z-index: 1;
    visibility: visible;
    position: absolute;
    top: 0;
    left: 0;
}

.content { 
    margin: 0 auto; 
    width: 100%; 
    max-width: 1400px;
}

.article {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 12px;
    padding: 10px 5px;
    margin: 0 auto;
}

.thumbs { 
    position: relative;
    background-color: #242424;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    contain: layout style paint;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.thumbs:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

.thumbs > a {
    display: block;
    position: relative;
    aspect-ratio: 16/9;
}

.thumbs img { 
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    content-visibility: auto;
}

.time { 
    bottom: 8px; 
    position: absolute;
    right: 8px;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.75);
    padding: 4px 10px;
    font-weight: 600;
    border-radius: 4px;
    font-size: 14px;
    backdrop-filter: blur(4px);
}

.views { 
    bottom: 8px; 
    position: absolute;
    left: 8px;
    color: #fff;
    padding: 4px 10px;
    font-weight: 600;
    background-color: rgba(0, 0, 0, 0.75);
    border-radius: 4px;
    font-size: 14px;
    backdrop-filter: blur(4px);
}

.views:before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 12px;
    background: url(/img/view.png) no-repeat center;
    background-size: contain;
    margin-bottom: -2px;
    margin-right: 4px;
}

.pagination {
    display: flex;
    justify-content: flex-start;
    padding: 10px 5px;
    margin: 10px 5px;
    list-style-type: none;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 8px;
}

.pagination a {
    display: inline-flex; 
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border: 2px solid #333;
    text-decoration: none;
    color: #fff;
    font-size: 15px;
    border-radius: 6px;
    transition: all 0.2s;
    font-weight: 500;
    min-width: 44px;
    text-align: center;
    flex-shrink: 0;
    white-space: nowrap;  
}

.pagination a:hover {
    background-color: #ff9800;
    border-color: #ff9800;
    transform: translateY(-2px);
}

#loading {
    text-align: center;
    padding: 30px;
    color: #ff9800;
    font-size: 18px;
    display: none;
}

.neutral-title {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    padding: 20px 10px 10px;
    margin: 0 5px;
}

.footer {
    padding: 20px;
    background: #242424;
    margin-top: 40px;
    border-top: 1px solid #333;
}

.footer a {
    text-decoration: underline;
}
    
.footer span { 
    float: right; 
}

.foot {
    max-width: 1400px;
    margin: 0 auto;
}

@media screen and (min-width: 1400px) {
    .article {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media screen and (max-width: 1024px) {
    .article {
        grid-template-columns: repeat(3, 1fr);
    }
}
	
@media screen and (max-width: 768px) {
    .article {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 8px;
    }
    
    h1 {
        font-size: 20px;
    }
    
    .menu {
        display: none;
    }
    
    .menu-button {
        display: block;
        margin: 0 10px;
    }

    .popup-menu {
        display: flex;
        flex-direction: column;
    }

    .pagination {
        gap: 6px;
    }
    
    .pagination a {
        padding: 8px 12px;
        font-size: 14px;
        min-width: 40px;
    }
}
  
@media screen and (max-width: 480px) {
    .article {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .top-menu {
        height: 56px;
    }
    
    .h1-bar {
        margin-top: 56px;
    }
    
    .infos {
        padding: 15px;
        margin: 8px;
    }
}