/*
Theme Name:        Ziaoba Stream
Theme URI:         https://ziaoba.com
Author:            Ziaoba Entertainment
Author URI:        https://ziaoba.com
Description:       Netflix/Prime hybrid streaming theme for African entertainment-education AVOD.
Version:           1.0.1
Text Domain:       ziaoba-stream
*/

/* --- Base Styles --- */
:root {
    --bg-color: #0A0A0A;
    --primary-color: #E50914;
    --hover-color: #00C853;
    --text-color: #FFFFFF;
    --muted-text: #B3B3B3;
    --card-bg: #141414;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; transition: all 0.3s ease; }
a:hover { color: var(--hover-color); }

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

.container { max-width: 1440px; margin: 0 auto; padding: 0 4%; }

/* --- Navigation --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, transparent 100%);
    padding: 15px 0;
    transition: background-color 0.4s ease;
}

.site-header.scrolled {
    background-color: #000;
}

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

.nav-left { display: flex; align-items: center; gap: 30px; flex-shrink: 0; }
.nav-center { flex-grow: 1; max-width: 600px; display: flex; justify-content: center; }
.nav-right { display: flex; align-items: center; gap: 20px; flex-shrink: 0; }

.logo {
    font-size: 24px;
    font-weight: 900;
    color: var(--primary-color);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.nav-menu ul { display: flex; list-style: none; gap: 25px; margin: 0; padding: 0; font-size: 14px; font-weight: 500; }
.nav-menu a { color: #e5e5e5; white-space: nowrap; }
.nav-menu a:hover { color: var(--primary-color); }

/* --- Mobile Menu --- */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1100;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background: #fff;
    transition: all 0.3s ease;
}

@media (max-width: 1024px) {
    .hamburger { display: flex; }
    
    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background: #000;
        flex-direction: column;
        padding: 80px 30px;
        transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1050;
        box-shadow: 10px 0 30px rgba(0,0,0,0.5);
    }
    
    .nav-menu.active { left: 0; }
    
    .nav-menu ul {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav-menu ul li a {
        font-size: 18px;
        font-weight: 700;
    }
    
    .hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    
    .nav-inner { gap: 15px; }
    .logo { font-size: 20px; }
    .auth-links .login-link { display: none; }
    .nav-left { gap: 15px; }
    .nav-center { order: 3; width: 100%; max-width: none; margin-top: 10px; }
    .nav-inner { flex-wrap: wrap; }
}

body.no-scroll { overflow: hidden; }

/* --- Search Form --- */
.search-form { width: 100%; }

.search-input-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 15px;
    color: #888;
    width: 18px;
    height: 18px;
    pointer-events: none;
}

.search-field {
    width: 100%;
    background: #333;
    border: 1px solid #444;
    color: #fff;
    padding: 10px 15px 10px 45px;
    border-radius: 25px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

.search-field::placeholder {
    color: #888;
}

.search-field:focus {
    border-color: var(--primary-color);
    background: #000;
    box-shadow: 0 0 10px rgba(229, 9, 20, 0.2);
}

/* --- Hero Section --- */
.hero {
    height: 80vh;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 40px;
}

.hero::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, #000 10%, transparent 60%), linear-gradient(to top, #0A0A0A 0%, transparent 30%);
}

