/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    
}

:root {
    --primary-color: #e10600;
    --secondary-color: #1e1e1e;
    --accent-color: #003366;
    --text-color: #333;
    --text-light: #666;
    --bg-color: #fff;
    --bg-light: #f8f9fa;
    --border-color: #e0e0e0;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --border-radius: 8px;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--bg-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: var(--bg-color);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo img {
    height: 40px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
}

.nav-menu a:hover,
.nav-menu a[aria-current="page"] {
    color: var(--primary-color);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-description {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Section Titles */
.section-title {
    font-size: 2rem;
    text-align: center;
    margin: 3rem 0 2rem;
    color: var(--secondary-color);
}

/* Live Events */
.live-events {
    background: var(--bg-light);
    padding: 2rem 0;
}

.live-matches {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

/* Matches Grid */
.matches-grid {
    padding: 2rem 0;
}

.grid-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    border: 2px solid var(--border-color);
    background: var(--bg-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.matches-grid__inner {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.match-card {
    background: var(--bg-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    transition: var(--transition);
    border-left: 4px solid var(--border-color);
}

.match-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.match-card.live {
    border-left-color: var(--danger-color);
}

.match-card.scheduled {
    border-left-color: var(--warning-color);
}

.match-card.finished {
    border-left-color: var(--success-color);
}

.match-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.league {
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: 500;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.live {
    background: var(--danger-color);
    color: white;
}

.status-badge.scheduled {
    background: var(--warning-color);
    color: var(--text-color);
}

.status-badge.finished {
    background: var(--success-color);
    color: white;
}

.match-card__teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    text-align: center;
}

.team h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.vs {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 1rem;
}
.match-card__meta .author {
  display: inline-block;
  margin-left: 8px;
  font-weight: 500;
  color: #444;

}
.match-card__meta {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.match-card__actions {
    text-align: center;
}

.btn {
    display: inline-block;
    padding: 0.4rem 1.1rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: var(--accent-color);
    transform: translateY(-1px);
}

/* Match Detail Page */
.match-header {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    color: white;
    padding: 3rem 0;
}

.match-teams {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.team h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.match-vs {
    text-align: center;
}

.match-vs .vs {
    font-size: 3rem;
    font-weight: 700;
    display: block;
    margin-bottom: 0.5rem;
}

.match-meta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.match-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--border-radius);
}

.content-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    padding: 3rem 0;
}

.match-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.match-info {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: var(--border-radius);
}

.match-info h3 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.match-info ul {
    list-style: none;
}

.match-info li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
}

.match-info li:last-child {
    border-bottom: none;
}

.share-buttons {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: var(--border-radius);
}

.share-buttons h3 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.share-links {
    display: flex;
    gap: 1rem;
}

.share-btn {
    flex: 1;
    padding: 0.75rem;
    border: none;
    border-radius: var(--border-radius);
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.share-btn.twitter {
    background: #1da1f2;
}

.share-btn.facebook {
    background: #1877f2;
}

.share-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Footer */
 /* Footer Styles */
        .footer {
            background-color: #2c3e50;
            color: #ecf0f1;
            padding: 2rem 1rem;
            margin-top: auto;
        }

        .footer-container {
            max-width: 1200px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 2rem;
        }

        .footer-section h3 {
            font-size: 1.2rem;
            margin-bottom: 1rem;
            color: #3498db;
            position: relative;
            padding-bottom: 0.5rem;
        }

        .footer-section h3::after {
            content: '';
            position: absolute;
            left: 0;
            bottom: 0;
            width: 40px;
            height: 2px;
            background-color: #3498db;
        }

        .footer-section p {
            line-height: 1.6;
            margin-bottom: 1rem;
        }

        .footer-links {
            list-style: none;
        }

        .footer-links li {
            margin-bottom: 0.5rem;
        }

        .footer-links a {
            color: #bdc3c7;
            text-decoration: none;
            transition: color 0.3s;
        }

        .footer-links a:hover {
            color: #3498db;
        }

        /* Social Icons */
        .social-icons {
            display: flex;
            gap: 1rem;
            margin-top: 1rem;
        }

        .social-icon {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background-color: #34495e;
            color: white;
            text-decoration: none;
            transition: all 0.3s ease;
        }

        .social-icon:hover {
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
        }

        .social-icon.facebook:hover {
            background-color: #3b5998;
        }

        .social-icon.twitter:hover {
            background-color: #1da1f2;
        }

        .social-icon.instagram:hover {
            background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
        }

        .social-icon.linkedin:hover {
            background-color: #0077b5;
        }

        .social-icon.youtube:hover {
            background-color: #ff0000;
        }

        /* Footer Bottom */
        .footer-bottom {
            max-width: 1200px;
            margin: 0 auto;
            text-align: center;
            padding-top: 2rem;
            margin-top: 2rem;
            border-top: 1px solid #34495e;
            font-size: 0.9rem;
            color: #95a5a6;
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .footer-container {
                grid-template-columns: 1fr;
                text-align: center;
            }

            .footer-section h3::after {
                left: 50%;
                transform: translateX(-50%);
            }

            .social-icons {
                justify-content: center;
            }
        }

/* Responsive */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-color);
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .matches-grid__inner {
        grid-template-columns: 1fr;
    }
    
    .content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .match-teams {
        flex-direction: column;
    }
    
    .team h1 {
        font-size: 1.5rem;
    }
    
    .match-vs .vs {
        font-size: 2rem;
    }
    
    .grid-filters {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-btn {
        width: 200px;
    }
}

/* Utility classes */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.text-center {
    text-align: center;
}

.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }

/*pagination css code */
/* Load More System */
.load-more-container {
    text-align: center;
    margin: 1rem 0 1rem;
    
    
}

.btn-load-more {
    background: var(--accent-color);
    color: white;
    padding: 0.7rem 1rem;
    font-size: 1.1rem;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    min-width: 200px;
  
  
    
}

.btn-load-more:hover:not(:disabled) {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-load-more:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Loading Spinner */
.loading-spinner {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Match Card Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.match-card.new-card {
    animation: fadeInUp 0.6s ease-out;
}

/* No Matches Message */
.no-matches {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-light);
    font-size: 1.1rem;
    grid-column: 1 / -1;
}

.no-matches p {
    margin: 0;
    opacity: 0.7;
}

/* Live Matches Section */
.live-matches-count {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #ff4444, #cc0000);
    color: white;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
}

.live-matches-count p {
    margin: 0 0 1rem 0;
    font-size: 1.2rem;
}

.live-matches-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.live-match-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: rgba(255,255,255,0.1);
    border-radius: var(--border-radius);
    font-size: 0.9rem;
}

.live-badge {
    background: white;
    color: #cc0000;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.no-live-matches {
    text-align: center;
    padding: 2rem;
    color: var(--text-light);
    background: var(--bg-light);
    border-radius: var(--border-radius);
}

/* Filter Buttons Active State */
.filter-btn.active {
    background: var(--primary-color) !important;
    color: white !important;
    border-color: var(--primary-color) !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(225, 6, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .load-more-container {
        margin: 2rem 0;
        padding: 1rem 0;
    }
    
    .btn-load-more {
        width: 100%;
        max-width: 300px;
        padding: 1rem 2rem;
    }
    
    .grid-filters {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-btn {
        width: 200px;
        margin-bottom: 0.5rem;
    }
    
    .live-match-item {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .matches-grid__inner {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .btn-load-more {
        font-size: 1rem;
        padding: 0.875rem 1.5rem;
    }
    
    .loading-spinner {
        font-size: 0.8rem;
    }
    
    .spinner {
        width: 16px;
        height: 16px;
    }
}
/* Watch live Button css */
.watchlive-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 25px 0;
  text-align: center;
}

.watchlive-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(90deg, #ff1a1a, #ff6600);
  color: #ffffff;
  padding: 12px 28px;
  border-radius: 10px;
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  transition: all 0.3s ease;
  animation: pulse 1.8s infinite ease-in-out;
}

.watchlive-btn:hover {
  background: linear-gradient(90deg, #cc0000, #e65c00);
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.watchlive-text {
  display: inline-block;
  vertical-align: middle;
}

/* 💥 Keyframes for the continuous zoom (pulse) animation */
@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 12px rgba(255, 26, 26, 0.5);
  }
  50% {
    transform: scale(1.07);
    box-shadow: 0 0 25px rgba(255, 102, 0, 0.7);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 12px rgba(255, 26, 26, 0.5);
  }
}

/* 📱 Responsive size adjustments */
@media (max-width: 768px) {
  .watchlive-btn {
    font-size: 0.95rem;
    padding: 10px 22px;
  }
}
/* button css for watch live matches */
 .watch-now-btn {
  position: relative;
  display: inline-block;
  padding: 16px 55px;
  font-size: 1.4rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #fff;
  background: linear-gradient(90deg, #ff4b2b, #ff6a00);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 0 18px rgba(255, 80, 0, 0.5);
  animation: liveZoom 3s ease-in-out infinite, softGlow 3.5s ease-in-out infinite;
  transition: all 0.3s ease;
}

/* Smooth Light Zoom */
@keyframes liveZoom {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

/* Soft Glow Effect */
@keyframes softGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(255, 80, 0, 0.4); }
  50% { box-shadow: 0 0 35px rgba(255, 110, 20, 0.8); }
}

/* Light shimmer reflection */
.watch-now-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.15);
  transform: skewX(-20deg);
  transition: left 0.8s ease;
}

.watch-now-btn:hover::before {
  left: 150%;
}

.watch-now-btn i {
  margin-right: 10px;
  font-size: 1.1rem;
  vertical-align: middle;
  animation: blink 1.2s infinite alternate;
}

/* Subtle blinking red dot */
@keyframes blink {
  0% { opacity: 1; }
  50% { opacity: 0.4; }
  100% { opacity: 1; }
}

.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transform: scale(0);
  animation: ripple-animation 0.6s linear;
  pointer-events: none;
}

@keyframes ripple-animation {
  to {
    transform: scale(3);
    opacity: 0;
  }
}

@media (max-width: 600px) {
  .watch-now-btn {
    font-size: 1.1rem;
    padding: 13px 40px;
  }
}