body {
    font-family: 'Nunito', sans-serif;
    background-color: #f4f4f4;
    margin: 0;
}
.error-msg { color: red; font-size: 14px; margin-top: 10px; text-align: center; }
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
div:where(.swal2-container) {
    z-index: 99999 !important;
}
.header-top {
    background-color: #1a1a1a;
    padding: 12px 0;
    color: white;
}

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

/* Логотип */
.logo-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
}

.logo-img {
    height: 35px;
}

.logo-sub {
    font-size: 10px;
    letter-spacing: 1px;
    color: #ccc;
    margin-top: 3px;
    text-transform: uppercase;
}

.center-nav {
    display: flex;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    padding-bottom: 5px;
    position: relative;
    transition: 0.3s;
}

.nav-link:hover {
    color: #7dc142;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #7dc142;
    border-radius: 2px 2px 0 0;
}

.user-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-login-action {
    background-color: #7dc142;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-family: 'Nunito', sans-serif;
    transition: transform 0.2s;
}

.btn-login-action:hover {
    transform: scale(1.05);
}

.btn-login-action .btn-icon {
    width: 16px; 
    height: 16px;
    filter: invert(1);
}

#user-block {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-profile {
    background-color: #7dc142;
    color: #000;
    border: none;
    padding: 5px 15px 5px 5px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    cursor: pointer;
}

.avatar-circle {
    width: 30px;
    height: 30px;
    background-color: #004d00;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-circle img {
    width: 18px;
    filter: invert(1);
}

.btn-logout {
    background: transparent;
    border: 1px solid #ffffff;
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-logout:hover {
    background: rgba(255,255,255,0.1);
}

.lang-dropdown-container {
    position: relative;
    cursor: pointer;
    font-family: 'Nunito', sans-serif;
}

.lang-selected {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #0099ff;
    font-weight: 700;
    font-size: 15px;
    padding: 5px;
    transition: opacity 0.3s;
}

.lang-selected:hover {
    opacity: 0.8;
}

.arrow-down {
    font-size: 10px;
    margin-top: 2px;
}

.lang-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #222;
    list-style: none;
    padding: 10px 0;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    min-width: 120px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: 0.3s ease;
}

.lang-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-menu li {
    padding: 8px 15px;
    color: #fff;
    font-size: 14px;
    transition: background 0.2s;
}

.lang-menu li:hover {
    background-color: #333;
    color: #7dc142;
}

.header-bottom {
    background-color: #ffffff;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.sub-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    gap: 20px;
}

.sub-link {
    text-decoration: none;
    color: #999;
    font-size: 16px;
    font-weight: 500;
}

.sub-link.active {
    color: #1a1a1a;
    border-bottom: 2px solid #7dc142;
    padding-bottom: 5px;
}

.separator {
    color: #ddd;
    font-weight: 300;
}

::-webkit-scrollbar {
    width: 8px;  
    height: 8px; 
}

::-webkit-scrollbar-track {
    background: #1a1a1a; 
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #7dc142; 
    border-radius: 4px; 
    border: 2px solid #1a1a1a; 
}

::-webkit-scrollbar-thumb:hover {
    background: #fff; 
}

.cinema-section {
    padding: 30px 0;
    background-color: #fff;
}

.tv-interface {
    background-color: #000;
    border-radius: 20px;
    padding: 0; 
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

.tv-body {
    display: block; 
    width: 100%;
    aspect-ratio: 16 / 9; 
    position: relative;
    background: #000;
}

.video-screen-wrapper {
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.video-screen-wrapper iframe,
.video-screen-wrapper video {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

a[style*="z-index: 2"], a[style*="z-index:2"] {
    pointer-events: none !important;
    display: none !important;
}

.live-indicator {
    position: absolute;
    top: 30px;
    left: 30px;
    background: rgba(255, 0, 0, 0.8); 
    color: white;
    padding: 5px 15px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 20; 
    pointer-events: none; 
}

.red-dot {
    width: 10px;
    height: 10px;
    background-color: #fff;
    border-radius: 50%;
    display: block;
    animation: blink 2s infinite; 
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0.4; }
    100% { opacity: 1; }
}
.friends-grid-section {
    padding: 40px 0;
    background-color: #fff;
}
.friends-list-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px; 
    margin-bottom: 30px;
}

.friends-grid-section {
    padding: 40px 0;
    background-color: #fff;
}

.friends-list-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 20px;
    margin-bottom: 25px;
}

.friends-list-wrapper a {
    display: block;
    border-radius: 20px;
    margin: 0; 
    overflow: hidden;
    aspect-ratio: 4 / 5; 
    transition: transform 0.3s;
    background: #f0f0f0; 
    box-shadow: 0 10px 20px rgba(0,0,0,0.05); 
}
.friends-list-wrapper a:hover {
    transform: translateY(-5px);
}

.friends-list-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.friends-grid-section {
    padding: 40px 0;
    background-color: #fff;
}

.friends-list-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 20px;
    margin-bottom: 25px;
}

.friends-list-wrapper a {
    display: block;
    border-radius: 20px;
    margin: 0; 
    overflow: hidden;
    aspect-ratio: 1 / 1; 
    transition: transform 0.3s;
    background: #f0f0f0; 
}

.friends-list-wrapper a:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15); 
}

.friends-list-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.friends-list-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 20px;
    margin-bottom: 30px;
}

.friend-logo-box {
    display: block;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 1 / 1; 
    transition: transform 0.3s ease;
    background: #f9f9f9;
}

.friend-logo-box:hover {
    transform: translateY(-5px);
}

.friend-logo-box img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    display: block;
}

