/* Footreply Match Manager - Frontend Player Styles */
.footreply-match-container {
    background: #0f172a;
    color: #f8fafc;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    font-family: 'Cairo', 'Tajawal', sans-serif;
    margin-bottom: 30px;
    border: 1px solid #1e293b;
}

.fr-scoreboard {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1e293b;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid #334155;
}

.fr-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 30%;
    text-align: center;
}

.fr-team img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    margin-bottom: 8px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.fr-team span {
    font-size: 16px;
    font-weight: bold;
    color: #fff;
}

.fr-match-info-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 40%;
    text-align: center;
}

.fr-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 8px;
}

.fr-badge-live {
    background: #ef4444;
    color: #fff;
    animation: fr-pulse 1.5s infinite;
}

@keyframes fr-pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.fr-badge-finished {
    background: #64748b;
    color: #fff;
}

.fr-badge-upcoming {
    background: #3b82f6;
    color: #fff;
}

.fr-score-display {
    font-size: 32px;
    font-weight: 900;
    color: #10b981;
    letter-spacing: 2px;
    margin: 5px 0;
    direction: ltr;
    unicode-bidi: embed;
    display: inline-block;
}

.fr-match-meta-details {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: #94a3b8;
    flex-wrap: wrap;
    justify-content: center;
}

.fr-match-meta-details span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Video Player Box */
.fr-player-box {
    background: #111827;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #1f2937;
}

.fr-servers-bar {
    display: flex;
    align-items: center;
    background: #1f2937;
    padding: 12px 20px;
    gap: 15px;
    flex-wrap: wrap;
}

.fr-server-title {
    font-size: 14px;
    font-weight: bold;
    color: #10b981;
    display: flex;
    align-items: center;
    gap: 5px;
}

.fr-server-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.fr-server-btn {
    background: #374151;
    color: #d1d5db;
    border: none;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
}

.fr-server-btn:hover {
    background: #4b5563;
    color: #fff;
}

.fr-server-btn.active {
    background: #10b981;
    color: #fff;
    font-weight: bold;
}

.fr-video-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background: #000;
}

.fr-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.fr-no-stream {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    padding: 20px;
    text-align: center;
}

.fr-no-stream i {
    font-size: 48px;
    margin-bottom: 10px;
    color: #f59e0b;
}

/* Matches Grid */
.footreply-matches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.fr-match-card {
    background: #0f172a;
    border: 1px solid #1e293b;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: transform 0.2s ease;
}

.fr-match-card:hover {
    transform: translateY(-3px);
}

.fr-card-header {
    background: #1e293b;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.fr-league-tag {
    color: #10b981;
    font-weight: bold;
}

.fr-status-dot {
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    display: inline-block;
    margin-left: 5px;
    animation: fr-pulse 1.5s infinite;
}

.fr-card-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 15px;
    text-decoration: none;
    color: inherit;
}

.fr-team-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 35%;
    text-align: center;
}

.fr-team-side img {
    width: 45px;
    height: 45px;
    object-fit: contain;
    margin-bottom: 6px;
}

.fr-team-side span {
    font-size: 13px;
    font-weight: bold;
    color: #f8fafc;
}

.fr-score-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 30%;
}

.fr-score-text {
    font-size: 20px;
    font-weight: 900;
    color: #10b981;
    direction: ltr;
    unicode-bidi: embed;
    display: inline-block;
}

.fr-time-text {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 4px;
}

.fr-card-footer {
    background: #111827;
    padding: 10px;
    text-align: center;
    border-top: 1px solid #1e293b;
}

.fr-watch-btn {
    color: #10b981;
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: color 0.2s;
}

.fr-watch-btn:hover {
    color: #34d399;
}
