/*
Theme Name: Zorflix
Theme URI: https://github.com/alpharyx/zorflix
Author: AlphaRyx
Author URI: https://github.com/alpharyx
Description: Premium movie streaming WordPress theme with Gold + Navy color scheme. Features dropdown menu, dynamic download buttons, IMDb integration, auto-fill metaboxes, and full mobile responsive design with Poppins typography.
Version: 1.3.0
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: zorflix
Tags: dark, gold, premium, movie, grid-layout, custom-menu, featured-images, full-width-template, translation-ready
*/

/* ============ Import Poppins Font ============ */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* ============ CSS Variables (easy to customize) ============ */
:root {
    --primary-gold: #ffd700;
    --primary-gold-bright: #ffb700;
    --primary-gold-dark: #daa520;
    --primary-orange: #ffa500;
    --bg-main: #000000;
    --bg-card: #0a0a0a;
    --bg-darker: #000000;
    --bg-hover: #1a1a1a;
    --border-color: #2a2a2a;
    --text-primary: #ffffff;
    --text-secondary: #b8c5d6;
    --text-muted: #6e7d91;
    --success-green: #00d97a;
    --success-green-dark: #00b366;
    --notice-bg: #ffd700;
    --notice-text: #000000;
}

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

body {
    background: var(--bg-main);
    color: var(--text-primary);
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    line-height: 1.6;
    font-size: 14px;
    overflow-x: hidden;
    font-weight: 400;
}

a { color: var(--primary-gold); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-gold-bright); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

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

/* ============ Top Header ============ */
.top-header {
    background: var(--bg-darker);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.top-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
}

.site-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex-shrink: 0;
}

.logo-text {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 1px;
    line-height: 1;
    font-family: 'Poppins', sans-serif;
}

.logo-img {
    max-height: 50px;
    width: auto;
}

.logo-text .bolly { 
    color: var(--primary-gold);
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.2);
}
.logo-text .flix {
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--primary-orange) 100%);
    color: #000000;
    padding: 2px 10px;
    margin-left: 3px;
    border-radius: 4px;
    box-shadow: 0 2px 12px rgba(255, 215, 0, 0.4);
    font-weight: 800;
}

.site-tagline {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 4px;
    letter-spacing: 1.5px;
    font-weight: 300;
}

.search-form {
    flex: 1;
    max-width: 600px;
    display: flex;
    background: var(--bg-card);
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: border-color 0.2s;
}

.search-form:focus-within {
    border-color: var(--primary-gold);
}

.search-form input[type="text"],
.search-form input[type="search"] {
    flex: 1;
    background: transparent;
    border: none;
    padding: 10px 15px;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    font-family: 'Poppins', sans-serif;
}

.search-form input::placeholder { color: var(--text-muted); }

.search-form button {
    background: var(--bg-darker);
    border: none;
    color: var(--primary-gold);
    padding: 0 18px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.2s;
}

.search-form button:hover { background: var(--bg-hover); }

/* ============ Mobile Menu Bar ============ */
.mobile-menu-bar {
    display: none;
    background: var(--bg-card);
    padding: 12px 15px;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
}

.mobile-menu-label {
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
}

.mobile-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px 8px;
    -webkit-tap-highlight-color: transparent;
}

.hamburger-icon {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 24px;
    height: 18px;
}

.hamburger-icon span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--primary-gold);
    border-radius: 1px;
    transition: transform 0.3s, opacity 0.3s;
}

.mobile-toggle.active .hamburger-icon span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.mobile-toggle.active .hamburger-icon span:nth-child(2) {
    opacity: 0;
}
.mobile-toggle.active .hamburger-icon span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-close {
    display: none;
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: var(--primary-gold);
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    -webkit-tap-highlight-color: transparent;
}

.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.75);
    z-index: 998;
    backdrop-filter: blur(3px);
}

.mobile-overlay.active { display: block; }

