/* ============================================
   FoxyTube Theme - Dark tube site design
   ============================================ */

:root {
    --bg: #1a1a2e;
    --bg-card: #16213e;
    --bg-header: #0f0f23;
    --bg-footer: #0a0a1a;
    --text: #e0e0e0;
    --text-muted: #888;
    --accent: #FF7AAB;
    --accent-hover: #ff5c96;
    --border: #2a2a4a;
    --radius: 6px;
    --max-width: 1400px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { overflow-y: scroll; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; height: auto; display: block; }

/* Header */
#masthead {
    background: var(--bg-header);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo a {
    color: #fff;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo a:hover { color: var(--accent); }

.logo-img {
    height: 64px;
    width: 64px;
    object-fit: contain;
    flex-shrink: 0;
}

.logo-text {
    line-height: 1;
}

.header-search {
    flex: 0 1 400px;
}

.header-search form {
    display: flex;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.header-search input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text);
    padding: 8px 12px;
    font-size: 14px;
    outline: none;
}

.header-search button {
    background: var(--accent);
    border: none;
    color: #fff;
    padding: 8px 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.header-search button:hover { background: var(--accent-hover); }

/* Navigation */
#main-nav {
    background: var(--bg-header);
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.nav-menu {
    list-style: none;
    display: flex;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    gap: 0;
    white-space: nowrap;
}

.nav-menu li a {
    display: block;
    padding: 10px 16px;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.2s, border-color 0.2s;
    border-bottom: 2px solid transparent;
}

.nav-menu li a:hover,
.nav-menu li.current-menu-item a,
.nav-menu li.current_page_item a {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

/* Main content */
#content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 20px;
    width: 100%;
}

#main {
    width: 100%;
}

.page-title, .section-title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent);
}

/* Video grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

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

.video-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.video-card a {
    color: var(--text);
    display: block;
}

.video-card a:hover { color: #fff; }

.thumb-wrap {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #111;
}

.thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.15s;
}

.thumb-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 6px 8px;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    pointer-events: none;
}

.duration {
    background: rgba(0,0,0,0.85);
    color: #fff;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
}

.video-info {
    padding: 10px 12px;
}

.video-title {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 4px;
}

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

.no-thumb {
    aspect-ratio: 16/9;
    background: #222;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

/* Hover border like solovixens */
.video-card:hover .thumb-wrap {
    box-shadow: inset 0 0 0 3px var(--accent);
}

/* Single video page */
.single-video {
    max-width: 960px;
    margin: 0 auto;
}

.single-video .video-title {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
    -webkit-line-clamp: unset;
}

.video-player {
    margin-bottom: 16px;
}

.embed-wrap {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    background: #000;
    border-radius: var(--radius);
}

.embed-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.meta-item {
    color: var(--text-muted);
    font-size: 14px;
}

.video-categories,
.video-tags,
.video-actors {
    margin-bottom: 12px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.video-categories .label,
.video-tags .label,
.video-actors .label {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    margin-right: 4px;
}

.tag {
    display: inline-block;
    background: var(--bg);
    color: var(--text);
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 12px;
    border: 1px solid var(--border);
    transition: border-color 0.2s, color 0.2s;
}

.tag:hover {
    border-color: var(--accent);
    color: var(--accent);
}

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

.related-videos .video-grid {
    grid-template-columns: repeat(5, 1fr);
}

/* Pagination */
.pagination,
nav.navigation.pagination {
    margin: 30px 0;
    text-align: center;
}

.pagination .nav-links,
.nav-links {
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

.pagination .page-numbers,
.nav-links .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    background: var(--bg-card);
    color: var(--text);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    font-size: 14px;
}

.pagination .page-numbers.current,
.nav-links .page-numbers.current {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.pagination .page-numbers:hover,
.nav-links .page-numbers:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* 404 */
.error-404 {
    text-align: center;
    padding: 80px 20px;
}

.error-404 h1 { font-size: 36px; color: #fff; margin-bottom: 12px; }
.error-404 p { color: var(--text-muted); margin-bottom: 20px; }

.btn {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 10px 24px;
    border-radius: var(--radius);
    font-weight: 600;
}
.btn:hover { background: var(--accent-hover); color: #fff; }

/* No results */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
    font-size: 16px;
}

/* Footer */
#colophon {
    background: var(--bg-footer);
    border-top: 1px solid var(--border);
    margin-top: 40px;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 12px;
}

/* Back to top */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--accent);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    text-decoration: none;
    z-index: 99;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

#back-to-top:hover { background: var(--accent-hover); }

/* Responsive */
@media (max-width: 1200px) {
    .video-grid,
    .related-videos .video-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

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

    .header-inner { flex-wrap: wrap; }
    .logo { flex: 0 0 auto; }
    .header-search { flex: 1 1 100%; order: 3; }
}

@media (max-width: 600px) {
    .video-grid,
    .related-videos .video-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .logo a { font-size: 22px; }
    .logo-img { height: 35px; }
    #content { padding: 12px; }
    .video-info { padding: 8px 10px; }
    .video-title { font-size: 12px; }
    .single-video .video-title { font-size: 18px; }
}

/* Hide admin bar on frontend */
#wpadminbar { display: none !important; }
html { margin-top: 0 !important; }


/* Page template */
.page-content {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}
.page-title {
    font-size: 24px;
    margin-bottom: 20px;
    color: #fff;
}
.page-body {
    color: #ccc;
    line-height: 1.7;
    font-size: 15px;
}
.page-body h3 {
    color: #fff;
    margin-top: 25px;
    margin-bottom: 10px;
    font-size: 18px;
}
.page-body ul {
    margin: 10px 0 10px 20px;
}
.page-body li {
    margin-bottom: 6px;
}
.page-body a {
    color: #e91e8c;
}
.footer-links {
    margin-top: 8px;
    font-size: 13px;
}
.footer-links a {
    color: #e91e8c;
    text-decoration: none;
}
.footer-links a:hover {
    text-decoration: underline;
}