.hero .container { position: relative; z-index: 2; }
.hero-content { max-width: 600px; }
.hero-title { font-size: 64px; font-weight: 900; margin-bottom: 15px; line-height: 1.1; }
.hero-meta { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; font-weight: 600; font-size: 14px; }
.hero-desc { font-size: 18px; color: #e5e5e5; margin-bottom: 30px; }

/* --- Sections & Carousels --- */
.section-title { font-size: 20px; font-weight: 700; margin: 40px 0 20px; color: #e5e5e5; }

.swiper { overflow: visible !important; }
.swiper-slide {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    background: var(--card-bg);
}

.swiper-slide:hover {
    transform: scale(1.08);
    z-index: 10;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.card-img-wrapper { position: relative; aspect-ratio: 2/3; border-radius: 8px; overflow: hidden; }
.card-img, .poster-image { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.3s ease; display: block; }
.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.swiper-slide:hover .card-overlay { opacity: 1; }
.card-overlay i { font-size: 40px; color: #fff; }

.card-info { padding: 12px; }
.card-title { font-size: 14px; font-weight: 700; margin-bottom: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-meta { font-size: 12px; color: var(--muted-text); display: flex; gap: 10px; }

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}
.btn-primary { background-color: var(--primary-color); color: #fff; }
.btn-primary:hover { background-color: #ff0a16; color: #fff; }
.btn-outline { background: transparent; border: 1px solid #333; color: #fff; }
.btn-outline:hover { border-color: #fff; color: #fff; }
.btn-sm { padding: 6px 16px; font-size: 13px; }

/* --- Single Page & Player --- */
.single-player-wrap { padding-top: 100px; margin-bottom: 40px; }
.single-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; }
.single-title { font-size: 48px; font-weight: 900; margin-bottom: 15px; }

.player-container {
    margin-bottom: 30px;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.match-score {
    color: var(--hover-color);
    font-weight: 700;
}

.age-rating {
    border: 1px solid #666;
    padding: 0 6px;
    border-radius: 2px;
    font-size: 14px;
}

.single-content {
    font-size: 18px;
    color: #e5e5e5;
    line-height: 1.6;
    margin-bottom: 40px;
}

.education-badge {
    background: var(--hover-color);
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-weight: 800;
    font-size: 12px;
    margin-bottom: 20px;
    color: #fff;
}

.sidebar-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
}

.related-card {
    cursor: pointer;
    transition: transform 0.3s ease;
    margin-bottom: 20px;
}

.related-card:hover {
    transform: scale(1.05);
}

.related-card-img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 10px;
    aspect-ratio: 2/3;
    object-fit: cover;
}

.related-card h4 {
    font-size: 14px;
    color: #fff;
}

.sidebar-box { background: var(--card-bg); padding: 25px; border-radius: 8px; margin-bottom: 25px; border: 1px solid #222; }

.login-required-box {
    background: #111;
    border: 1px solid #222;
    border-radius: 12px;
    padding: 60px 40px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.login-required-content {
    max-width: 400px;
}

.login-required-content h2 {
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 15px;
}

.login-required-content p {
    color: #aaa;
    margin-bottom: 30px;
    font-size: 16px;
}

.login-required-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 30px;
}

.login-required-actions .btn {
    flex: 1;
    padding: 12px 20px;
}

/* --- Auth Pages --- */
.auth-page-wrapper { 
    min-height: 100vh; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    background: #000; 
    padding: 100px 20px;
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://picsum.photos/seed/cinema/1920/1080?blur=10');
    background-size: cover;
    background-position: center;
    position: relative;
}

.auth-container { 
    background: rgba(0,0,0,0.9); 
    padding: 60px; 
    width: 100%; 
    max-width: 450px; 
    border-radius: 8px; 
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    position: relative;
    z-index: 5;
    border: 1px solid #222;
}

.auth-header {
    margin-bottom: 28px;
}

.auth-title {
    color: #fff;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 0;
}

.auth-footer {
    margin-top: 30px;
    border-top: 1px solid #333;
    padding-top: 20px;
}

.auth-footer-text {
    margin-top: 30px;
    color: #737373;
    font-size: 16px;
}

.auth-footer-link {
    color: #fff;
    font-weight: 500;
}

/* --- Ultimate Member Dark Styling --- */
.um {
    max-width: 450px !important;
    margin: 60px auto !important;
    background: #111 !important;
    padding: 40px !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5) !important;
    color: #fff !important;
}

.um-header {
    border-bottom: 1px solid #333 !important;
    padding-bottom: 20px !important;
    margin-bottom: 30px !important;
}

.um-header-title {
    color: #fff !important;
    font-size: 24px !important;
    font-weight: 800 !important;
    text-align: center !important;
}

.um-field-label {
    color: #ccc !important;
    font-size: 14px !important;
    margin-bottom: 10px !important;
    display: block !important;
    font-weight: 600 !important;
}

.um-field-area input[type=text], 
.um-field-area input[type=password], 
.um-field-area input[type=email] {
    background: #222 !important;
    border: 1px solid #333 !important;
    color: #fff !important;
    height: 50px !important;
    padding: 0 15px !important;
    border-radius: 6px !important;
    font-size: 15px !important;
    transition: all 0.3s ease !important;
    width: 100% !important;
}

.um-field-area input:focus {
    border-color: var(--primary-color) !important;
    background: #000 !important;
    outline: none !important;
}

.um-button, 
.um-button.um-alt, 
.um-form input[type=submit] {
    background: var(--primary-color) !important;
    color: #fff !important;
    height: 54px !important;
    border: none !important;
    border-radius: 6px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    width: 100% !important;
    cursor: pointer !important;
    margin-top: 20px !important;
    transition: background 0.3s ease !important;
}

.um-button:hover {
    background: #b20710 !important;
}

.um-field-error {
    background: rgba(229, 9, 20, 0.1) !important;
    color: var(--primary-color) !important;
    border: 1px solid var(--primary-color) !important;
    padding: 10px !important;
    border-radius: 4px !important;
    font-size: 13px !important;
    margin-top: 5px !important;
}

.um-col-alt {
    text-align: center !important;
    margin-top: 20px !important;
}

.um-link-alt {
    color: #888 !important;
    font-size: 13px !important;
    text-decoration: none !important;
}

.um-link-alt:hover {
    color: #fff !important;
}

/* --- Social Login Separator --- */
.ziaoba-social-login {
    margin-top: 30px;
}

.ziaoba-separator {
    position: relative;
    text-align: center;
    margin-bottom: 20px;
}

.ziaoba-separator::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: #333;
    z-index: 1;
}

.ziaoba-separator span {
    position: relative;
    background: #111;
    padding: 0 15px;
    color: #666;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
}

.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #fff;
    color: #000;
    padding: 12px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.3s ease;
    width: 100%;
}

.btn-google:hover {
    opacity: 0.9;
}

.btn-google img {
    width: 20px;
    height: 20px;
}

/* --- Episode Navigation & Grid --- */
.episodes-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    gap: 20px;
}

.season-select {
    background: #222;
    color: #fff;
    border: 1px solid #333;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
}

.season-select:hover { border-color: var(--primary-color); }

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

.episode-card-img-wrapper {
    aspect-ratio: 16/9 !important;
}

.episode-card-img-wrapper .poster-image {
    aspect-ratio: 16/9 !important;
}

.episode-card {
    background: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.episode-card:hover { transform: scale(1.08); z-index: 5; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }

.episode-nav-wrap {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 40px;
    border: 1px solid #222;
}

.series-info-box {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #333;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.series-label { color: var(--muted-text); font-size: 14px; text-transform: uppercase; font-weight: 700; }
.series-link { font-size: 18px; font-weight: 700; color: #fff; }
.series-link:hover { color: var(--hover-color); }
.ep-meta { color: var(--muted-text); font-size: 14px; }

.ep-controls { display: flex; gap: 15px; flex-wrap: wrap; }
.ep-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #222;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    transition: all 0.3s ease;
}

.ep-btn:hover { background: var(--hover-color); color: #fff; }
.ep-btn i { width: 18px; height: 18px; }

.ep-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary-color);
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 800;
    z-index: 5;
}

/* --- Video.js Customization --- */
.video-js {
    border-radius: 8px;
    overflow: hidden;
    background-color: #000;
}

.video-js .vjs-poster {
    background-size: cover;
}

.video-js .vjs-big-play-button {
    background-color: rgba(229, 9, 20, 0.8) !important;
    border: none !important;
    width: 80px !important;
    height: 80px !important;
    line-height: 80px !important;
    border-radius: 50% !important;
    margin-top: -40px !important;
    margin-left: -40px !important;
}

.video-js:hover .vjs-big-play-button {
    background-color: var(--primary-color) !important;
}

@media (max-width: 768px) {
    .episodes-header { flex-direction: column; align-items: flex-start; }
    .season-selector-wrap, .season-select { width: 100%; }
    .ep-controls { flex-direction: column; }
    .ep-btn { width: 100%; justify-content: center; }
}

@media (max-width: 1024px) {
    .single-grid { grid-template-columns: 1fr; }
    .auth-container { padding: 40px 20px; }
}