/* ============ Main Navigation ============ */
.main-nav {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.main-nav-inner {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.main-nav ul.menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.main-nav ul.menu > li {
    position: relative;
}

.main-nav ul.menu > li > a {
    display: block;
    padding: 14px 22px;
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-right: 1px solid var(--border-color);
    font-family: 'Poppins', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) {
    .main-nav ul.menu > li > a:hover,
    .main-nav ul.menu > li:hover > a {
        background: var(--bg-hover);
        color: var(--primary-gold);
    }
}

.main-nav ul.menu > li.menu-item-has-children > a::after {
    content: " ▾";
    font-size: 10px;
    margin-left: 4px;
    color: var(--primary-gold);
}

.main-nav ul.sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-card);
    min-width: 220px;
    border: 1px solid var(--border-color);
    border-top: 2px solid var(--primary-gold);
    z-index: 999;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    border-radius: 0 0 6px 6px;
}

@media (hover: hover) {
    .main-nav ul.menu > li:hover > ul.sub-menu {
        display: block;
    }
}

.main-nav ul.sub-menu li a {
    display: block;
    padding: 12px 18px;
    color: var(--text-secondary);
    font-size: 12px;
    text-transform: uppercase;
    border-bottom: 1px solid var(--border-color);
    font-weight: 500;
    transition: all 0.2s;
}

.main-nav ul.sub-menu li:last-child a { border-bottom: none; }

.main-nav ul.sub-menu li a:hover {
    background: var(--bg-hover);
    color: var(--primary-gold);
    padding-left: 22px;
}

/* ============ Category Filter Buttons ============ */
.category-bar {
    background: var(--bg-card);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.category-bar-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.cat-btn {
    display: inline-block;
    background: var(--bg-main);
    color: var(--text-primary);
    padding: 7px 18px;
    border-radius: 20px;
    font-size: 12px;
    border: 1px solid var(--border-color);
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    white-space: nowrap;
    font-weight: 500;
    -webkit-tap-highlight-color: transparent;
    font-family: 'Poppins', sans-serif;
}

@media (hover: hover) {
    .cat-btn:hover {
        background: var(--primary-gold);
        color: #000000;
        border-color: var(--primary-gold);
    }
}

/* Active/Focus state - visible text (after click on desktop) */
.cat-btn:active,
.cat-btn:focus,
.cat-btn:focus-visible {
    background: var(--primary-gold) !important;
    color: #000000 !important;
    border-color: var(--primary-gold) !important;
    outline: none;
}

.cat-btn.telegram {
    background: linear-gradient(135deg, #29b6f6 0%, #1e88e5 100%);
    border-color: #29b6f6;
    color: #fff;
    font-weight: 600;
}

@media (hover: hover) {
    .cat-btn.telegram:hover {
        background: linear-gradient(135deg, #1e88e5 0%, #1565c0 100%);
        color: #fff;
    }
}

.cat-btn.telegram::before {
    content: "✈ ";
}

/* ============ Notice Bar ============ */
.notice-bar-wrap { background: transparent; }

.notice-bar {
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--primary-orange) 100%);
    color: var(--bg-darker);
    text-align: center;
    padding: 12px 40px 12px 15px;
    margin: 15px 0;
    border-radius: 6px;
    font-size: 14px;
    position: relative;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.2);
}

.notice-bar a {
    color: #5d2e00;
    font-weight: 700;
    text-decoration: underline;
}

.notice-bar a:hover { color: #1a1a1a; }

.notice-close {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--bg-darker);
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
    font-weight: bold;
}

/* ============ Site Main / Grid ============ */
.site-main {
    padding: 25px 0 40px;
    min-height: 60vh;
}

.movie-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
}

.movie-card {
    background: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.25s, box-shadow 0.25s;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
}

.movie-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(255, 215, 0, 0.15);
    border-color: var(--primary-gold);
}

.movie-thumb {
    position: relative;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: var(--bg-darker);
}

.movie-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.movie-card:hover .movie-thumb img {
    transform: scale(1.05);
}

.movie-card .movie-title {
    padding: 12px 10px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    text-align: center;
    line-height: 1.4;
    flex: 1;
    font-family: 'Poppins', sans-serif;
}

