.match-card {
    /* width: 52.3rem; */
    max-width: 830px;
    margin: 0 auto;
    background: #ffffff;
    overflow: hidden;
    position: relative;
    box-shadow: none;
    border-radius: 0;
    transition: all 0.3s ease;
}

.match-card:hover {
    box-shadow: none;
}

.match-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 12px;
    color: #333333;
    font-size: 10px;
    background: #f2ddc3 !important;
}

.match-date {
    position: static;
    width: 4rem !important;
    transform: none;
    margin: 10px 0;
    color: #111111;
    padding: 2px 10px;
    font-weight: 600;
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.9));
    border-radius: 10px;
    border-left: 3px solid #064497;
    border-right: 3px solid #064497;
    box-shadow: none;
    margin-right: 6rem;
}

.match-date i {
    font-size: 10px;
    color: #064497;
}

.match-content {
    padding-left: 10px;
    padding-right: 10px;
    display: flex;
    align-items: center;
    text-align: center;
}

.team {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
    justify-content: center;
}

.team.right {
    flex-direction: row-reverse;
    text-align: left;
}

.team-logo {
    width: 60px;
    height: 60px;
    min-width: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    margin: 0 10px;
    font-weight: 600;
    overflow: hidden;
}

.team-logo img {
    width: 100%;
    height: 100%;
    object-fit: scale-down;
    transform: scale(0.9);
}

.team-logo.hilal {
    color: white;
    padding-top: 6px;
}

.team-logo.nassr {
    color: #111;
    padding-top: 6px;
}

.team-name {
    font-size: 16px;
    margin-bottom: 5px;
    color: #333333;
    font-weight: 600;
}

.score-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: auto;
}

.score {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: bold;
    color: #333333;
    margin-bottom: 0px;
}

.score-divider {
    margin: 0 12px;
    color: #666666;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
}

.pulse {
    width: 5px;
    height: 5px;
    background-color: #ff3b30;
    border-radius: 50%;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.league-logo i {
    color: #333333;
}

.match-timeline {
    width: 100%;
    /* max-width: 700px; */
    background: #ffffff;
    border: none;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin: 0;
    padding: 0;
    position: relative;
    box-shadow: none;
    max-height: none;
    opacity: 1;
    transition: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.match-card:hover .match-timeline,
.match-timeline:hover {
    max-height: 2000px;
    opacity: 1;
}

.nasher_text:hover {
    color: blue;
    animation: none !important;
}

.nasher_text {
    animation: scroll-left 1s linear infinite;
    position: relative;
}

.nasher_text::before {
    content: "Before Text";
    position: absolute;
    left: -60px;
    /* Adjust as needed */
    top: 50%;
    transform: translateY(100%);
    color: black;
    font-size: 12px;
    /* Adjust as needed */
}

.nasher_text:hover {
    color: blue !important;
    animation-play-state: paused !important;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0%);
    }

    100% {
        transform: translateX(100%);
    }
}

.match-events {
    width: 90%;
    max-width: 700px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-top: none;
    box-shadow: none;
    border-radius: 0;
    overflow: hidden;
}

.events-header {
    background: #ffffff;
    color: #333;
    padding: 12px 15px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #eaeaea;
    position: relative;
    overflow: hidden;
    box-shadow: none;
    margin-top: 5px;
    letter-spacing: 0.3px;
}

.events-header i {
    margin-left: 10px;
    font-size: 16px;
    color: #b8860b;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5);
}

.events-container {
    padding: 10px 0;
    overflow-y: visible;
}

.events-container::-webkit-scrollbar {
    width: 6px;
}

.events-container::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.events-container::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 10px;
}

.events-container::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

.match-half {
    margin-top: 15px;
    margin-bottom: 25px;
    margin-left: 30px;
    margin-right: 30px;
    text-align: center;
}

.match-half-end .half-label,
.match-half-start .half-label {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f4e5, #d4a639);
    color: #333;
    font-weight: 600;
    padding: 10px 30px;
    border-radius: 30px;
    font-size: 13px;
    position: relative;
    z-index: 2;
    border: 1px solid rgba(184, 134, 11, 0.2);
    max-width: 80%;
    margin: 0 auto;
}

