@import url('https://cdn.jsdelivr.net/npm/bpg-arial@1.0.0/css/bpg-arial.min.css');

.header-mobile-logo {
    display: none;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'BPG Arial', sans-serif;
}

html, body {
    width: 100%;
    min-height: 100vh;
}

body {
    background-color: #bebebe;
    display: flex;
    justify-content: center;
    align-items: stretch;
}

.page-container, .page-container:focus,
.top-ad-banner, .top-ad-banner:focus,
.site-header, .site-header:focus {
    outline: none !important;
}

.page-container {
    width: 1280px;
    min-height: 100vh;
    background-color: #ffffff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

.top-ad-banner {
    background: #3a3a3a;
    color: #aaaaaa;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 2px solid #2a2a2a;
    flex-shrink: 0;
}

.ad-placeholder-text {
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 1px;
}

.site-header {
    background-color: #2a2a2a;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.burger-toggle-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    display: none;
    touch-action: manipulation;
}

.header-left-icons {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-shrink: 0;
}

.h-icon-btn {
    color: #b0b0b0;
    font-size: 20px;
    padding: 4px;
    transition: color 0.2s ease, transform 0.2s ease;
}

.h-icon-btn:hover, 
.h-icon-btn.active {
    color: #e53935;
    transform: translateY(-1px);
}

.header-search-bar {
    position: relative;
    flex: 1;
    max-width: 420px;
    display: flex;
    align-items: center;
    margin: 0 auto;
}

.header-search-bar input {
    width: 100%;
    background: #383838;
    border: 1px solid #4a4a4a;
    color: #fff;
    padding: 9px 40px 9px 15px;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
}

.search-submit-btn {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 38px;
    background: none;
    border: none;
    color: #aaa;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
}

.search-submit-btn:hover {
    color: #fff;
}

.header-right-actions {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.login-btn {
    background: #e53935;
    color: #fff;
    border: none;
    padding: 8px 18px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
    white-space: nowrap;
    touch-action: manipulation;
}

.login-btn:hover {
    background: #c62828;
}

.main-body {
    display: flex;
    padding: 15px;
    gap: 15px;
    flex: 1 0 auto;
}

.sidebar {
    width: 230px;
    flex-shrink: 0;
    touch-action: pan-y;
}

.logo-badge-box {
    background: #2a2a2a;
    border-radius: 12px;
    padding: 10px;
    text-align: center;
    margin-bottom: 12px;
    cursor: pointer;
}

.logo-badge-box a {
    display: block;
    text-decoration: none;
    cursor: pointer;
}

.sport-badge {
    background: #e53935;
    color: #fff;
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
}

.video-badge {
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    margin-left: 4px;
}

.categories-list {
    list-style: none;
    background: #fff;
    border: none;
}

.categories-list li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    font-size: 14px;
    color: #333;
    text-decoration: none;
    border: none;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s ease-in-out;
}

.categories-list li a:hover {
    background-color: #f5f5f5;
    color: #d32f2f;
    padding-left: 16px;
}

.categories-list li.active-cat a {
    color: #e53935;
    font-weight: bold;
    background-color: #fdf2f2;
}

.categories-list li.divider {
    height: 8px;
    background: #eee;
    border: none;
}

.sidebar-banners {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar-ad-box {
    background: #dcdcdc;
    border: 2px dashed #aaaaaa;
    height: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #666;
    border-radius: 4px;
}

.sidebar-ad-box p {
    font-size: 13px;
    font-weight: bold;
}

.sidebar-ad-box span {
    font-size: 11px;
    color: #888;
    margin-top: 4px;
}

.sidebar-socials {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-join-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    height: 60px;
    border-radius: 4px;
    color: #ffffff !important;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    touch-action: manipulation;
}

.social-join-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.social-join-btn i {
    font-size: 24px;
}

.soc-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.soc-text strong {
    font-size: 15px;
    letter-spacing: 0.5px;
    font-family: Arial, sans-serif;
}

.soc-text span {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.85);
}

.btn-fb {
    background: #1877f2;
}

.btn-tt {
    background: #000000;
}

.btn-yt {
    background: #ff0000;
}

.content-wrapper {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.main-ad-box {
    background: #dcdcdc;
    border: 2px dashed #aaaaaa;
    height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #555;
    margin-bottom: 15px;
    border-radius: 4px;
    width: 100%;
}

.main-ad-box h3 {
    font-size: 16px;
    font-weight: bold;
}

.main-ad-box span {
    font-size: 12px;
    color: #777;
    margin-top: 4px;
}

.popular-slider-block {
    background: transparent;
    border: none;
    padding: 0;
    margin-bottom: 20px;
    border-radius: 0;
}

.block-title {
    font-size: 15px;
    font-weight: bold;
    color: #333;
    margin-bottom: 12px;
}

.slider-viewport {
    position: relative;
    overflow: hidden;
}

.slider-track {
    display: flex;
    gap: 12px;
    transition: transform 0.3s ease-in-out;
}

.slide-item {
    background: transparent !important;
    border: none !important;
    cursor: default;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 0 !important;
    box-shadow: none !important;
    position: relative;
    flex: 0 0 calc((100% - 24px) / 3);
    touch-action: manipulation;
}

.v-card {
    background: transparent !important;
    border: none !important;
    cursor: default;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 0 !important;
    box-shadow: none !important;
    position: relative;
    touch-action: manipulation;
}

.slide-item .thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #1c1c1c;
    overflow: hidden;
    flex-shrink: 0;
    cursor: pointer;
    border-radius: 0 !important;
    touch-action: manipulation;
}

.thumb-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    touch-action: manipulation;
}

