/* =========================================================
   EroCMS Ultra-Modern Dark Theme (uzbxx.ru / uzporno.website)
   ========================================================= */

:root {
    --primary-accent: #ff9900;
    --primary-hover: #e68a00;
    --primary-accent-rgb: 255, 153, 0;
    --header-bg: #23130e;
    --header-border: #ff9900;
    --menu-bg: #190c08;
    --menu-item-bg: #372722;
    --menu-item-hover: #4a352e;
    --card-cat-bg: #201f1e;
}

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

body {
    background-color: #21201f;
    color: #959595;
    font-family: -apple-system, BlinkMacSystemFont, "Roboto", "Segoe UI", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    min-height: 100vh;
}

a {
    color: #959595;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #ff9900;
    text-decoration: none;
}

/* === MAIN WRAPPER === */
.xxxhd-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    background: #21201f;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.7);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.xxxhd-content {
    flex: 1;
    overflow: hidden;
}

/* === HEADER === */
.xxxhd-head-wrap {
    background: #23130e;
    border-bottom: 2px solid #ff9900;
}

.xxxhd-head {
    padding: 10px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.xxxhd-logo a {
    color: #ebdbd6;
    font-size: 26px;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: inline-block;
    padding: 2px 0;
}

.xxxhd-logo a span {
    color: #ff9900;
}

/* === NAVIGATION MENU === */
.xxxhd-head-menu {
    background: #190c08;
    padding: 6px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    border-top: 1px solid #372722;
}

.xxxhd-head-menu-buttons {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 0;
    padding: 0;
}

.xxxhd-head-menu-buttons li a {
    background: #372722;
    color: #ebdbd6;
    border-radius: 3px;
    height: 34px;
    line-height: 34px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.2s ease;
}

.xxxhd-head-menu-buttons li a:hover,
.xxxhd-head-menu-buttons li.active a {
    background: #ff9900;
    color: #000;
}

/* === SEARCH BAR === */
.xxxhd-search {
    flex: 1;
    max-width: 320px;
    min-width: 200px;
}

.xxxhd-search form {
    display: flex;
    width: 100%;
}

.xxxhd-search input {
    background: #2a2827;
    color: #fff;
    border: 1px solid #514e4c;
    border-right: none;
    border-radius: 3px 0 0 3px;
    height: 34px;
    outline: none;
    font-size: 13px;
    flex: 1;
    padding: 0 12px;
}

.xxxhd-search input:focus {
    border-color: #ff9900;
    background: #333;
}

.xxxhd-search button {
    background: #ff9900;
    color: #000;
    border: 1px solid #ff9900;
    border-radius: 0 3px 3px 0;
    width: 44px;
    height: 34px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.xxxhd-search button:hover {
    background: #e68a00;
}

/* === TITLES & SECTIONS === */
.xxxhd-title-top {
    background: #1a1919;
    border-bottom: 1px solid #323130;
    border-top: 1px solid #323130;
    padding: 10px 15px;
    margin-bottom: 8px;
}

h1, h2, h3 {
    font-weight: 600;
    color: #fff;
}

h1 {
    font-size: 18px;
    line-height: 1.3;
}

h2 {
    font-size: 16px;
}

h1.mark {
    background: #141312;
    border-bottom: 1px solid #323130;
    padding: 8px 15px;
    font-size: 14px;
    color: #ff9900;
    font-weight: 500;
}

/* === TOP ANNOUNCEMENTS / ADS === */
.xxxhd-topl-block {
    padding: 8px 15px;
    background: #141312;
    border-bottom: 1px solid #323130;
    font-size: 13px;
    color: #959595;
    line-height: 1.6;
}

.xxxhd-topl-block a {
    color: #ff9900;
    margin-right: 12px;
    display: inline-block;
}

.xxxhd-topl-block a:hover {
    text-decoration: underline;
}

/* === VIDEO GRID (4 Desktop / 2 Mobile) === */
.xxxhd-thumbs-content {
    display: flex;
    flex-wrap: wrap;
    padding: 4px;
    margin: 0 -3px;
}

.xxxhd-thumb-wr {
    width: 25%; /* 4 columns desktop */
    padding: 4px;
}

@media (max-width: 900px) {
    .xxxhd-thumb-wr {
        width: 33.333%; /* 3 columns tablet */
    }
}

@media (max-width: 600px) {
    .xxxhd-thumb-wr {
        width: 50%; /* 2 columns mobile */
    }
}

.xxxhd-thumb {
    background: #1a1919;
    border: 1px solid #323130;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    transition: transform 0.2s ease, border-color 0.2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.xxxhd-thumb:hover {
    border-color: #ff9900;
    transform: translateY(-2px);
}

.xxxhd-thumb a {
    display: block;
    color: #bbb;
    flex: 1;
}

.xxxhd-thumb a > img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

.thumb-image-wrap {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 ratio */
    background: #000;
    overflow: hidden;
}

.thumb-image-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

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

.xxxhd-thumb-name {
    height: 38px;
    line-height: 19px;
    font-size: 13px;
    padding: 4px 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    color: #ccc;
    background: #1a1919;
}

.xxxhd-thumb:hover .xxxhd-thumb-name {
    color: #ff9900;
}

/* Category cards */
.xxxhd-thumb-cat {
    min-height: 115px;
}

.xxxhd-thumb-cat .thumb-cat-wrap {
    padding: 24px 10px 14px 10px;
    text-align: center;
    background: #201f1e;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.xxxhd-thumb-cat .xxxhd-thumb-name {
    height: auto;
    min-height: 34px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    text-align: center;
    background: transparent;
    padding: 6px 4px 0 4px;
    line-height: 1.3;
}

.cat-new-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    background: #ff9900 !important;
    color: #111 !important;
    font-weight: 800 !important;
    font-size: 11px !important;
    padding: 2px 7px !important;
    border-radius: 3px !important;
    box-shadow: 0 2px 6px rgba(255, 153, 0, 0.4);
    z-index: 5 !important;
    display: inline-flex !important;
    align-items: center;
    gap: 3px;
    line-height: 16px;
    pointer-events: none;
}

.cat-total-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(0, 0, 0, 0.85) !important;
    color: #eee !important;
    border: 1px solid #444;
    font-size: 11px !important;
    padding: 2px 7px !important;
    border-radius: 3px !important;
    z-index: 5 !important;
    display: inline-flex !important;
    align-items: center;
    gap: 3px;
    line-height: 16px;
    pointer-events: none;
}

