/*
Theme Name: DramaSnap
Theme URI: https://dramasnap.com
Description: A WordPress theme for binge-worthy vertical short dramas streaming platform
Version: 1.0
Author: Your Name
Author URI: https://yourwebsite.com
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dramasnap
*/

/* Root Variables */
/* ===========================
   CUSTOM PROPERTIES & RESET
   =========================== */
:root {
    --primary-blue: #027DFD;
    --secondary-blue: #00A8FF;
    --dark-bg: #0a0e1a;
    --card-bg: #141824;
    --text-primary: #ffffff;
    --text-secondary: #a0aec0;
    --neon-glow: 0 0 20px rgba(2, 125, 253, 0.5);
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-medium: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-large: 0 12px 48px rgba(0, 0, 0, 0.5);
    --border-radius-sm: 12px;
    --border-radius-md: 16px;
    --border-radius-lg: 20px;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===========================
   TYPOGRAPHY
   =========================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.logo-gradient {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.75rem;
    font-weight: 800;
    display: inline-block;
}

/* ===========================
   NAVBAR
   =========================== */
.navbar {
    background: rgba(10, 14, 26, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: var(--shadow-soft);
    z-index: 1000;
}

.navbar-brand {
    padding: 0.5rem 0;
    margin-right: 1.5rem;
}

.navbar-nav {
    align-items: center;
    gap: 0.5rem;
}

.navbar-nav .nav-link {
    color: var(--text-secondary);
    padding: 0.75rem 1.25rem;
    transition: var(--transition-smooth);
    font-weight: 500;
    font-size: 1rem;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-blue);
}

.navbar-toggler {
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem 0.75rem;
}

.navbar-toggler:focus {
    box-shadow: none;
    border-color: var(--primary-blue);
}

/* ===========================
   BUTTONS
   =========================== */
.btn {
    font-weight: 600;
    border-radius: var(--border-radius-sm);
    transition: var(--transition-smooth);
    padding: 0.75rem 1.75rem;
    font-size: 1rem;
    line-height: 1.5;
    border: none;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-gradient {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: white !important;
    border: none;
    box-shadow: var(--shadow-soft);
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: var(--neon-glow), var(--shadow-medium);
    color: white !important;
}

.btn-outline-primary {
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
    transform: translateY(-2px);
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    background: transparent;
}

.btn-outline-light:hover {
    border-color: white;
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* ===========================
   HERO SECTION
   =========================== */
.hero-section {
    background: linear-gradient(135deg, #0a0e1a 0%, #1a2332 100%);
    position: relative;
    padding-top: 80px;
    overflow: hidden;
    min-height: 100vh;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1478720568477-152d9b164e26?w=1600&h=900&fit=crop') center/cover;
    opacity: 0.15;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(2, 125, 253, 0.1), rgba(0, 168, 255, 0.1));
    z-index: 1;
}

.z-index-10 {
    z-index: 10;
    position: relative;
}

.hero-badge {
    display: inline-block;
    background: rgba(2, 125, 253, 0.2);
    border: 1px solid var(--primary-blue);
    padding: 0.625rem 1.25rem;
    border-radius: 50px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--primary-blue);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(2, 125, 253, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(2, 125, 253, 0);
    }
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff, var(--secondary-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-stats {
    margin-top: 3rem;
    padding-top: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    display: block;
}

/* ===========================
   SECTIONS
   =========================== */
.features-section,
.trending-section,
.categories-section,
.new-releases-section,
.series-grid-section,
.up-next-section {
    background: var(--dark-bg);
    padding: 4rem 0;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 0;
    line-height: 1.5;
}

/* ===========================
   FEATURE CARDS
   =========================== */
.feature-card {
    background: var(--card-bg);
    border-radius: var(--border-radius-md);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: var(--transition-smooth);
    border: 1px solid rgba(255, 255, 255, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary-blue);
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: block;
    line-height: 1;
}

.feature-title {
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-description {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 0;
    line-height: 1.6;
}

/* ===========================
   DRAMA CARDS
   =========================== */
.drama-card {
    position: relative;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    transition: var(--transition-smooth);
    cursor: pointer;
    aspect-ratio: 9/16;
    background: var(--card-bg);
    display: block;
}

.drama-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--neon-glow), var(--shadow-large);
}

.drama-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition-smooth);
}

.drama-card:hover .drama-card-image {
    transform: scale(1.08);
}

.drama-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.4) 80%, transparent);
    padding: 1.5rem 1.25rem;
    transition: var(--transition-smooth);
}

