@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --primary-blue: #bbae1a;
    --accent-yellow: #FFD700;
    --dark-blue: #628336;
    --light-bg: #427548;
    --text-dark: #1a1a1a;
    --text-light: #ffffff;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
    --success-green: #28a745;
    --error-red: #dc3545;
    --info-blue: #17a2b8;
    --card-red: #dc3545;
    --card-yellow: #ffc107;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', 'Inter', sans-serif;
}

body {
    background-color: #f0f2f5;
    color: var(--text-dark);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

header {
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    color: white;
    padding: 3rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
}

.logo {
    width: 100px;
    height: 100px;
    margin: 0 auto 1rem;
    background-color: white;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid var(--accent-yellow);
    background-image: url('HSC Logo 002.png');
    background-size: cover;
    box-shadow: var(--shadow-lg);
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
}

nav {
    background: rgba(98, 131, 54, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    flex-wrap: wrap;
    gap: 10px;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    font-size: 0.9rem;
    display: block;
    white-space: nowrap;
}

nav a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-yellow);
}

/* Animations and Entry Effects */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section {
    padding: 6rem 0;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(255, 215, 0, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0);
    }
}

#broadcast-link {
    animation: pulse-glow 2s infinite;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--dark-blue);
    font-size: 2.2rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent-yellow);
    border-radius: 2px;
}

.about {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.tournament-structure {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.structure-card {
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.structure-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-yellow);
}

.structure-card i {
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: 0.75rem;
}

.groups-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.group {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
}

.group-title {
    text-align: center;
    color: var(--primary-blue);
    margin-bottom: 1.25rem;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--accent-yellow);
    font-size: 1.3rem;
}

.team {
    display: flex;
    align-items: center;
    padding: 8px;
    margin-bottom: 8px;
    border-radius: 6px;
    background-color: #f8f9fa;
    transition: background-color 0.3s;
}

.team:hover {
    background-color: #e9ecef;
}

.team-position {
    width: 22px;
    height: 22px;
    background-color: var(--primary-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    margin-left: 8px;
    flex-shrink: 0;
}

.team-logo {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background-color: var(--primary-blue);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
    font-weight: bold;
    background-size: cover;
    flex-shrink: 0;
}

.team-name {
    font-weight: 500;
    flex-grow: 1;
    font-size: 0.9rem;
}

.team-stats {
    display: flex;
    gap: 8px;
}

.team-points,
.team-goals-for,
.team-goals-against,
.team-goals-diff {
    background-color: var(--dark-blue);
    color: white;
    padding: 3px 6px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.8rem;
    flex-shrink: 0;
    min-width: 40px;
    text-align: center;
}

.team-goals-for {
    background-color: var(--success-green);
}

.team-goals-against {
    background-color: var(--error-red);
}

.team-goals-diff {
    background-color: var(--info-blue);
}

.teams-section {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-lg);
}

.teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.team-card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.4s ease;
    cursor: pointer;
    border: 1px solid #eee;
}

.team-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-yellow);
}

.team-header {
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    color: white;
    padding: 1.25rem;
    text-align: center;
}

.team-logo-large {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: white;
    margin: 0 auto 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-blue);
    background-size: cover;
}

.team-body {
    padding: 1.25rem;
    text-align: center;
}

.team-photo {
    width: 100%;
    height: 150px;
    background-color: #e9ecef;
    margin-bottom: 0.75rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    background-size: cover;
    font-size: 0.9rem;
}

.matches-table-container {
    overflow-x: auto;
    margin-top: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.matches-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: white;
    overflow: hidden;
    min-width: 800px;
}

.matches-table th {
    background: var(--dark-blue);
    color: white;
    padding: 1.25rem 1rem;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.matches-table td {
    padding: 0.75rem;
    text-align: center;
    border-bottom: 1px solid #e9ecef;
    font-size: 0.85rem;
}

.matches-table tr:nth-child(even) {
    background-color: #f8f9fa;
}

.matches-table tr:hover {
    background-color: #e9ecef;
}

.match-stage {
    font-weight: bold;
    color: var(--primary-blue);
}

.match-result {
    font-weight: bold;
    color: var(--dark-blue);
}

/* ستايلات المعرض الجديدة */
.gallery-section {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    margin-bottom: 2rem;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    height: 200px;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.05);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    padding: 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

.gallery-caption h4 {
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.gallery-caption p {
    font-size: 0.85rem;
    opacity: 0.9;
}

/* نافذة المعرض المنبثقة */
.gallery-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1100;
    overflow: hidden;
}

.gallery-modal-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.close-gallery {
    position: absolute;
    top: 20px;
    left: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    z-index: 1200;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
}

.close-gallery:hover {
    color: var(--accent-yellow);
}

.modal-image {
    max-width: 90%;
    max-height: 80%;
    object-fit: contain;
    border-radius: 8px;
}

.modal-caption {
    color: white;
    text-align: center;
    padding: 1rem;
    margin-top: 1rem;
    max-width: 800px;
}

.modal-caption h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--accent-yellow);
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.gallery-nav:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.gallery-prev {
    right: 20px;
}