.title-link {
    touch-action: manipulation;
}

.v-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    background: #1c1c1c;
    overflow: hidden;
    flex-shrink: 0;
    cursor: pointer;
    border-radius: 0 !important;
    touch-action: manipulation;
}

.slide-item .thumb img, 
.v-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
    border-radius: 0 !important;
    transform: scale(1.02);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    will-change: transform;
}

@media (hover: hover) {
    .slide-item:hover .thumb img,
    .v-card:hover .v-thumb img {
        transform: scale(1.08);
    }

    .slide-item:hover .thumb::before {
        opacity: 1;
    }

    .slide-item:hover .thumb::after,
    .v-card:hover .v-thumb::after {
        transform: scaleX(1);
    }

    .slide-item:hover .play-btn-overlay,
    .slide-item:hover .play-icon {
        background: rgba(229, 57, 53, 0.9) !important;
        border-color: #ffffff !important;
        transform: translate(-50%, -50%) scale(1.1) !important;
    }

    .v-card:hover .play-btn-overlay,
    .v-card:hover .play-icon,
    .v-card:hover .v-icon {
        background: rgba(229, 57, 53, 0.9) !important;
        border-color: #e53935 !important;
        transform: translate(-50%, -50%) scale(1.1) !important;
    }

    .slide-item:hover .info h4,
    .v-card:hover .v-details h3 {
        color: #e53935 !important;
    }
}

.slide-item .thumb::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(229, 57, 53, 0.25);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
    pointer-events: none;
}

.slide-item .thumb::after,
.v-thumb::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: #e53935;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.3s ease;
    z-index: 5;
    pointer-events: none;
}

.views-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(42, 42, 42, 0.85);
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    z-index: 4;
    border-radius: 2px;
    display: flex;
    align-items: center;
    gap: 4px;
    pointer-events: none;
}

.play-btn-overlay, 
.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.4); 
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s ease;
    z-index: 4;
    backdrop-filter: blur(2px);
    pointer-events: none; 
}

.info, 
.v-details {
    padding: 12px 14px;
    background: transparent !important;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: default;
    height: 98px;
}

.info h4, 
.v-details h3 {
    font-size: 13px;
    font-weight: normal;
    line-height: 1.4;
    color: #222;
    margin-bottom: 8px;
    transition: color 0.2s ease;
    cursor: default;
    
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 36px; 
}

.v-details h3 a, 
.info h4 a {
    cursor: pointer !important; 
    color: inherit;
    text-decoration: none;
    pointer-events: auto !important;
    touch-action: manipulation;
}

