/*
Theme Name: LeaksFlix Modern
Theme URI: https://tubeace.com/themes/
Author: Tube Ace (Modernized by AI Mentor)
Author URI: https://tubeace.com
Description: A modernized, mobile-responsive, Bootstrap 5 theme for tube sites.
Version: 2.3.4
License: GNU General Public License v3.0
License URI: http://www.gnu.org/licenses/gpl-3.0.html
Text Domain: tubeaceplay
*/

/*--------------------------------------------------------------
TABLE OF CONTENTS
----------------------------------------------------------------
1.0 Normalize & Core Setup
2.0 Typography & Links
3.0 Layout & Grid
4.0 Header & Navigation
	4.1 Header Search Bar (Visual Polish)
5.0 Content & Posts
	5.1 Post Previews
	5.2 Single Post
	5.3 Comments
    5.4 Multi-Host Player
6.0 Sidebar & Widgets
7.0 Footer
	7.1 Footer Site Info (Visual Polish)
8.0 WordPress Core & Plugin Styles
--------------------------------------------------------------*/

/*--------------------------------------------------------------
1.0 Normalize & Core Setup
--------------------------------------------------------------*/
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #000;
    color: #ccc;
}

#page {
    flex: 1;
}

/*--------------------------------------------------------------
2.0 Typography & Links
--------------------------------------------------------------*/
a {
    color: #0d6efd;
    text-decoration: none;
}

a:hover {
    color: #0a58ca;
    text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
    color: #fff;
}

