/*
Theme Name: Dark Tube Theme
Theme URI: https://example.com/
Author: Antigravity
Author URI: https://example.com/
Description: Premium dark-themed video tube style WordPress theme.
Version: 2.0
Text Domain: darktube
*/

* { box-sizing: border-box; }

body {
    background-color: #0d0d0d;
    color: #e0e0e0;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
}

a { color: #ff6600; text-decoration: none; transition: 0.2s; }
a:hover { color: #ff8533; }

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background-color: #1a1a1a;
    border-bottom: 2px solid #ff6600;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

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

.site-title {
    font-size: 28px;
    font-weight: 900;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.site-title span { color: #ff6600; }

.search-bar { flex: 1; display: flex; justify-content: center; margin: 0 20px; }
.search-form { display: flex; width: 100%; max-width: 500px; }
.search-field {
    width: 100%; padding: 12px 15px; border: none;
    background-color: #2a2a2a; color: #fff; border-radius: 6px 0 0 6px;
    font-size: 16px;
}
.search-field:focus { outline: none; background-color: #333; }
.search-submit {
    padding: 12px 25px; background-color: #ff6600; color: #fff;
    border: none; border-radius: 0 6px 6px 0; cursor: pointer;
    font-weight: bold; font-size: 16px;
}
.search-submit:hover { background-color: #e65c00; }

.nav-menu { list-style: none; margin: 0; padding: 0; display: flex; }
.nav-menu li { margin-left: 25px; }
.nav-menu a { color: #ffffff; font-weight: 600; font-size: 15px; text-transform: uppercase;}
.nav-menu a:hover { color: #ff6600; }

/* Filters */
.filters-bar {
    display: flex; gap: 15px; margin: 30px 0;
    background: #1a1a1a; padding: 15px; border-radius: 8px;
}
.filter-btn {
    padding: 8px 20px; background: #2a2a2a; color: #fff;
    border-radius: 20px; font-weight: 600; font-size: 14px;
}
.filter-btn:hover { background: #3a3a3a; }
.filter-btn.active { background: #ff6600; color: #fff; }

/* Grid */
.site-content { padding-bottom: 50px; }

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.video-item {
    background-color: transparent;
    transition: transform 0.2s ease;
}
.video-item:hover { transform: translateY(-3px); }

.video-thumbnail {
    position: relative; display: block;
    padding-top: 56.25%; /* 16:9 */
    background-color: #2a2a2a; border-radius: 8px; overflow: hidden;
}
.video-thumbnail img {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover; transition: 0.3s;
}
.video-item:hover .video-thumbnail img { opacity: 0.8; transform: scale(1.03); }

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

.video-info { padding: 12px 5px; }
.video-title {
    font-size: 16px; margin: 0 0 8px 0; line-height: 1.4;
    font-weight: 600; color: #fff; height: 44px; overflow: hidden;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.video-title a { color: #fff; }
.video-title a:hover { color: #ff6600; }

.video-meta { font-size: 13px; color: #888; display: flex; justify-content: space-between; }

/* Single */
.single-video-page { padding-top: 30px; }

.video-player-container {
    width: 100%;
    position: relative;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

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

.video-details { margin-top: 20px; background: #1a1a1a; padding: 25px; border-radius: 8px; }
.single-video .video-title { font-size: 26px; margin-bottom: 15px; height: auto; -webkit-line-clamp: unset; }

.video-actions { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #333; padding-bottom: 20px; margin-bottom: 20px; }
.video-stats { font-size: 16px; color: #aaa; }
.video-stats span { margin-right: 15px; }

.vote-buttons { display: flex; gap: 10px; }
.btn-vote {
    background: #2a2a2a; color: #fff; border: none; padding: 10px 20px;
    border-radius: 20px; cursor: pointer; font-weight: bold; font-size: 14px;
    display: flex; align-items: center; gap: 8px; transition: 0.2s;
}
.btn-vote:hover { background: #3a3a3a; }
.btn-like:hover, .btn-like.voted { color: #4CAF50; }
.btn-dislike:hover, .btn-dislike.voted { color: #f44336; }

.related-section { margin-top: 50px; border-top: 1px solid #333; padding-top: 30px; }
.related-section h3 { font-size: 22px; margin-bottom: 20px; border-left: 4px solid #ff6600; padding-left: 10px; color: #fff; }

.pagination { margin-top: 30px; text-align: center; }
.page-numbers { display: inline-block; padding: 8px 16px; background: #1a1a1a; color: #fff; border-radius: 4px; margin: 0 5px; font-weight: bold; }
.page-numbers.current, .page-numbers:hover { background: #ff6600; color: #fff; }

/* Responsive */
@media (max-width: 768px) {
    .header-container { flex-direction: column; gap: 15px; }
    .search-bar { width: 100%; margin: 10px 0; }
    .search-form { max-width: 100%; }
    .nav-menu { flex-wrap: wrap; justify-content: center; }
    .nav-menu li { margin: 5px 10px; }
    .video-actions { flex-direction: column; align-items: flex-start; gap: 15px; }
}

/* Footer updates */
.site-footer {
    background-color: #111;
    border-top: 1px solid #333;
    padding: 40px 0 20px;
    margin-top: 40px;
    color: #888;
    font-size: 13px;
    text-align: center;
}

.footer-links {
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-links a {
    color: #bbb;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1px;
}

.footer-links a:hover {
    color: #ff6600;
}

.footer-disclaimer {
    max-width: 900px;
    margin: 0 auto 25px auto;
    line-height: 1.6;
}

.footer-disclaimer p {
    margin-bottom: 15px;
}

.footer-disclaimer strong {
    color: #ddd;
}

.footer-copyright {
    border-top: 1px solid #222;
    padding-top: 20px;
    font-size: 12px;
}