.gallery-next {
    left: 20px;
}

.gallery-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 1.5rem;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s;
}

.indicator.active {
    background-color: var(--accent-yellow);
}

.recordings-section {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    margin-bottom: 2rem;
}

.recordings-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.recording-card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.4s ease;
    border: 1px solid #eee;
}

.recording-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-yellow);
}

.recording-video {
    width: 100%;
    height: 200px;
    background-color: #000;
    position: relative;
}

.recording-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recording-info {
    padding: 1rem;
}

.recording-title {
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.recording-details {
    color: var(--text-dark);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.recording-result {
    font-weight: bold;
    color: var(--dark-blue);
    margin-bottom: 0.5rem;
}

.recording-date {
    color: #6c757d;
    font-size: 0.8rem;
}

.scorers-btn-section {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    margin-bottom: 2rem;
    text-align: center;
}

.open-scorers-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    color: white;
    border: none;
    padding: 15px 35px;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
    font-size: 1.1rem;
    box-shadow: var(--shadow-md);
    margin-top: 1rem;
    position: relative;
    overflow: hidden;
}

.open-scorers-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.open-scorers-btn:hover::before {
    width: 300px;
    height: 300px;
}

.open-scorers-btn:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.open-scorers-btn:hover {
    background: linear-gradient(135deg, var(--dark-blue), var(--primary-blue));
    transform: translateY(-3px);
}

.scorer-card {
    display: flex;
    align-items: center;
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
    margin-bottom: 1rem;
    position: relative;
}

.scorer-card:hover {
    transform: translateY(-3px);
}

.scorer-position {
    width: 35px;
    height: 35px;
    background-color: var(--primary-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-left: 1rem;
    flex-shrink: 0;
}

.scorer-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #e9ecef;
    margin-left: 1rem;
    background-size: cover;
    flex-shrink: 0;
}

.scorer-info {
    flex-grow: 1;
}

.scorer-name {
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.scorer-team {
    color: var(--dark-blue);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.scorer-goals {
    display: flex;
    align-items: center;
    color: var(--success-green);
    font-weight: bold;
    font-size: 0.9rem;
}

.scorer-goals i {
    margin-left: 0.25rem;
}

.scorer-cards {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.card-icon {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    color: white;
}

.red-card {
    background-color: var(--card-red);
}

.yellow-card {
    background-color: var(--card-yellow);
    color: #333;
}

.scorer-stats {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--accent-yellow);
    color: var(--text-dark);
    padding: 0.5rem;
    border-radius: 6px;
    min-width: 80px;
}

.scorer-goals-count {
    font-size: 1.5rem;
    font-weight: bold;
    line-height: 1;
}

.scorer-goals-label {
    font-size: 0.8rem;
}

.scorer-position.gold {
    background-color: #FFD700;
    color: var(--text-dark);
}

.scorer-position.silver {
    background-color: #C0C0C0;
    color: var(--text-dark);
}

.scorer-position.bronze {
    background-color: #CD7F32;
    color: white;
}

footer {
    background-color: var(--dark-blue);
    color: white;
    padding: 1.5rem 0;
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
}

.back-to-top {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background-color: var(--primary-blue);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.2rem;
    box-shadow: var(--shadow);
    transition: background-color 0.3s;
    z-index: 99;
}

.back-to-top:hover {
    background-color: var(--accent-yellow);
    color: var(--text-dark);
}

.team-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    overflow-y: auto;
    padding: 10px;
}

.modal-content {
    background-color: white;
    margin: 1rem auto;
    width: 95%;
    max-width: 800px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    animation: modalFade 0.3s;
}

@keyframes modalFade {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    color: white;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.modal-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-blue);
    background-size: cover;
    flex-shrink: 0;
}

.modal-header h2 {
    font-size: 1.3rem;
    margin: 0 10px;
    text-align: center;
    flex-grow: 1;
}

.close-modal {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    flex-shrink: 0;
}

.modal-body {
    padding: 1.5rem;
}

.team-details {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .team-details {
        grid-template-columns: 1fr 2fr;
    }
}

.team-main-photo {
    width: 100%;
    height: 180px;
    background-color: #e9ecef;
    border-radius: 8px;
    background-size: cover;
}

.team-info h3 {
    color: var(--primary-blue);
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

.team-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.stat-card {
    background-color: var(--light-bg);
    padding: 0.75rem;
    border-radius: 8px;
    text-align: center;
    color: white;
}

.stat-value {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--accent-yellow);
}

.team-players {
    margin-top: 1.5rem;
}

.players-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.player-card {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 0.75rem;
    text-align: center;
    box-shadow: var(--shadow);
}

.player-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #e9ecef;
    margin: 0 auto 0.5rem;
    background-size: cover;
}

