/* ============================================
   ANIME RD - MAIN STYLESHEET
   Version: 1.0.0
   Colors: Dark Red Theme
   Lines: 1800+
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
    --primary-red: #ff0000;
    --primary-dark: #cc0000;
    --primary-light: #ff3333;
    --secondary-red: #990000;
    --dark-bg: #0a0000;
    --darker-bg: #050000;
    --card-bg: rgba(20, 5, 5, 0.95);
    --glass-bg: rgba(10, 0, 0, 0.8);
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-muted: #888888;
    --border-glow: rgba(255, 0, 0, 0.3);
    --shadow-glow: 0 0 20px rgba(255, 0, 0, 0.3);
    --gradient-red: linear-gradient(135deg, #ff0000, #990000);
    --gradient-dark: linear-gradient(135deg, #0a0000, #1a0505);
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 20px;
    --border-radius-xl: 30px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Cairo', sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(255,0,0,0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* ---------- Custom Scrollbar ---------- */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--darker-bg);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-red);
    border-radius: 10px;
    transition: var(--transition-normal);
}

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

/* ---------- Selection ---------- */
::selection {
    background: var(--primary-red);
    color: white;
}

::-moz-selection {
    background: var(--primary-red);
    color: white;
}

/* ---------- Preloader ---------- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--darker-bg);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s, visibility 0.5s;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
}

.anime-logo-pre {
    font-size: 48px;
    font-weight: 900;
    background: var(--gradient-red);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 30px;
    animation: pulse 1.5s infinite;
}

.loader {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(255,0,0,0.2);
    border-top: 3px solid var(--primary-red);
    border-right: 3px solid var(--primary-light);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* ---------- Sidebar ---------- */
.sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 320px;
    height: 100vh;
    background: linear-gradient(180deg, rgba(10,0,0,0.98) 0%, rgba(5,0,0,0.98) 100%);
    backdrop-filter: blur(20px);
    border-left: 1px solid var(--border-glow);
    box-shadow: -10px 0 40px rgba(0,0,0,0.5);
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar.open {
    transform: translateX(0);
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px;
    border-bottom: 1px solid var(--border-glow);
}

.logo-side {
    font-size: 28px;
    font-weight: 900;
    background: var(--gradient-red);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.close-sidebar {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
    transition: var(--transition-normal);
}

.close-sidebar:hover {
    color: var(--primary-red);
    transform: rotate(90deg);
}

/* User Info Side */
.user-info-side {
    padding: 25px;
    text-align: center;
    border-bottom: 1px solid rgba(255,0,0,0.1);
}

.user-avatar-side {
    font-size: 64px;
    color: var(--primary-red);
    margin-bottom: 10px;
}

.user-name-side {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.login-side-btn {
    background: var(--gradient-red);
    border: none;
    padding: 8px 20px;
    border-radius: 25px;
    color: white;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition-normal);
}

.login-side-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-glow);
}

/* Navigation */
.sidebar-nav {
    padding: 20px;
}

.nav-section-title {
    color: var(--text-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 20px 0 10px;
    padding-right: 10px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    margin: 5px 0;
    border-radius: var(--border-radius-md);
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-normal);
    position: relative;
}

.nav-item i {
    width: 24px;
    font-size: 18px;
}

.nav-item:hover {
    background: rgba(255,0,0,0.1);
    color: var(--primary-light);
    transform: translateX(-5px);
}

.nav-item.active {
    background: linear-gradient(90deg, rgba(255,0,0,0.2), transparent);
    color: var(--primary-red);
    border-right: 3px solid var(--primary-red);
}

.nav-badge {
    background: var(--primary-red);
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 20px;
    margin-right: auto;
}

.nav-count {
    background: rgba(255,0,0,0.2);
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 20px;
    margin-right: auto;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(255,0,0,0.1);
    margin-top: 20px;
}

.anime-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
}

.stat-item {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-red);
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
}

.sidebar-social {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.sidebar-social a {
    color: var(--text-muted);
    font-size: 20px;
    transition: var(--transition-normal);
}

.sidebar-social a:hover {
    color: var(--primary-red);
    transform: translateY(-3px);
}

/* ---------- Overlay ---------- */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ---------- Main Content ---------- */
.main-content {
    margin-right: 0;
    transition: margin-right 0.4s;
}

.main-content.shifted {
    margin-right: 320px;
}

/* ---------- Header ---------- */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 30px;
    background: rgba(5,0,0,0.95);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-glow);
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.menu-toggle {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 24px;
    cursor: pointer;
    transition: var(--transition-normal);
}

