@import url("reset.css");
@import url("global.css");

/* Header - Estrutura Principal */
.header {
    box-sizing: border-box;
    height: 60px;
    padding: 0 16px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    background-color: #ffffff;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.menu-button img {
    width: 24px;
    height: 24px;
    display: block;
}

.logo img {
    height: 20px;
}

/* Busca */
.search-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
    max-width: 600px;
    height: 40px;
    margin: 0 40px;
}

.search-bar {
    flex: 1;
    height: 100%;
}

.search-bar input {
    width: 100%;
    height: 100%;
    border: 1px solid #CCCCCC;
    border-radius: 40px 0 0 40px;
    padding: 0 16px;
    font-size: 16px;
    outline: none;
    box-sizing: border-box;
}

.search-bar input:focus {
    border-color: #1c62b9;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
}

.search-button {
    width: 64px;
    height: 100%;
    background-color: #F8F8F8;
    border: 1px solid #CCCCCC;
    border-left: none;
    border-radius: 0 40px 40px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.2s;
}

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

/* Header Direita */
.header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.icon-button {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
}

.icon-button:hover {
    background-color: #e5e5e5;
}

.user-profile img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-left: 8px;
}

/* Layout Principal */
.content-wrapper {
    display: flex;
    flex-direction: row;
    padding: 10px 40px;
    gap: 20px;
    max-width: 1700px;
    margin: 0 auto;
}

.video-container {
    flex: 1;
}

.video-player iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    background-color: #000;    
}

.video-main-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: 5px;
    line-height: 2rem;
}

/* Metadados e Ações */
.video-meta-data {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 5px;
    padding-bottom: 12px;
}

.meta-left, .meta-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.channel-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.channel-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #eee;
    background-image: url("../images/channel_profile.jpg");
    background-size: cover;
}

.channel-name-verified {
    display: flex;
    align-items: center;
    gap: 4px;
}

.channel-name-verified h3 {
    font-weight: 600;
    font-size: 16px;
}

.sub-count {
    font-size: 12px;
    color: #606060;
}

.subscribe-button {
    background-color: #0f0f0f;
    color: #ffffff;
    padding: 0 16px;
    height: 36px;
    border-radius: 18px;
    font-weight: 600;
    margin-left: 12px;
}

/* Botões de Ação */
.action-buttons {
    display: flex;
    gap: 8px;
}

.like-dislike-group {
    display: flex;
    background-color: #f2f2f2;
    border-radius: 18px;
    overflow: hidden;
}

.like-button, .dislike-button, .button-action, .button-more {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 5px;

    height: 100%;
    font-size: 14px;
    background-color: #f2f2f3;
    border-radius: 20px;
}

.like-button, .dislike-button, .button-action {
    padding: 5px 15px;
}

.button-more {
    padding: 5px;
}

.like-button {
    border-radius: 18px 0 0 18px;
    border-right: 1px solid #d9d9d9;
}

.dislike-button {
    border-radius: 0 18px 18px 0;
    padding: 0 12px;
}

.like-button:hover, .dislike-button:hover, .button-action:hover, .button-more:hover {
    background-color: #e5e5e5;
}

/* Descrição */
.video-description {
    background-color: #f2f2f2;
    border-radius: 12px;
    padding: 10px;
    margin-top: 12px;
    line-height: 20px;
}

.desc-header {
    font-size: 14px;
    line-height: 2rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.desc-content a {
    color: #367cd8;
}

.desc-content p, .desc-content li {
    font-size: 14px;
    line-height: 1.5rem;
    font-weight: 400;
}

/* Sidebar de Recomendações */
.sidebar-recommendations {
    width: 400px;
    flex-shrink: 0;
}

.recommendation-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.video-link {
    display: flex;
    gap: 8px;
}

.video-thumb {
    width: 168px;
    height: 94px;
    border-radius: 8px;
    object-fit: cover;
}

.video-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.video-title {    
    font-size: 12px;    
    font-weight: 600;
    line-height: 20px;

    /* Limitando a 2 linhas */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.channel-name, .video-stats {
    font-size: 12px;
    color: #606060;
}

/* Utilitário para acessibilidade */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}