body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    background-color: #282c34; /* Fondo más oscuro */
    color: #e0e0e0;

.card-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px 0;
    width: 100%;
    max-width: none;
    justify-content: space-between;
}
.card {
    background-color: #3a3f47; /* Tarjetas gris oscuro para contrastar */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* Aumentar sombra */
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease-in-out; /* Transición más suave y larga */
    margin-bottom: 35px;
    flex: 0 0 auto; /* No crecer, no encoger, base automática */
    width: 30%; /* Ancho para tres tarjetas por fila */
}
.card:hover {
    transform: translateY(-8px); /* Aumentar el desplazamiento en hover */
}
.card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}
.channel-thumbnail {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}
.channel-thumbnail-small {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
}

.video-thumbnail-small {
    width: 120px;
    height: 68px;
    object-fit: cover;
    border-radius: 4px;
}

.video-thumbnail {
    width: 200px;
    height: 112px; /* 16:9 ratio */
    object-fit: cover;
    border-radius: 4px;
}
/* Ensure video thumbnails keep rectangular size inside channel items */
.channel-item .video-thumbnail {
    width: 200px;
    height: 112px;
    border-radius: 4px;
    object-fit: cover;
    margin-right: 10px;
    border: none;
}
.card-body {
    padding: 55px;
}
.card-title {
    font-size: 1.2em;
    margin-bottom: 5px;
    color: #e0e0e0;
}
.card-subtitle {
    font-size: 0.9em;
    color: #b0b0b0;
}
.card-text {
    font-size: 1em;
    color: #c0c0c0;
    margin-top: 5px;
}
.container-narrow {
    width: 90%;
    max-width: 960px;
    margin: 0 auto;
    padding: 20px 0;
}
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 0;
    border-bottom: 1px solid #444;
    margin-bottom: 20px;
    max-width: 1115px; /* Align with container-narrow */
    margin: 0 auto; /* Center the navbar */
    border-radius: 8px; /* Add rounded corners */
}
.navbar-brand {
    margin-right: auto;
}
.navbar-links {
    margin-left: auto;
}
.navbar-brand .logo-text {
    font-size: 24px;
    font-weight: bold;
    color: #61dafb; /* Un azul más moderno */
    text-shadow: 3px 3px 5px rgba(0,0,0,0.5); /* Aumentar sombra */
    animation: logo-animation 4s infinite alternate; /* Nueva animación para el logo */
    transform-style: preserve-3d; /* Habilitar transformaciones 3D */
    perspective: 1000px; /* Perspectiva para el efecto 3D */
    line-height: 50px; /* Align vertically with 50px channel thumbnail */
}
@keyframes logo-animation {
    0% {
        transform: rotateY(0deg) rotateX(0deg) scale(1);
        color: #61dafb;
    }
    25% {
        transform: rotateY(20deg) rotateX(10deg) scale(1.05);
        color: #4CAF50; /* Verde */
    }
    50% {
        transform: rotateY(0deg) rotateX(0deg) scale(1.1);
        color: #FFC107; /* Amarillo */
    }
    75% {
        transform: rotateY(-20deg) rotateX(-10deg) scale(1.05);
        color: #E91E63; /* Rosa */
    }
    100% {
        transform: rotateY(0deg) rotateX(0deg) scale(1);
        color: #61dafb;
    }
}
.navbar-links .nav-button {
    background-color: #ff0000;
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
}




.filter-group h4 {
    margin-top: 0;
    color: #eee;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.filter-group ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start; /* Align items to the start */
    align-items: flex-start; /* Align items to the start */
}

.filter-group ul li {
    display: inline-block; /* Make list items behave like inline blocks */
    padding: 8px 10px;
    color: #bbb;
    cursor: pointer;
    white-space: nowrap;
    margin: 0 5px 5px 0;
    background-color: #444;
    border-radius: 5px;
}

.filter-group ul li:hover {
    color: #fff;
    background-color: #444;
}

.main-content {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
}

.channels-list-section {
    padding: 20px 20px 40px 20px; /* Aumentar el padding inferior */
    background-color: #2e333b;
    border-radius: 8px;
    flex-grow: 1.5; /* Aumentar el ancho de channels-list-section */
    font-size: 0.9em; /* Reducir el tamaño del texto */
}

.list-header {
    display: grid;
    grid-template-columns: 70px 2fr 1fr 1fr 1fr 1fr;
    align-items: center;
    justify-items: center;
    margin-bottom: 20px;
    color: #eee;
    padding: 10px;
    background-color: #3a3f47;
    border-radius: 5px;
    height: 60px;
}

.rank,
.video-counts,
.total-subs,
.total-views {
    width: 100px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}




.channel-info {
    display: flex;
    align-items: center; /* Vertical centering ensured */
    gap: 10px;
    min-width: 0;
}
.channel-info a {
    color: #61dafb;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.channel-item > div {
    padding: 0 10px;
}

