/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-bg: #0a0a0a;
    --secondary-bg: #1a1a1a;
    --card-bg: #2a2a2a;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-muted: #808080;
    --accent-gold: #ffd700;
    --accent-gradient: linear-gradient(135deg, #ffd700 0%, #ffb347 50%, #ff8c00 100%);
    --accent-gradient-hover: linear-gradient(135deg, #ffed4e 0%, #ffc947 50%, #ff9500 100%);
    --purple-accent: #8b5cf6;
    --border-color: #333333;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    --shadow-hover: 0 8px 30px rgba(255, 215, 0, 0.3);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(26, 26, 26, 0.8);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #ffd700 0%, #ffb347 50%, #ff8c00 100%);
    border-radius: 10px;
    border: 2px solid rgba(26, 26, 26, 0.8);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #ffed4e 0%, #ffc947 50%, #ff9500 100%);
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: #ffd700 rgba(26, 26, 26, 0.8);
}

body {
    font-family: 'Geologica', sans-serif;
    background: var(--primary-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, .logo-text, .section-title {
    font-family: 'Dela Gothic One', cursive;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, 
        rgba(13, 13, 13, 0.95) 0%, 
        rgba(20, 20, 20, 0.98) 50%, 
        rgba(13, 13, 13, 0.95) 100%);
    backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 215, 0, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3),
                0 1px 0 rgba(255, 215, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 215, 0, 0.05) 0%, 
        rgba(255, 255, 255, 0.02) 50%, 
        rgba(255, 140, 0, 0.03) 100%);
    border-radius: 24px;
    pointer-events: none;
}

.navbar {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    align-items: center;
    padding: 20px 40px;
    max-width: 1600px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    gap: 40px;
}

.nav-brand {
    justify-self: start;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 28px;
    font-weight: bold;
    padding: 12px 20px;
    border-radius: 14px;
    background: rgba(255, 215, 0, 0.12);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 215, 0, 0.25);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.logo::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 215, 0, 0.1) 50%, 
        transparent 100%);
    transition: left 0.8s ease;
}

.logo:hover {
    background: rgba(255, 215, 0, 0.18);
    border-color: rgba(255, 215, 0, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(255, 215, 0, 0.25);
}

.logo:hover::before {
    left: 100%;
}

.logo-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.3));
    position: relative;
    z-index: 2;
}

.nav-center {
    justify-self: center;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(15px);
    border-radius: 16px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateZ(0);
}

.nav-links:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 215, 0, 0.2);
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.1);
    transform: translateY(-1px) translateZ(0);
}

.nav-right {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-item {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    white-space: nowrap;
    display: inline-block;
    text-align: center;
    min-width: 80px;
    cursor: pointer;
    overflow: hidden;
}

.nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 12px;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: -1;
}

.nav-item::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: -1;
}

.nav-item:hover {
    color: var(--primary-bg);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
}

.nav-item:hover::before {
    left: 0;
}

.nav-item:hover::after {
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

.search-container {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    border-radius: 24px;
    padding: 14px 20px;
    border: 1px solid rgba(255, 215, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    width: 300px;
    position: relative;
    overflow: hidden;
}

.search-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 215, 0, 0.08) 50%, 
        transparent 100%);
    transition: left 0.8s ease;
}

.search-container:focus-within {
    border-color: rgba(255, 215, 0, 0.4);
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.2), 
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.12);
}

.search-container:focus-within::before {
    left: 100%;
}

.search-input {
    background: none;
    border: none;
    color: var(--text-primary);
    outline: none;
    padding: 0;
    font-family: 'Geologica', sans-serif;
    font-weight: 500;
    font-size: 14px;
    flex: 1;
    z-index: 2;
    position: relative;
}

.search-input::placeholder {
    color: var(--text-muted);
    font-weight: 500;
    text-transform: lowercase;
}

.search-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 20px;
    transition: all 0.3s ease;
    padding: 6px;
    border-radius: 50%;
    z-index: 2;
    position: relative;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    color: var(--accent-gold);
    background: rgba(255, 215, 0, 0.1);
    transform: scale(1.1);
}

.login-btn {
    background: var(--accent-gradient);
    border: none;
    color: var(--primary-bg);
    padding: 14px 28px;
    border-radius: 24px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Geologica', sans-serif;
    font-size: 14px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.25);
}

.login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.2) 50%, 
        transparent 100%);
    transition: left 0.8s ease;
}

.login-btn:hover {
    background: var(--accent-gradient-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.35);
}

.login-btn:hover::before {
    left: 100%;
}

.login-btn:active {
    transform: translateY(0);
}

.login-icon {
    font-size: 16px;
    margin-right: 8px;
    color: var(--primary-bg);
}

.login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    white-space: nowrap;
}

.admin-btn {
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 50%, #9333ea 100%);
    border: none;
    color: var(--text-primary);
    padding: 14px 28px;
    border-radius: 24px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Geologica', sans-serif;
    font-size: 14px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    white-space: nowrap;
}

.admin-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.2) 50%, 
        transparent 100%);
    transition: left 0.8s ease;
}

.admin-btn:hover {
    background: linear-gradient(135deg, #9333ea 0%, #a855f7 50%, #7c3aed 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.35);
}

.admin-btn:hover::before {
    left: 100%;
}

.admin-btn:active {
    transform: translateY(0);
}

.admin-icon {
    font-size: 16px;
    margin-right: 8px;
    color: var(--text-primary);
}

/* Hero Section with Frieren */
.hero-carousel {
    height: 100vh;
    position: relative;
    overflow: hidden;
    background: var(--primary-bg);
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slides {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background: linear-gradient(90deg, 
        rgba(10, 10, 10, 0.95) 0%, 
        rgba(15, 23, 42, 0.7) 50%, 
        rgba(30, 41, 59, 0.4) 80%, 
        transparent 100%);
}

.carousel-slide.active {
    opacity: 1;
    z-index: 2;
}

.carousel-slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.carousel-slide-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.carousel-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        rgba(10, 10, 10, 0.85) 0%, 
        rgba(15, 23, 42, 0.6) 40%, 
        rgba(30, 41, 59, 0.3) 70%, 
        rgba(51, 65, 85, 0.1) 100%);
    z-index: 2;
}

.carousel-slide-content {
    text-align: left;
    max-width: 650px;
    padding: 0 100px;
    position: relative;
    z-index: 3;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
    margin-left: 0;
}

.carousel-slide-title {
    font-size: 3.2rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

.carousel-slide-description {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 28px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 400;
    max-width: 500px;
}

.carousel-slide-btn {
    background: var(--accent-gradient);
    border: none;
    color: var(--primary-bg);
    padding: 16px 40px;
    border-radius: 30px;
    font-size: 1.05rem;
    font-weight: 800;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.25);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: inline-block;
    text-shadow: none;
}

.carousel-slide-btn:hover {
    background: var(--accent-gradient-hover);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
}

