#cardmatch {
    width: 90%;
    background: #fff;
    margin: auto;
    border-radius: 8px;
}

#headercard {
    margin-top: 8px;
    position: relative;
    width: 100%;
    height: 200px;
    background-image: url(images/cardbackground.webp);
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    overflow: hidden;
}

#headercard .overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 20px;
    z-index: 1;
}

#headercard h1 {
    position: relative;
    z-index: 2;
    display: block;
}

#matchinfo {
    max-width: 1000px;
    margin: auto;
    background-color: #fff;
    padding: 4px;
}

#video {
    margin-top: 12px;
    background: #34303d;
    width: 100%;
    border-radius: 8px;
    padding: 8px;
}

/* تصميم أزرار المشاركة */
.social-share {
    display: flex;
    gap: 4px;
    margin-bottom: 7px;
    background: #f3eeff;
    padding: 7px;
    border-radius: 6px;
    margin-top: 15px;
    justify-content: center;
}

.social-button {
    display: flex;
    align-items: center;
    padding: 6px 97px;
    background-color: #8c52ff;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    transition: background-color 0.3s ease;
    justify-content: center;
}

.social-button:hover {
    background-color: #714cbd;
}

.social-button i {
    margin-right: 8px;
}

/* تخصيص الأزرار حسب الشبكة الاجتماعية */
.facebook { background-color: #3b5998; }
.twitter { background-color: #00acee; }
.whatsapp { background-color: #25D366; }
.telegram { background-color: #0088cc; }

@media screen and (max-width: 1120px) {
    .social-button { padding: 6px 60px; }
}

@media screen and (max-width: 800px) {
    .social-button { padding: 6px 20px; }
}

@media screen and (max-width: 450px) {
    .social-button { padding: 6px 10px; }
    #headercard h1 { font-size: 16px; }
}

iframe {
    width: 100%;
    height: 500px;
    border: none;
    margin-bottom: 20px;
}

/* 🔥 تعديل أزرار السيرفرات لتكون على شكل slide مع بقاء الشريط */
.server-buttons {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    white-space: nowrap;
    scroll-behavior: smooth;
    padding: 10px;
    justify-content: flex-start;
    background: #f7f7ff;
    border-radius: 8px;
}

.server-buttons button {
    flex: 0 0 auto;
    padding: 10px 25px;
    background-color: #8c52ff;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.server-buttons button:hover {
    background-color: #615285;
}

/* تحسين شكل شريط التمرير */
.server-buttons::-webkit-scrollbar {
    height: 8px;
}

.server-buttons::-webkit-scrollbar-track {
    background: #ddd;
    border-radius: 10px;
}

.server-buttons::-webkit-scrollbar-thumb {
    background: #8c52ff;
    border-radius: 10px;
}

.server-buttons::-webkit-scrollbar-thumb:hover {
    background: #714cbd;
}
