/* Estilos generales */
body {
    font-family:  "Poppins", sans-serif;
    background-color: #f9f9f9;
    margin: 0;
    padding: 0;
    color: #030303;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Encabezado (Header) */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #fff;
    border-bottom: 1px solid #ddd;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-left, .header-right, .search-bar {
    display: flex;
    align-items: center;
}

.logo {
    height: 25px;
    margin-right: 5px;
}

.logo-text {
    font-size: 1.2em;
    font-weight: bold;
    letter-spacing: -1px;
}

.search-bar {
    flex-grow: 1;
    max-width: 600px;
    margin: 0 20px;
}

.search-bar input {
    width: 100%;
    padding: 8px 15px;
    border: 1px solid #ccc;
    border-radius: 20px 0 0 20px;
    outline: none;
    font-size: 1em;
}

.search-btn {
    background-color: #f8f8f8;
    border: 1px solid #ccc;
    border-left: none;
    padding: 8px 15px;
    border-radius: 0 20px 20px 0;
    cursor: pointer;
}

.header-right span {
    margin-left: 20px;
    cursor: pointer;
}

/* Contenido principal */
.main-content {
    display: flex;
    flex-grow: 1;
    padding: 20px;
    margin-top: 1.8%;
    margin-bottom: 10%;
}

.video-container {
    flex: 3;
    margin-right: 20px;
    margin-top: 0.4%;
    border-radius: 5%;
    background-color: #f9e79b;
}

.video-player {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* Relación de aspecto 16:9 */
    background-color: #000;
}

.video-player video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-info {
    margin-top: 15px;
}

.video-info h1 {
    font-size: 2.5em;
    margin: 0 0 10px;
    font-family: "Poppins", sans-serif;
}

.video-info h3{
    font-size: 1.5em;
    margin-left: 1em;
    font-family: "Poppins", sans-serif;
}

.video-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.channel-info {
    display: flex;
    align-items: center;
    margin-left: 5%;
}

.channel-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

.channel-name p {
    font-weight: bold;
    margin: 0;
}

.channel-name span {
    font-size: 0.9em;
    color: #606060;
}

.video-stats {
    display: flex;
    gap: 15px;
    color: #606060;
}

.video-stats span {
    cursor: pointer;
}

.comment-input {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.comment-input input {
    flex-grow: 1;
    border: none;
    border-bottom: 1px solid #ccc;
    padding: 5px;
    margin-left: 10px;
    outline: none;
}

.comment-avatar, .user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.comment {
    display: flex;
    margin-bottom: 15px;
}

.comment-content {
    margin-left: 10px;
}

.comment-content h4 {
    margin: 0 0 5px;
    font-size: 1em;
}

.comment-content p {
    margin: 0;
    font-size: 0.9em;
    color: #333;
}

/* Barra lateral (Sidebar) */
.sidebar {
    flex: 1;
    max-width: 400px;
    background-color: #f9e79b;
}

.video-list {
    margin-top: 10px;
}

.video-card {
    display: flex;
    margin-bottom: 10px;
    cursor: pointer;
}

.video-card:hover{
    background-color: #f5d654;
    color: #444;
    border-radius: 10px;
}

.video-card .thumbnail {
    width: 168px;
    height: 94px;
    border-radius: 8px;
    margin-right: 10px;
}

.video-card .video-details {
    display: flex;
    flex-direction: column;
}

.video-card h4 {
    font-size: 0.9em;
    margin: 0 0 5px;
    padding-right: 20%;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.video-card p {
    font-size: 0.8em;
    color: black;
    margin: 0;
    padding-right: 50%;
}

.video-card span{
    font-size: 0.8em;
    color: #606060;
    margin: 0;
}

.fijalert{
    text-decoration: none;
    color: #000;
}

/* Estilos para móviles (responsive) */
@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
        padding: 10px;
        margin-top: 9%;
    }
    
    .video-container {
        margin-right: 0;
    }

    .video-info h1 {
    font-size: 1.2em;
    }  

    .video-info h3 {
    font-size: 0.9em;
}

    .sidebar {
        margin-top: 20px;
        max-width: 100%;
    }

    .header-left .logo-text, .header-right {
        display: none;
    }

    .header-left .menu-icon {
        display: block;
    }

    .search-bar {
        margin: 0 10px;
    }
}

@media (max-width: 768px) {
  .u-section-1, .u-sheet-1 {
    width: 100% !important;
    padding-left: 0;
    padding-right: 0;
  }
  
  .u-video {
    width: 195% !important;
    height: auto !important;
  }
}

@media (max-width: 768px) {
  .u-container-layout-2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 95%;
    margin: 0 auto;
    margin-top: 70%;
  }
  
  .u-container-layout-2 .u-container-layout-1,
  .u-container-layout-2 .u-container-layout-1 + .u-container-layout-1 {
    width: 100%;
    margin-right: 0;
  }
}

@media (max-width: 768px) {
  .u-container-layout-2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 95%;
    margin: 0 auto;
  }
  
  .u-container-layout-2 .u-container-layout-1,
  .u-container-layout-2 .u-container-layout-1 + .u-container-layout-1 {
    width: 100%;
    margin-right: 0;
  }
}