.carousel-slide-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.carousel-slide-btn:hover::before {
    left: 100%;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        rgba(10, 10, 10, 0.85) 0%, 
        rgba(15, 23, 42, 0.6) 40%, 
        rgba(30, 41, 59, 0.3) 70%, 
        rgba(51, 65, 85, 0.1) 100%);
    z-index: 2;
}

.hero {
    height: 100vh;
    background: linear-gradient(135deg, 
        rgba(10, 10, 10, 0.7) 0%, 
        rgba(26, 26, 26, 0.8) 50%, 
        rgba(42, 42, 42, 0.7) 100%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><defs><linearGradient id="bg" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:%23ffd700;stop-opacity:0.1"/><stop offset="50%" style="stop-color:%23ffb347;stop-opacity:0.05"/><stop offset="100%" style="stop-color:%23ff8c00;stop-opacity:0.1"/></linearGradient></defs><rect width="100%" height="100%" fill="url(%23bg)"/></svg>');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 70% 30%, rgba(255, 215, 0, 0.1) 0%, transparent 50%);
    animation: heroGlow 4s ease-in-out infinite alternate;
}

.hero-frieren .hero-content {
    text-align: left;
    max-width: 650px;
    padding: 0 80px;
    position: relative;
    z-index: 3;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
    margin-left: 0;
}

.hero-frieren .hero-title {
    font-size: 3.2rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

.hero-frieren .hero-description {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 28px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 400;
    max-width: 500px;
}

.hero-frieren .hero-meta {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 35px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
}

.hero-frieren .rating {
    background: rgba(255, 215, 0, 0.2);
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.hero-frieren .watch-btn {
    background: var(--accent-gradient);
    border: none;
    color: var(--primary-bg);
    padding: 16px 40px;
    border-radius: 30px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.25);
    position: relative;
    overflow: hidden;
}

.hero-frieren .watch-btn:hover {
    background: var(--accent-gradient-hover);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
}

.hero-frieren .watch-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.hero-frieren .watch-btn:hover::before {
    left: 100%;
}

.hero-frieren .hero-content {
    animation: fadeInLeft 1.2s ease-out;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.carousel-navigation {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 4;
    pointer-events: none;
}

.carousel-arrow {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}

.carousel-arrow:hover {
    background: #ffd700;
    border-color: #b39c1c;
    color: white;
    transform: scale(1.1);
}

.carousel-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 4;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicator.active {
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: scale(1.2);
}

.carousel-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: rgba(255, 255, 255, 0.7);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 215, 0, 0.3);
    border-top: 3px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
    transform: scale(1.1);
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    z-index: 2;
    position: relative;
}

.hero-text {
    max-width: 600px;
    animation: slideInLeft 1s ease-out;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.6;
}

.hero-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    font-weight: 600;
}

.hero-meta span {
    color: var(--text-secondary);
}

.rating {
    color: var(--accent-gold) !important;
}

.watch-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--accent-gradient);
    border: none;
    color: var(--primary-bg) !important;
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Dela Gothic One', cursive;
    text-decoration: none;
    min-width: 180px;
    position: relative;
    overflow: hidden;
}

.watch-btn:hover {
    background: var(--accent-gradient-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    color: var(--primary-bg) !important;
}

.watch-btn:active {
    transform: translateY(-1px);
}

.watch-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.watch-btn:hover::before {
    left: 100%;
}

.play-icon {
    font-size: 1.2rem;
}

.hero-frieren .hero-navigation {
    position: absolute;
    bottom: 40px;
    right: 40px;
    display: flex;
    gap: 15px;
    z-index: 4;
}

.hero-navigation {
    position: absolute;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 3;
}

.nav-arrow {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-primary);
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.nav-arrow:hover {
    background: var(--accent-gradient);
    color: var(--primary-bg);
    transform: scale(1.1);
}

/* Sections */
.section {
    padding: 80px 0;
    position: relative;
}

.library-section {
    padding-top: 120px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 2rem;
    margin-bottom: 40px;
    color: var(--text-primary);
}

.title-icon {
    font-size: 2.5rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Anime Grid */
.anime-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
    justify-items: center;
    padding: 0 10px;
}

/* Anime card link styles */
.anime-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
    max-width: 280px;
    margin: 0;
}

.anime-card-link:hover {
    text-decoration: none;
    color: inherit;
}

.anime-card {
    background: #121212;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    position: relative;
    width: 100%;
    max-width: 280px;
    margin: 0;
    font-family: 'Montserrat', sans-serif;
}

.anime-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), 0 4px 20px rgba(255, 215, 0, 0.15);
    border-color: rgba(255, 215, 0, 0.3);
}

.card-image {
    position: relative;
    height: 350px;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
}

.placeholder-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2a2a2a 0%, #3a3a3a 50%, #2a2a2a 100%);
    position: relative;
}

/* Anime placeholder backgrounds */
.anime-1 { background: linear-gradient(135deg, #4a90e2 0%, #7b68ee 100%); }
.anime-2 { background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%); }
.anime-3 { background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%); }
.anime-4 { background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%); }
.anime-5 { background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%); }

