/* VARIABLES & RESET */
:root {
    --bg-universe: #060913;
    --neon-red: #ff003d;
    --neon-red-glow: rgba(255, 0, 61, 0.6);
    --white: #ffffff;
    --white-glow: rgba(255, 255, 255, 0.4);
    --text-gray: #e2e8f0;
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Rajdhani', sans-serif;
}

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

body {
    background-color: var(--bg-universe);
    color: var(--white);
    font-family: var(--font-body);
    overflow-x: hidden;
}

.neon-text {
    color: var(--neon-red);
    text-shadow: 0 0 10px var(--neon-red-glow), 0 0 20px var(--neon-red-glow);
}

/* HERO SECTION */
.cyber-hero {
    position: relative;
    height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
    border-bottom: 2px solid var(--neon-red);
    box-shadow: 0 0 20px var(--neon-red-glow);
}

.overlay-gradient {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(180deg, rgba(6,9,19,0.6) 0%, var(--bg-universe) 100%),
                radial-gradient(circle at center, rgba(255,0,61,0.12) 0%, transparent 70%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 850px;
}

.badge-brand {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--white);
    padding: 6px 18px;
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 20px;
}

.cyber-hero h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 20px;
}

.cyber-hero p {
    font-size: 1.25rem;
    color: var(--text-gray);
    margin-bottom: 35px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-neon {
    font-family: var(--font-heading);
    padding: 14px 30px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.btn-neon.primary {
    background: var(--neon-red);
    color: var(--white);
    box-shadow: 0 0 15px var(--neon-red-glow);
    border: 2px solid var(--neon-red);
}

.btn-neon.primary:hover {
    background: transparent;
    box-shadow: 0 0 25px var(--neon-red);
}

.btn-neon.secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-neon.secondary:hover {
    background: var(--white);
    color: var(--bg-universe);
    box-shadow: 0 0 15px var(--white);
}

/* SELETTORE LINGUA */
.lang-selector-wrapper {
    position: absolute;
    top: 25px;
    right: 25px;
    z-index: 100;
}

.lang-btn {
    background: rgba(6, 9, 19, 0.85);
    border: 1px solid var(--neon-red);
    color: var(--white);
    padding: 8px 16px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    cursor: pointer;
    border-radius: 4px;
    box-shadow: 0 0 10px var(--neon-red-glow);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    background: var(--neon-red);
    box-shadow: 0 0 15px var(--neon-red);
}

.lang-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 110%;
    background: rgba(6, 9, 19, 0.95);
    border: 1px solid var(--neon-red);
    box-shadow: 0 0 15px rgba(255, 0, 61, 0.4);
    border-radius: 4px;
    min-width: 190px;
    max-height: 320px;
    overflow-y: auto;
}

.lang-dropdown::-webkit-scrollbar {
    width: 6px;
}

.lang-dropdown::-webkit-scrollbar-thumb {
    background: var(--neon-red);
    border-radius: 3px;
}

.lang-dropdown.show {
    display: flex;
    flex-direction: column;
}

.lang-option {
    color: var(--text-gray);
    padding: 10px 15px;
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.2s ease, color 0.2s ease;
}

.lang-option:hover, .lang-option.active {
    background: rgba(255, 0, 61, 0.25);
    color: var(--white);
}

/* PLAYERS & CHANNELS SECTION */
.players-container {
    padding: 90px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-family: var(--font-heading);
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 60px;
}

.grid-players {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.player-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 380px;
    text-align: center;
    transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1);
    transform-style: preserve-3d;
    border-radius: 12px;
    cursor: pointer;
}

.player-card.flipped .card-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 12px;
}

.card-front {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    border: 2px solid var(--white);
    box-shadow: 0 0 12px var(--white-glow);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.card-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(6,9,19,0.1) 40%, rgba(6,9,19,0.92) 85%);
    z-index: 1;
}

.card-content {
    position: relative;
    z-index: 2;
    padding: 22px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--white);
    margin-bottom: 5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.9);
}

.card-hint {
    font-size: 0.75rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-back {
    transform: rotateY(180deg);
    background-color: var(--bg-universe);
    border: 2px solid var(--neon-red);
    box-shadow: 0 0 20px var(--neon-red-glow);
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.back-content h3 {
    font-family: var(--font-heading);
    color: var(--neon-red);
    margin-bottom: 12px;
    font-size: 1.25rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.9);
}

.back-content p {
    font-size: 0.88rem;
    color: var(--text-gray);
    line-height: 1.5;
}

.btn-listen {
    display: block;
    width: 100%;
    padding: 12px 20px;
    text-align: center;
    background-color: var(--neon-red);
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-decoration: none;
    border-radius: 8px;
    border: 1px solid #ff4d79;
    box-sizing: border-box;
    cursor: pointer;
    animation: pulseNeonRed 2.2s infinite ease-in-out;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.btn-listen:hover {
    background-color: #ff2a5f;
    transform: translateY(-2px);
}

@keyframes pulseNeonRed {
    0% {
        box-shadow: 0 0 8px rgba(255, 0, 61, 0.6), 0 0 15px rgba(255, 0, 61, 0.3);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 18px rgba(255, 0, 61, 1), 0 0 28px rgba(255, 0, 61, 0.7);
        transform: scale(1.02);
    }
    100% {
        box-shadow: 0 0 8px rgba(255, 0, 61, 0.6), 0 0 15px rgba(255, 0, 61, 0.3);
        transform: scale(1);
    }
}

/* FOOTER */
.cyber-footer {
    padding: 30px 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-gray);
    font-size: 0.9rem;
    background-color: rgba(6, 9, 19, 0.95);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-left {
    display: flex;
    align-items: center;
}

.footer-logo {
    max-height: 60px;
    width: auto;
    filter: drop-shadow(0 0 8px rgba(255, 0, 61, 0.5));
    transition: filter 0.3s ease;
}

.footer-logo:hover {
    filter: drop-shadow(0 0 15px rgba(255, 0, 61, 0.8));
}

.footer-right p {
    font-family: var(--font-body);
    letter-spacing: 1px;
}

/* RESPONSIVE */
@media (max-width: 1200px) {
    .grid-players { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .cyber-hero h1 { font-size: 2.3rem; }
    .hero-actions { flex-direction: column; }
    .grid-players { grid-template-columns: 1fr; }
    .lang-selector-wrapper { top: 15px; right: 15px; }
    .footer-container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}