/* Container chính của cụm Like, Dislike và Share */

.interaction-panel {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 12px;
    padding: 16px 20px;
    margin-top: 15px;
    border: 1px solid #0f3460;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.interaction-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}


/* Cụm chứa các nút tương tác Like / Dislike */

.action-buttons-group {
    display: flex;
    align-items: center;
    gap: 10px;
}


/* Base style chung cho nút bấm Like và Dislike */

.btn-action {
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.btn-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.btn-action svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    transition: transform 0.2s;
}

.btn-action:not(.active):hover svg {
    transform: scale(1.15);
}


/* Trạng thái nút bấm */

.btn-like {
    background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
}

.btn-like.active {
    background: linear-gradient(135deg, #ff1493 0%, #ff69b4 100%);
}

.btn-dislike {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
}

.btn-dislike.active {
    background: linear-gradient(135deg, #e53e3e 0%, #b7791f 100%);
}


/* Số đếm hiển thị bên trong nút */

.badge-count {
    background: rgba(0, 0, 0, 0.25);
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 11px;
}


/* Trạng thái text thông báo phía dưới */

.status-info-box {
    text-align: left;
}

.status-text {
    font-size: 12px;
    color: #00d4ff;
    font-weight: bold;
    min-height: 16px;
}

.sub-status-text {
    font-size: 11px;
    color: #888;
    margin-top: 2px;
}


/* Khu vực các nút Share */

.share-buttons-group {
    display: flex;
    gap: 8px;
    align-items: center;
}

.share-label {
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.btn-share {
    color: white;
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.btn-share:hover {
    transform: translateY(-2px) scale(1.05);
}

.btn-share svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
}


/* Màu sắc chuẩn thương hiệu của các nút Share */

.btn-fb {
    background: #1877f2;
}

.btn-fb:hover {
    background: #166fe5;
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.4);
}

.btn-tw {
    background: #111111;
    border: 1px solid #333;
}

.btn-tw:hover {
    background: #222222;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.btn-copy {
    background: #4a5568;
}

.btn-copy:hover {
    background: #718096;
    box-shadow: 0 4px 12px rgba(74, 85, 104, 0.4);
}


/* Favorites button */

.btn-fav {
    color: #94a3b8;
    transition: color .2s, transform .15s;
}

.btn-fav svg {
    fill: currentColor;
    width: 20px;
    height: 20px;
}

.btn-fav.saved {
    color: #f43f5e;
}

.btn-fav:active {
    transform: scale(1.25);
}


/* Playing now badge */

.playing-now-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #94a3b8;
    white-space: nowrap;
    padding: 4px 10px;
    background: rgba(255, 255, 255, .05);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, .08);
}

.playing-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 6px #22c55e;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: .4;
    }
}


/* Comment Section */

.comment-section {
    margin-top: 28px;
}

.comment-section-title {
    font-size: 15px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 7px;
    padding-bottom: 10px;
    border-bottom: 1px solid transparent;
    border-image: linear-gradient(90deg, rgba(99,102,241,0.5) 0%, rgba(0,212,255,0.3) 50%, transparent 100%) 1;
}

.comment-count-badge {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 22px;
}

.comment-form input,
.comment-form textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    padding: 9px 12px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
    resize: vertical;
    box-sizing: border-box;
}

.comment-form input {
    max-width: 220px;
}

.comment-form textarea {
    min-height: 72px;
}

.comment-form input:focus,
.comment-form textarea:focus {
    border-color: rgba(99, 102, 241, 0.6);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.comment-form input::placeholder,
.comment-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.btn-submit-comment {
    align-self: flex-start;
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.35);
}

.btn-submit-comment:hover {
    background: linear-gradient(135deg, #4338ca 0%, #4f46e5 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.5);
}

.btn-submit-comment:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(79, 70, 229, 0.3);
}

.comment-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-height: 620px;
    overflow-y: auto;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
    scrollbar-gutter: stable;
}

.comment-list::-webkit-scrollbar {
    width: 4px;
}

.comment-list::-webkit-scrollbar-track {
    background: transparent;
}

.comment-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

.comment-item {
    display: flex;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid transparent;
    transition: background 0.2s, border-color 0.2s;
    animation: comment-fade-in 0.3s ease both;
}

.comment-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.07);
}

.comment-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.08);
}

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

.comment-meta {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 3px;
    flex-wrap: wrap;
}

.comment-name {
    font-size: 13px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.8);
}

.comment-time {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.3);
}

.comment-text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.5;
    word-break: break-word;
}

.comment-delete {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.2);
    font-size: 11px;
    cursor: pointer;
    padding: 0;
    margin-left: auto;
    transition: color 0.15s;
    flex-shrink: 0;
    line-height: 1;
}

.comment-delete:hover {
    color: rgba(239, 68, 68, 0.7);
}

.comment-empty {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.25);
    padding: 10px 0;
}


/* Reaction buttons */

.comment-reactions {
    display: flex;
    gap: 6px;
    margin-top: 7px;
}

.cmt-react-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
    line-height: 1;
    padding: 4px 10px 4px 8px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    box-sizing: border-box;
    vertical-align: middle;
}

.cmt-react-btn svg {
    width: 13px;
    height: 13px;
    fill: currentColor;
    flex-shrink: 0;
    display: block;
}

.cmt-react-btn span {
    font-size: 12px;
    line-height: 1;
}

.cmt-react-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

.cmt-react-btn.react-liked {
    color: #f472b6;
    border-color: rgba(244, 114, 182, 0.4);
    background: rgba(244, 114, 182, 0.08);
}

.cmt-react-btn.react-disliked {
    color: #f87171;
    border-color: rgba(248, 113, 113, 0.4);
    background: rgba(248, 113, 113, 0.08);
}


/* Fade-in animation for new comments */

@keyframes comment-fade-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}