/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #000000;
    --secondary-color: #ffffff;
    --accent-color: #8fff07;
    --text-color: #ffffff;
    --dark-text: #000000;
    --border-color: rgba(255, 255, 255, 0.1);
    --header-bg: rgba(0, 0, 0, 0.9);
    --category-bg: rgba(90, 162, 18, 0.1);
    --category-header-bg: rgba(95, 162, 18, 0.2);
    --premium-color: #7bff00;
    --hover-color: rgba(176, 255, 7, 0.2);
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.541);
    --transition: all 0.35s ease-out;
}



/* Animación de fondo */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.light-beam {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        ellipse at center,
        rgba(104, 162, 18, 0.2) 0%,
        rgba(20, 40, 10, 0) 70%
    );
    animation: rotate 60s linear infinite;
}

.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(rgba(255, 255, 255, 0.15) 1px, transparent 1px),
        radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 20px 20px, 30px 30px;
    background-position: 0 0, 15px 15px;
    animation: float 120s linear infinite;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes float {
    0% {
        background-position: 0 0, 15px 15px;
    }
    100% {
        background-position: 100px 100px, 115px 115px;
    }
}

/* Estilos del encabezado */
headers {
    background-color: var(--header-bg);
    padding: 2rem 1rem;
    text-align: center;
    box-shadow: var(--shadow);
    position: relative;
    z-index: 10;
    border-bottom: 1px solid var(--border-color);
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.logo-icon {
    font-size: 2.5rem;
    color: #91ff00;
    margin-right: 1rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: linear-gradient(90deg, #ffffff 0%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h1 span {
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
}

.subtitle {
    font-size: 1rem;
    color: #ffffff;
    opacity: 0.8;
    margin-bottom: 1.5rem;
}

/* Barra de búsqueda */
.search-container {
    display: flex;
    justify-content: center;
    margin: 1rem auto;
    max-width: 500px;
}

#searchInput {
    padding: 0.8rem 1rem;
    border: none;
    border-radius: 25px 0 0 25px;
    width: 80%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    border-right: none;
}

#searchInput:focus {
    background-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 2px rgba(168, 255, 7, 0.385);
}

#searchInput::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

#searchButton {
    padding: 0.8rem 1.2rem;
    border: none;
    border-radius: 0 25px 25px 0;
    background-color: #86ff05;
    color: var(--dark-text);
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid #86ff05;
}

#searchButton:hover {
    background-color: #ffffff;
    border: 1px solid #ffffff;
}

/* Contenedor principal */
.containerrs {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.category-column {
    flex: 1;
    min-width: 300px;
    max-width: 450px;
    margin: 0 1rem 2rem;
}

/* Estilos de las categorías */
.category-container {
    margin-bottom: 1.5rem;
    border-radius: 10px;
    overflow: hidden;
    background-color: var(--category-bg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.category-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background-color: var(--category-header-bg);
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 1px solid var(--border-color);
}

.category-header:hover {
    background-color: var(--hover-color);
}

.header-content {
    display: flex;
    align-items: center;
}

.category-icon-left {
    margin-right: 1rem;
    font-size: 1.5rem;
    color: #86ff05;
}

.category-title {
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 1px;
}

.category-icon {
    transition: var(--transition);
}

.category-container.active .category-icon {
    transform: rotate(180deg);
}

.category-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.category-container.active .category-content {
    max-height: 1000px;
}

/* Estilos de la tabla de canales */
.channel-table {
    width: 100%;
    border-collapse: collapse;
}

.channel-table th,
.channel-table td {
    padding: 0.8rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.channel-table th {
    background-color: rgba(0, 0, 0, 0.519);
    font-weight: 500;
    color: #91ff00;
}

.channel-table tr:last-child td {
    border-bottom: none;
}

.channel-table tr:hover td {
    background-color: var(--hover-color);
}

/* Estilos especiales para categoría premium */
.premium-header {
    background: linear-gradient(90deg, rgba(66, 162, 18, 0.2) 0%, rgba(255, 215, 0, 0.2) 100%);
}

.premium-header .category-icon-left,
.premium-header .category-title {
    color: var(--premium-color);
}

/* Resultados de búsqueda */
.search-results-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    background-color:#000000;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(105, 206, 4, 0.332);
    z-index: 100;
    display: none;
    border: 1px solid #91ff00;
    overflow: hidden;
}

.search-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background-color: #000000;
    border-bottom: 1px solid #91ff00;
}

.search-results-header h3 {
    color: #ffffff;
    font-size: 1.2rem;
}

#closeSearchResults {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
}

#closeSearchResults:hover {
    color: var(--accent-color);
}

.results-content {
    padding: 1rem;
    max-height: calc(80vh - 60px);
    overflow-y: auto;
}

.result-item {
    padding: 0.8rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    transition: var(--transition);
}

.result-item:hover {
    background-color: var(--hover-color);
}

.result-item:last-child {
    border-bottom: none;
}

.result-category {
    color: #91ff00;
    font-size: 0.9rem;
    margin-top: 0.3rem;
}


/* Media queries para responsividad */
@media (max-width: 768px) {
    h1 {
        font-size: 1.8rem;
    }
    
    .category-column {
        min-width: 100%;
        margin: 0 0 1.5rem;
    }
    
    
    .social-links {
        margin-top: 0.5rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.5rem;
    }
    
    .logo-icon {
        font-size: 2rem;
    }
    
    .category-title {
        font-size: 1rem;
    }
    
    .category-header {
        padding: 0.8rem 1rem;
    }
    
    .channel-table th,
    .channel-table td {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }
}