.channel-stats-cards {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.channel-stats-cards .card {
    flex: 1;
    max-width: 200px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.channel-stats-cards .card-title {
    font-size: 1em;
    margin-bottom: 5px;
}

.channel-stats-cards .card-text {
    font-size: 1.2em;
    font-weight: bold;
}

.rank,
.video-counts,
.total-subs,
.total-views {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.list-header > div:nth-child(1) { /* Rank */
    /* flex: 0 0 50px; */
}

.list-header > div:nth-child(2) { /* Channel */
    text-align: left;
    /* flex: 2; */
}

.list-header > div:nth-child(3),
.list-header > div:nth-child(4),
.list-header > div:nth-child(5),
.list-header > div:nth-child(6) {
    text-align: right;
}

.channel-item {
    display: grid;
    grid-template-columns: 70px 2fr 1fr 1fr 1fr 1fr;
    align-items: center;
    padding: 20px;
    border: 1px solid #444;
    border-radius: 5px;
    min-width: 0;
    margin-bottom: 10px;
}

.channel-item .rank {
    text-align: center;
    color: #bbb;
}

.channel-item .channel-info {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0; /* Permite que el contenido se encoja */
}

.channel-item .channel-info img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 10px;
    border: 2px solid #61dafb;
    object-fit: cover;
    flex-shrink: 0; /* Evita que la imagen se encoja */
    min-width: 0; /* Asegura que la imagen no impida el encogimiento del contenedor */
}

/* Override para miniaturas de video (rectangulares) dentro de channel-item */
.channel-item .video-thumbnail {
    width: 200px !important;
    height: 112px !important;
    border-radius: 4px !important;
    border: none !important;
    object-fit: cover !important;
    margin-right: 10px;
}

/* ===== Compact list overrides ===== */

/* ===== Video list specific overrides ===== */
.video-item {
    grid-template-columns: 70px 200px 1fr 0.8fr 1fr 1fr;
}
.video-item .channel-info {
    flex-direction: column;
    align-items: flex-start;
    width: 200px;
    max-width: 200px;
}
.video-item .video-thumbnail {
    margin: 0 0 4px 0;
}
.video-item .channel-info a {
    margin-left: 0;
    max-width: 100%;
}

/* Aumentar fuente y centrar columnas numéricas */
.list-header > div:nth-child(3),
.list-header > div:nth-child(4),
.list-header > div:nth-child(5) {
    font-size: 0.95em;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}
.video-item .total-views,
.video-item .estimated-earnings,
.video-item .uploaded {
    font-size: 1em;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}
.list-header {
    font-size: 0.85em;
    grid-template-columns: 70px 2fr 1fr 0.8fr 1fr 1fr;
    column-gap: 8px;
    padding: 6px 8px;
    height: auto;
}

.channel-item {
    font-size: 0.85em;
    padding: 10px 12px;
    grid-template-columns: 70px 2fr 1fr 0.8fr 1fr 1fr;
    column-gap: 8px;
}

.channel-item .channel-info a {
    font-size: 0.9em;
}

.channel-item .total-views,
.channel-item .estimated-earnings {
    white-space: nowrap;
}

.channel-item .channel-info a {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: #61dafb;
    text-decoration: none;
    font-weight: bold;
    min-width: 0; /* Asegura que el enlace pueda encogerse */
    display: block; /* Necesario para que text-overflow funcione correctamente */
    margin-left: 10px; /* Espacio entre la imagen y el texto */
}

.channel-item .channel-info span {
    color: #eee;
}

.channel-item .channel-info .handle {
    color: #bbb;
    font-size: 0.9em;
    margin-left: 5px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.channel-item .new-subs,
.channel-item .total-subs,
.channel-item .total-views,
.channel-item .estimated-earnings {
    text-align: right;
}

.channel-item .new-subs {
    color: #0f0;
}

.channel-item .total-subs,
.channel-item .total-views,
.channel-item .estimated-earnings {
    color: #bbb;
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.filters-header h3 {
    margin: 0;
    color: #eee;
}

.filters-header select {
    background-color: #333;
    color: #eee;
    border: none;
    padding: 8px;
    border-radius: 5px;
}

.search-box {
    display: flex;
    align-items: center;
}

.search-box input {
    background-color: #333;
    border: none;
    padding: 8px;
    border-radius: 5px;
    color: #eee;
    margin-right: 5px;
}

.search-box button {
    background-color: #555;
    color: #eee;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
}

.search-box button:hover {
    background-color: #666;
}



/* Estilos para la página de detalles del canal */


.channel-detail-container {
    padding: 20px;
    background-color: #2e333b;
    border-radius: 8px;
    color: #e0e0e0;
    margin-top: 20px;
}

.channel-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.channel-detail-thumbnail {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #61dafb;
}

.channel-stats {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.chart-container {
    width: 100%;
    min-height: 500px; /* Altura mínima mayor para evitar solapamiento de gráficos */
    margin: 20px auto 100px; /* más separación inferior para prevenir solapamientos visibles */
    background-color: #3a3f47; /* fondo oscuro tarjeta */
    padding: 20px; /* espacios uniformes alrededor del gráfico */
    border-radius: 8px;
    overflow: hidden; /* ocultar cualquier desbordamiento y evitar solapamientos */
    box-sizing: border-box; /* incluir padding en el cálculo del ancho */
}

/* espaciado entre título y gráfico dentro del contenedor */
.chart-container h2 {
    margin-top: 0;
    margin-bottom: 20px;
}

/* asegurar separación superior para el gráfico de Daily Views */
#dailyViewsChart {
    margin-top: 10px;

}

#dailyViewsChart {
    width: 100% !important;
    height: 370px !important; /* altura fija como el gráfico de Subscribers */
    display: block;
    margin-top: 10px;
}

.channel-info-header h1 {
    font-size: 2.5em;
    margin: 0;
    color: #61dafb;
}

.channel-info-header .channel-subs {
    font-size: 1.2em;
    color: #bbb;
}

.channel-stats-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-box {
    background-color: #3a3f47;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* Aumentar sombra */
    transition: transform 0.3s ease-in-out; /* Transición más suave y larga */
}

.stat-box:hover {
    transform: translateY(-8px); /* Aumentar el desplazamiento en hover */
}

.stat-box h3 {
    font-size: 1em;
    color: #61dafb;
    margin-top: 0;
    margin-bottom: 10px;
}

.stat-box p {
    font-size: 1.8em;
    font-weight: bold;
    color: #e0e0e0;
    margin: 0;
}

.channel-description {
    width: 100%;
    margin-top: 20px;
    background-color: #3a3f47;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* Aumentar sombra */
    transition: transform 0.3s ease-in-out; /* Transición más suave y larga */
    flex: 1 1 100%;
    max-width: 100%;
}

.channel-description:hover {
    transform: translateY(-8px); /* Aumentar el desplazamiento en hover */
}

.channel-earnings-card {
    width: 100%;
    margin-top: 20px;
    margin-bottom: 20px;
    background-color: #3a3f47;
    padding: 20px;
    border-radius: 8px;
}

.channel-earnings-card .card {
    width: 100%;
    flex: 1 1 100%;
    max-width: 100%;
}

.channel-stats-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
}

.channel-stats-cards .card {
    flex: 1 1 auto;
    min-width: 150px; /* Adjust as needed */
    max-width: 30%; /* Adjust as needed */
}

/* Tarjeta del video más reciente */
.recent-video-card {
    width: 95%;
    max-width: 540px; /* tamaño máximo mayor para mejor visualización */
    margin: 20px auto;
    border-radius: 8px;
}

.recent-video-card .col-md-4 {
    position: relative;
    overflow: hidden;
    border-radius: 8px 0 0 8px;
}

.recent-video-card .col-md-4::before {
    content: "\25B6"; /* Unicode play symbol */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.recent-video-card .col-md-4:hover::before {
    opacity: 1;
}

.recent-video-card img {
    transition: transform 0.3s ease;
}

.recent-video-card .col-md-4:hover img {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .channel-stats-cards {
        flex-direction: column;
    }

    .channel-stats-cards .card {
        max-width: 100%;
    }
}

.channel-description h2 {
    font-size: 1.5em;
    color: #61dafb;
    margin-top: 20px;
    margin-bottom: 20px;
}

.channel-description p {
    font-size: 1em;
    line-height: 1.6;
    color: #c0c0c0;
}

.channel-description h2 {
    font-size: 1.5em;
    color: #61dafb;
    margin-top: 20px;
    margin-bottom: 20px;
}

.channel-description p {
    font-size: 1em;
    line-height: 1.6;
    color: #c0c0c0;
}
.navbar-brand {
    margin-right: auto;
}
.navbar-links {
    margin-left: auto;
}
.navbar-brand .logo-text {
    font-size: 24px;
    font-weight: bold;
    color: #61dafb; /* Un azul más moderno */
    text-shadow: 3px 3px 5px rgba(0,0,0,0.5); /* Efecto 3D más pronunciado */
    animation: logo-animation 4s infinite alternate; /* Nueva animación para el logo */
    transform-style: preserve-3d; /* Habilitar transformaciones 3D */
    perspective: 1000px; /* Perspectiva para el efecto 3D */
}
@keyframes logo-animation {
    0% {
        transform: rotateY(0deg) rotateX(0deg) scale(1);
        color: #61dafb;
    }
    25% {
        transform: rotateY(20deg) rotateX(10deg) scale(1.05);
        color: #4CAF50; /* Verde */
    }
    50% {
        transform: rotateY(0deg) rotateX(0deg) scale(1.1);
        color: #FFC107; /* Amarillo */
    }
    75% {
        transform: rotateY(-20deg) rotateX(-10deg) scale(1.05);
        color: #E91E63; /* Rosa */
    }
    100% {
        transform: rotateY(0deg) rotateX(0deg) scale(1);
        color: #61dafb;
    }
}
.navbar-links .nav-button {
    background-color: #ff0000;
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
}






.main-content {
    display: flex;
    gap: 20px;
}

.channels-list-section {
    padding: 20px 20px 40px 20px; /* Aumentar el padding inferior */
    background-color: #2e333b;
    border-radius: 8px;
    flex-grow: 1.5; /* Aumentar el ancho de channels-list-section */
    font-size: 0.9em; /* Reducir el tamaño del texto */
}

.list-header {
    display: grid;
    grid-template-columns: 70px 2fr 1fr 1fr 1fr;
    align-items: center;
    margin-bottom: 20px;
    color: #eee;
    padding: 10px;
    background-color: #3a3f47;
    border-radius: 5px;
}




.channel-info {
    display: flex;
    align-items: center; /* Vertical centering ensured */
    gap: 10px;
    min-width: 0;
}
.channel-info a {
    color: #61dafb;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.channel-item > div {
    padding: 0 10px;
}

.channel-stats-cards {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.channel-stats-cards .card {
    flex: 1;
    max-width: 200px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.channel-stats-cards .card-title {
    font-size: 1em;
    margin-bottom: 5px;
}

.channel-stats-cards .card-text {
    font-size: 1.2em;
    font-weight: bold;
}

.rank,
.video-counts,
.total-subs,
.total-views {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.list-header > div:nth-child(1) { /* Rank */
    /* flex: 0 0 50px; */
}

.list-header > div:nth-child(2) { /* Channel */
    text-align: left;
    /* flex: 2; */
}

.list-header > div:nth-child(3),
.list-header > div:nth-child(4),
.list-header > div:nth-child(5) {
    text-align: right;
}

.channel-item {
    display: grid;
    grid-template-columns: 70px 2fr 1fr 1fr 1fr;
    align-items: center;
    padding: 20px;
    border: 1px solid #444;
    border-radius: 5px;
    min-width: 0;
    margin-bottom: 10px;
}

.channel-item .rank {
    text-align: center;
    color: #bbb;
}

.channel-item .channel-info {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0; /* Permite que el contenido se encoja */
}

.channel-item .channel-info img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 10px;
    border: 2px solid #61dafb;
    object-fit: cover;
    flex-shrink: 0; /* Evita que la imagen se encoja */
    min-width: 0; /* Asegura que la imagen no impida el encogimiento del contenedor */
}

.channel-item .channel-info a {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: #61dafb;
    text-decoration: none;
    font-weight: bold;
    min-width: 0; /* Asegura que el enlace pueda encogerse */
    display: block; /* Necesario para que text-overflow funcione correctamente */
    margin-left: 10px; /* Espacio entre la imagen y el texto */
}

.channel-item .channel-info span {
    color: #eee;
}

.channel-item .channel-info .handle {
    color: #bbb;
    font-size: 0.9em;
    margin-left: 5px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.channel-item .new-subs,
.channel-item .total-subs,
.channel-item .total-views {
    text-align: right;
}

.channel-item .new-subs {
    color: #0f0;
}

.channel-item .total-subs,
.channel-item .total-views {
    color: #bbb;
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.filters-header h3 {
    margin: 0;
    color: #eee;
}

.filters-header select {
    background-color: #333;
    color: #eee;
    border: none;
    padding: 8px;
    border-radius: 5px;
}

.search-box {
    display: flex;
    align-items: center;
}

.search-box input {
    background-color: #333;
    border: none;
    padding: 8px;
    border-radius: 5px;
    color: #eee;
    margin-right: 5px;
}

.search-box button {
    background-color: #555;
    color: #eee;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
}

.search-box button:hover {
    background-color: #666;
}



/* Estilos para la página de detalles del canal */
.channel-detail-container {
    padding: 20px;
    background-color: #2e333b;
    border-radius: 8px;
    color: #e0e0e0;
}

.channel-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.channel-profile-picture {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 20px;
    border: 3px solid #61dafb;
}

.channel-info-header {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
    justify-content: space-between;
}

.channel-title-and-subs {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex-shrink: 0;
}

.channel-stats-cards {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
}

.channel-title-and-subs {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.channel-info-header h1 {
    font-size: 2.5em;
    margin: 0;
    color: #61dafb;
}

.channel-info-header .channel-subs {
    font-size: 1.2em;
    color: #bbb;
}

.channel-stats-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-box {
    background-color: #3a3f47;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.stat-box h3 {
    font-size: 1em;
    color: #61dafb;
    margin-top: 0;
    margin-bottom: 10px;
}

.stat-box p {
    font-size: 1.8em;
    font-weight: bold;
    color: #e0e0e0;
    margin: 0;
}

.channel-description {
    margin-top: 20px; /* Añadido para separar de la tarjeta de ganancias */
    background-color: #3a3f47;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* Aumentar sombra */
    transition: transform 0.3s ease-in-out; /* Transición más suave y larga */
}

.channel-description:hover {
    transform: translateY(-8px); /* Aumentar el desplazamiento en hover */
}

.channel-earnings-card {
    margin-top: 20px;
    margin-bottom: 30px; /* Añadido para separar de la descripción */
    background-color: #3a3f47;
    padding: 20px;
    border-radius: 8px;
}

.channel-stats-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
}

.channel-stats-cards .card {
    flex: 1 1 auto;
    min-width: 150px; /* Adjust as needed */
    max-width: 30%; /* Adjust as needed */
}

@media (max-width: 768px) {
    .channel-stats-cards {
        flex-direction: column;
    }

    .channel-stats-cards .card {
        max-width: 100%;
    }
}

.channel-description h2 {
    font-size: 1.5em;
    color: #61dafb;
    margin-top: 20px;
    margin-bottom: 20px;
}

.channel-description p {
    font-size: 1em;
    line-height: 1.6;
    color: #c0c0c0;
}

.channel-description h2 {
    font-size: 1.5em;
    color: #61dafb;
    margin-top: 20px;
    margin-bottom: 20px;
}

.channel-description p {
    font-size: 1em;
    line-height: 1.6;
    color: #c0c0c0;
}
.navbar-brand {
    margin-right: auto;
}
.navbar-links {
    margin-left: auto;
}
.navbar-brand .logo-text {
    font-size: 24px;
    font-weight: bold;
    color: #61dafb; /* Un azul más moderno */
    text-shadow: 3px 3px 5px rgba(0,0,0,0.5); /* Efecto 3D más pronunciado */
    animation: logo-animation 4s infinite alternate; /* Nueva animación para el logo */
    transform-style: preserve-3d; /* Habilitar transformaciones 3D */
    perspective: 1000px; /* Perspectiva para el efecto 3D */
}
@keyframes logo-animation {
    0% {
        transform: rotateY(0deg) rotateX(0deg) scale(1);
        color: #61dafb;
    }
    25% {
        transform: rotateY(20deg) rotateX(10deg) scale(1.05);
        color: #4CAF50; /* Verde */
    }
    50% {
        transform: rotateY(0deg) rotateX(0deg) scale(1.1);
        color: #FFC107; /* Amarillo */
    }
    75% {
        transform: rotateY(-20deg) rotateX(-10deg) scale(1.05);
        color: #E91E63; /* Rosa */
    }
    100% {
        transform: rotateY(0deg) rotateX(0deg) scale(1);
        color: #61dafb;
    }
}
.navbar-links .nav-button {
    background-color: #ff0000;
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
}






.main-content {
    display: flex;
    gap: 20px;
}

.channels-list-section {
    padding: 20px 20px 40px 20px; /* Aumentar el padding inferior */
    background-color: #2e333b;
    border-radius: 8px;
    flex-grow: 1.5; /* Aumentar el ancho de channels-list-section */
    font-size: 0.9em; /* Reducir el tamaño del texto */
}

.list-header {
    display: grid;
    grid-template-columns: 70px 2fr 1fr 1fr 1fr;
    align-items: center;
    margin-bottom: 20px;
    color: #eee;
    padding: 10px;
    background-color: #3a3f47;
    border-radius: 5px;
}




.channel-info {
    display: flex;
    align-items: center; /* Vertical centering ensured */
    gap: 10px;
    min-width: 0;
}
.channel-info a {
    color: #61dafb;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.channel-item > div {
    padding: 0 10px;
}

.channel-stats-cards {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.channel-stats-cards .card {
    flex: 1;
    max-width: 200px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.channel-stats-cards .card-title {
    font-size: 1em;
    margin-bottom: 5px;
}

.channel-stats-cards .card-text {
    font-size: 1.2em;
    font-weight: bold;
}

.rank,
.video-counts,
.total-subs,
.total-views {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.list-header > div:nth-child(1) { /* Rank */
    /* flex: 0 0 50px; */
}

.list-header > div:nth-child(2) { /* Channel */
    text-align: left;
    /* flex: 2; */
}

.list-header > div:nth-child(3),
.list-header > div:nth-child(4),
.list-header > div:nth-child(5) {
    text-align: right;
}

.channel-item {
    display: grid;
    grid-template-columns: 70px 2fr 1fr 1fr 1fr;
    align-items: center;
    padding: 20px;
    border: 1px solid #444;
    border-radius: 5px;
    min-width: 0;
    margin-bottom: 10px;
}

.channel-item .rank {
    text-align: center;
    color: #bbb;
}

.channel-item .channel-info {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0; /* Permite que el contenido se encoja */
}

.channel-item .channel-info img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 10px;
    border: 2px solid #61dafb;
    object-fit: cover;
    flex-shrink: 0; /* Evita que la imagen se encoja */
    min-width: 0; /* Asegura que la imagen no impida el encogimiento del contenedor */
}

.channel-item .channel-info a {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: #61dafb;
    text-decoration: none;
    font-weight: bold;
    min-width: 0; /* Asegura que el enlace pueda encogerse */
    display: block; /* Necesario para que text-overflow funcione correctamente */
    margin-left: 10px; /* Espacio entre la imagen y el texto */
}

.channel-item .channel-info span {
    color: #eee;
}

.channel-item .channel-info .handle {
    color: #bbb;
    font-size: 0.9em;
    margin-left: 5px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.channel-item .new-subs,
.channel-item .total-subs,
.channel-item .total-views {
    text-align: right;
}

.channel-item .new-subs {
    color: #0f0;
}

.channel-item .total-subs,
.channel-item .total-views {
    color: #bbb;
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.filters-header h3 {
    margin: 0;
    color: #eee;
}

.filters-header select {
    background-color: #333;
    color: #eee;
    border: none;
    padding: 8px;
    border-radius: 5px;
}

.search-box {
    display: flex;
    align-items: center;
}

.search-box input {
    background-color: #333;
    border: none;
    padding: 8px;
    border-radius: 5px;
    color: #eee;
    margin-right: 5px;
}

.search-box button {
    background-color: #555;
    color: #eee;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
}

.search-box button:hover {
    background-color: #666;
}



/* Estilos para la página de detalles del canal */
.channel-detail-container {
    padding: 20px;
    background-color: #2e333b;
    border-radius: 8px;
    color: #e0e0e0;
}

.channel-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.channel-profile-picture {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 20px;
    border: 3px solid #61dafb;
}

.channel-info-header {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
    justify-content: space-between;
}

.channel-title-and-subs {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex-shrink: 0;
}

.channel-stats-cards {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
}

.channel-title-and-subs {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.channel-info-header h1 {
    font-size: 2.5em;
    margin: 0;
    color: #61dafb;
}

.channel-info-header .channel-subs {
    font-size: 1.2em;
    color: #bbb;
}

.channel-stats-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-box {
    background-color: #3a3f47;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.stat-box h3 {
    font-size: 1em;
    color: #61dafb;
    margin-top: 0;
    margin-bottom: 10px;
}

.stat-box p {
    font-size: 1.8em;
    font-weight: bold;
    color: #e0e0e0;
    margin: 0;
}

.channel-description {
    margin-top: 20px; /* Añadido para separar de la tarjeta de ganancias */
    background-color: #3a3f47;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* Aumentar sombra */
    transition: transform 0.3s ease-in-out; /* Transición más suave y larga */
}

.channel-description:hover {
    transform: translateY(-8px); /* Aumentar el desplazamiento en hover */
}

.channel-earnings-card {
    margin-top: 20px;
    margin-bottom: 30px; /* Añadido para separar de la descripción */
    background-color: #3a3f47;
    padding: 20px;
    border-radius: 8px;
}

.channel-stats-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
}

.channel-stats-cards .card {
    flex: 1 1 auto;
    min-width: 150px; /* Adjust as needed */
    max-width: 30%; /* Adjust as needed */
}

@media (max-width: 768px) {
    .channel-stats-cards {
        flex-direction: column;
    }

    .channel-stats-cards .card {
        max-width: 100%;
    }
}

.channel-description h2 {
    font-size: 1.5em;
    color: #61dafb;
    margin-top: 20px;
    margin-bottom: 20px;
}

.channel-description p {
    font-size: 1em;
    line-height: 1.6;
    color: #c0c0c0;
}

.channel-description h2 {
    font-size: 1.5em;
    color: #61dafb;
    margin-top: 20px;
    margin-bottom: 20px;
}

.channel-description p {
    font-size: 1em;
    line-height: 1.6;
    color: #c0c0c0;
}
.navbar-brand {
    margin-right: auto;
}
.navbar-links {
    margin-left: auto;
}
.navbar-brand .logo-text {
    font-size: 24px;
    font-weight: bold;
    color: #61dafb; /* Un azul más moderno */
    text-shadow: 3px 3px 5px rgba(0,0,0,0.5); /* Efecto 3D más pronunciado */
    animation: logo-animation 4s infinite alternate; /* Nueva animación para el logo */
    transform-style: preserve-3d; /* Habilitar transformaciones 3D */
    perspective: 1000px; /* Perspectiva para el efecto 3D */
}
@keyframes logo-animation {
    0% {
        transform: rotateY(0deg) rotateX(0deg) scale(1);
        color: #61dafb;
    }
    25% {
        transform: rotateY(20deg) rotateX(10deg) scale(1.05);
        color: #4CAF50; /* Verde */
    }
    50% {
        transform: rotateY(0deg) rotateX(0deg) scale(1.1);
        color: #FFC107; /* Amarillo */
    }
    75% {
        transform: rotateY(-20deg) rotateX(-10deg) scale(1.05);
        color: #E91E63; /* Rosa */
    }
    100% {
        transform: rotateY(0deg) rotateX(0deg) scale(1);
        color: #61dafb;
    }
}
.navbar-links .nav-button {
    background-color: #ff0000;
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
}






.main-content {
    display: flex;
    gap: 20px;
}

.channels-list-section {
    padding: 20px 20px 40px 20px; /* Aumentar el padding inferior */
    background-color: #2e333b;
    border-radius: 8px;
    flex-grow: 1.5; /* Aumentar el ancho de channels-list-section */
    font-size: 0.9em; /* Reducir el tamaño del texto */
}

.list-header {
    display: grid;
    grid-template-columns: 70px 2fr 1fr 1fr 1fr;
    align-items: center;
    margin-bottom: 20px;
    color: #eee;
    padding: 10px;
    background-color: #3a3f47;
    border-radius: 5px;
}




.channel-info {
    display: flex;
    align-items: center; /* Vertical centering ensured */
    gap: 10px;
    min-width: 0;
}
.channel-info a {
    color: #61dafb;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.channel-item > div {
    padding: 0 10px;
}

.channel-stats-cards {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.channel-stats-cards .card {
    flex: 1;
    max-width: 200px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.channel-stats-cards .card-title {
    font-size: 1em;
    margin-bottom: 5px;
}

.channel-stats-cards .card-text {
    font-size: 1.2em;
    font-weight: bold;
}

.rank,
.video-counts,
.total-subs,
.total-views {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.list-header > div:nth-child(1) { /* Rank */
    /* flex: 0 0 50px; */
}

.list-header > div:nth-child(2) { /* Channel */
    text-align: left;
    /* flex: 2; */
}

.list-header > div:nth-child(3),
.list-header > div:nth-child(4),
.list-header > div:nth-child(5) {
    text-align: right;
}

.channel-item {
    display: grid;
    grid-template-columns: 70px 2fr 1fr 1fr 1fr;
    align-items: center;
    padding: 20px;
    border: 1px solid #444;
    border-radius: 5px;
    min-width: 0;
    margin-bottom: 10px;
}

.channel-item .rank {
    text-align: center;
    color: #bbb;
}

.channel-item .channel-info {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0; /* Permite que el contenido se encoja */
}

.channel-item .channel-info img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 10px;
    border: 2px solid #61dafb;
    object-fit: cover;
    flex-shrink: 0; /* Evita que la imagen se encoja */
    min-width: 0; /* Asegura que la imagen no impida el encogimiento del contenedor */
}

.channel-item .channel-info a {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: #61dafb;
    text-decoration: none;
    font-weight: bold;
    min-width: 0; /* Asegura que el enlace pueda encogerse */
    display: block; /* Necesario para que text-overflow funcione correctamente */
    margin-left: 10px; /* Espacio entre la imagen y el texto */
}

.channel-item .channel-info span {
    color: #eee;
}

.channel-item .channel-info .handle {
    color: #bbb;
    font-size: 0.9em;
    margin-left: 5px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.channel-item .new-subs,
.channel-item .total-subs,
.channel-item .total-views {
    text-align: right;
}

.channel-item .new-subs {
    color: #0f0;
}

.channel-item .total-subs,
.channel-item .total-views {
    color: #bbb;
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.filters-header h3 {
    margin: 0;
    color: #eee;
}

.filters-header select {
    background-color: #333;
    color: #eee;
    border: none;
    padding: 8px;
    border-radius: 5px;
}

.search-box {
    display: flex;
    align-items: center;
}

.search-box input {
    background-color: #333;
    border: none;
    padding: 8px;
    border-radius: 5px;
    color: #eee;
    margin-right: 5px;
}

.search-box button {
    background-color: #555;
    color: #eee;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
}

.search-box button:hover {
    background-color: #666;
}



/* Estilos para la página de detalles del canal */
.channel-detail-container {
    padding: 20px;
    background-color: #2e333b;
    border-radius: 8px;
    color: #e0e0e0;
}

.channel-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.channel-profile-picture {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 20px;
    border: 3px solid #61dafb;
}

.channel-info-header {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
    justify-content: space-between;
}

.channel-title-and-subs {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex-shrink: 0;
}

.channel-stats-cards {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
}

.channel-title-and-subs {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.channel-info-header h1 {
    font-size: 2.5em;
    margin: 0;
    color: #61dafb;
}

.channel-info-header .channel-subs {
    font-size: 1.2em;
    color: #bbb;
}

.channel-stats-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-box {
    background-color: #3a3f47;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.stat-box h3 {
    font-size: 1em;
    color: #61dafb;
    margin-top: 0;
    margin-bottom: 10px;
}

.stat-box p {
    font-size: 1.8em;
    font-weight: bold;
    color: #e0e0e0;
    margin: 0;
}

.channel-description {
    margin-top: 20px; /* Añadido para separar de la tarjeta de ganancias */
    background-color: #3a3f47;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* Aumentar sombra */
    transition: transform 0.3s ease-in-out; /* Transición más suave y larga */
}

.channel-description:hover {
    transform: translateY(-8px); /* Aumentar el desplazamiento en hover */
}

.channel-earnings-card {
    margin-top: 20px;
    margin-bottom: 30px; /* Añadido para separar de la descripción */
    background-color: #3a3f47;
    padding: 20px;
    border-radius: 8px;
}

.channel-stats-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
}

.channel-stats-cards .card {
    flex: 1 1 auto;
    min-width: 150px; /* Adjust as needed */
    max-width: 30%; /* Adjust as needed */
}

@media (max-width: 768px) {
    .channel-stats-cards {
        flex-direction: column;
    }

    .channel-stats-cards .card {
        max-width: 100%;
    }
}

.channel-description h2 {
    font-size: 1.5em;
    color: #61dafb;
    margin-top: 20px;
    margin-bottom: 20px;
}

.channel-description p {
    font-size: 1em;
    line-height: 1.6;
    color: #c0c0c0;
}

.channel-description h2 {
    font-size: 1.5em;
    color: #61dafb;
    margin-top: 20px;
    margin-bottom: 20px;
}

.channel-description p {
    font-size: 1em;
    line-height: 1.6;
    color: #c0c0c0;
}
.navbar-brand {
    margin-right: auto;
}
.navbar-links {
    margin-left: auto;
}
.navbar-brand .logo-text {
    font-size: 24px;
    font-weight: bold;
    color: #61dafb; /* Un azul más moderno */
    text-shadow: 3px 3px 5px rgba(0,0,0,0.5); /* Efecto 3D más pronunciado */
    animation: logo-animation 4s infinite alternate; /* Nueva animación para el logo */
    transform-style: preserve-3d; /* Habilitar transformaciones 3D */
    perspective: 1000px; /* Perspectiva para el efecto 3D */
}
@keyframes logo-animation {
    0% {
        transform: rotateY(0deg) rotateX(0deg) scale(1);
        color: #61dafb;
    }
    25% {
        transform: rotateY(20deg) rotateX(10deg) scale(1.05);
        color: #4CAF50; /* Verde */
    }
    50% {
        transform: rotateY(0deg) rotateX(0deg) scale(1.1);
        color: #FFC107; /* Amarillo */
    }
    75% {
        transform: rotateY(-20deg) rotateX(-10deg) scale(1.05);
        color: #E91E63; /* Rosa */
    }
    100% {
        transform: rotateY(0deg) rotateX(0deg) scale(1);
        color: #61dafb;
    }
}
.navbar-links .nav-button {
    background-color: #ff0000;
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
}






.main-content {
    display: flex;
    gap: 20px;
}

.channels-list-section {
    padding: 20px 20px 40px 20px; /* Aumentar el padding inferior */
    background-color: #2e333b;
    border-radius: 8px;
    flex-grow: 1.5; /* Aumentar el ancho de channels-list-section */
    font-size: 0.9em; /* Reducir el tamaño del texto */
}

.list-header {
    display: grid;
    grid-template-columns: 70px 2fr 1fr 1fr 1fr;
    align-items: center;
    margin-bottom: 20px;
    color: #eee;
    padding: 10px;
    background-color: #3a3f47;
    border-radius: 5px;
}




.channel-info {
    display: flex;
    align-items: center; /* Vertical centering ensured */
    gap: 10px;
    min-width: 0;
}
.channel-info a {
    color: #61dafb;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.channel-item > div {
    padding: 0 10px;
}

.channel-stats-cards {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.channel-stats-cards .card {
    flex: 1;
    max-width: 200px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.channel-stats-cards .card-title {
    font-size: 1em;
    margin-bottom: 5px;
}

.channel-stats-cards .card-text {
    font-size: 1.2em;
    font-weight: bold;
}

.rank,
.video-counts,
.total-subs,
.total-views {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.list-header > div:nth-child(1) { /* Rank */
    /* flex: 0 0 50px; */
}

.list-header > div:nth-child(2) { /* Channel */
    text-align: left;
    /* flex: 2; */
}

.list-header > div:nth-child(3),
.list-header > div:nth-child(4),
.list-header > div:nth-child(5) {
    text-align: right;
}

.channel-item {
    display: grid;
    grid-template-columns: 70px 2fr 1fr 1fr 1fr;
    align-items: center;
    padding: 20px;
    border: 1px solid #444;
    border-radius: 5px;
    min-width: 0;
    margin-bottom: 10px;
}

.channel-item .rank {
    text-align: center;
    color: #bbb;
}

.channel-item .channel-info {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0; /* Permite que el contenido se encoja */
}

.channel-item .channel-info img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 10px;
    border: 2px solid #61dafb;
    object-fit: cover;
    flex-shrink: 0; /* Evita que la imagen se encoja */
    min-width: 0; /* Asegura que la imagen no impida el encogimiento del contenedor */
}

.channel-item .channel-info a {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: #61dafb;
    text-decoration: none;
    font-weight: bold;
    min-width: 0; /* Asegura que el enlace pueda encogerse */
    display: block; /* Necesario para que text-overflow funcione correctamente */
    margin-left: 10px; /* Espacio entre la imagen y el texto */
}

.channel-item .channel-info span {
    color: #eee;
}

.channel-item .channel-info .handle {
    color: #bbb;
    font-size: 0.9em;
    margin-left: 5px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.channel-item .new-subs,
.channel-item .total-subs,
.channel-item .total-views {
    text-align: right;
}

.channel-item .new-subs {
    color: #0f0;
}

.channel-item .total-subs,
.channel-item .total-views {
    color: #bbb;
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.filters-header h3 {
    margin: 0;
    color: #eee;
}

.filters-header select {
    background-color: #333;
    color: #eee;
    border: none;
    padding: 8px;
    border-radius: 5px;
}

.search-box {
    display: flex;
    align-items: center;
}

.search-box input {
    background-color: #333;
    border: none;
    padding: 8px;
    border-radius: 5px;
    color: #eee;
    margin-right: 5px;
}

.search-box button {
    background-color: #555;
    color: #eee;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
}

.search-box button:hover {
    background-color: #666;
}



/* Estilos para la página de detalles del canal */
.channel-detail-container {
    padding: 20px;
    background-color: #2e333b;
    border-radius: 8px;
    color: #e0e0e0;
}

.channel-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.channel-profile-picture {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 20px;
    border: 3px solid #61dafb;
}

.channel-info-header {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
    justify-content: space-between;
}

.channel-title-and-subs {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex-shrink: 0;
}

.channel-stats-cards {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
}

.channel-title-and-subs {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.channel-info-header h1 {
    font-size: 2.5em;
    margin: 0;
    color: #61dafb;
}

.channel-info-header .channel-subs {
    font-size: 1.2em;
    color: #bbb;
}

.channel-stats-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-box {
    background-color: #3a3f47;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.stat-box h3 {
    font-size: 1em;
    color: #61dafb;
    margin-top: 0;
    margin-bottom: 10px;
}

.stat-box p {
    font-size: 1.8em;
    font-weight: bold;
    color: #e0e0e0;
    margin: 0;
}

.channel-description {
    margin-top: 20px; /* Añadido para separar de la tarjeta de ganancias */
    background-color: #3a3f47;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* Aumentar sombra */
    transition: transform 0.3s ease-in-out; /* Transición más suave y larga */
}

.channel-description:hover {
    transform: translateY(-8px); /* Aumentar el desplazamiento en hover */
}

.channel-earnings-card {
    margin-top: 20px;
    margin-bottom: 30px; /* Añadido para separar de la descripción */
    background-color: #3a3f47;
    padding: 20px;
    border-radius: 8px;
}

.channel-stats-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
}

.channel-stats-cards .card {
    flex: 1 1 auto;
    min-width: 150px; /* Adjust as needed */
    max-width: 30%; /* Adjust as needed */
}

@media (max-width: 768px) {
    .channel-stats-cards {
        flex-direction: column;
    }

    .channel-stats-cards .card {
        max-width: 100%;
    }
}

.channel-description h2 {
    font-size: 1.5em;
    color: #61dafb;
    margin-top: 20px;
    margin-bottom: 20px;
}

.channel-description p {
    font-size: 1em;
    line-height: 1.6;
    color: #c0c0c0;
}

.channel-description h2 {
    font-size: 1.5em;
    color: #61dafb;
    margin-top: 20px;
    margin-bottom: 20px;
}

.channel-description p {
    font-size: 1em;
    line-height: 1.6;
    color: #c0c0c0;
}
.navbar-brand {
    margin-right: auto;
}
.navbar-links {
    margin-left: auto;
}
.navbar-brand .logo-text {
    font-size: 24px;
    font-weight: bold;
    color: #61dafb; /* Un azul más moderno */
    text-shadow: 3px 3px 5px rgba(0,0,0,0.5); /* Efecto 3D más pronunciado */
    animation: logo-animation 4s infinite alternate; /* Nueva animación para el logo */
    transform-style: preserve-3d; /* Habilitar transformaciones 3D */
    perspective: 1000px; /* Perspectiva para el efecto 3D */
}
@keyframes logo-animation {
    0% {
        transform: rotateY(0deg) rotateX(0deg) scale(1);
        color: #61dafb;
    }
    25% {
        transform: rotateY(20deg) rotateX(10deg) scale(1.05);
        color: #4CAF50; /* Verde */
    }
    50% {
        transform: rotateY(0deg) rotateX(0deg) scale(1.1);
        color: #FFC107; /* Amarillo */
    }
    75% {
        transform: rotateY(-20deg) rotateX(-10deg) scale(1.05);
        color: #E91E63; /* Rosa */
    }
    100% {
        transform: rotateY(0deg) rotateX(0deg) scale(1);
        color: #61dafb;
    }
}
.navbar-links .nav-button {
    background-color: #ff0000;
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
}






.main-content {
    display: flex;
    gap: 20px;
}

.channels-list-section {
    padding: 20px 20px 40px 20px; /* Aumentar el padding inferior */
    background-color: #2e333b;
    border-radius: 8px;
    flex-grow: 1.5; /* Aumentar el ancho de channels-list-section */
    font-size: 0.9em; /* Reducir el tamaño del texto */
}

.list-header {
    display: grid;
    grid-template-columns: 70px 2fr 1fr 1fr 1fr;
    align-items: center;
    margin-bottom: 20px;
    color: #eee;
    padding: 10px;
    background-color: #3a3f47;
    border-radius: 5px;
}




.channel-info {
    display: flex;
    align-items: center; /* Vertical centering ensured */
    gap: 10px;
    min-width: 0;
}
.channel-info a {
    color: #61dafb;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.channel-item > div {
    padding: 0 10px;
}

.channel-stats-cards {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.channel-stats-cards .card {
    flex: 1;
    max-width: 200px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.channel-stats-cards .card-title {
    font-size: 1em;
    margin-bottom: 5px;
}

.channel-stats-cards .card-text {
    font-size: 1.2em;
    font-weight: bold;
}

.rank,
.video-counts,
.total-subs,
.total-views {
    display: flex;