.watching-1 { background: linear-gradient(135deg, #1abc9c 0%, #16a085 100%); }
.watching-2 { background: linear-gradient(135deg, #f1c40f 0%, #f39c12 100%); }
.watching-3 { background: linear-gradient(135deg, #e91e63 0%, #ad1457 100%); }
.watching-4 { background: linear-gradient(135deg, #3f51b5 0%, #303f9f 100%); }
.watching-5 { background: linear-gradient(135deg, #ff5722 0%, #d84315 100%); }

.rating-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.9);
    color: #ffd700;
    padding: 4px 8px;
    border-radius: 12px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.7rem;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    z-index: 2;
    letter-spacing: 0.02em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.card-info {
    padding: 22px 20px 20px 20px;
    background: #121212;
    border-radius: 0 0 16px 16px;
    font-family: 'Montserrat', sans-serif;
}

.anime-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.anime-link:hover {
    text-decoration: none;
    color: inherit;
}

.card-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #ffffff;
    line-height: 1.3;
    letter-spacing: -0.01em;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 2.6rem;
}

.card-meta {
    display: flex;
    gap: 12px;
    color: #c1c7d0;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 14px;
    align-items: center;
    letter-spacing: 0.03em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.card-meta span {
    position: relative;
}

.card-meta span:not(:last-child)::after {
    content: '•';
    position: absolute;
    right: -8px;
    color: #6b7280;
    font-weight: 400;
}

.show-more-container {
    text-align: center;
    margin-top: 30px;
}

.show-more-btn {
    display: inline-block;
    background: transparent;
    border: 2px solid var(--accent-gold);
    color: var(--accent-gold);
    padding: 15px 40px;
    border-radius: 30px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.9rem;
    text-decoration: none;
}

.show-more-btn:hover {
    background: var(--accent-gradient);
    color: var(--primary-bg);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

/* Genres Section */
.genres-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.genre-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    cursor: pointer;
}

.genre-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-gold);
}

.genre-images {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    justify-content: center;
}

.genre-image {
    width: 120px;
    height: 160px;
    border-radius: 10px;
    background: linear-gradient(135deg, #2a2a2a 0%, #3a3a3a 100%);
}

.educational { background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%); }
.educational-2 { background: linear-gradient(135deg, #4834d4 0%, #686de0 100%); }
.thriller { background: linear-gradient(135deg, #130f40 0%, #30336b 100%); }
.thriller-2 { background: linear-gradient(135deg, #eb4d4b 0%, #6c5ce7 100%); }
.romance { background: linear-gradient(135deg, #fd79a8 0%, #e84393 100%); }
.romance-2 { background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%); }

.genre-title {
    font-size: 1.3rem;
    color: var(--text-primary);
}

/* Episodes Section */
.episodes-dates {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.date-item {
    white-space: nowrap;
    padding: 10px 20px;
    border-radius: 20px;
    background: var(--secondary-bg);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.date-item.active,
.date-item:hover {
    background: var(--accent-gradient);
    color: var(--primary-bg);
}

.episodes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.episode-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    cursor: pointer;
}

.episode-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-gold);
}

.episode-image {
    position: relative;
    height: 200px;
}

.episode-1 { background: linear-gradient(135deg, #00b894 0%, #00cec9 100%); }
.episode-2 { background: linear-gradient(135deg, #fdcb6e 0%, #e17055 100%); }
.episode-3 { background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%); }
.episode-4 { background: linear-gradient(135deg, #fd79a8 0%, #fdcb6e 100%); }
.episode-5 { background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%); }

.episode-number {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--accent-gradient);
    color: var(--primary-bg);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.episode-label {
    position: absolute;
    top: 60px;
    left: 15px;
    color: var(--text-primary);
    font-size: 0.8rem;
    font-weight: 600;
}

.episode-title {
    padding: 20px;
    font-size: 1rem;
    color: var(--text-primary);
    line-height: 1.4;
}

/* Footer */
.footer {
    background: var(--secondary-bg);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 40px;
    align-items: start;
}

.footer-brand .logo {
    margin-bottom: 20px;
}

.footer-text {
    color: var(--text-muted);
    margin-bottom: 5px;
}

.footer-links {
    display: flex;
    gap: 60px;
}

.footer-column h4 {
    color: var(--text-primary);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-column a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--accent-gold);
}

.footer-social h4 {
    color: var(--text-primary);
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--card-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.social-link.telegram:hover {
    background: #0088cc;
    color: white;
    border-color: #0088cc;
    box-shadow: 0 8px 25px rgba(0, 136, 204, 0.4);
}

.social-link.discord:hover {
    background: #5865f2;
    color: white;
    border-color: #5865f2;
    box-shadow: 0 8px 25px rgba(88, 101, 242, 0.4);
}

.social-link.youtube:hover {
    background: #ff0000;
    color: white;
    border-color: #ff0000;
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.4);
}

.question-btn {
    background: transparent;
    border: 2px solid var(--accent-gold);
    color: var(--accent-gold);
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Geologica', sans-serif;
    text-decoration: none;
    display: inline-block;
}

.question-btn:hover {
    background: var(--accent-gradient);
    color: var(--primary-bg);
}

/* Animations */
@keyframes glow {
    from { text-shadow: 0 0 10px rgba(255, 215, 0, 0.5); }
    to { text-shadow: 0 0 20px rgba(255, 215, 0, 0.8); }
}

@keyframes heroGlow {
    from { opacity: 0.3; }
    to { opacity: 0.7; }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Additional Glassmorphism Effects */
.nav-item:active {
    transform: translateY(-1px) scale(0.98);
}

.search-container:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 215, 0, 0.3);
}

/* Floating particles effect for header */
.header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(255, 215, 0, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 80% 80%, rgba(255, 140, 0, 0.08) 1px, transparent 1px),
        radial-gradient(circle at 40% 60%, rgba(255, 215, 0, 0.06) 1px, transparent 1px);
    background-size: 50px 50px, 80px 80px, 60px 60px;
    animation: floatingParticles 20s linear infinite;
    pointer-events: none;
    opacity: 0.6;
}

@keyframes floatingParticles {
    0% { transform: translateX(0) translateY(0); }
    25% { transform: translateX(-10px) translateY(-5px); }
    50% { transform: translateX(10px) translateY(-10px); }
    75% { transform: translateX(-5px) translateY(-15px); }
    100% { transform: translateX(0) translateY(0); }
}

/* Enhanced glow effect */
@keyframes glow {
    from { 
        text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
        filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.3));
    }
    to { 
        text-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
        filter: drop-shadow(0 0 12px rgba(255, 215, 0, 0.5));
    }
}

/* Schedule Page Styles */
.schedule-section {
    padding: 120px 0 80px 0;
    background: var(--secondary-bg);
}

.schedule-content {
    margin-top: 40px;
}

.schedule-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.day-column {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.day-column:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-gold);
}

.day-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-gradient);
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.day-anime {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.schedule-anime-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 215, 0, 0.1);
}

.schedule-anime-card:hover {
    background: rgba(255, 215, 0, 0.1);
    transform: translateX(5px);
    border-color: rgba(255, 215, 0, 0.3);
}

.schedule-poster {
    width: 50px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid rgba(255, 215, 0, 0.2);
}

.schedule-info {
    flex: 1;
}

.schedule-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    line-height: 1.3;
}

.schedule-time {
    font-size: 0.8rem;
    color: var(--accent-gold);
    font-weight: 500;
    margin: 0;
}

.no-anime {
    text-align: center;
    padding: 30px 10px;
    color: var(--text-secondary);
    font-style: italic;
}

/* Development Notice Styles */
.development-notice {
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(42, 42, 42, 0.8) 100%);
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    border: 2px solid rgba(255, 215, 0, 0.2);
    box-shadow: var(--shadow);
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.development-notice::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.notice-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    display: block;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.notice-title {
    font-family: 'Dela Gothic One', cursive;
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

.notice-text {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.notice-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 20px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(255, 215, 0, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
}

.feature-icon {
    font-size: 1.5rem;
}

.feature-item span:last-child {
    color: var(--text-primary);
    font-weight: 500;
}

@media (max-width: 768px) {
    .development-notice {
        padding: 40px 20px;
        margin: 0 20px;
    }
    
    .notice-title {
        font-family: 'Dela Gothic One', cursive;
        font-size: 2rem;
    }
    
    .notice-text {
        font-size: 1rem;
    }
    
    .notice-features {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .feature-item {
        padding: 12px 15px;
    }
}

@media (max-width: 1024px) {
    .schedule-days {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .schedule-days {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .day-column {
        padding: 15px;
    }
    
    .schedule-anime-card {
        padding: 10px;
        gap: 10px;
    }
    
    .schedule-poster {
        width: 40px;
        height: 56px;
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .anime-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 18px;
        padding: 0 8px;
    }
    
    .anime-card {
        max-width: 260px;
    }
}

@media (max-width: 1024px) {
    .navbar {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px 30px;
        text-align: center;
    }
    
    .nav-brand, .nav-center, .nav-right {
        justify-self: center;
    }
    
    .nav-links {
        flex-wrap: wrap;
        gap: 6px;
        justify-content: center;
    }
    
    .search-container {
        width: 250px;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 16px 20px;
        gap: 16px;
    }
    
    .nav-links {
        padding: 6px;
        gap: 4px;
    }
    
    .nav-item {
        padding: 10px 14px;
        font-size: 13px;
    }
    
    .search-container {
        width: 220px;
        padding: 12px 16px;
    }
    
    .login-btn {
        padding: 12px 24px;
        font-size: 13px;
    }
    
    .hero {
        height: 80vh;
        padding: 0 20px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-navigation {
        display: none;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    
    .footer-links {
        justify-content: center;
        gap: 40px;
    }
    
    .genres-grid {
        grid-template-columns: 1fr;
    }
    
    .genre-images {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 768px) {
    .anime-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 15px;
        padding: 0 6px;
    }
    
    .anime-card {
        max-width: 240px;
    }
    
    .card-image {
        height: 300px;
    }
    
    .anime-poster {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .anime-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 12px;
        padding: 0 4px;
    }
    
    .anime-card {
        max-width: 200px;
        margin: 0;
    }
    
    .card-image {
        height: 250px;
    }
    
    .anime-poster {
        height: 250px;
    }
    
    .episodes-grid {
        grid-template-columns: 1fr;
    }
}

/* Featured Anime Section */
.featured-anime-section {
    padding: 80px 0;
    background: linear-gradient(135deg, 
        rgba(255, 215, 0, 0.03) 0%, 
        rgba(10, 10, 10, 0.95) 25%, 
        rgba(26, 26, 26, 0.9) 75%, 
        rgba(139, 92, 246, 0.02) 100%);
}

.featured-card {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 40px;
    background: linear-gradient(135deg, 
        rgba(255, 215, 0, 0.05) 0%, 
        rgba(42, 42, 42, 0.8) 25%, 
        rgba(26, 26, 26, 0.9) 100%);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 215, 0, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 
                0 8px 32px rgba(255, 215, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.featured-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        transparent 0%, 
        rgba(255, 215, 0, 0.02) 25%, 
        rgba(139, 92, 246, 0.02) 75%, 
        transparent 100%);
    pointer-events: none;
}

.featured-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 
                0 12px 40px rgba(255, 215, 0, 0.2);
}

.featured-image {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.featured-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.featured-card:hover .featured-poster {
    transform: scale(1.05);
}

.featured-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, 
        transparent 0%, 
        rgba(0, 0, 0, 0.3) 60%, 
        rgba(0, 0, 0, 0.7) 100%);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 30px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.featured-card:hover .featured-overlay {
    opacity: 1;
}

.featured-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.8);
    padding: 12px 16px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
}

.rating-star {
    font-size: 18px;
    color: var(--accent-gold);
}

.rating-value {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.featured-play-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--accent-gradient);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
}

.featured-play-btn:hover {
    transform: scale(1.1);
    background: var(--accent-gradient-hover);
    box-shadow: 0 12px 35px rgba(255, 215, 0, 0.4);
}

.featured-play-btn .play-icon {
    font-size: 24px;
    color: var(--primary-bg);
    margin-left: 3px;
}

.featured-content {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
}

.featured-title {
    font-size: 32px;
    font-weight: bold;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 10px;
}

.featured-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 16px;
}

.meta-separator {
    color: var(--accent-gold);
    font-weight: bold;
}

.featured-genres {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.featured-genre {
    padding: 8px 16px;
    background: linear-gradient(135deg, 
        rgba(255, 215, 0, 0.2) 0%, 
        rgba(139, 92, 246, 0.2) 100%);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.featured-genre:hover {
    background: linear-gradient(135deg, 
        rgba(255, 215, 0, 0.3) 0%, 
        rgba(139, 92, 246, 0.3) 100%);
    transform: translateY(-2px);
}

.featured-description {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 600px;
}

.featured-actions {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.featured-watch-btn {
    padding: 16px 32px;
    background: var(--accent-gradient);
    border: none;
    border-radius: 30px;
    color: var(--primary-bg);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
}

.featured-watch-btn:hover {
    background: var(--accent-gradient-hover);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 215, 0, 0.4);
}

.featured-info-btn {
    padding: 16px 32px;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.featured-info-btn:hover {
    border-color: var(--accent-gold);
    background: rgba(255, 215, 0, 0.1);
    transform: translateY(-3px);
}

.info-icon {
    font-size: 18px;
}

/* Responsive Design for Featured Card */
@media (max-width: 1024px) {
    .featured-card {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .featured-image {
        height: 400px;
    }
    
    .featured-content {
        padding: 30px;
    }
    
    .featured-title {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .featured-image {
        height: 300px;
    }
    
    .featured-content {
        padding: 20px;
    }
    
    .featured-title {
        font-size: 24px;
    }
    
    .featured-actions {
        flex-direction: column;
        gap: 15px;
    }
    
    .featured-watch-btn,
    .featured-info-btn {
        justify-content: center;
    }
}

/* New Anime Section Styles */
.anime-poster {
    width: 100%;
    height: 350px;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 16px 16px 0 0;
}

/* Enhanced anime card hover effects with Montserrat */
.anime-card:hover .card-title {
    color: #ffd700;
    text-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.anime-card:hover .card-meta {
    color: #e0e0e0;
}





.card-genres {
    display: flex;
    gap: 6px;
    margin-top: 4px;
    flex-wrap: wrap;
}

.genre-tag {
    background: rgba(255, 215, 0, 0.15);
    color: #ffd700;
    border: 1px solid rgba(255, 215, 0, 0.3);
    padding: 6px 12px;
    border-radius: 18px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: capitalize;
    letter-spacing: 0.04em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.genre-tag:hover {
    background: rgba(255, 215, 0, 0.25);
    border-color: rgba(255, 215, 0, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.2);
}

.genre-tag:nth-child(even) {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border-color: rgba(59, 130, 246, 0.3);
}

.genre-tag:nth-child(even):hover {
    background: rgba(59, 130, 246, 0.25);
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

.new-anime-section {
    background: linear-gradient(135deg, 
        rgba(255, 215, 0, 0.02) 0%, 
        rgba(10, 10, 10, 1) 25%, 
        rgba(10, 10, 10, 1) 75%, 
        rgba(255, 140, 0, 0.02) 100%);
}

/* Anime Detail Page Styles */
.anime-detail-page {
    padding-top: 100px;
    min-height: 100vh;
}

/* Anime Hero Section */
.anime-hero {
    position: relative;
    height: 60vh;
    min-height: 500px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.anime-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.anime-hero-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(2px) brightness(0.4);
}

.anime-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(10, 10, 10, 0.8) 0%,
        rgba(10, 10, 10, 0.6) 50%,
        rgba(10, 10, 10, 0.9) 100%
    );
}

.anime-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.anime-info {
    max-width: 800px;
}

.anime-title {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 20px rgba(255, 215, 0, 0.3);
}

.anime-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.anime-meta span {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-weight: 500;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.anime-genres {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.anime-description {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 700px;
}

.anime-actions {
    display: flex;
    gap: 1rem;
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 50px;
    color: var(--text-primary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.back-btn:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: var(--accent-gold);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.back-icon {
    font-size: 1.2rem;
}

/* Player Section */
.player-section {
    padding: 4rem 0;
    background: var(--secondary-bg);
}

.player-container {
    max-width: 1200px;
    margin: 0 auto;
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.player-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    background: linear-gradient(135deg, 
        rgba(255, 215, 0, 0.1) 0%, 
        rgba(26, 26, 26, 1) 100%);
    border-bottom: 1px solid var(--border-color);
}

.player-title {
    font-size: 1.8rem;
    color: var(--text-primary);
}

.episode-selector {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.episode-selector label {
    color: var(--text-secondary);
    font-weight: 500;
}

.episode-select {
    padding: 0.5rem 1rem;
    background: var(--primary-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1rem;
    cursor: pointer;
    font-family: 'Geologica', sans-serif;
}

.episode-select:focus {
    outline: none;
    border-color: var(--accent-gold);
}

/* Player Wrapper */
.player-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background: var(--primary-bg);
    border-radius: 0 0 20px 20px;
    overflow: hidden;
}

.player-container-inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#kodik-player, #episode-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    background: var(--primary-bg);
}

/* Player Loading */
.player-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, 
        rgba(255, 215, 0, 0.05) 0%, 
        rgba(10, 10, 10, 0.95) 50%, 
        rgba(255, 140, 0, 0.05) 100%);
    color: var(--text-secondary);
    z-index: 10;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--accent-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.player-loading p {
    font-size: 1.1rem;
    color: var(--text-primary);
}

/* Error Message */
.error-message {
    text-align: center;
    color: var(--text-secondary);
}

.error-message p {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #ff6b6b;
}

.retry-btn {
    padding: 0.8rem 1.5rem;
    background: var(--accent-gradient);
    border: none;
    border-radius: 10px;
    color: var(--primary-bg);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.retry-btn:hover {
    background: var(--accent-gradient-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* Player Controls */
.player-controls {
    display: flex;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    background: var(--primary-bg);
    border-top: 1px solid var(--border-color);
}

.control-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 25px;
    color: var(--text-primary);
    font-weight: 500;
    font-family: 'Geologica', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.control-btn:hover:not(:disabled) {
    background: rgba(255, 215, 0, 0.2);
    border-color: var(--accent-gold);
    transform: translateY(-1px);
}

.control-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Additional Info Section */
.additional-info {
    padding: 4rem 0;
    background: var(--primary-bg);
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.info-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.info-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--accent-gold);
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.info-value {
    color: var(--text-primary);
    font-weight: 600;
}

.full-description {
    line-height: 1.8;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Status Styles */
.status-ongoing {
    background: rgba(34, 197, 94, 0.2) !important;
    color: #22c55e !important;
    border-color: rgba(34, 197, 94, 0.3) !important;
}

.status-completed {
    background: rgba(59, 130, 246, 0.2) !important;
    color: #3b82f6 !important;
    border-color: rgba(59, 130, 246, 0.3) !important;
}

.status-upcoming {
    background: rgba(245, 158, 11, 0.2) !important;
    color: #f59e0b !important;
    border-color: rgba(245, 158, 11, 0.3) !important;
}

/* Player Error Styles */
.player-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-secondary);
    text-align: center;
    padding: 2rem;
}

.player-error h3 {
    color: #ff6b6b;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.player-error p {
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.retry-btn {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.retry-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(138, 43, 226, 0.3);
}

/* Search Suggestions Styles */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
    margin-top: 8px;
}

.suggestion-item {
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background: rgba(138, 43, 226, 0.1);
    transform: translateX(4px);
}

.suggestion-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.suggestion-poster {
    width: 40px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.suggestion-info {
    flex: 1;
    min-width: 0;
}

.suggestion-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.suggestion-year {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-top: 2px;
}

/* Search Results Overlay */
.search-results-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    pointer-events: none;
}

.search-results-overlay[style*="flex"] {
    pointer-events: auto;
}

.search-results-container {
    background: var(--bg-secondary);
    border-radius: 20px;
    width: 100%;
    max-width: 1200px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.search-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
}

.search-results-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.close-search {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-search:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.search-results-grid {
    padding: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    max-height: 60vh;
    overflow-y: auto;
}

.search-result-card {
    background: var(--bg-primary);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
}

.search-result-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(138, 43, 226, 0.2);
    border-color: var(--accent-primary);
}

.result-poster {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.result-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}



.result-info {
    padding: 1.5rem;
}

.result-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.result-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.result-year {
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
}

.result-rating {
    color: #ffd700;
    font-weight: 600;
}

.result-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.watch-btn {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    font-size: 0.95rem;
}

.watch-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(138, 43, 226, 0.4);
}

/* Search Loading */
.search-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

.search-loading p {
    margin-top: 1rem;
    font-size: 1.1rem;
}

/* Search Error */
.search-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
    text-align: center;
}

.search-error p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* No Results */
.no-results {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
    text-align: center;
}

.no-results p {
    font-size: 1.2rem;
    opacity: 0.8;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .search-results-overlay {
        padding: 1rem;
    }
    
    .search-results-container {
        max-height: 95vh;
    }
    
    .search-results-header {
        padding: 1rem 1.5rem;
    }
    
    .search-results-header h2 {
        font-size: 1.2rem;
    }
    
    .search-results-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
        gap: 1rem;
    }
    
    .result-info {
        padding: 1rem;
    }
    
    .search-suggestions {
        max-height: 200px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .anime-title {
        font-size: 2.5rem;
    }
    
    .anime-meta {
        gap: 1rem;
    }
    
    .player-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .player-controls {
        flex-direction: column;
        gap: 1rem;
    }
    
    .control-btn {
        justify-content: center;
    }
}

/* Search Suggestions Styles */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0 0 12px 12px;
    border-top: none;
    max-height: 300px;
    overflow-y: auto;
    z-index: 999;
    display: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    pointer-events: none;
}

.search-suggestions.active {
    display: block;
    pointer-events: auto;
}

.search-suggestion-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-suggestion-item:hover,
.search-suggestion-item.highlighted {
    background: rgba(255, 255, 255, 0.1);
}

.search-suggestion-item:last-child {
    border-bottom: none;
}

.search-suggestion-poster {
    width: 40px;
    height: 56px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.search-suggestion-info {
    flex: 1;
    min-width: 0;
}

.search-suggestion-title {
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-suggestion-meta {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    gap: 8px;
}

/* Search Modal Styles */
.search-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 2000;
    animation: fadeIn 0.3s ease-out;
    pointer-events: none;
}

.search-modal.active {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 100px;
    pointer-events: auto;
}

.search-modal-content {
    background: var(--secondary-bg);
    border-radius: 20px;
    padding: 30px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    animation: slideDown 0.3s ease-out;
}

.search-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.search-modal-title {
    font-size: 1.5rem;
    color: var(--accent-gold);
    margin: 0;
}

.search-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.search-close:hover {
    color: var(--text-primary);
    background: var(--card-bg);
}

.search-results {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.search-result-item {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid transparent;
}

.search-result-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-gold);
}

.search-result-poster {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 15px 15px 0 0;
}

.search-result-info {
    padding: 15px;
}

.search-result-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.search-result-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.search-result-year {
    color: var(--accent-gold);
}

.search-result-rating {
    display: flex;
    align-items: center;
    gap: 3px;
}

.search-no-results {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

.search-loading {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

.search-loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--text-secondary);
    border-radius: 50%;
    border-top-color: var(--accent-gold);
    animation: spin 1s ease-in-out infinite;
    margin-left: 10px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .search-modal-content {
        width: 95%;
        padding: 20px;
        margin: 20px;
    }
    
    .search-results {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 15px;
    }
    
    .search-result-poster {
        height: 160px;
    }
    
    .search-result-info {
        padding: 10px;
    }
}

/* User Menu Dropdown Styles */
.user-menu {
    position: relative;
    display: inline-block;
}

.user-btn {
    background: var(--accent-gradient);
    border: none;
    color: var(--primary-bg);
    padding: 14px 28px;
    border-radius: 24px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Geologica', sans-serif;
    font-size: 14px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    white-space: nowrap;
    gap: 10px;
}

.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 2px solid rgba(0, 0, 0, 0.2);
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    background: var(--accent-gradient);
    color: var(--primary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: inherit;
    position: relative;
    overflow: hidden;
}

.avatar-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.2) 0%, 
        transparent 50%, 
        rgba(0, 0, 0, 0.1) 100%);
    pointer-events: none;
}

.user-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.2) 50%, 
        transparent 100%);
    transition: left 0.8s ease;
}

.user-btn:hover {
    background: var(--accent-gradient-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.35);
}

.user-btn:hover::before {
    left: 100%;
}

.user-btn:active {
    transform: translateY(0);
}

.dropdown-arrow {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.user-menu.active .dropdown-arrow {
    transform: rotate(180deg);
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(20px);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
    overflow: hidden;
}

.user-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: rgba(255, 215, 0, 0.1);
    color: var(--accent-gold);
    padding-left: 24px;
}

.dropdown-item.logout:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.dropdown-icon {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 8px 0;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .user-dropdown {
        right: -20px;
        min-width: 180px;
    }
    
    .user-btn {
        padding: 12px 20px;
        font-size: 13px;
    }
    
    .dropdown-item {
        padding: 10px 16px;
        font-size: 13px;
    }
}

/* Notification System */
.notification-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 350px;
}

.notification {
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification.hide {
    transform: translateX(400px);
    opacity: 0;
}

.notification-success {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.9), rgba(22, 163, 74, 0.9));
    color: white;
    border-color: rgba(34, 197, 94, 0.3);
}

.notification-error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.9), rgba(220, 38, 38, 0.9));
    color: white;
    border-color: rgba(239, 68, 68, 0.3);
}

.notification-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.9), rgba(217, 119, 6, 0.9));
    color: white;
    border-color: rgba(245, 158, 11, 0.3);
}

.notification-info {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.9), rgba(37, 99, 235, 0.9));
    color: white;
    border-color: rgba(59, 130, 246, 0.3);
}

.notification-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 600;
    margin-bottom: 2px;
}

.notification-message {
    opacity: 0.9;
    font-size: 13px;
}

.notification-close {
    background: none;
    border: none;
    color: currentColor;
    font-size: 18px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-close:hover {
    opacity: 1;
}

.notification-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    transition: width linear;
}

.notification:hover .notification-progress {
    animation-play-state: paused;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

/* Mobile responsive for notifications */
@media (max-width: 768px) {
    .notification-container {
        bottom: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .notification {
        padding: 14px 16px;
        font-size: 13px;
    }
    
    .notification-icon {
        font-size: 16px;
    }
}

/* Loading Spinner Styles */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 215, 0, 0.2);
    border-top: 3px solid #FFD700;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.filter-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 20px;
}

/* Enhanced Filter Styles */
.library-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-label {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 14px;
}

.filter-select {
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 12px;
    color: var(--text-primary);
    font-size: 14px;
    min-width: 150px;
    transition: all 0.3s ease;
    font-family: 'Geologica';
}

.filter-select:hover {
    border-color: var(--accent-gold);
}

.library-stats {
    display: flex;
    align-items: center;
}

.stats-text {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

.clear-filter-btn {
    background: var(--accent-gradient);
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    color: var(--primary-bg);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
}

.clear-filter-btn:hover {
    background: var(--accent-gradient-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}



.library-filters .filter-group input:focus,
.library-filters .filter-group select:focus {
    border-color: #FFD700;
    box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.2);
    outline: none;
}

.library-filters .filter-btn:hover {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
}

.library-filters .reset-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Smooth transitions for content updates */
.library-content {
    transition: opacity 0.3s ease;
}

.anime-grid {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Active filter indicators */
.filter-tag {
    animation: fadeInScale 0.3s ease;
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}
/* Anim
e Detail Page - New Design */
.anime-detail-page {
    padding-top: 100px;
    min-height: 100vh;
}

.anime-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Левая колонка */
.anime-sidebar {
    background: var(--secondary-bg);
    padding: 15px;
    border-radius: 12px;
    height: fit-content;
    position: sticky;
    top: 120px;
}

.anime-poster {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: var(--shadow);
}


.anime-info-block {
    font-size: 14px;
    line-height: 1.5;
}

.anime-info-block .info-item {
    margin-bottom: 12px;
}

.anime-info-block strong {
    display: block;
    color: var(--accent-gold);
    margin-bottom: 4px;
    font-weight: 600;
}

.anime-info-block span {
    color: var(--text-secondary);
    word-wrap: break-word;
    line-height: 1.4;
}

.anime-info-block a {
    color: var(--accent-gold);
    text-decoration: none;
    transition: color 0.3s ease;
}

.anime-info-block a:hover {
    color: var(--text-primary);
}

/* Контент справа */
.anime-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.anime-header {
    background: var(--secondary-bg);
    padding: 20px;
    border-radius: 12px;
}

.anime-title {
    margin: 0;
    font-size: 28px;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.anime-tags {
    margin-top: 5px;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.anime-status {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 14px;
}

.status-item {
    color: var(--text-secondary);
}

/* Плеер */
.anime-player {
    background: var(--primary-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.player-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
}

.player-container-inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.player-container-inner iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.player-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: var(--primary-bg);
    color: var(--text-primary);
    font-size: 18px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--accent-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Серии */
.anime-episodes {
    background: var(--secondary-bg);
    padding: 20px;
    border-radius: 12px;
}

.anime-episodes h3 {
    margin: 0 0 15px 0;
    color: var(--text-primary);
    font-size: 20px;
}

.episode-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.episode-item {
    background: var(--card-bg);
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-secondary);
    font-weight: 500;
}

.episode-item:hover {
    background: var(--border-color);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.episode-item.active {
    background: var(--accent-gradient);
    color: var(--primary-bg);
    font-weight: bold;
}

/* Табы */
.anime-tabs {
    margin-top: 20px;
    display: flex;
    gap: 30px;
    font-size: 14px;
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
    margin-bottom: 20px;
}

.tab-item {
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.3s ease;
    font-weight: 500;
}

.tab-item:hover {
    color: var(--text-secondary);
}

.tab-item.active {
    color: var(--accent-gold);
    font-weight: bold;
}

/* Контент табов */
.tab-content {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Секция описания */
.description-section {
    margin-bottom: 25px;
}

.description-section h4 {
    color: var(--accent-gold);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    font-family: 'Geologica', sans-serif;
}

.anime-description {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.03);
    padding: 15px;
    border-radius: 8px;
    border-left: 3px solid var(--accent-gold);
}

/* Статистика */
.info-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-gold);
    transform: translateY(-2px);
}

.stat-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-gradient);
    border-radius: 8px;
    flex-shrink: 0;
    color: var(--primary-bg);
}

.stat-icon svg {
    width: 20px;
    height: 20px;
    color: inherit;
}

.stat-content {
    flex: 1;
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.stat-value {
    font-size: 16px;
    color: var(--text-primary);
    font-weight: 600;
}

/* Секция жанров */
.genres-section h4 {
    color: var(--accent-gold);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    font-family: 'Geologica', sans-serif;
}

.genre-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.genre-tag {
    background: var(--accent-gradient);
    color: var(--primary-bg);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.genre-tag:hover {
    background: var(--accent-gradient-hover);
    transform: translateY(-1px);
}

/* Адаптивность */
@media (max-width: 900px) {
    .anime-container {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 15px;
    }
    
    .anime-sidebar {
        position: static;
        order: 2;
    }
    
    .anime-content {
        order: 1;
    }
    
    .anime-title {
        font-size: 24px;
    }
    
    .episode-grid {
        grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
        gap: 8px;
    }
    
    .anime-tabs {
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .anime-container {
        padding: 10px;
    }
    
    .anime-header {
        padding: 15px;
    }
    
    .anime-episodes {
        padding: 15px;
    }
    
    .anime-status {
        flex-direction: column;
        gap: 8px;
    }
    
    .episode-grid {
        grid-template-columns: repeat(auto-fill, minmax(45px, 1fr));
    }
    
    /* Адаптивность для информации */
    .info-stats {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .stat-card {
        padding: 12px;
    }
    
    .stat-icon {
        width: 35px;
        height: 35px;
    }
    
    .stat-icon svg {
        width: 18px;
        height: 18px;
    }
    
    .stat-value {
        font-size: 14px;
    }
    
    .anime-description {
        padding: 12px;
        font-size: 14px;
    }
    
    .genre-tags {
        gap: 6px;
    }
    
    .genre-tag {
        padding: 4px 8px;
        font-size: 11px;
    }
}/* 
Hide old player controls and elements */
.player-header,
.episode-selector,
.player-controls {
    display: none !important;
}

.episode-select {
    display: none !important;
}

/* Error message styling */
.error-message {
    text-align: center;
    color: var(--text-secondary);
}

.retry-btn {
    background: var(--accent-gradient);
    color: var(--primary-bg);
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.retry-btn:hover {
    background: var(--accent-gradient-hover);
    transform: translateY(-1px);
}/* Учас
тники аниме */
.participants-section {
    margin-top: 10px;
}

.participants-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
}

.participant-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.participant-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 215, 0, 0.05) 50%, 
        transparent 100%);
    transition: left 0.8s ease;
}

.participant-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 215, 0, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.participant-card:hover::before {
    left: 100%;
}

.participant-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
}

.participant-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 215, 0, 0.3);
    transition: all 0.3s ease;
}

