/**
 * Main Stylesheet for Live Cam Multisite
 * Site: https://top-chatroulette.com
 * Version: 1.0
 */

/* ============================================
   RESET & BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

/* ============================================
   CONTAINER
   ============================================ */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   HEADER
   ============================================ */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.logo__link {
    display: block;
    transition: opacity 0.3s;
}

.logo__link:hover {
    opacity: 0.9;
}

.logo__img {
    height: 40px;
    width: auto;
}

/* Navigation */
.nav__menu {
    display: flex;
    list-style: none;
    gap: 1rem;
}

.nav__link {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s;
    font-weight: 500;
}

.nav__link:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.nav__item--active .nav__link {
    background: rgba(255,255,255,0.3);
    font-weight: 600;
}

/* Header Actions */
.header__actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Source Filter */
.source-filter__select {
    padding: 0.5rem 2rem 0.5rem 1rem;
    border: none;
    border-radius: 25px;
    background: white;
    color: #333;
    font-size: 0.9rem;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.7rem center;
    background-size: 1rem;
}

.source-filter__select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.3);
}

/* Search */
.search {
    display: flex;
    gap: 0.5rem;
}

.search__input {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 25px;
    width: 200px;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.search__input:focus {
    outline: none;
    width: 250px;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.3);
}

.search__btn {
    padding: 0.5rem 1.5rem;
    border: none;
    border-radius: 25px;
    background: #ff6b6b;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.search__btn:hover {
    background: #ff5252;
    transform: translateY(-2px);
}

/* ============================================
   FILTERS BAR
   ============================================ */
.filters {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    margin: 2rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.filters__row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.filters__label {
    font-weight: 600;
    color: #666;
}

.filters__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-tag {
    padding: 0.3rem 1rem;
    background: #f0f0f0;
    border-radius: 20px;
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.filter-tag:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

.filter-tag--active {
    background: #667eea;
    color: white;
    font-weight: 600;
}

/* ============================================
   STATS BAR
   ============================================ */
.stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.stats__item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stats__label {
    color: #666;
    font-size: 0.9rem;
}

.stats__value {
    font-weight: 600;
    color: #667eea;
    font-size: 1.2rem;
}

/* ============================================
   MODELS GRID
   ============================================ */
.models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

/* Model Card */
.model-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s;
    position: relative;
}

.model-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.model-card__image-container {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #f0f0f0;
}

.model-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.model-card:hover .model-card__image {
    transform: scale(1.05);
}

/* Badges */
.model-card__badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    gap: 0.5rem;
    z-index: 2;
}

.badge {
    padding: 0.3rem 0.6rem;
    border-radius: 5px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    background: rgba(0,0,0,0.7);
    color: white;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.badge--source {
    background: white;
    color: #333;
}

.badge__icon {
    width: 16px;
    height: 16px;
    border-radius: 3px;
}

.badge--hd {
    background: #ff6b6b;
}

.badge--new {
    background: #4caf50;
}

.badge--vr {
    background: #9c27b0;
}

/* Overlay */
.model-card__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 3;
}

.model-card:hover .model-card__overlay {
    opacity: 1;
}

.model-card__stats {
    display: flex;
    gap: 1rem;
    color: white;
}

.stat {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.9rem;
    padding: 0.3rem 0.8rem;
    background: rgba(255,255,255,0.2);
    border-radius: 20px;
}

.model-card__btn {
    padding: 0.8rem 2rem;
    background: #ff6b6b;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s;
}

.model-card__btn:hover {
    background: #ff5252;
    transform: scale(1.05);
}

/* Card Info */
.model-card__info {
    padding: 1rem;
}

.model-card__name {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.model-card__name a {
    color: #333;
    text-decoration: none;
    font-weight: 600;
}

.model-card__name a:hover {
    color: #667eea;
}

.model-card__age {
    color: #999;
    font-weight: normal;
    font-size: 0.9rem;
}

.model-card__title {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    height: 2.8em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Tags */
.model-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-bottom: 0.5rem;
}

.tag {
    padding: 0.2rem 0.5rem;
    background: #f0f0f0;
    border-radius: 3px;
    color: #666;
    text-decoration: none;
    font-size: 0.7rem;
    transition: all 0.3s;
}

.tag:hover {
    background: #667eea;
    color: white;
}

/* Meta Info */
.model-card__meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: #999;
}