.red-text, 
.red-title { 
    color: #e53935 !important; 
}

.meta, 
.v-meta {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #777;
    margin-top: auto; 
}

.read-more-link {
    color: #777;
    text-decoration: none !important; /* ხაზი ქვეშ მოხსნილია */
    transition: color 0.2s ease, font-weight 0.2s ease;
    cursor: pointer;
    touch-action: manipulation;
}

.read-more-link:hover {
    color: #e53935 !important;
    font-weight: bold;
}

.arrow-btn {
    position: absolute;
    top: 35%;
    transform: translateY(-50%);
    width: 32px;
    height: 50px;
    border: none;
    color: #fff;
    cursor: pointer;
    z-index: 10;
    background: rgba(42, 42, 42, 0.85);
    font-size: 16px;
    transition: background-color 0.2s ease;
    border-radius: 3px;
    touch-action: manipulation;
}

.left-arrow { left: 0; }
.right-arrow { right: 0; }

.arrow-btn:hover {
    background: #e53935 !important;
}

.video-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 15px;
    width: 100%;
}

.video-grid .v-card {
    flex: 0 0 calc((100% - 36px) / 4);
    box-sizing: border-box;
}

.duration-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(42, 42, 42, 0.85);
    color: #fff;
    font-size: 11px;
    padding: 2px 6px;
    z-index: 4;
    border-radius: 2px;
    pointer-events: none;
}

.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 15px;
    margin-bottom: 1px;
    width: 100%;
}

.pagination-container span.prev-page,
.pagination-container span.next-page {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
}

.pagination-container a,
.pagination-container span.page-link:not(.prev-page):not(.next-page) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 30px;
    height: 30px;
    padding: 0 14px;
    font-size: 11px;
    font-weight: bold;
    color: #333;
    text-decoration: none;
    border: 1px solid #c0c0c0;
    background: #ffffff;
    border-radius: 4px;
    transition: all 0.2s ease;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    touch-action: manipulation;
}

.pagination-container a:hover {
    background: #e53935;
    color: #fff;
    border-color: #e53935;
}

.pagination-container span.page-link:not(.prev-page):not(.next-page):not(:has(a)) {
    background: #2a2a2a; 
    color: #fff;
    border-color: #2a2a2a;
    cursor: default;
}

.pagination-container span.nav_ext {
    background: transparent;
    border: none;
    box-shadow: none;
    color: #777;
    cursor: default;
}

.site-footer {
    background: #fff;
    border-top: 1px solid #ccc;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: #555;
    flex-shrink: 0;
    margin-top: auto;
    gap: 15px;
}

.footer-left a {
    color: #333;
    text-decoration: none;
    font-weight: bold;
    touch-action: manipulation;
}

.footer-left a:hover {
    color: #e53935;
}

.footer-center {
    text-align: center;
}

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

.topge-counter {
    background: #2a2a2a;
    color: #fff;
    padding: 3px 8px;
    font-size: 10px;
    display: inline-block;
    text-align: center;
    border-radius: 2px;
}

.topge-counter small {
    color: #ff9800;
    display: block;
}

.auth-modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.65);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3000;
}

.auth-modal-overlay.open {
    display: flex;
}

