/*
Theme Name: Cinefreak V2
Theme URI: https://cinefreak.top/

Description: 
Cinefreak V2 is a modern, fast, and content-focused WordPress theme 
designed specifically for movie and TV series websites. 
It offers a smooth user experience, clean layout, and optimized performance 
to showcase media content beautifully.

Author: Cinefreak Team
Author URI: https://cinefreak.top/

Version: 1.0.2
Text Domain: cinefreak
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Tags: movies, series, streaming, entertainment, responsive, dark-theme
*/

/* Base Styles */
:root {
    --primary: #fbbf24;
    --primary-hover: #f59e0b;
    --bg-light: #f8f9fa;
    --bg-dark: #0b0e14;
    --card-light: #ffffff;
    --card-dark: #1e293b;
    --text-light: #212529;
    --text-dark: #f9fafb;
    --meta-light: #6c757d;
    --meta-dark: #94a3b8;
}

body {
    font-family: 'Montserrat', sans-serif;
    transition: background-color 0.3s, color 0.3s;
}

body.dark-mode {
    background-color: var(--bg-dark);
    color: var(--text-dark);
}

body:not(.dark-mode) {
    background-color: var(--bg-light);
    color: var(--text-light);
}

/* Movie Cards */
.movie-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
}

.badge-quality {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.75);
    color: var(--primary);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: bold;
    z-index: 10;
}

.movie-poster {
    aspect-ratio: 2/3;
    object-fit: cover;
    width: 100%;
}

/* Series Tabs */
.series-tabs {
    display: flex;
    margin-bottom: 1.5rem;
    overflow: hidden;
    border-radius: 0.25rem;
}

.series-tab {
    flex: 1;
    padding: 0.875rem 1.25rem;
    font-weight: 800;
    text-align: center;
    transition: all 0.2s ease;
    white-space: nowrap;
    cursor: pointer;
    background-color: #9d9d9da6;
    color: white;
    border: none;
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
}

.series-tab.active {
    background-color: #f90;
    color: #000;
}

.series-tab-content {
    display: none;
}

.series-tab-content.active {
    display: block;
}

/* Accordion Downloads */
.episodes-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.season-item {
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
}

.episode-header {
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

.episode-header:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.episode-number {
    font-weight: 700;
    font-size: 1.125rem;
    color: #f90;
    min-width: 3rem;
}

.episode-info {
    flex: 1;
}

.episode-title {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.25rem;
    color: #fff;
}

.episode-meta {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.episode-meta .badge {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 99px;
    font-weight: 700;
}

.episode-toggle {
    transition: transform 0.2s;
}

.episode-header.active .episode-toggle {
    transform: rotate(180deg);
}

.episode-content {
    padding: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.dark .episode-content {
    background: rgba(0, 0, 0, 0.2);
}

html:not(.dark) .episode-content {
    background: rgba(0, 0, 0, 0.03);
    border-top-color: rgba(0, 0, 0, 0.05);
}

.episode-download-item {
    padding: 10px 0;
}

.episode-file-title {
    font-size: 14px;
    color: #3b82f6;
    /* More readable blue for both */
    margin-bottom: 10px;
    line-height: 1.5;
}

.dark .episode-file-title {
    color: #62b6ff;
}

.episode-file-info {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.episode-file-info span {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
}

.dark .episode-file-info span {
    background: rgba(255, 255, 255, 0.1);
}

html:not(.dark) .episode-file-info span {
    background: rgba(0, 0, 0, 0.05);
}

.dark .episode-title {
    color: #fff;
}

html:not(.dark) .episode-title {
    color: #1e293b;
}

.dark .season-item {
    background: rgba(255, 255, 255, 0.02);
}

html:not(.dark) .season-item {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.08);
}