/* ===== Video Page — YouTube-style layout ===== */
.vp-player {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    background: #000;
    margin-bottom: 0;
}
.vp-player iframe,
.vp-player object,
.vp-player embed {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border-radius: 12px;
}

.vp-info {
    padding: 12px 0;
}

.vp-title {
    font-size: 20px;
    font-weight: 700;
    color: #0f0f0f;
    margin: 0 0 12px;
    line-height: 1.3;
}

.vp-actions-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

/* Author */
.vp-author {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.vp-author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.vp-author-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.vp-author-name {
    font-size: 15px;
    font-weight: 600;
    color: #0f0f0f;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.vp-author-name:hover {
    color: #065fd4;
}
.vp-date {
    font-size: 12px;
    color: #606060;
}

/* Controls: like/dislike + share */
.vp-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* Vote buttons — YouTube pill style */
.vp-vote-group {
    display: flex;
    align-items: center;
    background: #f2f2f2;
    border-radius: 18px;
    overflow: hidden;
}
.vp-vote-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: #0f0f0f;
    transition: background 0.15s;
    white-space: nowrap;
    line-height: 1;
}
.vp-vote-btn svg {
    flex-shrink: 0;
    width: 1em;
    height: 1em;
}
.vp-vote-btn:hover {
    background: rgba(0,0,0,0.08);
}
.vp-vote-btn:focus-visible {
    outline: 2px solid #1a6fc4;
    outline-offset: 2px;
}
.vp-vote-btn.active.vp-like {
    color: #065fd4;
}
.vp-vote-btn.active.vp-dislike {
    color: #065fd4;
}
.vp-vote-count {
    font-size: 13px;
    font-weight: 600;
    min-width: 12px;
    text-align: center;
}
/* Separator between like/dislike */
.vp-vote-group .vp-dislike {
    border-left: 1px solid rgba(0,0,0,0.1);
}
/* Dislike: icon only, no count */
.vp-dislike .vp-vote-count {
    display: none;
}

/* Views */
.vp-views {
    font-size: 13px;
    color: #606060;
    margin: 12px 0;
    font-weight: 500;
}

/* Description */
.vp-description {
    font-size: 14px;
    color: #0f0f0f;
    line-height: 1.5;
    background: #f2f2f2;
    border-radius: 12px;
    padding: 12px 16px;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Share widget alignment */
.vp-share-wrap .share-widget {
    vertical-align: middle;
}
.vp-share-wrap .share-btn-trigger {
    background: #f2f2f2;
    border-radius: 18px;
    padding: 8px 14px;
    font-weight: 600;
}

/* Edit button — same pill style as share */
.vp-edit-btn {
    display: inline-flex;
    align-items: center;
    background: #f2f2f2;
    border-radius: 18px;
    padding: 8px 14px;
    color: #0f0f0f;
    text-decoration: none;
    transition: background 0.15s;
}
.vp-edit-btn:hover {
    background: rgba(0,0,0,0.08);
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
    .vp-player {
        border-radius: 0;
        margin: 0 -16px;
        width: calc(100% + 32px);
    }
    .vp-player iframe,
    .vp-player object,
    .vp-player embed {
        border-radius: 0;
    }
    .vp-title {
        font-size: 16px;
    }
    .vp-actions-bar {
        flex-direction: column;
        align-items: flex-start;
    }
    .vp-controls {
        width: 100%;
        justify-content: flex-start;
    }
    .vp-vote-btn {
        padding: 8px 12px;
    }
    .vp-description {
        border-radius: 8px;
    }
}

/* ===== Comments (video-specific overrides) ===== */
.panel-coment-form {
    margin-bottom: 20px;
}
.panel-coment-textarea {
    width: 100%;
    min-height: 80px;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 14px;
    resize: vertical;
    font-family: inherit;
}
.panel-coment-submit {
    margin-top: 8px;
}
.panel-coments-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.panel-coment-item {
    display: flex;
    gap: 12px;
}
.panel-coment-user {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}
.panel-coment-avatar-link {
    display: block;
}
.panel-coment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}
.panel-coment-username {
    font-size: 11px;
    font-weight: 600;
    color: #0f0f0f;
    text-decoration: none;
    text-align: center;
    max-width: 64px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.panel-coment-username:hover {
    color: #065fd4;
}
.panel-coment-body {
    flex: 1;
    min-width: 0;
    background: #f2f2f2;
    border-radius: 0 12px 12px 12px;
    padding: 8px 12px;
    font-size: 14px;
    line-height: 1.4;
    color: #0f0f0f;
    word-wrap: break-word;
}
.panel-coment-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}
.panel-coment-date {
    font-size: 12px;
    color: #606060;
}
.panel-coment-delete {
    color: #999;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    padding: 2px;
    border-radius: 4px;
}
.panel-coment-delete:hover {
    color: #c00;
    background: rgba(0,0,0,0.05);
}
.panel-coment-delete svg {
    width: 14px;
    height: 14px;
}
