/*
Theme Name: TurboTube Pro
Theme URI: https://yourdomain.com
Description: Tema responsivo de alto rendimiento para sitios de tubo masivos con taxonomias visibles en el reproductor sin paginas maestras redundantes.
Version: 7.7
Author: Developer
*/

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    background-color: #0f0f0f;
    color: #f1f1f1;
    overflow-x: hidden;
    padding-bottom: 40px;
}

a {
    color: #ff0055;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.header-site {
    background-color: #181818;
    border-bottom: 1px solid #282828;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.site-title a {
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.site-nav ul {
    display: flex;
    list-style: none;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.site-nav a {
    color: #aaa;
    font-weight: 600;
    font-size: 13px;
    padding: 6px 12px;
    border-radius: 4px;
    background: #222;
    transition: all 0.2s ease;
}

.site-nav a:hover {
    color: #fff;
    background: #ff0055;
    text-decoration: none;
}

.goog-te-banner-frame.skiptranslate { display: none !important; }
body { top: 0px !important; }
#google_translate_element { display: inline-block; vertical-align: middle; }
.goog-te-gadget-simple { background-color: #222 !important; border: 1px solid #333 !important; border-radius: 4px; padding: 3px 6px; }
.goog-te-gadget-simple span { color: #fff !important; }

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

.page-title {
    font-size: 22px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ff0055;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.single-layout {
    display: flex;
    gap: 25px;
    align-items: flex-start;
}

.single-main {
    flex: 1;
    min-width: 0;
}

.single-sidebar {
    width: 320px;
    flex-shrink: 0;
}

.ad-box {
    background: #181818;
    border: 1px dashed #333;
    padding: 15px;
    text-align: center;
    margin-bottom: 20px;
    border-radius: 6px;
    color: #777;
    font-size: 12px;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.ad-box-banner {
    min-height: 90px;
    margin: 15px 0;
}

.footer-ad-banner {
    max-width: 1400px;
    margin: 30px auto 10px auto;
    background: #181818;
    border: 1px dashed #333;
    padding: 20px;
    text-align: center;
    border-radius: 6px;
    color: #888;
    font-size: 13px;
}

.sidebar-tax-box {
    background: #181818;
    border: 1px solid #282828;
    padding: 18px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.sidebar-tax-box h3 {
    color: #fff;
    font-size: 15px;
    margin-bottom: 12px;
    padding-left: 8px;
    border-left: 3px solid #ff0055;
}

.sidebar-tax-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.sidebar-tax-item {
    background: #222;
    color: #ccc;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #2a2a2a;
}

.sidebar-tax-item:hover {
    background: #ff0055;
    color: #fff;
    border-color: #ff0055;
    text-decoration: none;
}

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

.video-card {
    background: #181818;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #252525;
    transition: transform 0.2s ease;
}

.video-card:hover {
    transform: translateY(-4px);
    border-color: #ff0055;
}

.thumb-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    overflow: hidden;
}

.thumb-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.video-info {
    padding: 12px;
}

.video-title-link {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}

.video-container {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
}

.video-container iframe {
    width: 100% !important;
    height: 100% !important;
    border: 0;
}

.single-details {
    background: #181818;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #282828;
    margin-bottom: 30px;
}

.tax-terms-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.tax-badge {
    background: #252525;
    color: #ddd;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
}

.tax-badge:hover {
    background: #ff0055;
    color: #fff;
    text-decoration: none;
}

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

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

.pagination .page-numbers {
    padding: 8px 14px;
    background: #181818;
    color: #fff;
    border: 1px solid #282828;
    border-radius: 4px;
}

.pagination .page-numbers.current {
    background: #ff0055;
    border-color: #ff0055;
}

.footer-site {
    background: #141414;
    border-top: 1px solid #222;
    padding: 40px 20px 30px 20px;
    margin-top: 50px;
}

.footer-popular-section {
    max-width: 1400px;
    margin: 0 auto 30px auto;
    padding-bottom: 30px;
    border-bottom: 1px solid #222;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    text-align: left;
}

.footer-popular-box h3 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 15px;
    padding-left: 10px;
    border-left: 3px solid #ff0055;
}

.footer-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-cloud-item {
    background: #1c1c1c;
    color: #bbb;
    font-size: 12px;
    padding: 5px 10px;
    border-radius: 4px;
    border: 1px solid #282828;
    transition: all 0.2s ease;
}

.footer-cloud-item:hover {
    background: #ff0055;
    color: #fff;
    border-color: #ff0055;
    text-decoration: none;
}

.footer-legal-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.footer-legal-nav a {
    color: #aaa;
    font-size: 13px;
    font-weight: 500;
}

.footer-legal-nav a:hover {
    color: #ff0055;
}

.legal-content {
    background: #181818;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #282828;
    line-height: 1.6;
    color: #ccc;
}
.legal-content h2 {
    color: #fff;
    margin: 20px 0 10px 0;
}

#age-gate-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.96);
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    backdrop-filter: blur(8px);
}

.age-gate-card {
    background: #181818;
    border: 2px solid #ff0055;
    border-radius: 12px;
    padding: 35px 25px;
    max-width: 460px;
    width: 100%;
    text-align: center;
    box-shadow: 0 10px 30px rgba(255, 0, 85, 0.2);
}

.age-gate-card h2 {
    color: #ff0055;
    font-size: 24px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.age-gate-card p {
    color: #ccc;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 25px;
}

.age-gate-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn-age-accept {
    background: #ff0055;
    color: #fff;
    border: none;
    padding: 12px 25px;
    font-size: 15px;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease;
    flex: 1;
}

.btn-age-accept:hover {
    background: #d40046;
}

.btn-age-deny {
    background: #252525;
    color: #aaa;
    border: 1px solid #333;
    padding: 12px 25px;
    font-size: 15px;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    flex: 1;
    display: inline-block;
    line-height: 1.2;
}

.btn-age-deny:hover {
    background: #333;
    color: #fff;
    text-decoration: none;
}

@media screen and (max-width: 1024px) {
    .single-layout {
        flex-direction: column;
    }
    .single-sidebar {
        width: 100%;
    }
}

@media screen and (max-width: 768px) {
    .footer-popular-section {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }
    .header-site {
        flex-direction: column;
        align-items: flex-start;
    }
    body {
        padding: 0 0 30px 0;
    }
}
