﻿/* Video section — YouTube-inspired layout */

.video-page-wrapper {
    width: 100%;
}

.video-page-wrapper--list {
    display: block;
}

.video-page-layout {
    display: block;
}

.video-page-main {
    min-width: 0;
}

.video-list-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
    margin-bottom: 18px;
    padding: 12px 14px;
    background: #f8f9fb;
    border: 1px solid #e8eaed;
    border-radius: 10px;
    font-size: 0.9rem;
    color: #444;
}

.video-list-meta__count {
    margin-left: auto;
    color: #606060;
    font-weight: 500;
}

.video-list-meta__clear {
    color: var(--bmw-blue);
    text-decoration: none;
    font-weight: 500;
}

.video-list-meta__clear:hover {
    text-decoration: underline;
}

.video-category-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.video-category-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: #444;
    font-size: 0.92rem;
    transition: background 0.2s ease, color 0.2s ease;
}

.video-category-link.is-child {
    padding-left: 22px;
    font-size: 0.88rem;
}

.video-category-link:hover,
.video-category-link.active {
    background: var(--bmw-blue-light);
    color: var(--bmw-blue-dark);
}

.video-category-count {
    font-size: 0.78rem;
    color: #888;
    background: #f1f3f4;
    padding: 2px 7px;
    border-radius: 10px;
}

.video-category-link.active .video-category-count {
    background: rgba(67, 56, 202, 0.12);
    color: var(--bmw-blue-dark);
}

.video-section__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.video-section__title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 600;
    color: #0f0f0f;
}

.video-section__count {
    font-size: 0.9rem;
    color: #606060;
}

.video-featured-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.video-grid--compact {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px 14px;
}

.video-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e5e5e5;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.video-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.video-card--featured .video-card__thumb {
    aspect-ratio: 16 / 9;
}

.video-card--featured .video-card__body {
    padding: 10px 12px 12px;
    gap: 4px;
}

.video-card--featured .video-card__title {
    font-size: 1rem;
}

.video-card--featured .video-card__meta {
    font-size: 0.78rem;
}

.video-card--featured .video-card__stats {
    font-size: 0.78rem;
}

.video-card--compact {
    flex-direction: column;
    min-height: 0;
}

.video-card--compact .video-card__thumb {
    width: 100%;
    min-width: 0;
    aspect-ratio: 16 / 9;
    min-height: 0;
}

.video-card--compact .video-card__body {
    padding: 8px 10px 10px;
    justify-content: flex-start;
    gap: 3px;
}

.video-card--compact .video-card__title {
    font-size: 0.84rem;
    line-height: 1.3;
    -webkit-line-clamp: 2;
}

.video-card--compact .video-card__meta {
    font-size: 0.72rem;
}

.video-card--compact .video-card__stats {
    gap: 8px;
    font-size: 0.72rem;
    margin-top: 1px;
}

.video-card--compact .video-card__play-badge {
    width: 24px;
    height: 24px;
    font-size: 0.62rem;
}

.video-card__thumb {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    background: #0f0f0f;
    overflow: hidden;
}

.video-card__thumb img,
.video-card__thumb-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-card__thumb-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.4rem;
    background: linear-gradient(135deg, #2b2b2b, #111);
}

.video-card__play-badge {
    position: absolute;
    right: 8px;
    bottom: 8px;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.78);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}

.video-card__body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 12px 12px;
    min-width: 0;
}

.video-card__title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
    color: #0f0f0f;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-card__meta {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    font-size: 0.76rem;
    line-height: 1.25;
    color: #606060;
    white-space: nowrap;
    overflow: hidden;
}

.video-card__category {
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    flex: 1 1 auto;
}

.video-card__meta-sep {
    flex: 0 0 auto;
    color: #aaa;
    font-size: 0.9em;
}

.video-card__date {
    flex: 0 0 auto;
    color: #777;
    white-space: nowrap;
}

.video-card__stats {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
    font-size: 0.76rem;
    color: #606060;
    min-width: 0;
}

.video-card__stat {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    flex: 0 0 auto;
}

.video-card__stat i {
    font-size: 0.85em;
    opacity: 0.85;
}

.video-empty {
    text-align: center;
    padding: 72px 24px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
}

.video-empty i {
    font-size: 3rem;
    color: #ccc;
    margin-bottom: 16px;
}

.video-empty h2 {
    margin: 0 0 8px;
    color: #444;
}