.participant-card:hover .participant-avatar {
    border-color: var(--accent-gold);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.participant-info {
    flex: 1;
}

.participant-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 16px;
    margin-bottom: 2px;
    transition: color 0.3s ease;
}

.participant-card:hover .participant-name {
    color: var(--accent-gold);
}

.participant-role {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.4;
    position: relative;
    z-index: 2;
}

.no-participants {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    font-style: italic;
}

/* Адаптивность для участников */
@media (max-width: 600px) {
    .participants-list {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .participant-card {
        padding: 12px;
    }
    
    .participant-avatar {
        width: 35px;
        height: 35px;
    }
    
    .participant-name {
        font-size: 15px;
    }
    
    .participant-role {
        font-size: 12px;
    }
}/* Упра
вление участниками в админ панели */
.participant-add-section {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 215, 0, 0.1);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.participant-search-container {
    position: relative;
}

.participant-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card-bg);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 8px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.participant-search-results.active {
    display: block;
}

.participant-search-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.participant-search-item:hover {
    background: rgba(255, 215, 0, 0.1);
}

.participant-search-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
}

.participant-search-name {
    color: var(--text-primary);
    font-weight: 500;
}

.participants-list-admin {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.participant-item-admin {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    transition: all 0.3s ease;
}

.participant-item-admin:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 215, 0, 0.2);
}