.movie-card .movie-title a { color: var(--text-primary); }
.movie-card .movie-title a:hover { color: var(--primary-gold); }

/* ============ Pagination ============ */
.pagination {
    text-align: center;
    padding: 30px 0 10px;
    background: var(--bg-card);
    margin-top: 30px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.pagination .page-numbers {
    display: inline-block;
    padding: 9px 15px;
    margin: 2px;
    background: var(--bg-main);
    color: var(--text-primary);
    border-radius: 5px;
    font-size: 13px;
    border: 1px solid var(--border-color);
    font-weight: 500;
    transition: all 0.2s;
}

.pagination .page-numbers.current {
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--primary-orange) 100%);
    border-color: var(--primary-gold);
    color: var(--bg-darker);
    font-weight: 700;
}

.pagination .page-numbers:hover {
    background: var(--primary-gold);
    color: var(--bg-darker);
    border-color: var(--primary-gold);
}

/* ============ No posts ============ */
.no-posts {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
}

.no-posts h2 { 
    color: var(--primary-gold); 
    margin-bottom: 10px; 
    font-weight: 700;
}

/* ============ Footer ============ */
.site-footer {
    background: var(--bg-darker);
    text-align: center;
    padding: 25px 15px;
    color: var(--text-muted);
    font-size: 13px;
    border-top: 1px solid var(--border-color);
}

.footer-links {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-secondary);
    margin: 0 8px;
    font-size: 13px;
    display: inline-block;
    font-weight: 500;
}

.footer-links a:hover { color: var(--primary-gold); }

.footer-divider { color: var(--border-color); }

.scroll-top {
    display: block;
    width: 42px;
    height: 42px;
    line-height: 42px;
    margin: 0 auto 15px;
    background: var(--bg-card);
    color: var(--primary-gold);
    border-radius: 50%;
    font-size: 18px;
    border: 2px solid var(--primary-gold);
    transition: all 0.2s;
}

.scroll-top:hover {
    background: var(--primary-gold);
    color: var(--bg-darker);
}

/* ============================================================
 * SINGLE MOVIE PAGE
 * ============================================================ */

.single-movie-page { padding: 25px 0 40px; }

.single-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 20px;
    align-items: start;
}

.movie-content {
    background: var(--bg-card);
    border-radius: 10px;
    padding: 25px;
    border: 1px solid var(--border-color);
}

.movie-main-title {
    color: var(--text-primary);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-gold);
    font-family: 'Poppins', sans-serif;
}

.movie-date {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 20px;
    font-weight: 500;
}

.date-icon { margin-right: 4px; }

.movie-intro {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.movie-intro p { margin-bottom: 12px; }
.movie-intro a { color: var(--primary-gold); }

/* IMDb Wrap */
.bolflix-imdb-wrap {
    margin: 20px 0;
    overflow: hidden;
}
.bolflix-imdb-wrap > * { max-width: 100%; }

/* Section styling */
.bolflix-section { margin: 25px 0; }

.green-heading {
    color: var(--primary-gold);
    font-size: 18px;
    font-weight: 700;
    margin: 20px 0 12px;
    font-family: 'Poppins', sans-serif;
}

/* Movie Details list */
.movie-details-list {
    list-style: none;
    padding: 0;
    margin: 0;
    background: var(--bg-darker);
    border-radius: 8px;
    padding: 15px 20px;
    border: 1px solid var(--border-color);
}

.movie-details-list li {
    padding: 8px 0;
    color: var(--text-secondary);
    list-style: disc inside;
    margin-left: 5px;
    border-bottom: 1px solid var(--border-color);
}

.movie-details-list li:last-child { border-bottom: none; }

.movie-details-list li::marker { color: var(--primary-gold); }

.movie-details-list li strong {
    color: var(--text-primary);
    margin-right: 4px;
    font-weight: 600;
}

/* Storyline */
.movie-storyline {
    color: var(--text-secondary);
    line-height: 1.7;
    text-align: justify;
    background: var(--bg-darker);
    padding: 15px 20px;
    border-radius: 8px;
    border-left: 3px solid var(--primary-gold);
}

/* Screenshots */
.movie-screenshots {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.movie-screenshots img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    border: 1px solid var(--border-color);
}

.movie-screenshots a:hover img { opacity: 0.9; }

/* Download Section */
.download-section {
    text-align: center;
    padding: 25px 0;
    background: var(--bg-darker);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    margin: 25px 0;
}

.download-section-title {
    color: var(--primary-gold);
    font-size: 16px;
    margin-bottom: 15px;
    font-weight: 600;
}

.download-heading {
    color: var(--text-primary);
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 25px;
    letter-spacing: 1px;
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--primary-orange) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Poppins', sans-serif;
}