.video-empty p {
    margin: 0;
    color: #777;
}

/* Detail page */

.video-page-wrapper--detail {
    padding-top: 0;
}

.video-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    grid-template-areas:
        "player sidebar"
        "main sidebar";
    gap: 18px 16px;
    align-items: start;
}

.video-detail-player-area {
    grid-area: player;
    width: 100%;
    margin-bottom: 0;
    min-width: 0;
}

.video-detail-main {
    grid-area: main;
    min-width: 0;
}

.video-detail-player-area .video-player-shell {
    aspect-ratio: 16 / 9;
    max-height: min(72vh, 780px);
    border-radius: 14px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.16);
}

.video-detail-sidebar {
    grid-area: sidebar;
    position: sticky;
    top: 88px;
    max-height: calc(100vh - 110px);
    overflow: auto;
    padding-right: 4px;
}

.video-player-shell {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
}

.video-detail-player {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    background: #000;
}

.video-player-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #bbb;
    gap: 8px;
}

.video-detail-info {
    padding: 4px 2px 0;
}

.video-detail-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 10px;
}

.video-detail-header__text {
    flex: 1;
    min-width: 0;
}

.video-detail-title {
    margin: 0;
    min-width: 0;
    font-size: clamp(1.15rem, 2vw, 1.55rem);
    line-height: 1.35;
    color: #0f0f0f;
}

.video-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 14px;
    font-size: 0.9rem;
    color: #606060;
}

.video-detail-meta__item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.video-detail-meta__item--category {
    background: #eef4ff;
    color: #1a56db;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.82rem;
}

.video-detail-description {
    color: #303030;
    line-height: 1.6;
    margin-bottom: 12px;
    white-space: normal;
}

.video-detail-description p {
    margin: 0 0 0.75em;
}

.video-detail-description p:last-child {
    margin-bottom: 0;
}

.video-detail-description ul,
.video-detail-description ol {
    margin: 0 0 0.75em;
    padding-left: 1.4em;
}

.video-detail-description a {
    color: #1a56db;
    text-decoration: underline;
}

.video-detail-description img {
    max-width: 100%;
    height: auto;
}

.video-detail-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: #606060;
    margin-bottom: 16px;
}

.media-detail-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    margin-bottom: 16px;
}

.media-detail-tags__label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #606060;
}

.media-detail-tags__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.media-detail-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border: 1px solid rgba(28, 105, 212, 0.25);
    border-radius: 999px;
    background: rgba(28, 105, 212, 0.06);
    color: #1c69d4;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.media-detail-tag:hover {
    background: rgba(28, 105, 212, 0.12);
    text-decoration: none;
}

.media-detail-tags--plain {
    font-size: 0.88rem;
    color: #606060;
}

.video-detail-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    flex-shrink: 0;
}

.video-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid #d0d0d0;
    background: #f8f8f8;
    color: #0f0f0f;
    font-size: 0.84rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.video-action-btn:hover {
    background: #efefef;
}

.video-action-btn--like.is-liked,
.video-action-btn--like.is-liked:hover {
    background: #ffe8ee;
    border-color: #f5b8c8;
    color: #c2185b;
}

.video-action-btn__count {
    font-variant-numeric: tabular-nums;
}

.video-detail-sidebar__list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.video-detail-sidebar__section + .video-detail-sidebar__section {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #ececec;
}

.video-detail-sidebar__title {
    margin: 0 0 10px;
    font-size: 1.05rem;
    font-weight: 600;
    color: #0f0f0f;
}

.video-detail-now-playing {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 6px 0 0;
    font-size: 0.88rem;
    color: #606060;
}

.video-detail-now-playing i {
    color: #c2185b;
}

.video-detail-playlist__hint {
    margin: 0 0 10px;
    font-size: 0.78rem;
    color: #777;
}

.video-playlist-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 280px;
    overflow-y: auto;
    padding-right: 2px;
}

.video-playlist-item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    background: #fafafa;
    color: #0f0f0f;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.video-playlist-item:hover {
    background: #f0f0f0;
    border-color: #d8d8d8;
}

.video-playlist-item.is-active {
    background: #fff4f7;
    border-color: #f0b8c8;
    box-shadow: 0 0 0 1px rgba(194, 24, 91, 0.08);
}

