.native-comments {
    margin-top: 24px;
    padding: 22px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: linear-gradient(150deg, rgba(16, 17, 22, 0.92), rgba(36, 24, 29, 0.92));
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.native-comments-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.native-comments-title {
    margin: 0;
    color: #ffffff;
    font-size: 24px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.native-comments-count {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #f8d8c2;
    background: rgba(255, 133, 64, 0.22);
}

.native-comments-alert {
    margin-bottom: 14px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
}

.native-comments-alert.is-success {
    color: #d8ffd9;
    background: rgba(35, 131, 61, 0.35);
    border: 1px solid rgba(149, 255, 177, 0.35);
}

.native-comments-alert.is-error {
    color: #ffd9d9;
    background: rgba(164, 48, 48, 0.35);
    border: 1px solid rgba(255, 149, 149, 0.35);
}

.native-comments-guest {
    margin-bottom: 16px;
    padding: 14px;
    border-radius: 10px;
    color: #f5eee9;
    background: rgba(255, 255, 255, 0.06);
}

.native-comments-guest a {
    color: #ff9f57;
    font-weight: 700;
    text-decoration: none;
}

.native-comments-moderation-note {
    margin-bottom: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
    color: #f3e3d4;
    background: rgba(255, 182, 72, 0.14);
    border: 1px solid rgba(255, 182, 72, 0.35);
}

.native-comments-form {
    margin-bottom: 20px;
    padding: 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
}

.native-comments-label {
    display: block;
    margin-bottom: 8px;
    color: #fff2e6;
    font-size: 13px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.native-comments-input {
    width: 100%;
    min-height: 98px;
    margin: 0;
    padding: 12px 14px;
    color: #f5f5f5;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.35);
    resize: vertical;
}

.native-comments .native-comments-input:focus,
.native-comments textarea.native-comments-input:focus {
    border-color: rgba(255, 162, 91, 0.7);
    background: rgba(0, 0, 0, 0.35);
    color: #f5f5f5;
    box-shadow: 0 0 0 1px rgba(255, 162, 91, 0.25);
    outline: none;
}

.native-comments .native-comments-input::placeholder,
.native-comments textarea.native-comments-input::placeholder {
    color: #c8c8c8;
}

.native-comments-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    gap: 12px;
}

.native-comments-meta {
    font-size: 12px;
    letter-spacing: 0.04em;
    color: #e7d2bf;
}

.native-comments-submit {
    min-width: 140px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.native-comments-submit.is-loading {
    opacity: 0.7;
    pointer-events: none;
}

.native-comments-feedback {
    min-height: 18px;
    margin-top: 10px;
    font-size: 13px;
    color: #ffd5b6;
}

.native-comments-feedback.is-error {
    color: #ffb1b1;
}

.native-comments-feedback.is-success {
    color: #b8f5be;
}

.native-comments-list {
    display: grid;
    gap: 12px;
}

.native-comments-empty {
    padding: 16px;
    border-radius: 9px;
    text-align: center;
    color: #e4d9cf;
    background: rgba(255, 255, 255, 0.05);
}

.native-comments-hp {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.native-comment {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 12px;
    padding: 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.native-comment-avatar-wrap {
    width: 48px;
    height: 48px;
}

.native-comment-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 159, 87, 0.65);
}

.native-comment-content {
    min-width: 0;
}

.native-comment-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.native-comment-author {
    color: #fff;
    font-size: 15px;
}

.native-comment-time {
    font-size: 12px;
    color: #cebeb0;
}

.native-comment-delete-form {
    margin: 0 0 0 auto;
}

.native-comment-delete {
    margin: 0;
    padding: 4px 10px;
    font-size: 11px;
    color: #ffd3d3;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid rgba(255, 94, 94, 0.55);
    border-radius: 999px;
    background: rgba(140, 23, 23, 0.35);
    cursor: pointer;
}

.native-comment-delete:hover,
.native-comment-delete:focus {
    background: rgba(172, 28, 28, 0.55);
}

.native-comment-body {
    margin: 10px 0 0;
    color: #f0e7df;
    line-height: 1.5;
    white-space: normal;
    word-wrap: break-word;
}

.inline-video-comment-cta {
    margin-top: 14px;
}

.inline-video-comment-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    border: 1px solid rgba(216, 35, 42, 0.45);
    border-radius: 999px;
    text-decoration: none;
    background: rgba(216, 35, 42, 0.12);
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.inline-video-comment-link:hover,
.inline-video-comment-link:focus {
    background: rgba(216, 35, 42, 0.22);
    border-color: rgba(216, 35, 42, 0.65);
}

.inline-video-comment-count {
    color: #f0e7df;
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.inline-video-comment-action {
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

@media (max-width: 640px) {
    .native-comments {
        padding: 16px;
        margin-top: 20px;
    }

    .native-comments-title {
        font-size: 20px;
    }

    .native-comment {
        grid-template-columns: 40px 1fr;
        padding: 12px;
    }

    .native-comment-avatar-wrap,
    .native-comment-avatar {
        width: 40px;
        height: 40px;
    }

    .native-comments-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .native-comments-submit {
        width: 100%;
    }

    .inline-video-comment-link {
        width: 100%;
        justify-content: center;
    }
}

/* Player fallback: keep self-hosted/native controls full-width. */
#video-player #main-video-player,
#video-player .jwplayer,
#video-player .jw-video,
#video-player .jw-media,
#video-player .jw-media video,
#video-player video {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
}

/* Ensure WebKit native controls keep the seek/timeline control visible. */
#video-player video::-webkit-media-controls-timeline,
#video-player video::-webkit-media-controls-current-time-display,
#video-player video::-webkit-media-controls-time-remaining-display {
    display: block !important;
    visibility: visible !important;
}