.download-buttons-wrap {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 500px;
    margin: 0 auto;
    padding: 0 20px;
}

.dl-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--primary-orange) 100%);
    color: var(--bg-darker) !important;
    text-decoration: none;
    padding: 14px 20px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    text-align: center;
    border: 2px solid rgba(255, 215, 0, 0.3);
    transition: all 0.25s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
}

.dl-btn:hover {
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-gold) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
    color: var(--bg-darker) !important;
}

.dl-icon-left, .dl-icon-right { font-size: 14px; }

/* Type-based colors */
.dl-btn.btn-webseries {
    background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.2);
}
.dl-btn.btn-webseries:hover {
    background: linear-gradient(135deg, #1976d2 0%, #0d5fb3 100%);
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.5);
    color: #fff !important;
}

.dl-btn.btn-zip {
    background: linear-gradient(135deg, var(--success-green) 0%, var(--success-green-dark) 100%);
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(0, 217, 122, 0.2);
}
.dl-btn.btn-zip:hover {
    background: linear-gradient(135deg, var(--success-green-dark) 0%, #008f52 100%);
    box-shadow: 0 6px 20px rgba(0, 217, 122, 0.5);
    color: #fff !important;
}

.dl-btn.btn-episode {
    background: linear-gradient(135deg, #9c27b0 0%, #7b1fa2 100%);
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(156, 39, 176, 0.2);
}
.dl-btn.btn-episode:hover {
    background: linear-gradient(135deg, #7b1fa2 0%, #6a1b9a 100%);
    color: #fff !important;
}

/* Trailer */
.trailer-section { text-align: center; }

.watch-trailer-heading {
    color: var(--primary-gold) !important;
    font-size: 18px;
    margin-bottom: 12px;
    font-weight: 700;
}

.trailer-embed-wrap {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    background: var(--bg-darker);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

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

/* Action Buttons */
.action-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 25px 0;
    flex-wrap: wrap;
}

.action-btn {
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--primary-orange) 100%);
    color: var(--bg-darker) !important;
    padding: 11px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.2s;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 3px 10px rgba(255, 215, 0, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.action-btn:hover {
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-gold) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(255, 215, 0, 0.4);
}

/* Related Posts */
.related-posts-section {
    margin-top: 35px;
    padding-top: 25px;
    border-top: 1px solid var(--border-color);
}

.related-heading {
    color: var(--primary-gold);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 18px;
    text-transform: uppercase;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.related-card {
    background: var(--bg-darker);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.related-card .movie-title {
    padding: 8px;
    font-size: 12px;
    text-align: center;
    line-height: 1.4;
}

.related-card .movie-title a { color: var(--text-primary); }

/* Comments */
.comments-section {
    margin-top: 35px;
    padding-top: 25px;
    border-top: 1px solid var(--border-color);
}

.comments-section h2,
.comments-section h3,
.comments-section .comments-title,
.comments-section .comment-reply-title {
    color: var(--primary-gold) !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 20px !important;
    font-family: 'Poppins', sans-serif !important;
}

.comments-section .comment-form {
    background: var(--bg-darker);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.comments-section .comment-form input[type="text"],
.comments-section .comment-form input[type="email"],
.comments-section .comment-form input[type="url"],
.comments-section .comment-form textarea {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 12px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.2s;
}

.comments-section .comment-form input:focus,
.comments-section .comment-form textarea:focus {
    outline: none;
    border-color: var(--primary-gold);
}

.comments-section .comment-form textarea {
    min-height: 120px;
    resize: vertical;
}

.comments-section .comment-form input[type="submit"],
.comments-section .form-submit input {
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--primary-orange) 100%) !important;
    color: var(--bg-darker) !important;
    border: none;
    padding: 12px 28px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    transition: all 0.2s;
}

.comments-section .comment-form input[type="submit"]:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

.comments-section ol.comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}

.comments-section .comment-body {
    background: var(--bg-darker);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 12px;
    border: 1px solid var(--border-color);
}

.comments-section .comment-meta {
    color: var(--text-muted);
    font-size: 12px;
    margin-bottom: 8px;
}

/* ============================================================
 * SIDEBAR
 * ============================================================ */

.movie-sidebar {
    position: sticky;
    top: 15px;
}

.sidebar-widget {
    background: var(--bg-card);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
}

.sidebar-widget .widget-title {
    color: var(--primary-gold);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin: 0 0 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-gold);
    font-family: 'Poppins', sans-serif;
}

/* Telegram join box */
.telegram-join-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    color: #000 !important;
    padding: 12px;
    border-radius: 10px;
    text-decoration: none;
    transition: transform 0.2s;
}