.auth-modal-box {
    background: #fff;
    width: 360px;
    max-width: 90%;
    border-radius: 5px;
    padding: 20px;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.auth-close-btn {
    position: absolute;
    top: 10px; right: 12px;
    background: none;
    border: none;
    font-size: 22px;
    color: #777;
    cursor: pointer;
    touch-action: manipulation;
}

.auth-close-btn:hover { color: #000; }

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

.tab-btn {
    flex: 1;
    padding: 8px;
    background: none;
    border: none;
    font-size: 14px;
    font-weight: bold;
    color: #777;
    cursor: pointer;
    touch-action: manipulation;
}

.tab-btn.active {
    color: #e53935;
    border-bottom: 2px solid #e53935;
    margin-bottom: -2px;
}

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

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.form-group label {
    font-size: 12px;
    color: #555;
    font-weight: bold;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="email"],
.form-group input[type="file"],
.form-group select,
.form-group textarea,
textarea,
input.wide,
textarea.wide,
.addform textarea,
.addform input {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s ease;
    font-family: inherit;
    background-color: #ffffff;
    resize: vertical !important;
}

.form-group input:focus, 
.form-group textarea:focus,
textarea:focus {
    border-color: #e53935;
}

.form-actions {
    text-align: right;
}

.forgot-pass-link {
    font-size: 11px;
    color: #e53935;
    text-decoration: none;
}

.forgot-pass-link:hover {
    text-decoration: underline;
}

.auth-submit-btn {
    background: #2a2a2a; 
    color: #fff;
    border: none;
    padding: 9px;
    border-radius: 3px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 5px;
    transition: background 0.2s ease;
    touch-action: manipulation;
}

.auth-submit-btn:hover {
    background: #e53935;
}

.berrors, 
.alert-danger, 
.alert-error, 
.ui-state-error {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
    text-align: center;
    width: 100%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.berrors b, 
.alert-danger b, 
.ui-state-error b {
    display: block;
    font-size: 15px;
    margin-bottom: 5px;
}

#custom-tooltip {
    position: fixed;
    background: #2a2a2a;
    color: #ffffff;
    border: 1px solid #e53935;
    padding: 5px 10px;
    font-size: 11px;
    font-family: 'BPG Arial', sans-serif;
    font-weight: bold;
    white-space: nowrap;
    pointer-events: none;
    z-index: 99999;
    border-radius: 3px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    display: none;
}

.full-article-box,
.content-wrapper article.box.story {
    background: #fff;
    margin-bottom: 13px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    overflow: hidden;
}

.article-header {
    margin-bottom: 8px;
    border-bottom: none;
    padding-bottom: 0;
}

.article-title {
    font-size: 20px;
    color: #222;
    margin-bottom: 6px;
    line-height: 1.4;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 13px;
    color: #666;
    align-items: center;
    margin-top: 0;
    margin-bottom: 10px;
}

.article-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.article-meta span i {
    color: #e53935;
    font-size: 14px;
    transition: transform 0.2s ease;
}

.article-meta span:hover i {
    transform: scale(1.1);
}

.article-content {
    font-size: 14px;
    color: #444;
    line-height: 1.6;
    margin-bottom: 12px;
}

.article-content p,
.addform p,
.content-wrapper p {
    margin-bottom: 12px !important;
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: #1c1c1c;
    border-radius: 4px;
    margin-top: 0;
    margin-bottom: 10px;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.userinfo {
    font-family: 'BPG Arial', sans-serif;
    background: #ffffff;
    padding: 15px;
    border-radius: 6px;
    color: #333;
    max-width: 400px;
    border: 1px solid #d0d0d0;
}

.userinfo.clrfix::after {
    content: "";
    display: table;
    clear: both;
}

.userinfo .avatar {
    float: left;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
    border: 1px solid #ddd;
    background-color: #e0e0e0;
}

.userinfo .avatar .cover {
    display: block;
    width: 100%;
    height: 100%;
    background-color: #e0e0e0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23888888'%3E%3Cpath d='M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z'/%3E%3C/svg%3E"), url('{foto}');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.userinfo ul {
    list-style: none;
    padding: 0;
    margin: 0;
    overflow: hidden;
}

.userinfo ul li {
    font-size: 13px;
    color: #555;
    padding: 4px 0;
    border-bottom: 1px solid #f0f0f0;
}

.userinfo ul li:last-child {
    border-bottom: none;
}

.userinfo ul li b {
    color: #222;
    font-weight: bold;
}

.content-wrapper form,
form[name="registration"],
form[name="lostpassword"],
#dle-reg-form,
#dle-content form,
.page_form__inner,
.addform {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.page_form__inner {
    background: #ffffff;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    padding: 20px;
    font-family: 'BPG Arial', sans-serif;
    margin-bottom: 20px;
}

.page_form__inner .title.h1 {
    font-size: 18px;
    font-weight: bold;
    color: #222222;
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e53935;
    display: inline-block;
}

.ui-form {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.login_check {
    display: flex;
    gap: 10px;
    width: 100%;
}

.login_check input {
    flex: 1;
}

.login_check .btn {
    background: #2a2a2a;
    color: #ffffff;
    border: none;
    padding: 10px 18px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease;
    touch-action: manipulation;
}

.login_check .btn:hover {
    background: #e53935;
}

#result-registration {
    font-size: 12px;
    margin-top: 4px;
}

.c-captcha {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    width: 100%;
}

.c-captcha img {
    border-radius: 4px;
    border: 1px solid #ccc;
}

.c-captcha input {
    flex: 1;
    min-width: 180px;
}

.xfields {
    width: 100%;
    border-collapse: collapse;
}

.xfields td {
    padding: 6px 0;
}

.form_submit {
    margin-top: 20px;
    text-align: right;
    width: 100%;
}

.form_submit .btn {
    background: #e53935;
    color: #ffffff;
    border: none;
    padding: 11px 28px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s ease;
    touch-action: manipulation;
}

.form_submit .btn:hover {
    background: #c62828;
}

.checkbox,
.form-group .checkbox,
.form-group label.checkbox {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    width: 100% !important;
    font-size: 13px !important;
    color: #444444 !important;
    cursor: pointer !important;
    text-align: left !important;
    line-height: 1.4 !important;
}

.form-group input[type="checkbox"],
.form-group input[type="radio"],
.checkbox input[type="checkbox"],
.checkbox input[type="radio"] {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    margin: 0 !important;
    padding: 0 !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
}

.checkbox label,
label.checkbox {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin: 0 !important;
    font-weight: normal !important;
    cursor: pointer !important;
}

.comments-container {
    background: #fff;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
    width: 100%;
}

.comments-title {
    font-size: 16px;
    color: #222;
    margin-bottom: 25px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e53935;
    display: inline-block;
}

.comment-item {
    display: flex;
    align-items: flex-start; 
    gap: 15px;
    margin-bottom: 22px;
    padding-bottom: 22px;
    border-bottom: 2px solid #e2e8f0 !important; 
    width: 100%; 
}

.comment-item:last-child {
    border-bottom: none !important;
    margin-bottom: 0;
    padding-bottom: 0;
}

.comment-avatar {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    background-color: #e0e0e0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23888888'%3E%3Cpath d='M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z'/%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    border: 1px solid #ddd;
    position: relative;
}

.comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: relative;
    z-index: 2;
}

.comment-avatar img[src=""], 
.comment-avatar img:not([src]),
.comment-avatar img[src*="noavatar"] {
    display: none !important;
}

.comment-body {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0; 
}

.comment-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 2px;
}

.comment-author a, 
.userinfo a,
.author a,
.comment-item .comment-author a,
.comment-item a[onclick*="ShowProfile"] {
    font-size: 14px !important;
    font-weight: bold !important;
    color: #e53935 !important;
    text-decoration: none !important;
    pointer-events: none !important;
    cursor: default !important;
    border-bottom: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

.comment-date {
    font-size: 11px;
    color: #999;
}

.comment-text {
    font-size: 13px;
    color: #444;
    line-height: 1.5;
    margin-bottom: 5px;
}

.comment-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 11px;
}

.comment-actions a {
    color: #777;
    text-decoration: none !important;
    transition: color 0.2s ease;
    touch-action: manipulation;
}

.comment-actions a:hover {
    color: #e53935 !important;
}

.comments-container form {
    width: 100%;
    font-size: 13px;
    font-weight: bold;
}

.mass_comments {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 20px;
    margin-top: 10px;
    border-top: 1px dashed #d0d0d0;
    width: 100%;
}

.comments-container select[name="action"],
.comments-container select[name="mass_action"] {
    padding: 7px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    outline: none;
    font-size: 13px;
    background: #fff;
    cursor: pointer;
    font-family: inherit;
    margin-left: 5px;
    margin-right: 5px;
}

.comments-container select[name="action"]:focus,
.comments-container select[name="mass_action"]:focus {
    border-color: #e53935;
}

.comments-container input[type="submit"],
.comments-container input[type="button"],
.comments-container button {
    background: #2a2a2a;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    font-size: 13px;
    transition: background 0.2s ease;
    font-family: inherit;
    touch-action: manipulation;
}

.comments-container input[type="submit"]:hover,
.comments-container input[type="button"]:hover,
.comments-container button:hover {
    background: #e53935;
}

.add-comment-box {
    background: #fff;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    padding: 20px;
}

.add-comment-title {
    font-size: 15px;
    color: #222;
    margin-bottom: 15px;
    font-weight: bold;
}

.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: #e53935;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 9999;
    touch-action: manipulation;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: #c62828;
    transform: translateY(-3px);
}

.ui-dialog {
    background: #fff !important;
    border-radius: 5px !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3) !important;
    border: 1px solid #d0d0d0 !important;
    padding: 0 !important;
    font-family: 'BPG Arial', sans-serif !important;
    z-index: 4000 !important;
    width: 500px !important;
    max-width: 95% !important;
}

