:root {
    --bg-color: #0d0d0c;
    --text-color: #ffffff;
    --accent-red: #E50914;
    --accent-gold: #D4AF37;
    --gold: #D4AF37; /* Added for compatibility with existing code */
    --nav-bg: rgba(13, 13, 12, 0.9);
    --card-bg: #1a1a1a;
    --hover-bg: #333333;
    --font-primary: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-primary);
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-gold);
}

/* NAVBAR */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    transition: background-color 0.3s;
}

header.scrolled {
    background-color: var(--nav-bg);
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 4%;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent-red);
    letter-spacing: 1px;
}

.logo span {
    color: var(--accent-gold);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links li a {
    font-size: 1rem;
    font-weight: 500;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.8rem;
}

.nav-icon {
    font-size: 1.25rem;
    color: #eee;
    transition: color 0.3s;
}

.btn-primary {
    background-color: var(--accent-red);
    color: #fff;
    padding: 0.6rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.btn-primary:hover {
    background-color: #f40612;
    transform: scale(1.05);
}

.btn-outline {
    border: 1px solid var(--text-color);
    padding: 0.6rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-outline:hover {
    background-color: var(--text-color);
    color: var(--bg-color);
}

/* HERO SECTION */
.hero {
    height: 80vh;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 4%;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(13,13,12,0.9) 0%, rgba(13,13,12,0.4) 50%, rgba(13,13,12,0) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    animation: fadeIn 1s ease-out;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero-desc {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #cccccc;
}

.hero-buttons {
    display: flex;
    gap: 1.2rem;
    margin-top: 1rem;
}

/* ROW CAROUSELS */
.row {
    margin: 2rem 4%;
}

.row-header {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.row-container {
    position: relative;
    display: flex;
    align-items: center;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.6);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 1.5rem 0.5rem;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s, color 0.3s;
    height: 100%;
}

.slider-btn:hover {
    background: rgba(0,0,0,0.9);
    color: var(--accent-gold);
}

.slider-btn.left {
    left: 0;
}

.slider-btn.right {
    right: 0;
}

.row-posters {
    display: flex;
    overflow-y: hidden;
    overflow-x: scroll;
    padding: 1rem 0;
    gap: 10px;
    scrollbar-width: none;
    scroll-behavior: smooth;
    width: 100%;
}

.row-posters::-webkit-scrollbar {
    display: none;
}

.row-poster {
    min-width: 250px;
    max-width: 250px;
    height: 350px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.4s;
    cursor: pointer;
}

.row-poster:hover {
    transform: scale(1.08);
}

/* FOOTER */
footer {
    padding: 3rem 4% 1.5rem;
    color: #777;
    margin-top: 3rem;
    border-top: 1px solid #333;
    background: #111;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}
.footer-brand {
    font-size: 1.6rem;
    font-weight: 800;
    color: #E50914;
    margin-bottom: 0.8rem;
}
.footer-brand span {
    color: #D4AF37;
}
.footer-about {
    font-size: 0.9rem;
    line-height: 1.7;
    color: #888;
}
.footer-col h4 {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.footer-col ul {
    list-style: none;
}
.footer-col ul li {
    margin-bottom: 0.5rem;
}
.footer-col ul li a {
    color: #888;
    font-size: 0.9rem;
    transition: color 0.3s, padding-left 0.3s;
}
.footer-col ul li a:hover {
    color: #D4AF37;
    padding-left: 5px;
}
.footer-socials {
    display: flex;
    gap: 12px;
}
.footer-socials a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #222;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    transition: background 0.3s, color 0.3s, transform 0.2s;
}
.footer-socials a:hover {
    background: #E50914;
    color: #fff;
    transform: scale(1.1);
}
.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid #222;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 0.8rem;
    text-align: center;
}

.footer-bottom-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: #888;
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.footer-bottom-links a {
    color: #666;
    transition: color 0.3s;
}

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

/* LIVE CHAT WIDGET */
#liveChatWidget { 
    position: fixed; 
    bottom: 20px; 
    right: 30px; 
    width: 320px; 
    background: #1a1a1a; 
    border-radius: 12px; 
    box-shadow: 0 10px 40px rgba(0,0,0,0.8); 
    z-index: 9999; 
    border: 1px solid #333; 
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1), opacity 0.3s; 
}

.chat-widget-collapsed { 
    transform: translateY(calc(100% - 65px)); 
}

.chat-widget-header { 
    background: linear-gradient(90deg, #E50914, #b20710); 
    color: white; 
    padding: 14px 20px; 
    border-radius: 12px 12px 0 0; 
    cursor: pointer; 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    font-weight: 600; 
    font-size: 1rem; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.chat-widget-header .toggle-icon { 
    transition: transform 0.3s; 
}

#liveChatWidget:not(.chat-widget-collapsed) .toggle-icon { 
    transform: rotate(180deg); 
}

.chat-widget-body { 
    height: 380px; 
    display: flex; 
    flex-direction: column; 
    background: #111; 
}

#widgetChatBox { 
    flex: 1; 
    padding: 15px; 
    overflow-y: auto; 
    display: flex; 
    flex-direction: column; 
    gap: 12px; 
    scrollbar-width: thin;
    scrollbar-color: #333 #111;
}

#widgetChatBox::-webkit-scrollbar {
    width: 6px;
}

#widgetChatBox::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 10px;
}