.menu-toggle:hover {
    color: var(--primary-red);
    transform: scale(1.1);
}

.logo {
    margin-right: 20px;
}

.logo-text {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
}

.logo-highlight {
    font-size: 28px;
    font-weight: 800;
    background: var(--gradient-red);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Search Container */
.search-container {
    flex: 1;
    max-width: 500px;
    position: relative;
}

.search-box {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-glow);
    border-radius: 50px;
    overflow: hidden;
    transition: var(--transition-normal);
}

.search-box:focus-within {
    border-color: var(--primary-red);
    box-shadow: 0 0 15px rgba(255,0,0,0.3);
}

.search-icon {
    padding: 0 15px;
    color: var(--text-muted);
}

.search-box input {
    flex: 1;
    background: none;
    border: none;
    padding: 12px 0;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
}

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

.voice-search, .clear-search {
    background: none;
    border: none;
    color: var(--text-muted);
    padding: 0 10px;
    cursor: pointer;
    transition: var(--transition-normal);
}

.voice-search:hover, .clear-search:hover {
    color: var(--primary-red);
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card-bg);
    backdrop-filter: blur(15px);
    border-radius: var(--border-radius-md);
    margin-top: 10px;
    border: 1px solid var(--border-glow);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.search-suggestions.active {
    display: block;
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    cursor: pointer;
    transition: var(--transition-normal);
}

.suggestion-item:hover {
    background: rgba(255,0,0,0.1);
}

.suggestion-img {
    width: 40px;
    height: 40px;
    border-radius: var(--border-radius-sm);
    object-fit: cover;
}

.suggestion-info h4 {
    font-size: 14px;
    margin-bottom: 5px;
}

.suggestion-info p {
    font-size: 12px;
    color: var(--text-muted);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.notification-btn {
    position: relative;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition-normal);
}

.notification-btn:hover {
    color: var(--primary-red);
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -10px;
    background: var(--primary-red);
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

/* User Menu */
.user-menu {
    position: relative;
}

.user-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 16px;
    cursor: pointer;
    padding: 8px 15px;
    border-radius: 50px;
    transition: var(--transition-normal);
}

.user-btn:hover {
    background: rgba(255,0,0,0.1);
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 220px;
    background: var(--card-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--border-glow);
    border-radius: var(--border-radius-md);
    margin-top: 10px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition-normal);
}

.user-menu:hover .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-normal);
}

.user-dropdown a:hover {
    background: rgba(255,0,0,0.1);
    color: var(--primary-red);
}

.user-dropdown hr {
    border: none;
    border-top: 1px solid var(--border-glow);
    margin: 5px 0;
}

/* ---------- Hero Slider ---------- */
.hero-slider {
    width: 100%;
    height: 550px;
    position: relative;
    overflow: hidden;
}

.heroSwiper {
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4);
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
}

.hero-content {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 60px;
    max-width: 600px;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero-description {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.hero-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-secondary);
    font-size: 14px;
}

.hero-meta i {
    color: var(--primary-red);
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.btn-watch {
    background: var(--gradient-red);
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
}

.btn-watch:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-glow);
}

.btn-details {
    background: rgba(255,255,255,0.1);
    border: 1px solid var(--border-glow);
    padding: 12px 30px;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
}

.btn-details:hover {
    background: rgba(255,0,0,0.2);
    border-color: var(--primary-red);
}

.swiper-button-next, .swiper-button-prev {
    color: white !important;
    background: rgba(0,0,0,0.5);
    width: 50px !important;
    height: 50px !important;
    border-radius: 50%;
    transition: var(--transition-normal);
}

.swiper-button-next:hover, .swiper-button-prev:hover {
    background: var(--primary-red);
}

.swiper-pagination-bullet {
    background: white !important;
    opacity: 0.5 !important;
}

.swiper-pagination-bullet-active {
    background: var(--primary-red) !important;
    opacity: 1 !important;
}

/* ---------- Content Container ---------- */
.content-container {
    padding: 40px;
    min-height: 500px;
}

/* Loading State */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255,0,0,0.2);
    border-top: 3px solid var(--primary-red);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