.meta {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.flag {
    width: 18px;
    height: 12px;
    border-radius: 2px;
    background-size: cover;
    background-position: center;
}

/* ============================================
   LOAD MORE BUTTON
   ============================================ */
.load-more {
    text-align: center;
    margin: 3rem 0;
}

.load-more__btn {
    padding: 1rem 3rem;
    border: none;
    border-radius: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.load-more__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102,126,234,0.4);
}

.load-more__btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* ============================================
   SEO TEXT
   ============================================ */
.seo-text {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    margin: 3rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.seo-text h1 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.seo-text p {
    color: #666;
    line-height: 1.8;
}

/* ============================================
   ERROR MESSAGE
   ============================================ */
.error-message {
    background: #fff3f3;
    border: 1px solid #ffcdd2;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    margin: 2rem 0;
}

.error-message h3 {
    color: #d32f2f;
    margin-bottom: 1rem;
}

.error-message ul {
    list-style: none;
    color: #666;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: #333;
    color: white;
    padding: 3rem 0;
    margin-top: 3rem;
}

.footer__links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer__link {
    color: #999;
    text-decoration: none;
    transition: color 0.3s;
}

.footer__link:hover {
    color: white;
}

.footer__copyright {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}

/* ============================================
   LOADING STATES
   ============================================ */
.loading {
    text-align: center;
    padding: 3rem;
    color: #666;
}

.loading::after {
    content: '';
    display: inline-block;
    width: 1.5rem;
    height: 1.5rem;
    border: 3px solid #f0f0f0;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-left: 0.5rem;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .models-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}

@media (max-width: 992px) {
    .header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav__menu {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .header__actions {
        width: 100%;
        flex-direction: column;
    }
    
    .search {
        width: 100%;
    }
    
    .search__input {
        width: 100%;
    }
    
    .search__input:focus {
        width: 100%;
    }
    
    .source-filter__select {
        width: 100%;
    }
    
    .filters__row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    /* Главная страница - 2 карточки в ряд */
    .models-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
    }
    
    .model-card .name {
        font-size: 14px;
    }
    
    .model-card .title {
        font-size: 11px;
        -webkit-line-clamp: 1;
        height: auto;
    }
    
    .model-card .tags {
        display: none;
    }
    
    .model-card .overlay {
        font-size: 12px;
        padding: 5px;
    }
    
    .model-card .badge {
        font-size: 10px;
        padding: 2px 5px;
    }
    
    .footer__links {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    /* Похожие модели - 2 карточки в ряд */
    .similar-models .models-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
    }
    
    .similar-models .card .name {
        font-size: 14px;
    }
    
    .similar-models .card .title {
        font-size: 11px;
        -webkit-line-clamp: 1;
        height: auto;
    }
    
    .similar-models .card .tags {
        display: none;
    }
    
    .similar-models .card .overlay {
        font-size: 12px;
        padding: 5px;
    }
    
    .similar-models .card .badge {
        font-size: 10px;
        padding: 2px 5px;
    }
}

@media (max-width: 768px) {
    .models-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px;
    }
    
    .similar-models .models-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .models-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 6px;
    }
    
    .similar-models .models-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 6px;
    }
    
    .model-card .name {
        font-size: 13px;
    }
    
    .similar-models .card .name {
        font-size: 13px;
    }
    
    .model-card .meta {
        font-size: 10px;
        gap: 5px;
    }
    
    .similar-models .card .meta {
        font-size: 10px;
        gap: 5px;
    }
    
    .model-card__overlay {
        opacity: 1;
        background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
        top: auto;
        height: 100px;
    }
    
    .model-card__stats {
        font-size: 0.8rem;
    }
}
/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .header,
    .filters,
    .search,
    .load-more,
    .footer {
        display: none;
    }
    
    .models-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .model-card__overlay {
        display: none;
    }
}

.model-card__link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.model-card__link:hover {
    opacity: 1;
}

/* Исправление для текстового логотипа */
.logo-text {
    font-size: 28px;
    font-weight: 800;
    color: white;
    text-decoration: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 8px 20px;
    border-radius: 10px;
    display: inline-block;
    margin-right: 30px;
    white-space: nowrap;
}

.logo-text:hover {
    opacity: 0.9;
    transform: scale(1.02);
    transition: all 0.3s;
}

/* Фикс для header */
.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

/* Чтобы меню не уезжало */
.nav {
    flex: 1;
}

.nav__menu {
    display: flex;
    list-style: none;
    gap: 1rem;
    margin: 0;
    padding: 0;
}