.info-showcase-box {
    width: 100%;
    height: auto; 
    
    aspect-ratio: 16 / 9; 
    
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    background: #000; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-top: 30px;
}

.info-showcase-box a {
    display: block;
    width: 100%;
    height: 100%;
}

.info-showcase-box video,
.info-showcase-box img {
    width: 100%;
    height: 100%;
    
    object-fit: contain; 
    
    display: block;
}
.anons-section {
    padding: 40px 0;
    overflow: hidden;
}

.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.slider-controls { display: flex; gap: 10px; }
.arrow-btn {
    width: 40px; height: 40px;
    border: none; background: transparent;
    color: #7dc142; font-size: 30px; line-height: 1;
    cursor: pointer; font-weight: bold; transition: 0.2s;
}
.arrow-btn:hover { background: #f0f0f0; border-radius: 50%; }

.anons-track {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 20px 10px;
    scrollbar-width: none;
}

.anons-card {
    flex: 0 0 280px;
    width: 280px;
    height: 480px;
    
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    
    border-radius: 30px;
    position: relative;
    overflow: hidden;
    scroll-snap-align: center;
    transition: transform 0.3s;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.anons-card:hover { transform: translateY(-10px); }

.card-purple { background: linear-gradient(180deg, #5200cc 0%, #a230ff 100%); }
.card-orange { background: linear-gradient(180deg, #ff4e50 0%, #f9d423 100%); }
.card-blue   { background: linear-gradient(180deg, #00c6ff 0%, #0072ff 100%); }
.card-violet { background: linear-gradient(180deg, #8e2de2 0%, #4a00e0 100%); }

.person-image {
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    height: 100%; 
    
    display: flex;
    align-items: flex-end; 
    justify-content: center;
    z-index: 1;
    pointer-events: none; 
}

.person-image img {
    border-radius: 15px;
    max-height: 95%; 
    max-width: 95%;
    object-fit: contain;
    filter: drop-shadow(0 5px 10px rgba(0,0,0,0.3));
}

.archive-section {
    padding: 40px 0 60px;
}

.archive-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 25px;
}

.archive-card {
    display: block;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.archive-card:hover { transform: translateY(-5px); }

.thumb-wrapper {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

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

.archive-card:hover .thumb-img { transform: scale(1.05); }

.play-circle {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 70px; height: 70px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
    transition: background 0.3s;
}

.archive-card:hover .play-circle {
    background-color: #fff;
    transform: translate(-50%, -50%) scale(1.1);
}

.play-triangle {
    color: #7dc142;
    font-size: 24px;
    margin-left: 5px;
}

.video-title {
    text-align: center;
    color: #666;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    margin-top: 15px;
    letter-spacing: 1px;
}

.main-footer {
    background-color: #1a1a1a;
    padding: 50px 0 30px;
    color: #ffffff;
    font-family: 'Nunito', sans-serif;
    margin-top: 50px;
}

.footer-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 20px;
}

.footer-info-block {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: opacity 0.3s;
}

.footer-links a:hover { opacity: 0.7; }

.footer-contacts {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.contact-label {
    font-size: 14px;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 5px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.contact-phone, .contact-email {
    color: #fff;
    text-decoration: none;
    font-size: 15px;
}

.footer-socials { display: flex; gap: 15px; }

.social-circle {
    display: flex; align-items: center; justify-content: center;
    width: 45px; height: 45px;
    background-color: #90e895;
    border-radius: 50%;
    transition: transform 0.2s, background-color 0.2s;
}

.social-circle:hover {
    transform: translateY(-3px);
    background-color: #7dc142;
}

.footer-divider {
    height: 1px;
    background-color: #333;
    margin-top: 30px;
    width: 100%;
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    justify-content: center; align-items: center;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 30px;
    width: 400px;
    max-width: 90%;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close-modal {
    position: absolute;
    top: 15px; right: 20px;
    font-size: 30px; cursor: pointer; color: #999;
}

.auth-tabs {
    display: flex;
    margin-bottom: 25px;
    border-bottom: 2px solid #eee;
}

.tab-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 15px;
    font-size: 18px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    position: relative;
}

.tab-btn.active { color: #333; }
.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0; width: 100%; height: 3px;
    background: #7dc142;
}

.auth-form {
    display: none;
    flex-direction: column;
    gap: 15px;
}

.auth-form.active { display: flex; }

.auth-form input {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-size: 16px;
    background: #f9f9f9;
}

.btn-submit {
    background: #7dc142;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.3s;
}

.btn-submit:hover { background: #6ab035; }

.form-footer {
    text-align: center;
    color: #0099ff;
    font-size: 14px;
    cursor: pointer;
    margin-top: 10px;
}

@media (max-width: 768px) {
    .header-row {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .center-nav {
        order: 3; 
        width: 100%;
        justify-content: center;
    }

    .header-bottom {
        padding: 15px 0;
    }

    .sub-menu {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 5px;
        scrollbar-width: none; 
    }
    
    .sub-menu::-webkit-scrollbar {
        display: none; 
    }

    .separator {
        display: none; 
    }

    .sub-link {
        white-space: nowrap; 
    }

    .archive-grid {
        grid-template-columns: 1fr;
    }

    .footer-wrapper {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 30px;
    }

    .footer-info-block {
        align-items: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px; 
    }

    .btn-login-action {
        padding: 6px 15px;
        font-size: 14px;
    }

    .anons-card {
        flex: 0 0 240px;
        width: 240px;
        height: 400px;
    }

    .slider-controls {
        display: none;
    }

    .modal-content {
        padding: 25px 20px;
    }

    .tab-btn {
        font-size: 16px;
        padding: 10px;
    }
}