/*--------------------------------------------------------------
3.0 Layout & Grid
--------------------------------------------------------------*/
.site-main-container {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

/*--------------------------------------------------------------
4.0 Header & Navigation
--------------------------------------------------------------*/
.site-navbar {
    background-color: #1a1a1a;
    border-bottom: 1px solid #343a40;
}

.site-header .site-title a,
.site-branding .navbar-brand {
    color: #fff !important;
    text-decoration: none;
    font-weight: bold;
}

.site-header .site-description {
    color: #adb5bd;
}

/* --- 4.1 Header Search Bar (Visual Polish) --- */
.header-search-form .form-control {
    background-color: #343a40;
    border-color: #495057;
    color: #fff;
    border-right: 0;
    border-radius: 0.375rem 0 0 0.375rem;
}

.header-search-form .form-control::placeholder {
    color: #adb5bd;
    opacity: 1;
}

.header-search-form .form-control:focus {
    background-color: #343a40;
    border-color: #1de9b6;
    color: #fff;
    box-shadow: 0 0 0 0.25rem rgba(29, 233, 182, 0.25);
}

.header-search-form .btn-primary {
    background-color: #1de9b6;
    border-color: #1de9b6;
    color: #000;
    border-radius: 0 0.375rem 0.375rem 0;
    transition: background-color 0.2s ease-in-out;
}

.header-search-form .btn-primary:hover {
    background-color: #14a37f;
    border-color: #14a37f;
}

/*--------------------------------------------------------------
5.0 Content & Posts
--------------------------------------------------------------*/

/* 5.1 Post Previews */
.card {
    background-color: #212529;
    border: 1px solid #343a40;
    border-radius: 0.375rem !important;
    transition: transform .2s ease-in-out, box-shadow .2s ease-in-out;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 .5rem 1.5rem rgba(0,0,0,.25)!important;
}

.card-title { font-size: 0.95rem; font-weight: 500; line-height: 1.4; margin-bottom: 0.5rem; }
.card-title a { color: #f8f9fa !important; text-decoration: none !important; }
.card-title a:hover { color: #fff !important; }
.card-img-top { aspect-ratio: 16 / 9; object-fit: cover; border-top-left-radius: calc(0.375rem - 1px); border-top-right-radius: calc(0.375rem - 1px); }
.thumbnail-link { display: block; position: relative; }
.thumbnail-link::after { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(0,0,0,0.3); opacity: 0; transition: opacity 0.2s ease-in-out; }
.card:hover .thumbnail-link::after { opacity: 1; }
.placeholder-thumbnail { aspect-ratio: 16 / 9; background-color: #1c1d1f; color: #495057; }
.placeholder-thumbnail svg { width: 48px; height: 48px; }
.card-meta { color: #8e959c !important; }
.card-meta svg { vertical-align: -0.125em; }

/* 5.2 Single Post */
.entry-title { font-size: 2.25rem; font-weight: 600; }
.entry-content { line-height: 1.7; font-size: 1.1rem; color: #e9ecef; }
.entry-content p { margin-bottom: 1.5rem; }
.entry-content img { max-width: 100%; height: auto; border-radius: 0.375rem; }
.entry-content a { text-decoration: underline; }
.entry-footer { background-color: #212529; border: 1px solid #343a40; }
.entry-footer .post-meta-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.entry-footer .meta-item .meta-label { color: #6c757d; display: block; font-size: 0.875em; text-transform: uppercase; }
.entry-footer .author-link { display: inline-flex; align-items: center; text-decoration: none; color: #f8f9fa; }
.entry-footer .author-link:hover { color: #fff; }
.related-posts-title { border-bottom: 2px solid #343a40; padding-bottom: 0.5rem; }

/* 5.3 Comments */
.comments-area { background-color: #1a1a1a; border: 1px solid #343a40; border-radius: 0.5rem; padding: 1.5rem; }
.comment-list { margin: 0; padding: 0; }
.comment-body { background-color: #212529; border: 1px solid #495057; }
.comment-author a { font-weight: 600; color: #fff; }
.comment-content { color: #dee2e6; }
.comment-form { background-color: #212529; border: 1px solid #343a40; }
.comment-form .form-control { background-color: #343a40; border-color: #495057; color: #fff; }
.comment-form .form-control:focus { background-color: #343a40; border-color: #0d6efd; color: #fff; box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25); }

/* --- 5.4 Multi-Host Player --- */
.video-player-container .nav-tabs {
    border-bottom: 1px solid #495057;
}
.video-player-container .nav-tabs .nav-link {
    background-color: transparent;
    border: 1px solid transparent;
    border-top-left-radius: .25rem;
    border-top-right-radius: .25rem;
    color: #adb5bd;
    font-weight: 500;
}
.video-player-container .nav-tabs .nav-link:hover,
.video-player-container .nav-tabs .nav-link:focus {
    border-color: #343a40;
    isolation: isolate;
}
.video-player-container .nav-tabs .nav-link.active {
    color: #000;
    background-color: #1de9b6;
    border-color: #1de9b6;
    font-weight: 700;
}
.video-player-container .tab-content {
    background-color: #000;
    border: 1px solid #495057;
    border-top: none;
    padding: 0; /* Padding is removed as the ratio class handles spacing */
    border-bottom-left-radius: .25rem;
    border-bottom-right-radius: .25rem;
}
.video-player-container .tab-pane .ratio {
    border-bottom-left-radius: .25rem;
    border-bottom-right-radius: .25rem;
    overflow: hidden; /* Ensures iframe corners are rounded */
}

/*--------------------------------------------------------------
6.0 Sidebar & Widgets
--------------------------------------------------------------*/
.widget { margin-bottom: 1.5rem; background-color: #212529; padding: 1rem; border-radius: 0.375rem; }
.widget-title { margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid #495057; }
.widget ul { padding-left: 0; list-style: none; margin-bottom: 0; }
.widget ul li { padding: 0.5rem 0; border-bottom: 1px solid #343a40; }
.widget ul li:last-child { border-bottom: none; padding-bottom: 0; }
.widget ul li a { color: #adb5bd; transition: color 0.2s ease-in-out; }
.widget ul li a:hover { color: #fff; }

/*--------------------------------------------------------------
7.0 Footer
--------------------------------------------------------------*/
.site-footer {
    background-color: #111; /* Darker, slightly different from the header for subtle separation */
    border-top: 1px solid #343a40;
    padding-top: 2rem; /* Increased padding for more breathing room */
    padding-bottom: 2rem; /* Increased padding */
}

/* --- 7.1 Footer Site Info (Visual Polish) --- */
.site-info {
    color: #6c757d;
    font-size: 0.875rem; /* Slightly smaller for a more refined look */
    letter-spacing: 0.5px; /* Adds a touch of elegance */
}

.site-info a {
    color: #adb5bd;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

.site-info a:hover {
    color: #fff;
}

/*--------------------------------------------------------------
8.0 WordPress Core & Plugin Styles
--------------------------------------------------------------*/
.alignnone { margin: 5px 20px 20px 0; }
.aligncenter, div.aligncenter { display: block; margin: 5px auto 5px auto; }
.alignright { float: right; margin: 5px 0 20px 20px; }
.alignleft { float: left; margin: 5px 20px 20px 0; }
.wp-caption { max-width: 96%; padding: 5px 3px 10px; text-align: center; }
.wp-caption img { border: 0 none; height: auto; margin: 0; max-width: 98.5%; padding: 0; width: auto; }
.wp-caption p.wp-caption-text { font-size: 11px; line-height: 17px; margin: 0; padding: 0 4px 5px; }
.screen-reader-text { clip: rect(1px, 1px, 1px, 1px); position: absolute !important; height: 1px; width: 1px; overflow: hidden; }