/* ========================================
   NeuRon39.RU - Основные стили
   ======================================== */

:root {
    --bg-primary: #0f0f1a;
    --bg-secondary: #1a1a2e;
    --bg-card: #252542;
    --bg-hover: #2d2d4a;
    --accent-primary: #8b5cf6;
    --accent-secondary: #06b6d4;
    --text-main: #ffffff;
    --text-muted: #a1a1aa;
    --border-radius: 12px;
    --player-height: 80px;
    --header-height: 70px;
}

/* === ОБНУЛЕНИЕ === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--bg-primary), var(--bg-secondary));
    color: var(--text-main);
    min-height: 100vh;
    padding-bottom: var(--player-height);
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

/* === ШАПКА === */
.header {
    background: rgba(15, 15, 26, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    height: var(--header-height);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 26px;
    font-weight: 800;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
    display: flex;
    flex-direction: column;
}

.logo span {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 400;
    letter-spacing: 1px;
    -webkit-text-fill-color: var(--text-muted);
}

.nav-menu {
    display: flex;
    gap: 8px;
    align-items: center;
}

.nav-menu a {
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13px;
    color: var(--text-muted);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--text-main);
    background: rgba(139, 92, 246, 0.15);
}

/* 🔴 Бейдж "Эфир" */
.nav-link.live-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px !important;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(139, 92, 246, 0.1));
    border: 1px solid rgba(239, 68, 68, 0.4);
    border-radius: 20px;
    font-weight: 600;
    font-size: 12px !important;
    color: #fff !important;
}

.nav-link.live-badge::before {
    content: "";
    width: 6px;
    height: 6px;
    background: #ef4444;
    border-radius: 50%;
    animation: pulse-live 1.5s infinite;
}

@keyframes pulse-live {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(0.9); }
}

/* === ВЫПАДАЮЩЕЕ МЕНЮ "ЕЩЁ" === */
.nav-dropdown {
    position: relative;
    display: inline-flex;
}

.nav-dropdown-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
}

.nav-dropdown-btn:hover,
.nav-dropdown-btn.active {
    color: var(--text-main);
    background: rgba(139, 92, 246, 0.15);
}

.nav-dropdown-content {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 8px 0;
    min-width: 180px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1001;
}

.nav-dropdown:hover .nav-dropdown-content,
.nav-dropdown-content.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-content a {
    display: block;
    padding: 10px 16px;
    color: var(--text-muted);
    font-size: 13px;
    transition: all 0.2s;
}

.nav-dropdown-content a:hover {
    color: var(--text-main);
    background: rgba(139, 92, 246, 0.1);
    padding-left: 20px;
}

.auth-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.btn {
    padding: 10px 20px;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    color: white;
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(139, 92, 246, 0.4);
}

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

.btn-outline:hover {
    background: var(--accent-primary);
    color: white;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

/* === ОСНОВНОЙ КОНТЕНТ === */
#app-content {
    min-height: calc(100vh - var(--header-height) - var(--player-height));
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Загрузчик */
.loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 300px;
    color: var(--text-muted);
}

.loader i {
    font-size: 48px;
    color: var(--accent-primary);
    margin-bottom: 15px;
}

/* Ошибка */
.error {
    text-align: center;
    padding: 50px;
    color: var(--text-muted);
}

/* === ГЛАВНЫЙ БАННЕР === */
.hero {
    text-align: center;
    padding: 60px 20px;
    background: radial-gradient(circle at center, rgba(139, 92, 246, 0.15), transparent);
    border-radius: var(--border-radius);
    margin-bottom: 40px;
}

.hero h1 {
    font-size: 42px;
    margin-bottom: 15px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.hero .btn {
    margin: 0 10px;
}

/* === СЕТКА КОНТЕНТА === */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
    border-color: var(--accent-primary);
}

.card-image {
    width: 100%;
    height: 180px;
    background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary));
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-main);
}

.card-artist {
    color: var(--text-muted);
    font-size: 13px;
}

/* === ФОРМЫ === */
.form-container {
    max-width: 400px;
    margin: 50px auto;
    background: var(--bg-card);
    padding: 30px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-container h2 {
    text-align: center;
    margin-bottom: 25px;
    color: var(--accent-primary);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    color: var(--text-main);
    font-size: 14px;
}

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

.form-submit {
    width: 100%;
    padding: 12px;
    margin-top: 10px;
}

/* === HERO SLIDER === */
.hero-slider {
    position: relative;
    margin-bottom: 50px;
    border-radius: var(--border-radius);
    overflow: hidden;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(6, 182, 212, 0.3));
    border: 1px solid rgba(139, 92, 246, 0.3);
    min-height: 400px;
}

.slider-container {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.slider-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(100px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.slider-slide.active {
    opacity: 1;
    transform: translateX(0);
}

.slider-slide.prev {
    transform: translateX(-100px);
}

.slider-content {
    text-align: center;
    max-width: 600px;
    z-index: 2;
}

.slider-cover {
    width: 180px;
    height: 180px;
    border-radius: 20px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 72px;
    box-shadow: 0 20px 60px rgba(139, 92, 246, 0.4);
    animation: float 3s ease-in-out infinite;
}

.slider-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 10px;
    background: linear-gradient(90deg, #fff, var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.slider-artist {
    font-size: 20px;
    color: var(--text-muted);
    margin-bottom: 25px;
}

.slider-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
    font-size: 18px;
}

.slider-btn:hover {
    background: var(--accent-primary);
    transform: translateY(-50%) scale(1.1);
}

.slider-prev {
    left: 20px;
}

.slider-next {
    right: 20px;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s;
}

.slider-dot.active {
    background: var(--accent-primary);
    width: 30px;
    border-radius: 5px;
}

.slider-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-muted);
}

