:root {
    --bg-dark: #121212;
    --bg-card: #1E1E1E;
    --bg-hover: #2D2D2D;
    --text-main: #E0E0E0;
    --text-muted: #A0A0A0;
    --brand-color: #FF4500;
    --brand-hover: #FF6347;
    --header-bg: #181818;
    --border-color: #333333;
    --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

a:hover {
    color: var(--brand-color);
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

.partner-strip {
    background-color: #000;
    padding: 8px 0;
    font-size: 12px;
    border-bottom: 1px solid var(--border-color);
}

.partner-strip .container {
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: flex-end;
}

.partner-strip span {
    color: var(--text-muted);
}

.partner-strip a {
    color: var(--text-main);
    font-weight: bold;
    text-transform: uppercase;
}

.main-header {
    background-color: var(--header-bg);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    font-size: 28px;
    font-weight: 900;
    color: #fff;
    letter-spacing: -1px;
    flex-shrink: 0;
}

.logo .accent {
    color: var(--brand-color);
    background: rgba(255, 69, 0, 0.1);
    padding: 0 5px;
    border-radius: 4px;
}

.search-bar {
    flex-grow: 1;
    max-width: 600px;
    position: relative;
    display: flex;
}

.search-bar input {
    width: 100%;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    color: #fff;
    padding: 12px 50px 12px 15px;
    border-radius: 4px;
    font-size: 16px;
    outline: none;
}

.search-bar input:focus {
    border-color: var(--brand-color);
}

.search-bar button {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 45px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-bar button svg {
    width: 20px;
    height: 20px;
}

.search-bar button:hover {
    color: var(--brand-color);
}

.main-nav {
    display: flex;
    gap: 20px;
    align-items: center;
}

.main-nav a {
    font-weight: 600;
    font-size: 16px;
    color: var(--text-main);
    padding: 8px 12px;
    border-radius: 4px;
}

.main-nav a:hover, .main-nav a.active {
    background-color: var(--bg-hover);
    color: #fff;
}

.main-nav .nav-highlight {
    color: var(--brand-color);
}

.main-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
    padding-top: 30px;
    padding-bottom: 30px;
}

.main-layout.single-layout {
    grid-template-columns: 1fr 300px;
}

.sidebar-section {
    margin-bottom: 30px;
    background: var(--bg-card);
    border-radius: 8px;
    padding: 20px;
}

.sidebar h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #fff;
    border-bottom: 2px solid var(--brand-color);
    padding-bottom: 10px;
    display: inline-block;
}

.category-list {
    list-style: none;
}

.category-list li {
    margin-bottom: 10px;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    padding: 8px 10px;
    background: var(--bg-dark);
    border-radius: 4px;
    font-size: 14px;
}

.category-list a:hover {
    background: var(--brand-color);
    color: #fff;
}

.category-list span {
    opacity: 0.6;
    font-size: 12px;
}

.elm-block, .alm-area {
    background: #000;
    border: 1px dashed #333;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #444;
    font-size: 12px;
    text-transform: uppercase;
    margin-bottom: 30px;
}

.sidebar-ad {
    height: 250px;
    width: 100%;
}

.content-ad {
    height: 120px;
    width: 100%;
    margin: 30px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.section-header h1 {
    font-size: 24px;
    color: #fff;
}

.sort-options a {
    margin-left: 15px;
    font-size: 14px;
    color: var(--text-muted);
}

.sort-options a.active {
    color: var(--brand-color);
    font-weight: bold;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.video-card {
    background: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.thumb-link {
    position: relative;
    display: block;
    padding-top: 56.25%;
    overflow: hidden;
}

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

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

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

.hd-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--brand-color);
    color: #fff;
    font-size: 10px;
    padding: 2px 4px;
    border-radius: 2px;
    font-weight: bold;
}

.video-info {
    padding: 12px;
}

.video-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    margin-bottom: 8px;
}

.video-title:hover {
    color: var(--brand-color);
}

.meta {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    gap: 5px;
}

.pagination a {
    padding: 10px 15px;
    background: var(--bg-card);
    border-radius: 4px;
    font-weight: bold;
}

.pagination a.active, .pagination a:hover {
    background: var(--brand-color);
    color: #fff;
}

.pagination .dots {
    padding: 10px;
    color: var(--text-muted);
}

.video-player-container {
    width: 100%;
    background: #000;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.video-player-container video {
    width: 100%;
    display: block;
    max-height: 70vh;
}

.video-header {
    margin-bottom: 15px;
}

.video-header h1 {
    font-size: 24px;
    color: #fff;
    margin-bottom: 10px;
}

.video-stats {
    display: flex;
    gap: 20px;
    font-size: 14px;
}

.rating.positive {
    color: #4CAF50;
}

.video-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}

.btn-action {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}

.btn-action:hover {
    background: var(--bg-hover);
}

.btn-action.report {
    margin-left: auto;
    color: #ff4444;
    border-color: #552222;
}

.video-meta p {
    margin-bottom: 8px;
    font-size: 14px;
}

.video-meta strong {
    color: var(--text-muted);
    margin-right: 5px;
}

.video-meta a {
    color: var(--brand-color);
}

.related-section {
    margin-top: 40px;
}

.compact-list {
    list-style: none;
}

.compact-list li {
    margin-bottom: 15px;
}

.compact-list a {
    display: flex;
    gap: 10px;
}

.compact-list img {
    width: 100px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.compact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.compact-info .title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
    line-height: 1.2;
}

.compact-info .views {
    font-size: 11px;
    color: var(--text-muted);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.category-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 3/2;
}

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

.category-card:hover img {
    transform: scale(1.1);
}

.cat-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    padding: 20px 15px 10px;
    pointer-events: none;
}

.cat-overlay h3 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 2px;
}

.cat-overlay span {
    color: var(--brand-color);
    font-size: 12px;
    font-weight: bold;
}

.full-width {
    grid-column: 1 / -1;
}

.seo-content {
    background: var(--bg-card);
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
}

.seo-content h2 {
    color: #fff;
    margin-bottom: 15px;
}

.seo-content p {
    margin-bottom: 15px;
    color: var(--text-muted);
    max-width: 800px;
}

.main-footer {
    background: #000;
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 14px;
}

.rta-label {
    border: 1px solid #444;
    padding: 5px 10px;
    font-size: 12px;
    color: #888;
    border-radius: 4px;
}

.copyright {
    color: #444;
    font-size: 12px;
}

/* Legacy compatibility classes */
.thumb-container {
    position: relative;
    display: block;
    padding-top: 56.25%;
    overflow: hidden;
}

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

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

.card-info {
    padding: 12px;
}

.card-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    margin-bottom: 8px;
}

.card-title:hover {
    color: var(--brand-color);
}

.section-title {
    font-size: 24px;
    color: #fff;
}

.main-content {
    width: 100%;
}

@media (max-width: 1024px) {
    .video-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .main-header {
        padding: 10px 0;
    }
    
    .header-inner {
        flex-wrap: wrap;
    }
    
    .search-bar {
        order: 3;
        width: 100%;
        max-width: 100%;
        margin-top: 10px;
    }
    
    .main-layout {
        grid-template-columns: 1fr;
        padding-top: 20px;
    }
    
    .sidebar {
        order: 2;
    }
    
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .main-layout.single-layout {
        grid-template-columns: 1fr;
    }
    
    .right-sidebar {
        order: 2;
    }
    
    .partner-strip .container {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .video-grid {
        grid-template-columns: 1fr;
    }
}