/* Section Styles */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.section-title {
    font-size: 28px;
    font-weight: 800;
    position: relative;
    padding-right: 15px;
}

.section-title::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 30px;
    background: var(--primary-red);
    border-radius: 2px;
}

.section-link {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-normal);
}

.section-link:hover {
    color: var(--primary-red);
}

/* Anime Grid */
.anime-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.anime-card {
    background: var(--card-bg);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition-normal);
    position: relative;
    border: 1px solid var(--border-glow);
}

.anime-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-glow);
    border-color: var(--primary-red);
}

.anime-card-poster {
    position: relative;
    overflow: hidden;
    aspect-ratio: 2/3;
}

.anime-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

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

.anime-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    opacity: 0;
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
}

.anime-card:hover .anime-card-overlay {
    opacity: 1;
}

.anime-card-play {
    width: 50px;
    height: 50px;
    background: var(--primary-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transform: scale(0);
    transition: transform 0.3s;
}

.anime-card:hover .anime-card-play {
    transform: scale(1);
}

.anime-card-score {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #ffaa44;
}

.anime-card-info {
    padding: 15px;
}

.anime-card-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.anime-card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.anime-card-eps {
    color: var(--primary-light);
}

.anime-card-status {
    display: inline-block;
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 20px;
    background: rgba(255,0,0,0.2);
    color: var(--primary-light);
}

.status-airing {
    animation: pulse 1.5s infinite;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.page-btn {
    min-width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-glow);
    border-radius: var(--border-radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-normal);
}

.page-btn:hover, .page-btn.active {
    background: var(--primary-red);
    border-color: var(--primary-red);
    color: white;
}

/* ---------- Filter Bar ---------- */
.filter-bar {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.filter-label {
    color: var(--text-muted);
    font-size: 14px;
}

.filter-select {
    background: var(--card-bg);
    border: 1px solid var(--border-glow);
    border-radius: var(--border-radius-md);
    padding: 10px 15px;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition-normal);
}

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

/* ---------- Modal Styles ---------- */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--darker-bg);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-glow);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-glow);
}

.modal-header h2 {
    font-size: 24px;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
    transition: var(--transition-normal);
}

.modal-close:hover {
    color: var(--primary-red);
    transform: rotate(90deg);
}

.modal-body {
    padding: 20px;
}

/* Login Modal */
.login-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.tab-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 10px;
    border-radius: var(--border-radius-md);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-normal);
}

.tab-btn.active {
    background: var(--primary-red);
    color: white;
}

.tab-content {
    display: none;
}

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

.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.input-group input {
    width: 100%;
    padding: 12px 45px 12px 15px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-glow);
    border-radius: var(--border-radius-md);
    color: var(--text-primary);
    font-size: 14px;
    transition: var(--transition-normal);
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary-red);
}

.toggle-password {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
}

.btn-primary {
    width: 100%;
    background: var(--gradient-red);
    border: none;
    padding: 12px;
    border-radius: var(--border-radius-md);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-link {
    background: none;
    border: none;
    color: var(--primary-light);
    cursor: pointer;
    margin-top: 15px;
    display: block;
    width: 100%;
    text-align: center;
}

.divider {
    text-align: center;
    position: relative;
    margin: 20px 0;
    color: var(--text-muted);
}

.divider::before, .divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 45%;
    height: 1px;
    background: var(--border-glow);
}

.divider::before {
    left: 0;
}

.divider::after {
    right: 0;
}

.btn-google {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-glow);
    padding: 12px;
    border-radius: var(--border-radius-md);
    color: var(--text-primary);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-google:hover {
    background: rgba(66,133,244,0.2);
    border-color: #4285f4;
}

/* Player Modal */
.player-modal-content {
    max-width: 1400px;
    width: 95%;
    display: flex;
    flex-direction: column;
}

.player-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-glow);
}

.player-info h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.player-episode-info {
    font-size: 14px;
    color: var(--text-muted);
}

.player-controls-header {
    display: flex;
    gap: 10px;
}

.player-controls-header button {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--border-radius-sm);
    transition: var(--transition-normal);
}

.player-controls-header button:hover {
    color: var(--primary-red);
    background: rgba(255,0,0,0.1);
}

.player-container {
    display: flex;
    height: 70vh;
}

.video-wrapper {
    flex: 1;
    position: relative;
    background: #000;
}