.match-half-end .half-label {
    background: linear-gradient(135deg, #d4a639, #e6c99f);
}

.match-half .half-label i {
    margin-left: 8px;
    color: #b8860b;
    font-size: 14px;
}

.half-score {
    background: rgba(255, 255, 255, 0.7);
    padding: 2px 10px;
    border-radius: 15px;
    margin-right: 10px;
    font-weight: 700;
    color: #333;
    border-left: 2px solid #b8860b;
    border-right: 2px solid #b8860b;
}

.half-time {
    background: rgba(255, 255, 255, 0.7);
    padding: 2px 10px;
    border-radius: 15px;
    margin-right: 10px;
    font-weight: 700;
    color: #b8860b;
    border-left: 2px solid #b8860b;
    border-right: 2px solid #b8860b;
}

/* .match-half::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e0e0e0;
    z-index: 1;
} */

.timeline-event {
    display: flex;
    align-items: center;
    margin: 15px 0;
    position: relative;
    height: 40px;
}

.timeline-time {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background-color: #f2f2f2;
    color: #b8860b;
    font-weight: 700;
    font-size: 13px;
    padding: 2px 12px;
    border-radius: 15px;
    z-index: 3;
    box-shadow: none;
    border: 1px solid #e0e0e0;
    min-width: 50px;
    text-align: center;
}

.timeline-time::after {
    content: "'";
}

.timeline-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #e0e0e0;
    z-index: 1;
}

.timeline-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    padding-left: 20px;
    position: relative;
    z-index: 2;
}

.timeline-left {
    flex: 1;
    display: flex;
    justify-content: flex-start;
    padding-right: 20px;
    position: relative;
    z-index: 2;
}

.event-content {
    display: flex;
    align-items: center;
    background-color: #f9f9f9;
    padding: 6px 12px;
    border-radius: 20px;
    box-shadow: none;
    border: 1px solid #eee;
    max-width: 90%;
}

.event-content.hilal {
    border-right: 3px solid #0057b8;
}

.event-content.nassr {
    border-left: 3px solid #FFD700;
}

.team-indicator {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-left: 8px;
    margin-right: 8px;
    flex-shrink: 0;
}

.team-indicator img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-indicator.hilal {
    background: linear-gradient(135deg, #0057b8, #004095);
}

.team-indicator.nassr {
    background: linear-gradient(135deg, #FFD700, #e6c200);
}

.event-type {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
    margin-right: 8px;
    flex-shrink: 0;
}

.event-type i {
    font-size: 14px;
}

.event-type.goal i {
    color: #4CAF50;
}

.event-type.substitution-in i {
    color: #2196F3;
    transform: rotate(90deg);
}

.event-type.substitution-out i {
    color: #F44336;
}

.yellow-card-icon {
    width: 12px;
    height: 16px;
    background: #FFC107;
    border-radius: 2px;
}

.red-card-icon {
    width: 12px;
    height: 16px;
    background: #F44336;
    border-radius: 2px;
}

.event-info {
    font-size: 12px;
}

.event-player {
    font-weight: 600;
    font-size: 13px;
    color: #333;
}

.event-assist {
    font-size: 11px;
    color: #777;
    display: block;
    margin-top: 2px;
}

.event-content .event-assist::before {
    content: "";
    font-weight: normal;
}

.event-content .event-player::before {
    content: "";
    font-weight: normal;
}

.event-type.substitution-in+.event-info .event-player::before {
    content: "↑ دخل: ";
    font-weight: normal;
    color: #4CAF50;
}

.event-type.substitution-in+.event-info .event-assist::before {
    content: "↓ خرج: ";
    font-weight: normal;
    color: #F44336;
}

.event-type.goal+.event-info .event-assist::before {
    content: "صناعة: ";
    font-weight: normal;
    color: #777;
}

.timeline-left:empty,
.timeline-right:empty {
    display: none;
}

.halftime-message {
    text-align: center;
    margin: 15px 0;
    color: #333;
    font-weight: 600;
    font-size: 14px;
}

.event-type.substitution {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
    margin-right: 8px;
    flex-shrink: 0;
    position: relative;
    width: 24px;
    height: 24px;
}

.substitution-icon {
    position: relative;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    overflow: hidden;
}

.substitution-icon::before,
.substitution-icon::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    border: 2px solid;
    border-radius: 1px;
}

.substitution-icon::before {
    top: 2px;
    right: 2px;
    border-color: #4CAF50;
    border-left: transparent;
    border-bottom: transparent;
    transform: rotate(-45deg);
}

.substitution-icon::after {
    bottom: 2px;
    left: 2px;
    border-color: #F44336;
    border-right: transparent;
    border-top: transparent;
    transform: rotate(-45deg);
}

.matchecs_detiles {
    margin-left: 17.1rem !important;
}

/* Media queries for smaller screens */
@media (max-width: 768px) {
    .matchecs_detiles {
        margin-right: 0rem;
        margin-left: 0rem;
    }

    .team-name {
        font-size: 14px;
    }

    .score {
        font-size: 28px;
    }

    .events-header {
        font-size: 12px;
    }

    .timeline-time {
        font-size: 10px;
        padding: 2px 8px;
    }

    .event-player {
        font-size: 12px;
    }

    .match-date {
        margin-right: 1rem !important;
    }
}

@media (max-width: 576px) {
    #match_today {
        margin-top: 0.5rem;
    }

    .match-card {
        width: 100%;
    }

    .match-header {
        font-size: 10px;
        padding: 0px 10px;
    }

    .match-date {
        font-size: 8px;
    }

    .team-logo {
        width: 20px;
        height: 60px;
    }

    .team-name {
        font-size: 12px;
    }

    .score {
        font-size: 24px;
    }

    .timeline-time {
        font-size: 8px;
        padding: 2px 6px;
    }

    .event-player {
        font-size: 10px;
    }
}