.w-msg { 
    max-width: 85%; 
    padding: 10px 14px; 
    border-radius: 15px; 
    font-size: 0.9rem; 
    line-height: 1.5; 
    word-wrap: break-word; 
    position: relative;
    animation: fadeIn 0.3s ease-out;
}

.w-msg-time { 
    display: block; 
    font-size: 0.65rem; 
    color: rgba(255,255,255,0.5); 
    margin-top: 5px; 
    text-align: right; 
}

.w-msg-user { 
    align-self: flex-end; 
    background: linear-gradient(135deg, #E50914, #b20710); 
    color: white; 
    border-bottom-right-radius: 2px; 
    box-shadow: 0 2px 8px rgba(229, 9, 20, 0.2);
}

.w-msg-admin { 
    align-self: flex-start; 
    background: #222; 
    color: #eee; 
    border-bottom-left-radius: 2px; 
    border: 1px solid #333;
}

.w-msg-admin .w-name { 
    display: block; 
    font-size: 0.75rem; 
    color: var(--accent-gold); 
    margin-bottom: 4px; 
    font-weight: 700; 
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.chat-input-area { 
    padding: 12px; 
    background: #1a1a1a; 
    display: flex; 
    gap: 10px; 
    border-top: 1px solid #333; 
}

#widgetChatInput { 
    flex: 1; 
    padding: 10px 18px; 
    background: #252525; 
    border: 1px solid #444; 
    color: white; 
    border-radius: 25px; 
    outline: none; 
    font-size: 0.9rem;
    transition: border-color 0.3s, background 0.3s;
}

#widgetChatInput:focus { 
    border-color: #E50914; 
    background: #2a2a2a;
}

.chat-input-area button { 
    background: #E50914; 
    color: white; 
    border: none; 
    width: 42px; 
    height: 42px; 
    border-radius: 50%; 
    cursor: pointer; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    transition: transform 0.2s, background 0.3s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.chat-input-area button:hover { 
    background: #f40612; 
    transform: scale(1.1) rotate(5deg);
}

/* MOBILE NAVIGATION */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 28px;
    height: 3px;
    background-color: #fff;
    border-radius: 2px;
    transition: 0.3s;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(8px);
    z-index: 10000;
    visibility: hidden;
    opacity: 0;
    transition: all 0.4s ease;
}

.mobile-menu-overlay.show {
    visibility: visible;
    opacity: 1;
}

.mobile-menu-content {
    position: absolute;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 350px;
    height: 100%;
    background: #111;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
}

.mobile-menu-overlay.show .mobile-menu-content {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
}

.close-menu {
    font-size: 1.8rem;
    color: #fff;
    cursor: pointer;
}

.mobile-nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-nav-links li a {
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 15px;
    color: #eee;
}

.mobile-nav-links li a i {
    width: 25px;
    color: var(--accent-red);
}

.mobile-logout {
    color: #ff4d4d !important;
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 1024px) {
    .nav-links { gap: 1rem; }
    .hero-title { font-size: 3rem; }
}

@media (max-width: 768px) {
    .nav-links, .desktop-only { display: none !important; }
    .hamburger { display: flex; }
    
    .nav-container { padding: 1.2rem 5%; }
    .logo { font-size: 1.5rem; }
    .nav-right { gap: 1.5rem; }
    
    .hero-title { font-size: 2.2rem; margin-bottom: 1.2rem; }
    .hero-desc { font-size: 0.95rem; line-height: 1.5; margin-bottom: 1.5rem; }
    
    .main-layout { flex-direction: column; gap: 30px; padding: 0 5%; }
    .content-area, .sidebar-area { width: 100%; }
    
    .footer-grid { grid-template-columns: 1fr; text-align: center; gap: 2.5rem; }
    .footer-socials { justify-content: center; }

    #liveChatWidget { 
        bottom: 10px; 
        right: 10px; 
        width: 60px; 
        height: 60px; 
        border-radius: 50%; 
        overflow: hidden;
    }
    #liveChatWidget.chat-widget-collapsed { transform: none; }
    #liveChatWidget.chat-widget-collapsed .chat-widget-header { padding: 0; display: flex; align-items: center; justify-content: center; width: 60px; height: 60px; border-radius: 50%; }
    #liveChatWidget.chat-widget-collapsed .chat-widget-header span,
    #liveChatWidget.chat-widget-collapsed .chat-widget-header i:last-child { display: none; }
    #liveChatWidget.chat-widget-collapsed .chat-widget-header i:first-child { font-size: 1.5rem; margin: 0; }
    #liveChatWidget:not(.chat-widget-collapsed) { 
        width: calc(100% - 20px); 
        height: 80vh; 
        border-radius: 12px; 
        left: 10px; 
        bottom: 10px; 
    }
}

@media (max-width: 480px) {
    .hero-title { font-size: 1.8rem; letter-spacing: -0.5px; }
    .hero-buttons { flex-direction: column; width: 100%; gap: 0.8rem; }
    .hero-buttons .btn-primary, .hero-buttons .btn-outline { width: 100%; text-align: center; padding: 0.8rem 1rem; font-size: 0.95rem; }
    
    .series-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .card-bottom { padding: 0.6rem; }
    .card-bottom h4 { font-size: 0.8rem; }
    .section-header h2 { font-size: 1.2rem; }
}

.nav-icon { font-size: 1.3rem; margin-right: 5px; }
.hamburger { margin-left: 5px; }