.ui-dialog-titlebar {
    background: #f5f5f5 !important;
    border-bottom: 1px solid #eee !important;
    padding: 15px !important;
    font-size: 15px !important;
    font-weight: bold !important;
    color: #333 !important;
    border-radius: 5px 5px 0 0 !important;
    position: relative !important;
}

.ui-dialog-titlebar-close {
    background: transparent !important;
    border: none !important;
    position: absolute !important;
    right: 15px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    margin: 0 !important;
    cursor: pointer !important;
    font-size: 0 !important;
    width: 24px !important;
    height: 24px !important;
    outline: none !important;
    touch-action: manipulation;
}

.ui-dialog-titlebar-close::after {
    content: '\2715'; 
    font-size: 18px !important;
    color: #777 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    font-family: Arial, sans-serif !important;
    transition: color 0.2s ease !important;
}

.ui-dialog-titlebar-close:hover::after {
    color: #e53935 !important;
}

.ui-dialog-content {
    padding: 20px !important;
    font-size: 14px !important;
    color: #444 !important;
}

.ui-dialog-buttonpane {
    background: #fff !important;
    border-top: 1px solid #eee !important;
    padding: 12px 20px !important;
}

.ui-dialog-buttonpane button {
    background: #2a2a2a !important;
    color: #fff !important;
    border: none !important;
    padding: 10px 18px !important;
    border-radius: 3px !important;
    cursor: pointer !important;
    font-weight: bold !important;
    font-size: 13px !important;
    transition: background 0.2s ease !important;
    touch-action: manipulation;
}