.participant-info-admin {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.participant-avatar-admin {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 215, 0, 0.3);
}

.participant-details-admin {
    flex: 1;
}

.participant-name-admin {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.participant-role-admin {
    color: var(--text-secondary);
    font-size: 14px;
}

.participant-actions-admin {
    display: flex;
    gap: 8px;
}

.btn-edit-participant {
    background: var(--purple-accent);
    color: white;
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 6px;
}

.btn-remove-participant {
    background: #ef4444;
    color: white;
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 6px;
}

.btn-edit-participant:hover {
    background: #7c3aed;
}

.btn-remove-participant:hover {
    background: #dc2626;
}

/* Адаптивность для админ панели участников */
@media (max-width: 600px) {
    .participant-item-admin {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .participant-actions-admin {
        align-self: flex-end;
    }
}/* Legal 
Pages Styles */
.legal-page {
    padding-top: 100px;
    min-height: 100vh;
    background: var(--primary-bg);
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.legal-title {
    font-family: 'Dela Gothic One', cursive;
    font-size: 2.5rem;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 10px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.legal-updated {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 40px;
    font-style: italic;
}

.legal-section {
    margin-bottom: 40px;
    background: rgba(255, 255, 255, 0.02);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.legal-section:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 215, 0, 0.1);
}

.legal-section h2 {
    font-family: 'Dela Gothic One', cursive;
    font-size: 1.5rem;
    color: var(--accent-gold);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255, 215, 0, 0.2);
}

.legal-section h3 {
    font-family: 'Geologica', sans-serif;
    font-size: 1.2rem;
    color: var(--text-primary);
    margin: 25px 0 15px 0;
    font-weight: 600;
}

.legal-section p {
    margin-bottom: 15px;
    font-size: 1rem;
}

.legal-section ul, .legal-section ol {
    margin: 15px 0;
    padding-left: 25px;
}

.legal-section li {
    margin-bottom: 8px;
    position: relative;
}

.legal-section ul li::marker {
    color: var(--accent-gold);
}

.legal-section ol li::marker {
    color: var(--accent-gold);
    font-weight: bold;
}

.legal-section a {
    color: var(--accent-gold);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.legal-section a:hover {
    color: var(--text-primary);
    text-decoration: underline;
}

.legal-section strong {
    color: var(--text-primary);
    font-weight: 600;
}

.contact-info {
    background: rgba(255, 215, 0, 0.05);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    margin-top: 20px;
}

.contact-item {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item strong {
    min-width: 120px;
    color: var(--accent-gold);
}

/* Адаптивность для юридических страниц */
@media (max-width: 768px) {
    .legal-content {
        padding: 20px 15px;
    }
    
    .legal-title {
        font-size: 2rem;
    }
    
    .legal-section {
        padding: 20px;
        margin-bottom: 25px;
    }
    
    .legal-section h2 {
        font-size: 1.3rem;
    }
    
    .legal-section h3 {
        font-size: 1.1rem;
    }
    
    .contact-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .contact-item strong {
        min-width: auto;
    }
}/* Libra
ry Page Enhancements */
.library-section {
    padding-top: 100px;
    min-height: 100vh;
}

/* User Menu Styles */
.user-menu {
    position: relative;
}

.user-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 8px 16px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Geologica', sans-serif;
    font-size: 14px;
    font-weight: 500;
}

.user-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 215, 0, 0.3);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-gradient);
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    color: var(--primary-bg);
    font-weight: 700;
    font-size: 14px;
}