.drama-card-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    padding: 0.375rem 1rem;
    border-radius: 50px;
    font-size: 0.8125rem;
    font-weight: 700;
    box-shadow: var(--shadow-soft);
    z-index: 2;
}

.drama-card-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 70px;
    height: 70px;
    background: rgba(2, 125, 253, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-smooth);
    box-shadow: var(--neon-glow);
    z-index: 2;
}

.drama-card:hover .drama-card-play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.drama-card-play svg {
    width: 28px;
    height: 28px;
    fill: white;
    margin-left: 4px;
}

.drama-card-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
    line-height: 1.3;
}

.drama-card-meta {
    font-size: 0.875rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.drama-card-rating {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: #ffd700;
    font-weight: 600;
}

/* ===========================
   CATEGORY TAGS
   =========================== */
.category-tag {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition-smooth);
    cursor: pointer;
    margin: 0.25rem;
}

.category-tag:hover,
.category-tag.active {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    border-color: transparent;
    color: white;
    transform: translateY(-3px);
    text-decoration: none;
}

/* ===========================
   CTA SECTION
   =========================== */
.cta-section {
    background: var(--dark-bg);
    padding: 5rem 0;
}

.cta-card {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    border-radius: var(--border-radius-lg);
    padding: 4rem 3rem;
    box-shadow: var(--shadow-large);
}

.cta-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
}

.cta-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 0;
    line-height: 1.5;
}

/* ===========================
   FOOTER
   =========================== */