#animeIframe {
    width: 100%;
    height: 100%;
    border: none;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    z-index: 10;
    display: none;
}

.video-overlay.active {
    display: flex;
}

.player-sidebar {
    width: 300px;
    background: var(--card-bg);
    border-right: 1px solid var(--border-glow);
    display: flex;
    flex-direction: column;
}

.episode-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid var(--border-glow);
}

.episode-sort {
    display: flex;
    gap: 5px;
}

.sort-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    padding: 5px 8px;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
}

.sort-btn.active {
    background: var(--primary-red);
    color: white;
}

.episode-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

.episode-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    margin: 5px 0;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition-normal);
}

.episode-item:hover {
    background: rgba(255,0,0,0.1);
}

.episode-item.active {
    background: var(--primary-red);
}

.episode-number {
    font-weight: 600;
}

.episode-watched {
    color: var(--primary-light);
    font-size: 12px;
}

/* ---------- Footer ---------- */
.footer {
    background: var(--darker-bg);
    border-top: 1px solid var(--border-glow);
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding: 50px 40px;
}

.footer-section h3, .footer-section h4 {
    margin-bottom: 20px;
    color: var(--primary-light);
}

.footer-section p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition-normal);
}

.footer-social a:hover {
    background: var(--primary-red);
    color: white;
    transform: translateY(-3px);
}

.footer-section a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 10px;
    transition: var(--transition-normal);
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    border-top: 1px solid var(--border-glow);
    color: var(--text-muted);
    font-size: 14px;
}

.footer-lang select {
    background: var(--card-bg);
    border: 1px solid var(--border-glow);
    border-radius: var(--border-radius-sm);
    padding: 8px 15px;
    color: var(--text-primary);
    cursor: pointer;
}

/* ---------- Toast Notifications ---------- */
#toastContainer {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: var(--card-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--border-glow);
    border-radius: var(--border-radius-md);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideInRight 0.3s ease;
    box-shadow: var(--shadow-glow);
}

.toast.success {
    border-color: #00ff00;
}

.toast.error {
    border-color: var(--primary-red);
}

.toast.info {
    border-color: #00aaff;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ---------- Responsive Design ---------- */
@media (max-width: 1200px) {
    .hero-slider {
        height: 450px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .content-container {
        padding: 30px;
    }
}

@media (max-width: 992px) {
    .hero-slider {
        height: 400px;
    }
    
    .hero-content {
        padding: 0 30px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .anime-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 20px;
    }
    
    .player-container {
        flex-direction: column;
        height: auto;
    }
    
    .player-sidebar {
        width: 100%;
        max-height: 300px;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 10px 15px;
    }
    
    .logo-text, .logo-highlight {
        font-size: 20px;
    }
    
    .search-container {
        max-width: 200px;
    }
    
    .user-btn span {
        display: none;
    }
    
    .hero-slider {
        height: 350px;
    }
    
    .hero-content {
        max-width: 100%;
        text-align: center;
    }
    
    .hero-meta {
        justify-content: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .content-container {
        padding: 20px;
    }
    
    .section-title {
        font-size: 22px;
    }
    
    .anime-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        padding: 30px 20px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 22px;
    }
    
    .hero-description {
        font-size: 12px;
        -webkit-line-clamp: 2;
    }
    
    .hero-meta {
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }
    
    .btn-watch, .btn-details {
        padding: 8px 20px;
        font-size: 12px;
    }
    
    .anime-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 10px;
    }
    
    .anime-card-title {
        font-size: 12px;
    }
    
    .anime-card-meta {
        font-size: 10px;
    }
}

/* ---------- Animations ---------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease;
}

@keyframes glowPulse {
    0%, 100% {
        text-shadow: 0 0 5px rgba(255,0,0,0.5);
    }
    50% {
        text-shadow: 0 0 20px rgba(255,0,0,0.8);
    }
}

/* ---------- Utility Classes ---------- */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }

.hidden { display: none; }
.visible { display: block; }

/* ---------- Dark Mode Toggle (Future Feature) ---------- */
body.light-mode {
    --dark-bg: #f5f5f5;
    --darker-bg: #ffffff;
    --card-bg: rgba(240,240,240,0.95);
    --text-primary: #333333;
    --text-secondary: #666666;
    --text-muted: #999999;
}

/* End of CSS - 1800+ lines */