.nasher_text {
    margin-right: 1rem;
    margin-top: 0.2rem;
    color: black;
    margin-top: 0.5rem;
    cursor: pointer;
    text-decoration: none;
}

.events-container {
    display: none !important;
}

.match-timeline:hover .events-container {
    display: block !important;
}

/* Dark mode styles */
.dark-theme .match-timeline {
    background: #2c2417 !important;

}

.dark-theme .match-content {
    background-color: #121212 !important;
}

.dark-theme .match-header {
    background: #2c2417 !important;
    color: #e0e0e0;
}

.dark-theme .match-date {
    background: linear-gradient(135deg, rgba(40, 40, 40, 0.7), rgba(50, 50, 50, 0.9));
    color: #e0e0e0;
    border-left: 3px solid #1a6ed8;
    border-right: 3px solid #1a6ed8;
}

.dark-theme .team-name {
    color: #e0e0e0;
}

.dark-theme .score {
    color: #e0e0e0;
}

.dark-theme .events-header {
    background: #2a2a2a;
    color: #e0e0e0;
}

.dark-theme .timeline-time {
    background-color: #2a2a2a;
    color: #d4af37;
}

.dark-theme .event-content {
    background-color: #2a2a2a;
    border: 1px solid #333333;
}

.dark-theme .event-player {
    color: #e0e0e0;
}

.dark-theme .event-assist {
    color: #999999;
}

.dark-theme .nasher_text {
    margin-right: 1rem;
    margin-top: 0.2rem;
    color: white;
    margin-top: 0.5rem;
    cursor: pointer;
    text-decoration: none;
}

.marquee-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.marquee-content {
    display: flex;
    white-space: nowrap;
    will-change: transform;
    width: 100%;
}

.marquee-item {
    display: flex;
    align-items: center;
    animation: scroll 10s linear infinite;
    /* Reduced duration for faster movement */
    animation-play-state: running;
}

/* when the user hovers the container, pause the animation */
.marquee-container:hover .marquee-item {
    animation-play-state: paused;
  }

.item-txt {
    font-size: 80px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #1A1A1A;
    transition: color 5s ease;
}

.item-txt:hover {
    color: #1188FF !important;
}

@keyframes scroll {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(50%);
    }
}

@media (max-width: 768px) {
    .item-txt {
        font-size: 50px;
    }
}

@media (max-width: 480px) {
    .item-txt {
        font-size: 36px;
    }
}
