/* xHamster Redesign - 100% Theme */
:root {
    --xh-primary: #e60000;
    --xh-primary-hover: #cc0000;
    --xh-bg: #f5f5f5;
    --xh-card-bg: #ffffff;
    --xh-text: #222222;
    --xh-text-muted: #666666;
    --xh-header-bg: #1b1b1b;
    --xh-sidebar-bg: #ffffff;
    --xh-border: #e0e0e0;
    --xh-font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--xh-bg);
    color: var(--xh-text);
    font-family: var(--xh-font);
    font-size: 14px;
    margin: 0;
    padding: 0;
}

/* Header */
.xh-header {
    background: var(--xh-header-bg);
    color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.xh-header-top {
    height: 56px;
    display: flex;
    align-items: center;
    padding: 0 15px;
    border-bottom: 1px solid #333;
}

.xh-logo {
    color: #fff;
    font-size: 24px;
    font-weight: 800;
    text-decoration: none !important;
    display: flex;
    align-items: center;
}

.xh-logo span {
    color: var(--xh-primary);
}

.xh-search-container {
    flex: 1;
    max-width: 600px;
    margin: 0 40px;
    position: relative;
}

.xh-search-container input {
    width: 100%;
    height: 36px;
    border-radius: 18px;
    border: none;
    padding: 0 15px 0 40px;
    background: #333;
    color: #fff;
    font-size: 14px;
}

.xh-search-container i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
}

.xh-header-actions {
    display: flex;
    align-items: center;
}

.xh-header-actions .btn {
    margin-left: 10px;
    font-weight: 600;
    font-size: 13px;
    border-radius: 4px;
}

.btn-xh-primary {
    background-color: var(--xh-primary);
    border-color: var(--xh-primary);
    color: #fff !important;
}

.btn-xh-primary:hover {
    background-color: var(--xh-primary-hover);
    border-color: var(--xh-primary-hover);
}

.xh-header-nav {
    height: 48px;
    display: flex;
    align-items: center;
    padding: 0 15px;
    overflow-x: auto;
    white-space: nowrap;
}

.xh-nav-link {
    color: #ccc;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 14px;
    margin-right: 25px;
    transition: color 0.2s;
}

.xh-nav-link:hover, .xh-nav-link.active {
    color: #fff;
}

/* Sidebar */
.xh-sidebar {
    background: var(--xh-sidebar-bg);
    border-right: 1px solid var(--xh-border);
    height: calc(100vh - 104px);
    position: sticky;
    top: 104px;
    overflow-y: auto;
    padding: 20px 0;
}

.xh-sidebar-section {
    margin-bottom: 25px;
}

.xh-sidebar-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--xh-text-muted);
    text-transform: uppercase;
    padding: 0 20px;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.xh-sidebar-link {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    color: var(--xh-text);
    text-decoration: none !important;
    font-weight: 600;
    transition: background 0.2s;
}

.xh-sidebar-link:hover {
    background: #f0f0f0;
    color: var(--xh-primary);
}

.xh-sidebar-link i {
    width: 24px;
    margin-right: 10px;
    font-size: 16px;
    color: var(--xh-text-muted);
}

.xh-sidebar-link:hover i {
    color: var(--xh-primary);
}

/* Video Grid */
.xh-video-card {
    border: none;
    background: transparent;
    transition: transform 0.2s;
}

.xh-thumb-container {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
    aspect-ratio: 16/9;
}

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

.xh-video-card:hover img {
    transform: scale(1.05);
}

.xh-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
}

.xh-video-info {
    padding-top: 10px;
}

.xh-video-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 36px;
}

.xh-video-title a {
    color: var(--xh-text);
    text-decoration: none !important;
}

.xh-video-title a:hover {
    color: var(--xh-primary);
}

.xh-video-meta {
    font-size: 12px;
    color: var(--xh-text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Footer */
.xh-footer {
    background: #fff;
    padding: 50px 0 20px;
    border-top: 1px solid var(--xh-border);
    margin-top: 60px;
}

.xh-footer-title {
    font-weight: 800;
    font-size: 16px;
    margin-bottom: 20px;
}

.xh-footer-links {
    list-style: none;
    padding: 0;
}

.xh-footer-links li {
    margin-bottom: 8px;
}

.xh-footer-links a {
    color: var(--xh-text-muted);
    text-decoration: none !important;
}

.xh-footer-links a:hover {
    color: var(--xh-primary);
}

.xh-footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--xh-border);
    font-size: 12px;
    color: var(--xh-text-muted);
}