.telegram-join-box:hover {
    transform: scale(1.02);
    color: #000 !important;
}

.telegram-join-box .tg-icon {
    background: #29b6f6;
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.telegram-join-box .tg-text {
    font-size: 14px;
    line-height: 1.3;
    font-weight: 500;
}

.telegram-join-box .tg-text strong {
    color: #29b6f6;
    font-size: 16px;
    font-weight: 700;
}

/* Category pills */
.cat-pills {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.cat-pills li a {
    display: inline-block;
    background: var(--bg-darker);
    color: var(--text-secondary);
    padding: 5px 12px;
    border-radius: 14px;
    font-size: 11px;
    border: 1px solid var(--border-color);
    text-decoration: none;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    -webkit-tap-highlight-color: transparent;
    font-weight: 500;
}

@media (hover: hover) {
    .cat-pills li a:hover {
        background: var(--primary-gold);
        color: #000000;
        border-color: var(--primary-gold);
    }
}

/* Active/Focus state - force black text on gold (after click on desktop) */
.cat-pills li a:active,
.cat-pills li a:focus,
.cat-pills li a:focus-visible {
    background: var(--primary-gold) !important;
    color: #000000 !important;
    border-color: var(--primary-gold) !important;
    outline: none;
}

/* Visited state shouldn't keep yellow */
.cat-pills li a:visited {
    color: var(--text-secondary);
}

.sidebar-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-widget > ul > li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-widget > ul > li:last-child { border-bottom: none; }

.sidebar-widget ul li a {
    color: var(--text-secondary);
    font-size: 13px;
    transition: color 0.2s;
}

.sidebar-widget ul li a:hover { color: var(--primary-gold); }

/* Single page (page.php) */
.single-post-content {
    max-width: 900px;
    margin: 30px auto;
    padding: 25px;
    background: var(--bg-card);
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.single-post-content h1 {
    color: var(--primary-gold);
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 700;
}

.post-meta {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 13px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.post-content { color: var(--text-secondary); line-height: 1.7; }
.post-content p { margin-bottom: 15px; }
.post-content h2, .post-content h3 { 
    color: var(--primary-gold); 
    margin: 20px 0 10px;
    font-weight: 700;
}

/* ============================================================
 * RESPONSIVE
 * ============================================================ */

@media (max-width: 1024px) {
    .movie-grid { grid-template-columns: repeat(4, 1fr); }
    .related-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
    .single-layout { grid-template-columns: 1fr; }
    .movie-sidebar { position: static; }
    .related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .top-header { padding: 15px 0 10px; }
    .top-header-inner {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }
    .site-logo { align-items: center; text-align: center; }
    .logo-text { font-size: 32px; }
    .logo-img { max-height: 50px; }
    .site-tagline { font-size: 11px; margin-top: 6px; letter-spacing: 1.5px; }
    
    .search-form { max-width: none; width: 100%; flex: none; }
    .search-form input { padding: 12px 14px; font-size: 14px; }
    .search-form button { padding: 0 16px; font-size: 18px; }
    
    .mobile-menu-bar { display: flex; }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -300px;
        width: 280px;
        height: 100vh;
        background: var(--bg-darker);
        z-index: 999;
        transition: right 0.3s ease;
        overflow-y: auto;
        border-bottom: none;
        padding-top: 50px;
    }
    
    .main-nav.active { right: 0; }
    .mobile-close { display: block; }
    .main-nav-inner { display: block; width: 100%; }
    .main-nav ul.menu { flex-direction: column; width: 100%; }
    .main-nav ul.menu > li {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
        position: relative;
    }
    .main-nav ul.menu > li > a {
        padding: 14px 20px;
        border-right: none;
        font-size: 14px;
        display: block;
    }
    
    .main-nav ul.menu > li.menu-item-has-children > a::after {
        content: "+";
        position: absolute;
        right: 18px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 22px;
        font-weight: 300;
        color: var(--primary-gold);
        margin-left: 0;
    }
    
    .main-nav ul.menu > li.show-sub > a::after { content: "−"; }
    
    .main-nav ul.sub-menu {
        position: static;
        width: 100%;
        background: var(--bg-main);
        border: none;
        border-top: 1px solid var(--border-color);
        box-shadow: none;
        display: none;
    }
    
    .main-nav ul.menu > li.show-sub > ul.sub-menu { display: block; }
    .main-nav ul.menu > li:hover > ul.sub-menu { display: none; }
    .main-nav ul.menu > li.show-sub:hover > ul.sub-menu { display: block; }
    
    .main-nav ul.sub-menu li a { padding: 12px 20px 12px 40px; font-size: 13px; }
    
    .category-bar { padding: 10px 0; }
    .category-bar-inner {
        flex-wrap: wrap;
        justify-content: center;
        padding: 0 10px;
        gap: 6px;
    }
    .cat-btn { font-size: 12px; padding: 7px 14px; }
    
    .notice-bar-wrap .container { padding: 0; }
    .notice-bar { margin: 10px 0; border-radius: 0; font-size: 13px; }
    
    .movie-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .movie-card .movie-title { padding: 10px 8px; font-size: 12px; }
    
    .movie-content { padding: 15px; }
    .movie-main-title { font-size: 18px; line-height: 1.3; }
    .download-heading { font-size: 22px; }
    .download-section-title { font-size: 14px; }
    .dl-btn { font-size: 14px; padding: 12px 16px; }
    .green-heading { font-size: 16px; }
    .movie-screenshots img { max-height: 350px; }
    
    .movie-sidebar { margin-top: 20px; }
    .sidebar-widget { padding: 12px; margin-bottom: 10px; }
    
    .footer-links { line-height: 2; }
    .footer-links a { margin: 0 5px; font-size: 12px; }
    .footer-divider { margin: 0 2px; }
}

@media (max-width: 480px) {
    .container { padding: 0 10px; }
    .logo-text { font-size: 28px; }
    .site-tagline { font-size: 10px; }
    .movie-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .related-grid { grid-template-columns: repeat(2, 1fr); }
    .movie-content { padding: 12px; }
    .movie-main-title { font-size: 16px; }
    .download-heading { font-size: 20px; }
    .dl-btn { font-size: 13px; padding: 10px 14px; }
    .action-buttons { flex-direction: column; }
    .action-btn { width: 100%; text-align: center; }
}

/* ============ Print Styles ============ */
@media print {
    .top-header, .main-nav, .category-bar, .mobile-menu-bar,
    .movie-sidebar, .site-footer, .action-buttons,
    .download-section, .trailer-section, .comments-section {
        display: none !important;
    }
}
