.video-hero {
    overflow: hidden;
}

.video-hero-copy {
    max-width: 760px;
}

.video-stat-stack {
    display: grid;
    gap: 1rem;
    min-width: min(100%, 320px);
}

.video-stat-stack .stats-card {
    min-height: 132px;
}

.video-filter-bar {
    padding: 1rem;
    border: 1px solid rgba(24, 33, 47, 0.1);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.75);
}

.video-card {
    overflow: hidden;
    border: 1px solid rgba(24, 33, 47, 0.1);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 16px 42px rgba(24, 33, 47, 0.08);
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.video-card:hover {
    transform: translateY(-3px);
    border-color: rgba(31, 111, 235, 0.22);
    box-shadow: 0 20px 52px rgba(24, 33, 47, 0.12);
}

.video-card-thumb {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #111827;
}

.video-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 220ms ease, filter 220ms ease;
}

.video-card:hover .video-card-thumb img {
    transform: scale(1.03);
    filter: saturate(1.05);
}

.video-card-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 15, 25, 0.08), rgba(10, 15, 25, 0.56));
}

.video-card-play,
.video-card-source {
    position: absolute;
    z-index: 1;
}

.video-card-play {
    left: 1rem;
    bottom: 1rem;
    width: 3rem;
    height: 3rem;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #0f172a;
    font-size: 1.1rem;
    font-weight: 800;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.18);
}

.video-card-source {
    top: 1rem;
    left: 1rem;
}

.video-card-body {
    padding: 1rem 1.1rem 1.2rem;
}

.video-card-body .h5 a {
    color: var(--ink);
}

.video-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(320px, 0.95fr);
    gap: 1.25rem;
    align-items: start;
}

.video-main-panel,
.video-side-panel,
.video-preview-card,
.empty-state {
    border: 1px solid rgba(24, 33, 47, 0.1);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 18px 52px rgba(24, 33, 47, 0.08);
}

.video-player-shell {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 24px;
    background: #0f172a;
}

.video-element,
.video-preview-player {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
    background: #0f172a;
}

.video-preview-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 20px;
}

.video-share-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.video-share-row .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    border-radius: 14px;
    min-height: 44px;
}

.video-share-facebook {
    background: linear-gradient(135deg, #1877f2, #1358b7);
    border-color: #1877f2;
    box-shadow: 0 10px 24px rgba(24, 119, 242, 0.2);
}

.video-share-facebook:hover {
    background: linear-gradient(135deg, #166fe5, #124fa5);
    border-color: #166fe5;
}

.video-share-icon,
.video-favorite-icon {
    width: 1rem;
    height: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.video-share-icon svg,
.video-favorite-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.video-favorite-btn {
    min-width: 180px;
    font-weight: 600;
}

.video-favorite-btn.is-favorited {
    box-shadow: 0 10px 24px rgba(220, 53, 69, 0.16);
}

.video-related-list {
    display: grid;
    gap: 0.9rem;
}

.video-related-item {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 0.9rem;
    align-items: center;
    padding: 0.75rem;
    border: 1px solid rgba(24, 33, 47, 0.08);
    border-radius: 20px;
    color: inherit;
    text-decoration: none;
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.video-related-item:hover {
    transform: translateY(-2px);
    border-color: rgba(31, 111, 235, 0.22);
    box-shadow: 0 14px 34px rgba(24, 33, 47, 0.08);
}

.video-related-item img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 14px;
    background: #111827;
}

.video-related-title {
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 0.25rem;
}

.video-related-meta {
    font-size: 0.88rem;
    color: var(--muted);
}

.video-preview-card {
    padding: 1rem;
}

.video-comment-panel {
    margin-top: 1.5rem;
}

.video-comments-header {
    display: flex;
    align-items: center;
}

.video-comments-count {
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 500;
}

.video-comments-sort {
    color: var(--ink);
    text-decoration: none;
    font-weight: 600;
}

.video-comments-sort-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.35rem;
    width: 1.4rem;
    height: 1.4rem;
    border-radius: 50%;
    background: rgba(24, 33, 47, 0.08);
    font-size: 0.8rem;
}

.video-comment-composer {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
    padding: 1rem 1rem 0.5rem;
    border-bottom: 1px solid rgba(24, 33, 47, 0.08);
}

.video-comment-avatar {
    width: 2.8rem;
    height: 2.8rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    font-weight: 800;
    letter-spacing: -0.03em;
    object-fit: cover;
    overflow: hidden;
}

.video-comment-avatar--guest {
    background: linear-gradient(135deg, #7c3aed, #1d4ed8);
}

.video-comment-avatar--image {
    display: block;
    background: #e2e8f0;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.video-comment-form {
    min-width: 0;
}

.video-comment-input {
    border-radius: 0;
    border: 0;
    border-bottom: 1px solid rgba(24, 33, 47, 0.16);
    padding-left: 0;
    padding-right: 0;
    resize: vertical;
    box-shadow: none;
    background: transparent;
}

.video-comment-input:focus {
    box-shadow: none;
    border-bottom-color: var(--brand);
}

.video-comment-login {
    padding: 0.6rem 0 1rem;
}

.comment-item-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.95rem;
    align-items: start;
}

.comment-avatar {
    width: 2.6rem;
    height: 2.6rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 800;
    flex: 0 0 auto;
    object-fit: cover;
    overflow: hidden;
}

.comment-avatar--image {
    background: #e2e8f0;
    width: 2.6rem;
    height: 2.6rem;
    display: block;
    padding: 0;
    border: 1px solid rgba(15, 23, 42, 0.08);
    object-fit: cover;
}

.comment-body {
    min-width: 0;
}

.comment-author {
    font-size: 0.98rem;
}

.comment-time {
    color: var(--muted);
    font-size: 0.82rem;
}

.comment-text {
    white-space: pre-wrap;
}

.comment-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    align-items: center;
}

.comment-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1;
    transition: color 160ms ease, opacity 160ms ease, transform 160ms ease;
}

.comment-action-btn:hover {
    color: var(--ink);
    transform: translateY(-1px);
}

.comment-action-btn:disabled {
    opacity: 0.55;
    cursor: wait;
    transform: none;
}

.comment-action-btn--vote.is-active {
    color: #1d4ed8;
}

.comment-action-btn--reply {
    color: var(--ink);
}

.comment-action-btn--reply:hover {
    color: #1d4ed8;
}

.comment-action-btn--report {
    margin-left: auto;
    font-size: 0.88rem;
}

.comment-action-icon {
    display: inline-flex;
    width: 1rem;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}

.comment-action-count {
    min-width: 0.9rem;
}

.comment-replies {
    display: grid;
    gap: 0.75rem;
}

.comment-reply-badge {
    display: inline-flex;
    margin-left: 0.4rem;
    padding: 0.18rem 0.45rem;
    border-radius: 999px;
    background: rgba(24, 33, 47, 0.06);
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

.video-preview-label {
    margin-bottom: 0.75rem;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #1d4ed8;
}

.video-manager-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.summary-card {
    padding: 1rem 1.1rem;
    border: 1px solid rgba(24, 33, 47, 0.08);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.78);
}

.empty-state {
    padding: 2rem;
    text-align: center;
}

.empty-state--compact {
    padding: 1rem;
}

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

@media (max-width: 767.98px) {
    .video-manager-summary {
        grid-template-columns: 1fr;
    }

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

    .video-comment-composer,
    .comment-item-row {
        grid-template-columns: 1fr;
    }

    .video-comment-avatar {
        width: 2.4rem;
        height: 2.4rem;
    }
}