/* === OVERLAY BADGES === */
.xxxhd-thumb-top,
.xxxhd-thumb-bottom {
    position: absolute;
    z-index: 2;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 2px;
    line-height: 16px;
    pointer-events: none;
}

.top-left {
    top: 4px;
    left: 4px;
    background: #ff9900;
    color: #000;
    font-weight: 900;
}

.top-right {
    top: 4px;
    right: 4px;
    color: #ff9900;
}

.bottom-left {
    bottom: 44px;
    left: 4px;
}

.bottom-right {
    bottom: 44px;
    right: 4px;
}

/* === VIDEO VIEW PAGE & PLAYER === */
.video-player-container {
    background: #000;
    position: relative;
    width: 100%;
    margin-bottom: 15px;
    border-radius: 4px;
    overflow: hidden;
}

.video-wrapper-responsive {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background: #000;
}

.video-wrapper-responsive video,
.video-wrapper-responsive iframe,
.video-wrapper-responsive #player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    border: none;
}

/* === INTERACTIVE LIKE / DISLIKE BAR === */
.interaction-bar {
    background: #141312;
    padding: 12px 15px;
    border-top: 1px solid #323130;
    border-bottom: 1px solid #323130;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.votes-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.like_btn, .disLike_btn {
    background: #2b2826;
    color: #ebdbd6;
    border: 1px solid #514e4c;
    border-radius: 4px;
    padding: 6px 14px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.like_btn:hover, .like_btn.active {
    background: #248c1e;
    border-color: #248c1e;
    color: #fff;
}

.disLike_btn:hover, .disLike_btn.active {
    background: #d5200d;
    border-color: #d5200d;
    color: #fff;
}

.rating-badge {
    background: #2b2826;
    border: 1px solid #514e4c;
    color: #ff9900;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 14px;
    font-weight: 700;
}

.video-actions-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.action-btn {
    background: #372722;
    color: #fff;
    border: 1px solid #514e4c;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.action-btn:hover {
    background: #ff9900;
    color: #000;
    border-color: #ff9900;
}

/* === STATS & METADATA === */
.video-meta-info {
    padding: 10px 15px;
    background: #1a1919;
    border-bottom: 1px solid #323130;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 13px;
    color: #707070;
}

.video-meta-info b {
    color: #bbb;
}

.video-description-box {
    padding: 12px 15px;
    background: #141312;
    border-bottom: 1px solid #323130;
    color: #aaa;
    font-size: 14px;
}

.tags-cloud {
    padding: 10px 15px;
    background: #1a1919;
    border-bottom: 1px solid #323130;
}

.tag-badge {
    background: #2b2826;
    border: 1px solid #444;
    color: #ff9900;
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 3px;
    margin: 2px 3px 2px 0;
    display: inline-block;
}

.tag-badge:hover {
    background: #ff9900;
    color: #000;
}

/* === COMMENTS SECTION === */
.comments-section {
    padding: 15px;
    background: #161514;
    border-top: 2px solid #323130;
    margin-top: 15px;
}

.comments-header {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.comment-form {
    background: #1e1c1b;
    border: 1px solid #323130;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 10px;
}

.form-control-custom {
    width: 100%;
    background: #2b2826;
    border: 1px solid #444;
    border-radius: 3px;
    padding: 8px 12px;
    color: #fff;
    font-size: 13px;
    outline: none;
}

.form-control-custom:focus {
    border-color: #ff9900;
}

textarea.form-control-custom {
    resize: vertical;
    min-height: 70px;
}

.btn-submit-comment {
    background: #ff9900;
    color: #000;
    border: none;
    border-radius: 3px;
    font-weight: 700;
    font-size: 13px;
    padding: 8px 18px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-submit-comment:hover {
    background: #e68a00;
}

.comment-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.comment-item {
    background: #1c1b1a;
    border: 1px solid #2e2c2b;
    border-radius: 4px;
    padding: 10px 14px;
}

.comment-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 12px;
}

.comment-author {
    color: #ff9900;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

.comment-date {
    color: #666;
}

.comment-text {
    color: #ccc;
    font-size: 13px;
    line-height: 1.4;
    word-break: break-word;
}

/* === PAGINATION === */
.pages {
    background: #141312;
    padding: 12px 6px;
    text-align: center;
    border-top: 1px solid #323130;
    margin: 15px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.pages a, .pages span {
    background: #2b2826;
    color: #fff;
    border: 1px solid #444;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    text-decoration: none;
    transition: all 0.15s ease;
    user-select: none;
}

.pages a:hover, .pages a.active, .pages span.active {
    background: var(--primary-accent, #ff9900);
    color: #000;
    border-color: var(--primary-accent, #ff9900);
    font-weight: bold;
}

.pages span.dots {
    background: transparent;
    border: none;
    color: #777;
    min-width: auto;
    padding: 0 4px;
    font-size: 14px;
}

/* === FOOTER === */
.xxxhd-footer {
    background: #0f0f0f;
    border-top: 1px solid #323130;
    margin-top: auto;
}

.xxxhd-foot {
    padding: 20px 15px;
    font-size: 13px;
    text-align: center;
    color: #666;
}

.xxxhd-foot a {
    color: #ff9900;
}

/* === UTILITIES & FORMS === */
.functions_data {
    padding: 10px 15px;
    background: #1a1919;
    border: 1px solid #323130;
    margin-bottom: 10px;
}

.byecos {
    background: #ff9900;
    color: #000;
    border: none;
    border-radius: 3px;
    padding: 8px 20px;
    font-weight: 700;
    cursor: pointer;
}

.injected {
    background: #2b2826;
    border: 1px solid #444;
    color: #fff;
    padding: 8px;
    border-radius: 3px;
    width: 100%;
}

.err {
    background: #3d1515;
    color: #ff8888;
    border: 1px solid #7d2020;
    padding: 10px 15px;
    border-radius: 4px;
    margin: 10px 0;
}

/* === RESPONSIVE REFINEMENTS === */
@media (max-width: 600px) {
    .xxxhd-search {
        width: 100%;
        max-width: 100%;
        min-width: 100%;
        margin-top: 6px;
    }
    .xxxhd-head-menu-buttons {
        width: 100%;
        justify-content: flex-start;
    }
    .xxxhd-head-menu-buttons li a {
        height: 30px;
        line-height: 30px;
        padding: 0 8px;
        font-size: 11px;
    }
    .interaction-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .votes-group {
        justify-content: space-between;
        width: 100%;
    }
    .video-actions-group {
        width: 100%;
        justify-content: space-between;
    }
}

/* === NOTIFICATION BADGE IN HEADER === */
.nav-notify-badge {
    background: #ff3b30;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 10px;
    margin-left: 4px;
    display: inline-block;
    vertical-align: middle;
    line-height: 14px;
    box-shadow: 0 0 8px rgba(255, 59, 48, 0.6);
    animation: pulseBadge 2s infinite ease-in-out;
}

@keyframes pulseBadge {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.85; }
}

/* === AUTHENTICATION & MINIMAL FORMS === */
.site-form-minimal {
    max-width: 440px;
    margin: 20px auto 35px;
    padding: 0 15px;
}

.site-alert {
    padding: 10px 14px;
    border-radius: 3px;
    margin-bottom: 15px;
    font-size: 13px;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-alert.error {
    background: #301616;
    border: 1px solid #6e2424;
    color: #ff9e9e;
}

.site-alert.success {
    background: #15301a;
    border: 1px solid #226b33;
    color: #9effb0;
}

.form-group-min {
    margin-bottom: 14px;
}

.form-group-min label {
    display: block;
    color: #ccc;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 5px;
}

.input-min {
    width: 100%;
    height: 36px;
    background: #2a2827;
    border: 1px solid #484543;
    border-radius: 3px;
    padding: 0 12px;
    color: #fff;
    font-size: 13px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s, background 0.2s;
}

.input-min:focus {
    border-color: var(--primary-accent, #ff9900);
    background: #32302f;
}

textarea.input-min {
    height: auto;
    padding: 8px 12px;
    line-height: 1.5;
    resize: vertical;
}

.btn-min-submit {
    width: 100%;
    height: 38px;
    background: var(--primary-accent, #ff9900);
    color: #000;
    border: none;
    border-radius: 3px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background 0.2s;
    box-sizing: border-box;
}

.btn-min-submit:hover {
    background: var(--primary-hover, #e68a00);
}

.form-min-footer {
    margin-top: 18px;
    padding-top: 12px;
    border-top: 1px solid #323130;
    text-align: center;
    font-size: 13px;
    color: #888;
}

.link-min-accent {
    color: var(--primary-accent, #ff9900);
    font-weight: 600;
    margin-left: 6px;
}

.link-min-accent:hover {
    text-decoration: underline;
}

.link-min-sm {
    font-size: 12px;
    color: var(--primary-accent, #ff9900);
}

.link-min-sm:hover {
    text-decoration: underline;
}

/* === MINIMAL PROFILE SYSTEM === */
.profile-bar {
    background: #190c08;
    border-bottom: 1px solid #323130;
    padding: 8px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 13px;
    color: #aaa;
}

.profile-bar-left {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.profile-bar-avatar {
    width: 32px;
    height: 32px;
    border-radius: 3px;
    object-fit: cover;
    border: 1px solid var(--primary-accent, #ff9900);
    background: #2a2827;
}

.profile-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #888;
    font-size: 12px;
}

.profile-meta-item i {
    color: var(--primary-accent, #ff9900);
}

.profile-bar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-mini-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 28px;
    line-height: 28px;
    padding: 0 10px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 3px;
    background: #372722;
    color: #ebdbd6;
    transition: all 0.2s;
}

.profile-mini-btn:hover {
    background: #4a352e;
    color: #fff;
}

.profile-mini-btn.accent {
    background: var(--primary-accent, #ff9900);
    color: #000;
}

.profile-mini-btn.accent:hover {
    background: var(--primary-hover, #e68a00);
}

/* Profile Tabs Navigation */
.profile-tabs-bar {
    background: #141312;
    border-bottom: 1px solid #323130;
    padding: 6px 15px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.profile-tab-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 30px;
    line-height: 30px;
    padding: 0 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    background: #2a2827;
    color: #ebdbd6;
    border-radius: 3px;
    transition: all 0.2s;
}

.profile-tab-item:hover {
    background: #3c3836;
    color: #fff;
}

.profile-tab-item.active {
    background: var(--primary-accent, #ff9900);
    color: #000;
}

.tab-badge {
    background: #ff3b30;
    color: #fff;
    padding: 0 5px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 800;
    line-height: 16px;
    height: 16px;
    display: inline-block;
}

/* Profile List Rows (Comments & Replies) */
.profile-row-item {
    padding: 12px 15px;
    border-bottom: 1px solid #2a2827;
    font-size: 13px;
    line-height: 1.5;
}

.profile-row-item:nth-child(even) {
    background: #1d1c1b;
}

.profile-row-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
    font-size: 12px;
    color: #888;
}

.profile-row-header a, .profile-row-header b {
    color: var(--primary-accent, #ff9900);
}

.profile-row-body {
    color: #ccc;
}

.profile-empty-notice {
    padding: 35px 15px;
    text-align: center;
    color: #777;
    font-size: 14px;
}

.profile-empty-notice i {
    font-size: 36px;
    color: #444;
    display: block;
    margin-bottom: 10px;
}

/* Comment Reply button on video page */
.comment-actions {
    margin-top: 6px;
}

.btn-comment-reply {
    background: transparent;
    border: 1px solid #372722;
    color: #8a7a75;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s;
}

.btn-comment-reply:hover {
    color: var(--primary-accent, #ff9900);
    border-color: var(--primary-accent, #ff9900);
    background: rgba(255, 153, 0, 0.08);
}