/* Фикс для поиска */
.header__actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.badge--source {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 8px;
    background: rgba(0,0,0,0.7);
    border-radius: 5px;
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

.badge--source:hover {
    opacity: 0.8;
}

/* ============================================
   SIMILAR MODELS - КАК НА ГЛАВНОЙ
   ============================================ */
.similar-models {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
}

.similar-models .models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.similar-models .card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.similar-models .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.similar-models .image-container {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.similar-models .image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.similar-models .badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    gap: 5px;
    z-index: 2;
}

.similar-models .badge {
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.similar-models .badge-source {
    background: white;
    color: black;
}

.similar-models .badge-hd {
    background: #ff6b6b;
    color: white;
}

.similar-models .badge-new {
    background: #4caf50;
    color: white;
}

.similar-models .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px;
    background: linear-gradient(to top, black, transparent);
    color: white;
    font-size: 14px;
}

.similar-models .info {
    padding: 10px;
}

.similar-models .name {
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 16px;
    color: #333;
}

.similar-models .title {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.4;
    height: 2.8em;
}

.similar-models .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 5px;
}

.similar-models .tag {
    padding: 2px 6px;
    background: #f0f0f0;
    border-radius: 3px;
    color: #666;
    font-size: 10px;
}

.similar-models .meta {
    display: flex;
    gap: 10px;
    font-size: 11px;
    color: #999;
}

.similar-models .load-more {
    text-align: center;
    margin: 30px 0;
}

.similar-models .load-more-btn {
    padding: 15px 40px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.similar-models .load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102,126,234,0.4);
}

.similar-models .load-more-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ============================================
   SIMILAR MODELS - МОБИЛЬНАЯ ВЕРСИЯ (2 В РЯД)
   ============================================ */
@media (max-width: 768px) {
    .similar-models .models-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .similar-models .card .name {
        font-size: 14px;
    }
    
    .similar-models .card .title {
        font-size: 11px;
        -webkit-line-clamp: 1;
        height: auto;
    }
    
    .similar-models .card .tags {
        display: none; /* прячем теги на мобильных */
    }
    
    .similar-models .card .overlay {
        font-size: 12px;
        padding: 5px;
    }
    
    .similar-models .card .badge {
        font-size: 10px;
        padding: 2px 5px;
    }
}

@media (max-width: 480px) {
    .similar-models .models-grid {
        gap: 8px;
    }
    
    .similar-models .card .name {
        font-size: 13px;
    }
    
    .similar-models .card .meta {
        font-size: 10px;
        gap: 5px;
    }
}

/* ============================================
   HEADER STYLES - ТЁМНАЯ ТЕМА (КАК НА ПРИМЕРЕ)
   ============================================ */

/* Top navigation */
.top-nav {
    background: #111;
    border-bottom: 1px solid #222;
    width: 100%;
}

.top-nav .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.top-nav__content {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 10px 0;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #999;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover {
    color: #ffcc00;
}

.nav-icon {
    width: 18px;
    height: 18px;
    stroke: currentColor;
}

/* Primary navigation */
.primary-nav {
    background: #0a0a0a;
    border-bottom: 1px solid #222;
    padding: 15px 0;
}

.primary-nav .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: white;
    text-decoration: none;
}

.logo span {
    color: #ffcc00;
}

.online-counter {
    display: flex;
    align-items: baseline;
    gap: 5px;
    margin-left: 20px;
}

.online-number {
    font-size: 18px;
    font-weight: bold;
    color: #ffcc00;
}

.online-label {
    font-size: 14px;
    color: #999;
}

.header-search {
    flex: 1;
    max-width: 500px;
    margin: 0 30px;
}

.search-form {
    display: flex;
    background: #222;
    border-radius: 30px;
    overflow: hidden;
    border: 1px solid #333;
    margin-bottom: 5px;
}

.search-input {
    flex: 1;
    padding: 12px 20px;
    background: transparent;
    border: none;
    color: white;
    font-size: 14px;
}

.search-input::placeholder {
    color: #666;
}

.search-input:focus {
    outline: none;
}

.search-btn {
    padding: 0 20px;
    background: #ffcc00;
    border: none;
    color: #000;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.search-btn:hover {
    background: #ffdb4d;
}

.trending {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}

.trending-label {
    color: #ffcc00;
    font-weight: bold;
    font-size: 12px;
}

.trending-tags {
    display: flex;
    gap: 15px;
}

.trending-tag {
    color: #999;
    text-decoration: none;
    font-size: 13px;
}

.trending-tag:hover {
    color: #ffcc00;
}

.header-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-signup {
    background: #ffcc00;
    color: #000;
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    white-space: nowrap;
}

