Html, body, h1 { padding: 0; margin: 0; }
* { -webkit-tap-highlight-color: transparent; outline: none !important; box-sizing: border-box; 
    margin: 0;
    padding: 0;
    scroll-behavior:smooth;
}

/* تصميم الويدجت الذي يظهر في الشاشة الرئيسية */
.home-widget {
    width: 90%;
    height: 150px;
    margin: 20px auto;
    border-radius: 25px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-around;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    border: 2px solid rgba(255,255,255,0.1);
    transition: background-image 0.5s ease-in-out;
}

.home-widget::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.4); /* تعتيم الخلفية لتوضيح الأزرار */
}

.widget-info { z-index: 2; color: white; text-align: right; }
.widget-controls { z-index: 2; display: flex; gap: 20px; }
.widget-controls button {
    background: white; color: black; border: none;
    width: 40px; height: 40px; border-radius: 50%;
    font-size: 18px; cursor: pointer;
}

body {
    background: linear-gradient(to bottom, #0f0f0f, #1a1a1a);
    min-height: 100vh;
    font-family: 'Playfair Display', serif;
}

h1 {
    color: #ffffff;
    /* أحمر داكن عميق */
    background-color: #8b0000;
    margin: 20px auto 0;
    box-shadow: 0 10px 25px rgba(139, 0, 0, 0.4);
    display: table;
    padding: 10px 20px;
    border-radius: 5px;
}
.slider-frame {
    width: 90%;
    margin: 20px auto;
    padding: 10px;
    background: #151515;
    border: 3px solid #333333;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}

.slider {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    cursor: grab;
    border-radius: 10px;
    scrollbar-width: none;
}

.slider::-webkit-scrollbar { display: none; }

.slide-track {
    display: flex;
    width: max-content;
}

.slide-track img {
    width: 200px;
    height: 250px;
    object-fit: cover;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
}

h3 {
    color: #ffffff;
    background-color: rgba(139, 0, 0, 0.8);
    margin: 0 auto;
    display: table;
    padding: 10px 20px;
    border-radius: 5px;
}

#hr-first { border: 1.2px solid #333; margin: 20px 0; }
p { color: #cccccc; margin-left: 20px; font-size: 1.1rem; }
a { color: #8b0000; text-decoration: none; font-weight: bold; }
strong { font-weight: bold; color: #ff0000; padding: 0 5px; text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5); }

.main-img { display: block; margin: 20px auto; width: 50%; box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7); border-radius: 15px; }
.music-app {
    background: rgba(20, 20, 20, 0.95);
    width: 320px;
    border-radius: 35px;
    padding: 20px;
    margin: 30px auto;
    border: 3px solid #333;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    text-align: center;
}

.album-frame { width: 130px; height: 130px; margin: 0 auto 15px; background: #252525; border-radius: 20px; padding: 5px; }
.album-img { width: 100%; height: 100%; border-radius: 15px; background-size: cover; background-position: center; }
.song-meta h2 { color: #ffffff; font-size: 18px; margin: 0; }
.song-meta p { color: #888888; font-size: 13px; margin: 5px 0 15px; }
.progress-area input { width: 100%; accent-color: #8b0000; cursor: pointer; }
.time { display: flex; justify-content: space-between; color: #888888; font-size: 11px; }
.main-controls { display: flex; justify-content: space-around; align-items: center; margin: 15px 0; }
.play-btn { width: 50px; height: 50px; border-radius: 50%; background: #8b0000; color: white; border: none; cursor: pointer; font-size: 18px; }
.sub-btn { background: none; border: none; color: #ffffff; font-size: 16px; cursor: pointer; }
.volume-box { display: flex; align-items: center; gap: 8px; background: #252525; padding: 5px 15px; border-radius: 20px; margin-bottom: 15px; }
.volume-box input { flex: 1; accent-color: #8b0000; }
.extra-actions { display: flex; justify-content: space-around; }
.action-pill { background: #333; border: none; padding: 8px 18px; border-radius: 20px; color: #ffffff; font-weight: bold; cursor: pointer; }
.circle-action { width: 40px; height: 40px; border-radius: 50%; background: #333; display: flex; justify-content: center; align-items: center; color: #ffffff; text-decoration: none; border: none; cursor: pointer; }

.custom-modal { display: none; position: fixed; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,0.8); z-index:9999; align-items:center; justify-content:center; backdrop-filter: blur(4px); }
.modal-content { background:#1a1a1a; padding:25px; border-radius:25px; width:280px; text-align:center; border: 3px solid #8b0000; color: white; }
.modal-content input, .modal-content textarea { background: #252525; color: white; width: 90%; margin: 8px 0; padding: 10px; border: 1px solid #333; border-radius: 10px; }
.modal-btns button { padding: 10px 20px; border-radius: 12px; border: none; cursor: pointer; font-weight: bold; margin-top: 10px; }
.modal-btns button:first-child { background: #8b0000; color: white; }

.share-options { display: flex; justify-content: center; gap: 15px; margin: 20px 0; }
.share-options button { width: 45px; height: 45px; border-radius: 50%; border: none; color: white; cursor: pointer; font-size: 20px; }
.share-options button:nth-child(1) { background: #25D366; }
.share-options button:nth-child(2) { background: #1877F2; }
.share-options button:nth-child(3) { background: #000; }
.share-options button:nth-child(4) { background: #8b0000; }
.close-share { background: none; border: 1px solid #8b0000; color: #8b0000; padding: 5px 15px; border-radius: 10px; cursor: pointer; }


#acc { background: linear-gradient(45deg, #1a1a1a, #333); border: 1px solid #8b0000; padding: 20px 30px; border-radius: 12px; display: table; margin: 20px auto; transition: 0.3s; cursor: pointer; }
#acc:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(139, 0, 0, 0.4); }
.social-menu { list-style: none; padding: 0; width: 150px; margin: 0 auto; }
.social-menu li { margin-bottom: 7px; }
.social-menu a { display: flex; align-items: center; text-decoration: none; padding: 10px 15px; color: #ffffff; border-radius: 8px; font-weight: bold; transition: 0.3s; }
.social-menu i { font-size: 22px; margin-right: 15px; width: 25px; text-align: center; }

.social-menu a.instagram:hover { background-color: #E1306C; color: white; }
.social-menu a.tiktok:hover { background-color: #000; color:#ffffff; border: 1px solid #fff; }
.social-menu a.spotify:hover { background-color: #1DB954; color: white;
}