.ui-dialog-buttonpane button:hover {
    background: #e53935 !important;
}

.dle-popup-complaint textarea,
.ui-dialog-content textarea,
.ui-dialog-content input {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    border: 1px solid #ccc !important;
    border-radius: 3px !important;
    padding: 10px !important;
    margin-top: 8px !important;
    outline: none !important;
    font-family: inherit !important;
    resize: vertical !important;
    font-size: 14px !important;
}

.dle-popup-complaint textarea,
.ui-dialog-content textarea {
    min-height: 120px !important; 
}

.ui-dialog-content textarea:focus,
.ui-dialog-content input:focus {
    border-color: #e53935 !important;
}

.mobile-overlay {
    position: fixed;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 2000;
}

@media (max-width: 950px) {
    .page-container { 
        width: 100%; 
    }

    .burger-toggle-btn { 
        display: block; 
    }

    .sidebar {
        position: fixed;
        left: -260px;
        top: 0;
        height: 100vh;
        background: #fff;
        z-index: 2001;
        overflow-y: auto;
        transition: left 0.3s ease;
        padding: 15px;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
    }

    .sidebar.open { 
        left: 0; 
    }

    .mobile-overlay.open { 
        display: block; 
    }

    .slide-item { 
        flex: 0 0 calc((100% - 12px) / 2); 
    }

    .video-grid .v-card { 
        flex: 0 0 calc((100% - 12px) / 2); 
    }

    .site-header {
        flex-wrap: wrap; 
        padding: 15px; 
        column-gap: 15px;
        row-gap: 5px; 
    }

    .header-left { 
        order: 1; 
    }

    .header-right-actions { 
        order: 2; 
    }

    .header-search-bar {
        order: 3;
        flex-basis: 100%; 
        width: 100%;
        max-width: 100%;
        margin-top: 8px; 
    }

    .header-mobile-logo {
        display: flex !important;
        align-items: center;
        background: #2a2a2a;
        padding: 4px 10px;
        border-radius: 8px;
        margin-bottom: 0;
        cursor: pointer;
    }

    .header-mobile-logo a {
        display: flex;
        align-items: center;
        text-decoration: none;
        cursor: pointer;
        width: 100%;
    }

    .login-btn {
        width: 34px !important;
        height: 32px !important;
        padding: 0 !important;
        font-size: 0 !important;
        gap: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .login-btn i {
        font-size: 15px !important;
        margin: 0 !important;
    }
}

@media (max-width: 650px) {
    .site-header { 
        padding: 12px; 
        column-gap: 10px;
        row-gap: 5px;
    }

    .header-left { 
        gap: 12px; 
    }

    .header-left-icons { 
        gap: 10px; 
    }

    .h-icon-btn { 
        font-size: 18px; 
    }

    .header-search-bar { 
        margin-top: 8px; 
    }

    .header-search-bar input { 
        padding: 8px 35px 8px 12px; 
        font-size: 13px; 
    }

    .login-btn { 
        width: 32px !important; 
        height: 30px !important; 
        padding: 0 !important; 
        font-size: 0 !important; 
        gap: 0 !important; 
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .login-btn i {
        font-size: 14px !important;
        margin: 0 !important;
    }

    .slide-item { 
        flex: 0 0 100%; 
    }

    .video-grid .v-card { 
        flex: 0 0 100%; 
    }

    .site-footer {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding: 15px 10px;
        gap: 10px;
    }

    .footer-right { 
        flex-direction: column; 
        gap: 6px; 
    }

    .pagination-container {
        padding: 8px;
        gap: 4px;
        flex-wrap: wrap;
    }

    .article-title { 
        font-size: 18px; 
    }

    .comment-item { 
        flex-direction: row !important; 
        align-items: flex-start !important; 
        gap: 12px !important; 
        margin-bottom: 20px; 
        padding-bottom: 20px; 
    }

    .comment-avatar { 
        width: 40px !important; 
        height: 40px !important; 
    }

    .login_check {
        flex-direction: column;
    }
    
    .login_check .btn {
        width: 100%;
    }
    
    .c-captcha {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .c-captcha input {
        width: 100%;
    }
    
    .form_submit .btn {
        width: 100%;
    }
}

.fav-badge-short {
    position: absolute;
    top: 4px;
    right: 5px;
    background: rgba(42, 42, 42, 0.85);
    z-index: 4;
    border-radius: 3px;
    transition: background 0.2s ease;
    overflow: hidden;
}

.fav-badge-short a {
    display: block;
    color: #fff !important;
    text-decoration: none !important;
    touch-action: manipulation;
}

.fav-badge-short a span {
    display: block;
    padding: 4px 6px;
    font-size: 12px;
    cursor: pointer;
}

.fav-badge-short:hover {
    background: #e53935;
}

.fav-badge-short:hover i.fa-solid.fa-bookmark {
    color: #ffffff !important;
}

.article-header-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.article-header-bottom .article-meta {
    margin-bottom: 0;
}

@media (max-width: 650px) {
    .article-header-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

.fav-btn-wrap a {
    display: inline-block;
    background: #2a2a2a;
    color: #ffffff !important;
    border-radius: 4px;
    text-decoration: none !important;
    transition: all 0.2s ease;
    border: 1px solid #3a3a3a;
    overflow: hidden;
    touch-action: manipulation;
}

.fav-btn-wrap a span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
}

.fav-btn-wrap a:hover {
    background: #e53935;
    border-color: #e53935;
}

.fav-btn-wrap a:hover i.fa-solid.fa-bookmark {
    color: #ffffff !important;
}