.dropdown-arrow {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.user-menu.active .dropdown-arrow {
    transform: rotate(180deg);
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--secondary-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 8px 0;
    min-width: 200px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 8px;
}

.user-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 12px 20px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.dropdown-item.logout {
    color: #ff6b6b;
}

.dropdown-item.logout:hover {
    background: rgba(255, 107, 107, 0.1);
    color: #ff5252;
}

.dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 8px 0;
}

/* Enhanced anime poster styles */
.anime-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Genre tags */
.card-genres {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.genre-tag {
    background: rgba(255, 215, 0, 0.15);
    color: var(--accent-gold);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

/* Library filters enhancements */
.library-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: var(--secondary-bg);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

.filter-label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.filter-select {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 8px 12px;
    color: var(--text-primary);
    font-size: 14px;
    min-width: 150px;
    cursor: pointer;
}

.filter-select:focus {
    outline: none;
    border-color: var(--accent-gold);
}

.library-stats {
    color: var(--text-secondary);
    font-size: 14px;
}

.stats-text {
    font-weight: 500;
}

/* Empty library state */
.empty-library {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-secondary);
}

.empty-icon {
    font-size: 5rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.empty-text {
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto 30px;
}

.clear-filter-btn {
    background: var(--accent-gradient);
    border: none;
    color: var(--primary-bg);
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.clear-filter-btn:hover {
    background: var(--accent-gradient-hover);
    transform: translateY(-2px);
}

/* Responsive improvements */
@media (max-width: 768px) {
    .library-filters {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }

    .filter-group {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .filter-select {
        width: 100%;
    }

    .navbar {
        padding: 15px 20px;
        gap: 20px;
    }

    .nav-links {
        gap: 5px;
        padding: 8px;
    }

    .nav-item {
        padding: 8px 12px;
        font-size: 13px;
        min-width: 70px;
    }

    .search-container {
        width: 250px;
    }

    .user-btn {
        padding: 6px 12px;
        font-size: 13px;
    }

    .user-avatar {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 480px) {
    .navbar {
        grid-template-columns: 1fr;
        gap: 15px;
        text-align: center;
    }

    .nav-center {
        order: 2;
    }

    .nav-right {
        order: 1;
        justify-self: center;
        flex-direction: column;
        gap: 10px;
    }

    .search-container {
        width: 200px;
    }

    .library-container {
        padding: 10px;
    }

    .library-sidebar {
        padding: 15px;
    }
}

/* Animation improvements */
.library-card {
    animation: fadeInUp 0.6s ease-out;
}

.library-card:nth-child(even) {
    animation-delay: 0.1s;
}

.library-card:nth-child(3n) {
    animation-delay: 0.2s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Smooth transitions for filter changes */
.library-grid {
    transition: all 0.3s ease;
}

.filter-checkbox {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

/* Enhanced hover effects */
.library-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 12px;
    pointer-events: none;
}

.library-card:hover::before {
    opacity: 1;
}

/* Loading states */
.library-grid.loading {
    opacity: 0.7;
    pointer-events: none;
}

.library-grid.loading .library-card {
    animation: pulse 1.5s ease-in-out infinite;
}

/* Scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Focus styles for accessibility */
.filter-checkbox:focus,
.filter-search:focus,
.sort-option:focus {
    outline: 2px solid var(--accent-gold);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .header,
    .library-sidebar,
    .footer {
        display: none;
    }
    
    .library-container {
        grid-template-columns: 1fr;
    }
    
    .library-card {
        break-inside: avoid;
    }
}
/* Cust
om File Upload Buttons */
.custom-file-upload {
    position: relative;
    margin-bottom: 8px;
}

.file-input-hidden {
    display: none;
}

.file-upload-btn {
    width: 100%;
    background: var(--card-bg);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--text-primary);
    font-family: 'Geologica', sans-serif;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
}

.file-upload-btn:hover {
    border-color: var(--accent-gold);
    background: rgba(255, 215, 0, 0.05);
}

.file-upload-btn:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.1);
}

.file-btn-text {
    background: var(--accent-gradient);
    color: var(--primary-bg);
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.file-btn-status {
    color: var(--text-muted);
    font-size: 13px;
    flex: 1;
    margin-left: 16px;
}

.file-btn-status.file-selected {
    color: var(--accent-gold);
    font-weight: 500;
}

/* КРИТИЧЕСКОЕ ПРАВИЛО: Принудительно скрываем мобильную навигацию на десктопе */
@media (min-width: 769px) {
    .mobile-bottom-nav {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
        height: 0 !important;
        overflow: hidden !important;
        position: absolute !important;
        top: -9999px !important;
        left: -9999px !important;
    }
}

/* Показываем мобильную навигацию только на мобильных устройствах */
@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        height: auto !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        top: auto !important;
    }
}/
* КРИТИЧЕСКОЕ ПРАВИЛО: Скрываем мобильное меню на десктопе */
@media (min-width: 769px) {
    .mobile-nav,
    .mobile-menu-btn {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
        position: absolute !important;
        top: -9999px !important;
        left: -9999px !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
    }
}
/* 
Mobile styles for anime page */
@media (max-width: 768px) {
    .anime-info-block .info-item {
        margin-bottom: 16px;
        padding: 12px 0;
    }
    
    .anime-info-block strong {
        font-size: 14px;
        margin-bottom: 6px;
    }
    
    .anime-info-block span {
        font-size: 13px;
        line-height: 1.5;
    }
}

@media (max-width: 480px) {
    .anime-info-block .info-item {
        margin-bottom: 20px;
        padding: 16px 0;
    }
    
    .anime-info-block strong {
        font-size: 15px;
        margin-bottom: 8px;
        color: var(--accent-gold);
    }
    
    .anime-info-block span {
        font-size: 14px;
        line-height: 1.6;
        word-break: break-word;
    }
}