.footer {
    background: #0d1117;
    color: var(--text-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 4rem 0 2rem;
}

.footer-heading {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.footer-description {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.875rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1rem;
    transition: var(--transition-smooth);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--primary-blue);
    transform: translateX(5px);
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 2rem 0;
}

.footer-copyright {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.footer-copyright p {
    margin: 0;
}

/* ===========================
   PAGE HEADER
   =========================== */
.page-header {
    background: linear-gradient(135deg, #0a0e1a 0%, #1a2332 100%);
    padding: 140px 0 80px;
    text-align: center;
}

.page-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.page-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* ===========================
   FILTERS SECTION
   =========================== */
.filters-section {
    background: var(--card-bg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.5rem 0;
}

.search-input,
.custom-select {
    background: var(--dark-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 0.875rem 1.25rem;
    border-radius: var(--border-radius-sm);
    transition: var(--transition-smooth);
    font-size: 1rem;
    width: 100%;
}

.search-input:focus,
.custom-select:focus {
    background: var(--dark-bg);
    border-color: var(--primary-blue);
    color: var(--text-primary);
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(2, 125, 253, 0.25);
}

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

.custom-select option {
    background: var(--dark-bg);
    color: var(--text-primary);
    padding: 0.5rem;
}

.categories-tags {
    background: var(--card-bg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.5rem 0;
}

/* ===========================
   EPISODE PLAYER
   =========================== */
.episode-player-section {
    padding-top: 80px;
    min-height: 100vh;
    background: #000;
}

.video-player-wrapper {
    background: #000;
}

.video-player {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000;
    min-height: 70vh;
    padding: 2rem 0;
}

.vertical-video-frame {
    position: relative;
    width: 100%;
    max-width: 500px;
    aspect-ratio: 9/16;
    background: #000;
    border-radius: 0;
    overflow: hidden;
    box-shadow: var(--shadow-large);
}

.video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.play-button-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.play-button-large {
    background: none;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    filter: drop-shadow(var(--neon-glow));
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-button-large:hover {
    transform: scale(1.15);
}

.episode-info-section {
    background: var(--card-bg);
    padding: 2.5rem 0;
}

.episode-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.episode-meta {
    font-size: 1rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0;
}

.series-name {
    color: var(--primary-blue);
    font-weight: 600;
}

.separator {
    color: var(--text-secondary);
}

.episode-description {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1.0625rem;
    margin: 0;
}

/* ===========================
   EPISODES SIDEBAR
   =========================== */
.episodes-sidebar {
    background: var(--card-bg);
    height: 100vh;
    overflow-y: auto;
    position: sticky;
    top: 80px;
}

.sidebar-header {
    padding: 2rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0;
}

.episode-count {
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.episodes-list {
    padding: 0;
}

.episode-item {
    display: flex;
    gap: 1.25rem;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.episode-item:hover,
.episode-item.active {
    background: rgba(2, 125, 253, 0.15);
}

.episode-item-thumbnail {
    width: 90px;
    aspect-ratio: 9/16;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    flex-shrink: 0;
}

.episode-item-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.episode-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.episode-item-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    line-height: 1.4;
}

.episode-item-meta {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
}

/* ===========================
   PRICING PAGE
   =========================== */
.billing-toggle {
    display: inline-flex;
    background: var(--card-bg);
    border-radius: 50px;
    padding: 0.375rem;
    gap: 0;
    margin-top: 1.5rem;
}

.billing-btn {
    padding: 0.875rem 1.75rem;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    font-size: 1rem;
}

.billing-btn.active {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: white;
}

.save-badge {
    display: inline-block;
    background: #10b981;
    color: white;
    padding: 0.25rem 0.625rem;
    border-radius: 50px;
    font-size: 0.75rem;
    margin-left: 0.5rem;
    font-weight: 700;
}

/* ===========================
   PRICING CARDS
   =========================== */
.pricing-section {
    padding: 4rem 0;
}

.pricing-card {
    background: var(--card-bg);
    border: 2px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-lg);
    padding: 3rem 2.5rem;
    height: 100%;
    transition: var(--transition-smooth);
    position: relative;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-large);
    border-color: var(--primary-blue);
}

.pricing-card.featured {
    border-color: var(--primary-blue);
    box-shadow: var(--neon-glow);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.8125rem;
    font-weight: 700;
    color: white;
    box-shadow: var(--shadow-medium);
    white-space: nowrap;
}

.pricing-header {
    text-align: center;
    margin-bottom: 2rem;
}

.pricing-plan-name {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.pricing-description {
    color: var(--text-secondary);
    font-size: 1.0625rem;
    margin: 0;
}

.pricing-price {
    text-align: center;
    margin-bottom: 2.5rem;
}

.price-amount {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    display: inline-block;
}

.price-period {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin-bottom: 2.5rem;
    flex-grow: 1;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.875rem 0;
    color: var(--text-secondary);
    font-size: 1.0625rem;
    line-height: 1.5;
}

.check-icon {
    color: var(--primary-blue);
    flex-shrink: 0;
    margin-top: 0.125rem;
}

/* ===========================
   FAQ SECTION
   =========================== */
.faq-section {
    padding: 4rem 0;
}

.faq-item {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-md);
    margin-bottom: 1.25rem;
    overflow: hidden;
}

.faq-item .accordion-button {
    background: transparent;
    color: var(--text-primary);
    font-weight: 600;
    padding: 1.5rem 1.75rem;
    border: none;
    box-shadow: none;
    font-size: 1.125rem;
}

.faq-item .accordion-button:not(.collapsed) {
    background: transparent;
    color: var(--primary-blue);
}

.faq-item .accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

.faq-item .accordion-button::after {
    filter: brightness(0) invert(1);
}

.faq-item .accordion-body {
    color: var(--text-secondary);
    padding: 0 1.75rem 1.5rem;
    font-size: 1.0625rem;
    line-height: 1.7;
}

.faq-item .accordion-collapse {
    border: none;
}

/* ===========================
   AUTH PAGE
   =========================== */
.auth-section {
    background: linear-gradient(135deg, #0a0e1a 0%, #1a2332 100%);
    padding-top: 80px;
    min-height: 100vh;
}

.auth-card {
    background: rgba(20, 24, 36, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-lg);
    padding: 3rem 2.5rem;
    box-shadow: var(--shadow-large);
}

.auth-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 2.5rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.auth-tab {
    flex: 1;
    padding: 1.25rem 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    font-size: 1.125rem;
}

.auth-tab.active {
    color: var(--primary-blue);
}

.auth-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
}

.auth-title {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.auth-subtitle {
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    font-size: 1.0625rem;
}

.auth-form {
    margin-bottom: 0;
}

.auth-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 1rem 1.25rem;
    border-radius: var(--border-radius-sm);
    transition: var(--transition-smooth);
    font-size: 1rem;
    width: 100%;
}

.auth-input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-blue);
    color: var(--text-primary);
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(2, 125, 253, 0.25);
}

.auth-input::placeholder {
    color: var(--text-secondary);
}

.auth-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: var(--transition-smooth);
}

.auth-link:hover {
    color: var(--secondary-blue);
    text-decoration: underline;
}

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 2rem 0;
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-divider span {
    padding: 0 1.25rem;
    white-space: nowrap;
}

.social-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.btn-social {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 1rem 1.25rem;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-weight: 600;
    transition: var(--transition-smooth);
    font-size: 1rem;
}

.btn-social:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-blue);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.auth-benefits {
    background: rgba(20, 24, 36, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-md);
    padding: 2rem 1.75rem;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 0;
    color: var(--text-secondary);
    font-size: 1.0625rem;
}

.benefit-item svg {
    color: var(--primary-blue);
    flex-shrink: 0;
}

/* ===========================
   FORM CONTROLS
   =========================== */
.form-label {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.625rem;
    font-size: 0.9375rem;
    display: block;
}

.form-check {
    padding-left: 1.75rem;
    margin-bottom: 0;
}

.form-check-input {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.125rem;
}

.form-check-input:checked {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(2, 125, 253, 0.25);
}

.form-check-label {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.mb-3 {
    margin-bottom: 1.5rem !important;
}

/* ===========================
   RESPONSIVE DESIGN
   =========================== */
@media (max-width: 991px) {
    .hero-section {
        padding: 100px 0 60px;
    }
    
    .vertical-video-frame {
        max-width: 100%;
    }
    
    .episodes-sidebar {
        height: auto;
        position: relative;
        top: 0;
        max-height: 500px;
    }
    
    .navbar-collapse {
        background: rgba(10, 14, 26, 0.98);
        padding: 1.5rem;
        border-radius: var(--border-radius-sm);
        margin-top: 1rem;
    }
    
    .navbar-nav {
        gap: 0;
    }
    
    .navbar-nav .nav-item {
        width: 100%;
    }
    
    .navbar-nav .nav-link {
        padding: 1rem;
    }
    
    .social-buttons {
        grid-template-columns: 1fr;
    }
    
    .cta-card {
        text-align: center;
    }
    
    .video-player {
        padding: 1rem 0;
    }
}

@media (max-width: 767px) {
    .hero-stats {
        margin-top: 2.5rem;
    }
    
    .stat-item {
        padding: 0.75rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .cta-card {
        padding: 2.5rem 2rem;
    }
    
    .pricing-card {
        padding: 2rem 1.75rem;
    }
    
    .auth-card {
        padding: 2rem 1.5rem;
    }
    
    .page-header {
        padding: 120px 0 60px;
    }
    
    .section-title {
        margin-bottom: 1.5rem;
    }
    
    .features-section,
    .trending-section,
    .categories-section,
    .new-releases-section,
    .series-grid-section,
    .up-next-section {
        padding: 3rem 0;
    }
    
    .feature-card {
        padding: 2rem 1.5rem;
    }
    
    .btn-lg {
        padding: 0.875rem 1.75rem;
        font-size: 1.0625rem;
    }
}

@media (max-width: 575px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .drama-card-overlay {
        padding: 1rem;
    }
    
    .drama-card-title {
        font-size: 1rem;
    }
    
    .category-tag {
        padding: 0.625rem 1.25rem;
        font-size: 0.9375rem;
    }
    
    .auth-title {
        font-size: 1.875rem;
    }
    
    .price-amount {
        font-size: 2.75rem;
    }
}

/* ===========================
   SCROLLBAR STYLING
   =========================== */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--card-bg);
    border-radius: 6px;
    border: 2px solid var(--dark-bg);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-blue);
}

/* ===========================
   ANIMATIONS
   =========================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* ===========================
   UTILITY CLASSES
   =========================== */
.w-100 {
    width: 100% !important;
}

.text-center {
    text-align: center !important;
}

.d-flex {
    display: flex !important;
}

.gap-3 {
    gap: 1rem !important;
}

.gap-4 {
    gap: 1.5rem !important;
}

.flex-wrap {
    flex-wrap: wrap !important;
}

.justify-content-center {
    justify-content: center !important;
}

.align-items-center {
    align-items: center !important;
}

.mt-3 {
    margin-top: 1rem !important;
}

.mt-4 {
    margin-top: 1.5rem !important;
}

.mt-5 {
    margin-top: 3rem !important;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

.mb-5 {
    margin-bottom: 3rem !important;
}









/* ============================================
   DRAMA CARD ENHANCEMENTS
   Add this to the end of your style.css file
   ============================================ */

/* Improve grid layout for drama cards */
.drama-carousel .row,
.dramas-grid .row {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 1.5rem;
}

/* Ensure consistent card sizing */
@media (min-width: 1200px) {
    .drama-card {
        height: 450px;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .drama-card {
        height: 400px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .drama-card {
        height: 350px;
    }
}

@media (max-width: 767px) {
    .drama-card {
        height: 300px;
    }
}

/* Smooth animations */
.drama-card * {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Badge variants */
.drama-card-badge.trending {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
}

.drama-card-badge.new {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.drama-card-badge.coming-soon {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

/* Play button pulse animation */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(255, 255, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

.drama-card:hover .drama-card-play {
    animation: pulse 2s infinite;
}

/* Skeleton loading state */
.drama-card.loading {
    background: linear-gradient(90deg, #2a2a2a 25%, #333 50%, #2a2a2a 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Hover effects enhancement */
.drama-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.drama-card:hover::before {
    opacity: 1;
}

/* Mobile optimizations */
@media (max-width: 767px) {
    .drama-card-title {
        font-size: 0.9rem;
        -webkit-line-clamp: 1;
    }
    
    .drama-card-meta {
        font-size: 0.75rem;
        gap: 8px;
    }
    
    .drama-card-meta > span:not(:last-child)::after {
        margin-left: 8px;
    }
    
    .drama-card-play {
        width: 48px;
        height: 48px;
    }
    
    .drama-card-play svg {
        width: 20px;
        height: 20px;
    }
    
    .drama-card-badge {
        font-size: 0.65rem;
        padding: 3px 10px;
    }
}

/* Accessibility improvements */
.drama-card:focus-visible {
    outline: 2px solid #667eea;
    outline-offset: 4px;
}

.drama-card[aria-label]::after {
    content: attr(aria-label);
    position: absolute;
    left: -9999px;
}

/* Grid improvements for archive page */
.archive-dramas .row {
    margin-bottom: 2rem;
}

/* Ensure 4 columns on extra large screens */
@media (min-width: 1400px) {
    .col-xl-3 {
        flex: 0 0 auto;
        width: 25%;
    }
}

/* Fix aspect ratio on all screen sizes */
.drama-card-image {
    aspect-ratio: 2/3;
    object-position: center;
}

/* Prevent text selection on card */
.drama-card {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
}

/* Smooth hover transition for all elements */
.drama-card,
.drama-card-image,
.drama-card-overlay,
.drama-card-play {
    will-change: transform, opacity;
}


/* ============================================
   EPISODE CARD - PLAY ICON ON HOVER
   Replace existing episode CSS with this
   ============================================ */

.episode-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.episode-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

/* Episode Thumbnail Container */
.episode-thumbnail {
    position: relative;
    overflow: hidden;
    background: #1a1a1a;
}

.episode-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease, filter 0.3s ease;
}

/* Darken image on hover */
.episode-card:hover .episode-thumbnail img {
    transform: scale(1.05);
    filter: brightness(0.6);
}

/* Episode Overlay - Hidden by default */
.episode-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
    pointer-events: none; /* Allow clicks to pass through to link */
}

/* Show overlay on hover */
.episode-card:hover .episode-overlay {
    opacity: 1;
}

/* Play Button - Centered on Image */
.play-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    color: #667eea;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    pointer-events: auto; /* Make button clickable */
}

.play-btn:hover {
    background: white;
    transform: scale(1.15);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.6);
}

/* Play Icon Styles */
.play-btn i {
    font-size: 2.5rem;
    color: #667eea;
}

.play-btn svg {
    width: 40px;
    height: 40px;
    color: #667eea;
    margin-left: 4px; /* Slight offset for visual centering */
}

/* Pulse animation on hover */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(255, 255, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

.episode-card:hover .play-btn {
    animation: pulse 2s infinite;
}

/* Episode Duration Badge */
.episode-duration {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 3;
    backdrop-filter: blur(4px);
}

/* Free Episode Badge */
.episode-free-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 3;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.4);
}

/* Episode Info Section */
.episode-info {
    padding: 1rem;
    background: var(--card-bg);
}

.episode-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: white;
    line-height: 1.4;
}

.episode-title a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.episode-title a:hover {
    color: #667eea;
}

.episode-description {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Make entire card clickable area */
.episode-thumbnail {
    cursor: pointer;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .episode-thumbnail img {
        height: 160px;
    }
    
    .play-btn {
        width: 60px;
        height: 60px;
    }
    
    .play-btn i {
        font-size: 2rem;
    }
    
    .play-btn svg {
        width: 30px;
        height: 30px;
    }
    
    .episode-title {
        font-size: 0.9rem;
    }
    
    .episode-description {
        font-size: 0.8rem;
    }
    
    .episode-duration {
        font-size: 0.75rem;
        padding: 3px 8px;
    }
}

/* Ensure smooth transitions */
.episode-card * {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Add visual feedback on click */
.play-btn:active {
    transform: scale(0.95);
}