.btn-signup:hover {
    background: #ffdb4d;
}

.language-selector {
    position: relative;
}

.lang-current {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    background: #222;
    border-radius: 20px;
    color: #999;
    cursor: pointer;
    font-size: 13px;
}

.lang-flag {
    width: 18px;
    height: 12px;
    border-radius: 2px;
    object-fit: cover;
}

/* Main navigation */
.main-nav {
    background: #111;
    border-bottom: 1px solid #222;
}

.main-nav .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    padding: 15px 0;
}

.nav-item a {
    color: #999;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    transition: color 0.2s;
}

.nav-item a:hover {
    color: #ffcc00;
}

.nav-item.active a {
    color: #ffcc00;
}

.mobile-nav {
    display: none;
}

.mobile-nav select {
    background: #222;
    color: white;
    border: 1px solid #333;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 992px) {
    .header-search {
        margin: 10px 0;
        max-width: 100%;
    }
    
    .primary-nav .container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .trending {
        margin-top: 10px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .mobile-nav {
        display: block;
        padding: 10px 0;
    }
    
    .top-nav__content {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .header-buttons {
        margin-top: 10px;
    }
}

@media (max-width: 480px) {
    .trending-tags {
        flex-wrap: wrap;
        gap: 8px;
    }
}

/* ============================================
   BREADCRUMBS
   ============================================ */
.breadcrumbs {
    margin: 20px 0;
    font-size: 14px;
}

.breadcrumbs ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.breadcrumbs li {
    color: #999;
}

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

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs .divider {
    margin: 0 8px;
    color: #444;
}

/* ============================================
   STATS
   ============================================ */
.stats {
    background: #111;
    border-radius: 10px;
    padding: 15px 20px;
    margin: 20px 0;
    border: 1px solid #222;
}

.stats__item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stats__label {
    color: #999;
    font-size: 14px;
}

.stats__value {
    color: #ffcc00;
    font-size: 20px;
    font-weight: bold;
}

/* ============================================
   MODELS GRID
   ============================================ */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.card {
    background: #111;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #222;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
    border-color: #ffcc00;
}

.image-container {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    gap: 5px;
    z-index: 2;
}

.badge {
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
}

.badge-source {
    background: white;
    color: black;
}

.badge-hd {
    background: #ff6b6b;
    color: white;
}

.badge-new {
    background: #4caf50;
    color: white;
}

.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px;
    background: linear-gradient(to top, black, transparent);
    color: white;
    font-size: 13px;
}

.info {
    padding: 12px;
}

.name {
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 15px;
    color: white;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 8px;
}

.tag {
    padding: 2px 6px;
    background: #222;
    border-radius: 3px;
    color: #999;
    font-size: 10px;
    text-decoration: none;
    transition: all 0.2s;
}

.tag:hover {
    background: #ffcc00;
    color: #000;
}

.meta {
    display: flex;
    gap: 10px;
    font-size: 11px;
    color: #666;
}

/* ============================================
   LOAD MORE
   ============================================ */
.load-more {
    text-align: center;
    margin: 40px 0;
}

.load-more-btn {
    padding: 15px 40px;
    background: #ffcc00;
    color: #000;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.load-more-btn:hover {
    background: #ffdb4d;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255,204,0,0.3);
}

.load-more-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: #111;
    border-top: 1px solid #222;
    padding: 30px 0;
    margin-top: 40px;
    color: #666;
    text-align: center;
    font-size: 14px;
}

/* ============================================
   MOBILE RESPONSIVE - 2 CARDS IN ROW
   ============================================ */

/* Главная страница и похожие модели */
@media (max-width: 768px) {
    .grid,
    .similar-models .grid,
    #models-grid,
    #similar-models-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
    }
    
    /* Уменьшаем размеры карточек для мобильных */
    .card .name {
        font-size: 13px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .card .badge {
        font-size: 10px;
        padding: 2px 5px;
    }
    
    .card .overlay {
        font-size: 11px;
        padding: 5px;
    }
    
    .card .tags {
        display: none; /* Прячем теги на мобильных */
    }
    
    .card .meta {
        font-size: 10px;
        flex-wrap: wrap;
    }
    
    /* Скрываем второй meta элемент если их два */
    .card .meta span:not(:first-child) {
        display: none;
    }
}

@media (max-width: 480px) {
    .grid,
    .similar-models .grid,
    #models-grid,
    #similar-models-grid {
        gap: 8px;
    }
    
    .card .name {
        font-size: 12px;
    }
    
    .card .overlay {
        font-size: 10px;
    }
}