.video-playlist-item__index {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #ececec;
    color: #444;
    font-size: 0.72rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.video-playlist-item.is-active .video-playlist-item__index {
    background: #c2185b;
    color: #fff;
}

.video-playlist-item__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.video-playlist-item__label {
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-playlist-item__file {
    font-size: 0.7rem;
    color: #888;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.video-playlist-item__icon {
    flex-shrink: 0;
    color: #888;
    font-size: 0.72rem;
}

.video-playlist-item.is-active .video-playlist-item__icon {
    color: #c2185b;
}

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

.video-detail-sidebar__empty {
    margin: 0;
    color: #777;
    font-size: 0.9rem;
}

/* YouTube-style related videos: small thumb left, text right */
.video-detail-sidebar .video-sidebar-item {
    flex-direction: row;
    align-items: flex-start;
    gap: 8px;
    padding: 6px 4px;
    border-radius: 8px;
}

.video-detail-sidebar .video-sidebar-item:hover {
    background: #f2f2f2;
}

.video-detail-sidebar .video-sidebar-item__thumb {
    width: 128px;
    min-width: 128px;
    flex-shrink: 0;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
    background: #111;
}

.video-detail-sidebar .video-sidebar-item__info {
    gap: 4px;
    padding-top: 1px;
}

.video-detail-sidebar .video-sidebar-item__title {
    font-size: 0.84rem;
    font-weight: 600;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    margin: 0;
}

.video-detail-sidebar .video-sidebar-item__channel {
    font-size: 0.76rem;
    color: #606060;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-detail-sidebar .video-sidebar-item__meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    font-size: 0.74rem;
    color: #606060;
    line-height: 1.35;
}

.video-detail-sidebar .video-sidebar-item__stats-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.video-detail-sidebar .video-sidebar-item__stat {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.video-detail-sidebar .video-sidebar-item__stat i {
    font-size: 0.85em;
    opacity: 0.85;
}

.video-detail-sidebar .video-sidebar-item__date {
    display: block;
    font-size: 0.92em;
    color: #777;
}

.video-sidebar-item {
    display: flex;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    padding: 6px;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.video-sidebar-item:hover {
    background: #f2f2f2;
}

.video-sidebar-item__thumb {
    width: 112px;
    min-width: 112px;
    aspect-ratio: 16 / 9;
    border-radius: 6px;
    overflow: hidden;
    background: #111;
}

.video-sidebar-item__thumb img,
.video-sidebar-item__thumb-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-sidebar-item__thumb-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: #333;
}

.video-sidebar-item__info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.video-sidebar-item__title {
    font-size: 0.86rem;
    font-weight: 600;
    line-height: 1.35;
    color: #0f0f0f;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-sidebar-item__meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    font-size: 0.76rem;
    color: #606060;
}

.video-sidebar-item__stats-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.video-sidebar-item__stat {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    line-height: 1.35;
}

.video-sidebar-item__stat i {
    font-size: 0.85em;
    opacity: 0.85;
}

.video-sidebar-item__date {
    display: block;
    font-size: 0.92em;
    color: #777;
    line-height: 1.3;
}

.video-sidebar-item__channel {
    font-size: 0.76rem;
    color: #606060;
    line-height: 1.3;
}

@media (max-width: 1200px) {
    .video-page-layout {
        grid-template-columns: minmax(0, 1fr) 220px;
        gap: 18px;
    }

    .video-featured-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .video-grid--compact {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .video-detail-layout {
        grid-template-columns: minmax(0, 1fr) 280px;
    }

    .video-detail-sidebar .video-sidebar-item__thumb {
        width: 120px;
        min-width: 120px;
    }
}

@media (max-width: 1100px) {
    .video-featured-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .video-grid--compact {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .video-detail-layout {
        grid-template-columns: 1fr;
        grid-template-areas:
            "player"
            "main"
            "sidebar";
    }

    .video-detail-sidebar {
        position: static;
        max-height: none;
    }
}

@media (max-width: 900px) {
    .video-page-layout {
        grid-template-columns: 1fr;
    }

    .video-sidebar {
        position: static;
    }

    .video-sidebar-panel {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .video-grid--compact {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .video-sidebar-panel {
        grid-template-columns: 1fr;
    }

    .video-list-meta__count {
        margin-left: 0;
        width: 100%;
    }

    .video-featured-grid {
        grid-template-columns: 1fr;
    }

    .video-grid--compact {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .video-sidebar-item__thumb {
        width: 128px;
        min-width: 128px;
    }

    .video-detail-header {
        flex-direction: column;
        align-items: stretch;
    }

    .video-detail-actions {
        max-width: none;
        justify-content: flex-start;
    }

    .video-action-btn {
        justify-content: center;
    }

    .video-sidebar-item__thumb {
        width: 96px;
        min-width: 96px;
    }
}

@media (max-width: 480px) {
    .video-grid--compact {
        grid-template-columns: 1fr;
    }
}

/* Video comments */

.video-comments .fb-avatar-img,
.video-comments .fb-avatar-initial {
    display: block;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.video-comments .fb-avatar-initial {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(180deg, #1c69d4 0%, #1558b0 100%);
}

.video-comments {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e8e8e8;
}

.video-comments__title {
    margin: 0 0 14px;
    font-size: 1.05rem;
    font-weight: 600;
    color: #0f0f0f;
}

.video-comment-list {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.video-comment-list:empty {
    display: none;
}

.video-comment-thread {
    list-style: none;
}

.video-comment {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.video-comment-main {
    flex: 1;
    min-width: 0;
}

.video-comment-replies {
    list-style: none;
    margin: 8px 0 0;
    padding: 0 0 0 28px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.video-comment-replies:empty {
    display: none;
}

.video-comment--reply {
    gap: 8px;
}

.video-comment--reply .video-comment-avatar .fb-avatar,
.video-comment--reply .video-comment-avatar .fb-avatar-img,
.video-comment--reply .video-comment-avatar .fb-avatar-initial {
    width: 28px;
    height: 28px;
    font-size: 11px;
}

.video-comment--reply .video-comment-bubble {
    padding: 8px 12px;
    border-radius: 10px;
    background: #eef1f4;
}

.video-comment--reply .video-comment-author {
    font-size: 0.8rem;
}

.video-comment--reply .video-comment-body {
    font-size: 0.84rem;
    line-height: 1.45;
}

.video-comment--reply .video-comment-body img.forum-bbcode-emoji-anim {
    width: 22px;
    height: 22px;
    max-width: 22px;
    max-height: 22px;
}

.video-comment-reply-to {
    margin: 0 0 4px;
    font-size: 0.76rem;
    color: #777;
}

.video-comment-reply-to a {
    color: #1c69d4;
    text-decoration: none;
    font-weight: 600;
}

.video-comment-reply-to a:hover {
    text-decoration: underline;
}

.video-comment-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
    padding-left: 2px;
}

.video-comment-meta time {
    font-size: 0.76rem;
    color: #888;
}

.video-comment-reply-btn {
    border: none;
    background: transparent;
    padding: 0;
    font: inherit;
    font-size: 0.76rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
}

.video-comment-reply-btn:hover {
    color: #1c69d4;
}

.video-comment-delete {
    flex-shrink: 0;
    margin-left: auto;
}

.video-comment-reply-box {
    margin: 10px 0 0 38px;
}

.video-comment-compose--reply .fb-avatar,
.video-comment-compose--reply .fb-avatar-img,
.video-comment-compose--reply .fb-avatar-initial {
    width: 28px;
    height: 28px;
    font-size: 11px;
}

.video-comment-reply-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.video-comment-reply-cancel {
    padding: 7px 14px;
    border: 1px solid #d0d0d0;
    border-radius: 999px;
    background: #fff;
    color: #555;
    font: inherit;
    font-size: 0.84rem;
    cursor: pointer;
}

.video-comment-reply-cancel:hover {
    background: #f4f6f8;
}

.video-comment-submit--reply {
    padding: 7px 16px;
    font-size: 0.84rem;
}

.video-comment-avatar {
    flex-shrink: 0;
    text-decoration: none;
    display: block;
    line-height: 0;
}

.video-comment-bubble {
    flex: 1;
    min-width: 0;
    background: #f4f6f8;
    border-radius: 12px;
    padding: 10px 14px;
}

.video-comment-author {
    display: inline-block;
    margin-bottom: 4px;
    font-size: 0.88rem;
    font-weight: 700;
    color: #1c69d4;
    text-decoration: none;
}

.video-comment-author:hover {
    text-decoration: underline;
}

.video-comment-body {
    font-size: 0.92rem;
    line-height: 1.5;
    color: #262626;
    word-break: break-word;
}

.video-comment-body .forum-bbcode-u {
    text-decoration: underline;
}

.video-comment-body img.forum-bbcode-emoji-anim {
    display: inline-block;
    width: 28px;
    height: 28px;
    max-width: 28px;
    max-height: 28px;
    vertical-align: middle;
    margin: 0 2px;
}

.video-comment-input-wrap {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    overflow: visible;
    z-index: 1;
}

.video-comment-form,
.video-comment-reply-box,
.video-comment-compose {
    overflow: visible;
}

.video-comments .video-comment-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}

.video-comments .forum-bbcode-btn {
    min-width: 30px;
    padding: 4px 8px;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    background: #f4f6f8;
    color: #333;
    font-size: 12px;
    font-family: inherit;
    cursor: pointer;
    line-height: 1.2;
    pointer-events: auto;
}

.video-comments .forum-bbcode-btn:hover {
    background: #e8eef4;
    border-color: #1c69d4;
}

.video-comments .forum-bbcode-btn--emoji {
    font-size: 16px;
    padding: 2px 8px;
}

.video-comments .forum-bbcode-emoji-wrap {
    position: relative;
    z-index: 2;
}

.video-comments .forum-bbcode-emoji-wrap.is-open {
    z-index: 60;
}

.video-comments .forum-bbcode-emoji-panel {
    position: absolute;
    left: 0;
    top: calc(100% + 6px);
    z-index: 70;
    width: 248px;
    padding: 8px;
    background: #fff;
    border: 1px solid #d0d0d0;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.video-comments .forum-bbcode-emoji-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 8px;
}

.video-comments .forum-bbcode-emoji-tab {
    flex: 1;
    padding: 5px 6px;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    background: #f4f6f8;
    font-size: 11px;
    font-family: inherit;
    cursor: pointer;
}

.video-comments .forum-bbcode-emoji-tab.is-active {
    background: #e8f0fa;
    border-color: #1c69d4;
    font-weight: 600;
}

.video-comments .forum-bbcode-emoji-pane {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 2px;
}

.video-comments .forum-bbcode-emoji-panel:not([hidden]) {
    display: block;
}

.video-comments .forum-bbcode-emoji-pane:not([hidden]) {
    display: grid;
}

.video-comments .forum-bbcode-emoji-pane[hidden],
.video-comments .forum-bbcode-emoji-panel[hidden] {
    display: none !important;
}

.video-comments .forum-bbcode-emoji-item {
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    font-size: 17px;
    line-height: 1;
    cursor: pointer;
}

.video-comments .forum-bbcode-emoji-item:hover {
    background: #f0f4f8;
    border-color: #d0d0d0;
}

.video-comments .forum-bbcode-emoji-item--anim img {
    display: block;
    width: 24px;
    height: 24px;
    margin: 0 auto;
}

.video-comment-bubble time {
    display: none;
}

.video-comment-delete-btn {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #888;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
}

.video-comment-delete-btn:hover {
    background: #ffe8ee;
    color: #c2185b;
}

.video-comment-form {
    margin-top: 4px;
}

.video-comment-compose {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.video-comment-compose .fb-avatar {
    flex-shrink: 0;
    margin-top: 6px;
}

.video-comment-compose textarea {
    width: 100%;
    min-height: 72px;
    padding: 10px 12px;
    border: 1px solid #d0d0d0;
    border-radius: 10px;
    font: inherit;
    font-size: 0.92rem;
    line-height: 1.45;
    resize: vertical;
}

.video-comment-compose textarea:focus {
    outline: none;
    border-color: #1c69d4;
    box-shadow: 0 0 0 2px rgba(28, 105, 212, 0.15);
}

.video-comment-submit {
    align-self: flex-end;
    padding: 8px 18px;
    border: none;
    border-radius: 999px;
    background: #1c69d4;
    color: #fff;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
}

.video-comment-submit:hover {
    background: #1558b0;
}

.video-comment-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.video-comment-form-error {
    margin: 8px 0 0;
    font-size: 0.85rem;
    color: #c62828;
}

.video-comment-login {
    margin: 0;
    padding: 12px 14px;
    background: #f4f6f8;
    border-radius: 10px;
    font-size: 0.92rem;
    color: #505050;
}

.video-comment-login a {
    color: #1c69d4;
    font-weight: 600;
    text-decoration: none;
}

.video-comment-login a:hover {
    text-decoration: underline;
}