.slider-loader i {
    font-size: 48px;
    color: var(--accent-primary);
    margin-bottom: 15px;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* === EMBED PROMO === */
.embed-promo-section {
    margin: 30px 0;
    animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.embed-promo-card {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(6, 182, 212, 0.15));
    border: 2px solid rgba(139, 92, 246, 0.4);
    border-radius: 20px;
    padding: 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    box-shadow: 0 10px 40px rgba(139, 92, 246, 0.3);
    position: relative;
    overflow: hidden;
}

.embed-promo-card::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 70%
    );
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.embed-promo-content {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    position: relative;
    z-index: 1;
}

.embed-promo-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #8b5cf6, #06b6d4);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.5);
}

.embed-promo-icon svg {
    width: 32px;
    height: 32px;
    color: #fff;
}

.embed-promo-text h3 {
    margin: 0 0 5px 0;
    font-size: 1.2rem;
    color: #fff;
    font-weight: 700;
}

.embed-promo-text p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.embed-promo-btn {
    position: relative;
    padding: 16px 32px;
    background: linear-gradient(135deg, #8b5cf6, #06b6d4);
    border: none;
    border-radius: 16px;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.5);
    animation: pulse-glow 2s infinite;
    flex-shrink: 0;
    z-index: 1;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 8px 25px rgba(139, 92, 246, 0.5),
                    0 0 40px rgba(139, 92, 246, 0.3);
    }
    50% {
        box-shadow: 0 8px 35px rgba(139, 92, 246, 0.7),
                    0 0 60px rgba(139, 92, 246, 0.5),
                    0 0 80px rgba(6, 182, 212, 0.3);
    }
}

.embed-promo-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.embed-promo-btn:hover::before {
    left: 100%;
}

.embed-promo-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 40px rgba(139, 92, 246, 0.7),
                0 0 80px rgba(139, 92, 246, 0.5);
}

.embed-promo-btn:active {
    transform: translateY(-1px) scale(1.02);
}

.btn-text {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s;
}

.embed-promo-btn:hover .btn-glow {
    opacity: 1;
}

/* === АДАПТИВ === */
@media (max-width: 1100px) {
    .nav-menu .hide-on-tablet {
        display: none;
    }
    .nav-dropdown {
        display: inline-flex;
    }
}

@media (max-width: 992px) {
    .nav-menu {
        gap: 15px;
    }
    .volume-control-mini {
        display: none;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0 15px;
    }
    
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--bg-secondary);
        flex-direction: column;
        padding: 20px;
        gap: 10px;
        display: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .auth-buttons {
        gap: 8px;
    }
    
    .auth-buttons .btn {
        padding: 8px 14px;
        font-size: 12px;
    }
    
    .logo {
        font-size: 22px;
    }
    
    .logo span {
        font-size: 10px;
    }
    
    .hero h1 {
        font-size: 28px;
    }
    
    .hero p {
        font-size: 14px;
    }
    
    .content-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .card-image {
        height: 130px;
        font-size: 36px;
    }
    
    .player-info-mini {
        width: 50%;
    }
    
    .player-text-mini div:first-child {
        max-width: 100px;
        font-size: 13px;
    }
    
    .player-controls-mini .p-btn:not(.play-pause):not(:nth-child(4)) {
        display: none;
    }
    
    .player-full {
        height: 350px;
    }
    
    .player-cover-full {
        width: 160px;
        height: 160px;
    }
    
    .hero-slider {
        min-height: 350px;
    }
    
    .slider-container {
        height: 350px;
    }
    
    .slider-cover {
        width: 140px;
        height: 140px;
        font-size: 56px;
    }
    
    .slider-title {
        font-size: 26px;
    }
    
    .slider-artist {
        font-size: 16px;
    }
    
    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .slider-btn {
        display: none;
    }
    
    .embed-promo-card {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .embed-promo-content {
        flex-direction: column;
        text-align: center;
    }
    
    .embed-promo-btn {
        width: 100%;
        padding: 14px 24px;
    }
    
    .embed-promo-text h3 {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .auth-buttons .btn span {
        display: none;
    }
    
    .content-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .player-container.player-expanded {
        height: 380px;
    }
    
    .nav-link.live-badge span {
        display: none;
    }
    
    .nav-link.live-badge::before {
        margin: 0 auto;
    }
    
    .embed-promo-icon {
        width: 50px;
        height: 50px;
    }
    
    .embed-promo-icon svg {
        width: 26px;
        height: 26px;
    }
}

/* === ШАПКА: СКРЫТИЕ ПРИ СКРОЛЛЕ === */
.header {
    transition: transform 0.3s ease, background 0.3s ease;
    will-change: transform;
}

.header.scrolled-up {
    transform: translateY(0);
    background: rgba(15, 15, 26, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.header.scrolled-down {
    transform: translateY(-100%);
    box-shadow: none;
}

/* На мобильных: всегда показывать шапку если меню открыто */
.header.mobile-menu-open {
    transform: translateY(0) !important;
}

/* === МЕНЮ НАВИГАЦИИ В УСЛОВИЯХ/ПРИВАТНОСТИ === */
.terms-nav,
.privacy-nav {
    position: sticky;
    top: 90px;
    z-index: 10;
    transition: transform 0.3s ease, opacity 0.3s ease;
    will-change: transform;
}

.terms-nav.hidden,
.privacy-nav.hidden {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

/* Чтобы контент не прыгал при скрытии меню */
.terms-container,
.privacy-container {
    scroll-margin-top: 120px;
}