/* Container chính */
.friend-play-container {
    background-image: url('/images/giftcode/giftcode.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE và Edge */
}

.friend-play-container::-webkit-scrollbar {
    display: none;
}

/* Thông tin bạn bè */
.friend-play-info {
    color: #fff;
}

/* Mỗi mục bạn bè */
.friend-item {
    margin: 20px;
    border-radius: 5px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.2),
        inset 0 0 10px rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    outline: 1px solid rgba(255, 255, 255, 0.8);
}

/* Avatar bạn bè */
.friend-item-avatar {
    width: 70px;
    height: 70px;
}

/* Khu vực thông tin bạn bè */
.friend-play {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1; /* Chiếm không gian còn lại nhưng không vượt quá */
    min-width: 0; /* Cho phép thu nhỏ để tránh tràn */
}

/* Div chứa tên và hoạt động */
.friend-info {
    display: flex;
    flex-direction: column;
    max-width: calc(100% - 80px); /* Giới hạn chiều rộng: trừ avatar (70px) và gap (10px) */
    min-width: 0; /* Cho phép thu nhỏ */
}

/* Tên người dùng */
.user-name {
    font-weight: 600;
    white-space: nowrap; /* Ngăn xuống dòng */
    overflow: hidden; /* Ẩn phần văn bản vượt quá */
    text-overflow: ellipsis; /* Thêm dấu ... */
}

/* Tên hoạt động */
.activity-name {
    font-size: 0.8rem;
}

/* Khu vực nút bấm */
.friend-button {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px;
    flex-shrink: 0; /* Ngăn friend-button bị co lại */
}

/* Nút nhắn tin */
.friend-button-mess {
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.2),
        inset 0 0 10px rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    outline: 1px solid rgba(255, 255, 255, 0.8);
    font-size: 20px;
    height: 42px;
    width: 42px;
}

/* Nút chơi */
.play-button {
    background: #fd7e1461;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    border: 1px solid rgba(253, 126, 20, 0.6);
    outline: 1px solid rgba(253, 126, 20, 0.8);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.play-button img {
    width: 40px;
    height: 40px;
}

/* Đường kẻ phân cách */
.line {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0) 15%, rgba(174, 144, 59, 0.8), rgba(0, 0, 0, 0) 85%) no-repeat;
    background-size: 100% 100%;
}