.player-name {
    font-weight: bold;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.player-position {
    color: var(--dark-blue);
    font-size: 0.8rem;
}

.player-number {
    background-color: var(--primary-blue);
    color: white;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.5rem;
    font-weight: bold;
    font-size: 0.8rem;
}

.broadcast-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 600px;
    height: auto;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.broadcast-content {
    background-color: white;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    animation: modalFade 0.3s;
    display: flex;
    flex-direction: column;
}

.broadcast-header {
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    color: white;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.broadcast-header h2 {
    font-size: 1.2rem;
    margin: 0;
    text-align: center;
    flex-grow: 1;
}

.close-broadcast {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    flex-shrink: 0;
}

.broadcast-body {
    padding: 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.broadcast-video {
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    position: relative;
    background-color: #000;
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.broadcast-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.broadcast-info {
    text-align: right;
    margin-bottom: 1rem;
}

.broadcast-info h3 {
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.broadcast-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: auto;
}

.broadcast-btn {
    background-color: var(--primary-blue);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.broadcast-btn:hover {
    background-color: var(--dark-blue);
}

.webfinity-section {
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
    text-align: center;
}

.webfinity-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.webfinity-logo {
    width: 200px;
    height: auto;
    margin-bottom: 0.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 0.5rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: var(--dark-blue);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--primary-blue);
    transform: translateY(-3px);
}

.social-link i {
    font-size: 1.5rem;
}

.webfinity-text {
    color: var(--text-dark);
    font-size: 1rem;
    margin-top: 0.5rem;
}

.sponsor-section {
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
    text-align: center;
}

.sponsor-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.sponsor-logo {
    width: 200px;
    height: auto;
    margin-bottom: 0.5rem;
}

.sponsor-text {
    color: var(--text-dark);
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

.scorers-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    overflow-y: auto;
    padding: 10px;
}

.scorers-modal-content {
    background-color: white;
    margin: 1rem auto;
    width: 95%;
    max-width: 800px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    animation: modalFade 0.3s;
}

.scorers-modal-header {
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    color: white;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.scorers-modal-header h2 {
    font-size: 1.3rem;
    margin: 0;
    text-align: center;
    flex-grow: 1;
}

.close-scorers-modal {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    flex-shrink: 0;
}

.scorers-modal-body {
    padding: 1.5rem;
    max-height: 70vh;
    overflow-y: auto;
}

/* تحسينات إضافية للهواتف */
@media (max-width: 480px) {
    nav ul {
        gap: 3px;
    }

    nav a {
        padding: 4px 6px;
        font-size: 0.75rem;
    }

    .container {
        padding: 0 10px;
    }

    header {
        padding: 1rem 0;
    }

    .logo {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    h1 {
        font-size: 1.5rem;
    }

    .subtitle {
        font-size: 0.9rem;
    }

    section {
        padding: 1.5rem 0;
    }

    .section-title {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }

    .teams-grid {
        grid-template-columns: 1fr;
    }

    .team-header h3 {
        font-size: 1.1rem;
    }

    .gallery-container {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .gallery-item {
        height: 150px;
    }

    .players-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }

    .modal-header {
        flex-direction: column;
        text-align: center;
    }

    .modal-header h2 {
        margin: 10px 0;
    }

    .back-to-top {
        bottom: 15px;
        left: 15px;
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .broadcast-controls {
        flex-direction: column;
    }

    .webfinity-logo {
        width: 150px;
    }

    .social-links {
        gap: 0.75rem;
    }

    .social-link {
        width: 40px;
        height: 40px;
    }

    .social-link i {
        font-size: 1.2rem;
    }

    .sponsor-logo {
        width: 150px;
    }

    .recordings-container {
        grid-template-columns: 1fr;
    }

    .recording-video {
        height: 180px;
    }

    .scorer-card {
        flex-direction: column;
        text-align: center;
        padding: 1.25rem;
    }

    .scorer-position {
        margin: 0 auto 0.75rem;
    }

    .scorer-photo {
        margin: 0 auto 0.75rem;
    }

    .scorer-info {
        margin-bottom: 0.75rem;
        text-align: center;
    }

    .scorer-cards {
        justify-content: center;
    }

    .scorer-stats {
        flex-direction: row;
        gap: 0.5rem;
        width: 100%;
        justify-content: center;
    }

    .gallery-nav {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .modal-image {
        max-width: 95%;
        max-height: 70%;
    }
}

@media (max-width: 360px) {
    nav ul {
        gap: 2px;
    }

    nav a {
        padding: 3px 5px;
        font-size: 0.7rem;
    }

    .players-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }

    .player-card {
        padding: 0.5rem;
    }

    .player-photo {
        width: 50px;
        height: 50px;
    }

    .gallery-container {
        grid-template-columns: 1fr;
    }
}