:root {
    --primary-color: #0a192f;
    --secondary-color: #1a9cff;
    --text-color: #ffffff;
    --card-bg: #172a45;
    --light-bg: #f0f2f5;
    --dark-text: #333;
    --font-arabic: 'Cairo', sans-serif;
    --font-english: 'Montserrat', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-arabic);
    background-color: var(--primary-color);
    color: var(--text-color);
    overflow-x: hidden;
}

.container { width: 90%; max-width: 1200px; margin: 0 auto; }

/* Header */
header {
    position: sticky; top: 0; width: 100%;
    padding: 15px 0;
    background-color: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1000;
}
nav { display: flex; justify-content: space-between; align-items: center; width: 90%; margin: 0 auto; }
.logo {
    font-family: var(--font-english);
    font-size: 1.8rem; font-weight: 700;
    color: var(--text-color);
    text-decoration: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.logo:hover, .logo:focus { opacity: 0.9; transform: scale(1.05); }
.logo span { color: var(--secondary-color); }

.btn-nav-download {
    color: var(--text-color);
    background-color: var(--secondary-color);
    padding: 8px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
}
.btn-nav-download:hover {
    background-color: #1288e3;
    transform: translateY(-2px);
}

/* Hero Section */
.hero { padding: 80px 0 40px; text-align: center; }
.hero h1 { font-size: 3rem; font-weight: 800; margin-bottom: 1rem; }
.hero .en-title { font-family: var(--font-english); font-size: 3.5rem; color: var(--secondary-color); }
.hero p { font-size: 1.2rem; max-width: 600px; margin: 0 auto 40px auto; line-height: 1.7; }

/* Infinite Scroller Styles */
.leagues-section { padding: 50px 0; text-align: center; }
.leagues-section .leagues-logo { max-width: 220px; margin-bottom: 40px; }
.leagues-section.dark-bg { background-color: var(--card-bg); }
.scroller {
    overflow: hidden;
    -webkit-mask: linear-gradient(90deg, transparent, white 20%, white 80%, transparent);
    mask: linear-gradient(90deg, transparent, white 20%, white 80%, transparent);
}
.scroller-inner { display: flex; width: fit-content; animation: scroll 60s linear infinite; }
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}
.logo-list { display: flex; align-items: center; gap: 50px; padding: 0 25px; }
.logo-list img { height: 65px; width: auto; max-width: 140px; }
#ssc-logo { max-width: 200px; }
#thmanyah-logo { max-width: 80px; }
.dark-bg .logo-list img { filter: brightness(0) invert(1); }
#bein-section .logo-list img { filter: none; }

/* Generic Content Sections */
.section { padding: 80px 0; }
.section-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}
.section-content h2 { font-size: 2.5rem; font-weight: 700; margin-bottom: 20px; line-height: 1.3; }
.section-content h2 span { color: var(--secondary-color); }
.section-content p { font-size: 1.1rem; line-height: 1.8; margin-bottom: 20px; opacity: 0.9; }
.content-image img { max-width: 100%; height: auto; border-radius: 10px; }

/* Player Action Section */
.player-section { background-color: var(--card-bg); text-align: center; }
.player-image img { max-width: 100%; width: 350px; margin: 0 auto; }

/* App Discovery Section */
.app-discovery-section {
    padding: 80px 0; background-color: var(--light-bg);
    color: var(--dark-text); text-align: center; overflow: hidden;
}
.app-discovery-section h2 { font-size: 2.8rem; font-weight: 800; margin-bottom: 15px; }
.app-discovery-section .main-p { font-size: 1.1rem; max-width: 600px; margin: 0 auto 40px auto; line-height: 1.8; }
.downloader-code {
    margin: 40px auto; padding: 15px 30px; background: #fff;
    border-radius: 10px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); display: inline-block;
}
.downloader-code span { display: block; font-size: 1rem; color: #555; margin-bottom: 5px; }
.downloader-code strong { font-family: var(--font-english); font-size: 2.5rem; color: var(--secondary-color); letter-spacing: 2px; }

.downloader-code strong.code-text {
    font-size: 2rem;
    letter-spacing: normal;
    font-family: var(--font-arabic);
}

.phones-container {
    position: relative; margin-top: 50px; display: flex;
    justify-content: center; align-items: center; height: 500px;
}
.phones-container::before {
    content: ''; position: absolute; width: 500px; height: 500px;
    background: var(--secondary-color); border-radius: 50%; z-index: 1; opacity: 0.9;
}
.phones-img { position: relative; z-index: 2; max-width: 100%; width: 500px; }

/* Download App Section */
.download-section { padding: 80px 0; text-align: center; background-color: var(--primary-color); }
.download-content { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.app-icon { width: 150px; height: 150px; border-radius: 25px; box-shadow: 0 10px 30px rgba(0,0,0,0.3); }

/* App Rating Style */
.app-rating {
    text-align: center;
    margin-bottom: 10px;
}
.app-rating .stars {
    color: #f1c40f;
    font-size: 1.5rem;
    margin-bottom: 8px;
}
.app-rating .rating-text {
    font-size: 0.9rem;
    color: #bdc3c7;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 25px;
    background-color: var(--secondary-color);
    color: var(--text-color);
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 350px;
}
.btn-download:hover { background-color: #1288e3; transform: translateY(-3px); }
.btn-download.secondary { background-color: var(--card-bg); }
.btn-download.secondary:hover { background-color: #2a3f5a; }

/* كود التنسيق الجديد لزر متجر بلاي */
.btn-download.play-store {
    background-color: #f5f5f5; /* Light gray background */
    color: #333;
    font-weight: bold;
}
.btn-download.play-store:hover {
    background-color: #e0e0e0; /* Darker gray on hover */
    color: #000;
}
.btn-download.play-store i {
    color: #4CAF50; /* Google's green color */
}

.player-download {
    margin-top: 20px;
    border-top: 1px solid var(--card-bg);
    padding-top: 30px;
    width: 100%;
    max-width: 350px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Responsive Design */
@media (min-width: 768px) {
    .section-grid { grid-template-columns: repeat(2, 1fr); gap: 60px; }
    .section-grid.reverse .section-content { order: 2; }
}
@media (max-width: 767px) {
    .hero h1 { font-size: 2.5rem; }
    .hero .en-title { font-size: 3rem; }
    .hero p { font-size: 1rem; }
    .section, .leagues-section, .app-discovery-section, .download-section { padding: 40px 0; }
    .section-content h2, .app-discovery-section h2 { font-size: 2.2rem; }
    .logo-list img { height: 50px; }
    .phones-container { height: 350px; }
    .phones-container::before { width: 320px; height: 320px; }
    .phones-img { width: 350px; }
    .btn-nav-download { padding: 6px 14px; font-size: 0.9rem; }
}
