/* Modern Dark Theme */
:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #141414;
    --bg-elevated: #1c1c1c;
    --bg-hover: #242424;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent-primary: #3b82f6;
    --accent-secondary: #1d4ed8;
    --success: #059669;
    --danger: #dc2626;
    --warning: #fbbf24;
}

/* Global Styles */
body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Navbar Styles */
.navbar {
    background: linear-gradient(to right, #1a1a1a, #2c2c2c);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.4rem;
    padding: 0.5rem 0;
}

.brand-icon {
    font-size: 1.8rem;
    color: #ff4d4d;
    transition: transform 0.3s ease;
}

.navbar-brand:hover .brand-icon {
    transform: scale(1.1);
}

.brand-text {
    background: linear-gradient(45deg, #fff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.navbar-nav {
    gap: 0.5rem;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    padding: 0.7rem 1.2rem !important;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff !important;
}

.nav-link:hover i {
    transform: translateY(-1px);
}

.nav-link.active {
    background: rgba(255, 255, 255, 0.15);
    color: #fff !important;
}

.dropdown-menu {
    background: #fff;
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 0.5rem;
    min-width: 200px;
    margin-top: 0.5rem;
    animation: dropdownFade 0.3s ease;
}

.dropdown-item {
    color: #333;
    padding: 0.7rem 1rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: #f8f9fa;
    color: #ff4d4d;
    transform: translateX(5px);
}

@keyframes dropdownFade {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive */
@media (max-width: 991px) {
    .navbar-collapse {
        background: #1a1a1a;
        padding: 1rem;
        border-radius: 12px;
        margin-top: 1rem;
    }

    .nav-link {
        padding: 0.8rem 1rem !important;
    }

    .navbar-nav {
        gap: 0.2rem;
    }

    .dropdown-menu {
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .dropdown-item {
        color: rgba(255, 255, 255, 0.9);
    }

    .dropdown-item:hover {
        background: rgba(255, 255, 255, 0.1);
        color: #fff;
    }
}

/* Modern Navigation */
.navbar {
    background-color: rgba(20, 20, 20, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem 0;
}

.navbar-brand, .navbar-brand:hover {
    color: var(--text-primary) !important;
    font-weight: 600;
    font-size: 1.25rem;
    letter-spacing: -0.025em;
}

.dropdown-menu-dark {
    background-color: #2d2d2d;
}

/* Modern Cards */
.card {
    background-color: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.card-body {
    padding: 1.5rem;
}

/* Team Layout */
.match-teams {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 1.5rem;
    text-align: center;
    width: 100%;
}

.team {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    max-width: 150px;
}

.team-logo {
    display: block;
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin: 0 auto 0.75rem auto;
}

.team-name {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    margin: 0;
}

.vs {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--text-secondary);
    font-weight: 500;
    padding: 0 1rem;
    flex-shrink: 0;
}

/* Highlight Meta */
.highlight-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.meta-item i {
    font-size: 1rem;
    opacity: 0.8;
}

.competition-tag {
    background-color: var(--bg-elevated);
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
}

/* Team Display */
.match-header {
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.team-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.team-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 12px;
    transition: transform 0.3s ease;
}

.card:hover .team-logo {
    transform: scale(1.05);
}

.team-name {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    text-align: center;
}

/* VS Badge Styles */
.vs-badge {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.7rem;
}

.vs-badge.vs-badge-large {
    font-size: 0.85rem;
}

/* Card specific styles */
.card .team-logo {
    width: 40px;
    height: 40px;
    padding: 6px;
}

.card .team-name {
    font-size: 0.875rem;
}

/* Main highlight view specific styles */
.highlight-view .match-header {
    padding: 2rem;
}

.highlight-view .team-logo {
    width: 80px;
    height: 80px;
    padding: 12px;
}

.highlight-view .team-name {
    font-size: 1.25rem;
}

/* Highlight View Styles */
.highlight-view {
    background-color: #141414;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.highlight-view .match-teams {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
}

.highlight-view .team {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.highlight-view .team-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    margin-bottom: 0.5rem;
}

.highlight-view .team-name {
    font-weight: 600;
    color: #333;
}

.highlight-view .vs {
    font-size: 1.2rem;
    font-weight: 600;
    color: #666;
}

.highlight-view .video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.highlight-view .video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100% !important;
}

.highlight-view .highlight-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    margin-top: 1rem;
}

.highlight-view .meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.9rem;
}

.highlight-view .competition-tag {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    background-color: #rgb(27 27 27);
    border-radius: 20px;
    color: #333;
}

.highlight-view .competition-icon {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

/* Competition Header */
.competition-header {
    text-align: center;
    padding: 3rem 2rem;
    margin-bottom: 2rem;
    background: linear-gradient(180deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.6) 100%);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.competition-logo-box {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(40, 40, 40, 0.9);
    border-radius: 1rem;
}

.logo-wrapper {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.competition-header-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.competition-title {
    color: white;
    font-size: 1.25rem;
    font-weight: 500;
    margin: 0;
}

.highlight-count {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #0066ff;
    color: white;
    border-radius: 2rem;
    font-weight: 500;
    margin-top: 1rem;
}

.highlight-count i {
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .competition-header {
        padding: 2rem 1rem;
    }
    
    .competition-logo-box {
        padding: 1.25rem;
    }
    
    .logo-wrapper {
        width: 60px;
        height: 60px;
    }
    
    .competition-title {
        font-size: 1.1rem;
    }
}

/* Metadata */
.highlight-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.meta-item i {
    font-size: 1rem;
    color: #292929;
}

.competition-tag {
    margin-left: auto;
    padding: 0.35rem 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    font-weight: 500;
    color: var(--text-primary);
}

.competition-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

@media (max-width: 768px) {
    .highlight-meta {
        gap: 0.75rem;
    }
    
    .meta-item {
        font-size: 0.8rem;
    }
    
    .competition-tag {
        padding: 0.25rem 0.6rem;
    }
    
    .competition-icon {
        width: 14px;
        height: 14px;
    }
}

/* Modern Pagination */
.pagination {
    gap: 0.375rem;
}

.page-link {
    background-color: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    padding: 0.625rem 1rem;
    border-radius: 8px !important;
    font-weight: 500;
    transition: all 0.2s ease;
}

.page-link:hover {
    background-color: var(--bg-hover);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--accent-primary);
}

.page-item.active .page-link {
    background-color: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
}

.page-item.disabled .page-link {
    background-color: var(--bg-secondary);
    border-color: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
}

/* Video Container Styles */
.card.bg-dark {
    border-radius: 12px;
    overflow: hidden;
    background-color: #0f0f0f !important;
    border: none;
}

.card.bg-dark .card-header {
    background-color: #0f0f0f;
    border-bottom: none;
    padding: 1rem;
}

.card.bg-dark .card-body {

    background-color: ##1a1a1a;
}

.card.bg-dark .card-footer {
    background-color: #0f0f0f;
    border-top: none;
    padding: 1rem;
}

.embed-responsive {
    position: relative;
    width: 100%;
    height: 100% !important;
    min-height: 480px;
    background-color: #000;
}

.embed-responsive-16by9 {
    padding-bottom: 0 !important;
    height: 480px !important;
}

.embed-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100% !important;
    border: 0;
}

/* Ensure minimum height on mobile */
@media (max-width: 768px) {
    .card.bg-dark .card-body,
    .embed-responsive,
    .embed-responsive-16by9 {
        min-height: 240px;
        height: 240px !important;
    }
}

/* Match title styling */
.match-title {
    font-size: 1.1rem;
    font-weight: 500;
}

/* Badge styling */
.badge.bg-primary {
    font-weight: 500;
    padding: 0.5em 0.8em;
    border-radius: 4px;
}

/* Share button styling */
.share-button {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.share-button:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Section Titles */
.section-title {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--accent-primary);
    letter-spacing: -0.025em;
}

/* Related Highlights */
.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #333;
}

/* Footer */
.footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    padding: 1.5rem 0;
    margin-top: auto;
    text-align: center;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-secondary);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.empty-state i {
    font-size: 3rem;
    color: var(--accent-primary);
    margin-bottom: 1.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .match-header {
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
    }

    .team-logo {
        width: 64px;
        height: 64px;
    }

    .vs-badge {
        font-size: 0.8rem;
        padding: 0.375rem 0.75rem;
    }

    .competition-header {
        padding: 2rem 1rem;
        border-radius: 12px;
    }

    .competition-icon {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 1.25rem;
    }

    .card-body {
        padding: 1rem;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--bg-elevated);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--bg-hover);
}

/* Competitions Section */
.competitions-card {
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-elevated));
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.competitions-card .card-title {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.025em;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.competitions-card .card-title i {
    color: var(--accent-primary);
    font-size: 1.75rem;
}

.competition-btn {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: var(--text-primary);
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
}

.competition-btn:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: var(--accent-primary);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.competition-btn .competition-icon {
    font-size: 1.25rem;
    color: var(--accent-primary);
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.competition-btn .competition-name {
    font-weight: 500;
}

.competition-btn .badge {
    background: var(--accent-primary);
    color: white;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    min-width: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.competitions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    padding: 0.5rem;
}

.competitions-card {
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-elevated));
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.competitions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.competition-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background-color: var(--bg-elevated);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.competition-btn:hover {
    background-color: var(--bg-hover);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.competition-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 8px;
}

.competition-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.competition-btn:hover .competition-logo {
    transform: scale(1.1);
}

.competition-name {
    font-weight: 500;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .competitions-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .competition-icon {
        width: 40px;
        height: 40px;
        padding: 6px;
    }
    
    .competition-name {
        font-size: 0.8rem;
    }
}

/* Hero Section Styles */
.hero-section {
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-elevated));
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/pattern.png') repeat;
    opacity: 0.1;
    pointer-events: none;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.stats-cards {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    padding: 1.25rem;
    flex: 1;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card i {
    font-size: 2rem;
    color: var(--accent-primary);
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

.hero-image {
    position: relative;
    height: 100%;
    min-height: 400px;
}

.floating-cards {
    position: absolute;
    width: 100%;
    height: 100%;
}

.highlight-preview-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    animation: float 6s ease-in-out infinite;
}

.highlight-preview-card:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.highlight-preview-card:nth-child(2) {
    top: 50%;
    right: 10%;
    animation-delay: -3s;
}

.preview-icon i {
    font-size: 2rem;
    color: var(--accent-primary);
}

.preview-info {
    display: flex;
    flex-direction: column;
}

.preview-competition {
    font-weight: 600;
    color: #fff;
}

.preview-teams {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .stats-cards {
        flex-direction: column;
    }
    
    .stat-card {
        width: 100%;
    }
}

/* Competitions Modal */
.competitions-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 1050;
    display: none;
    align-items: center;
    justify-content: center;
}

.competitions-modal.show {
    display: flex;
}

.competitions-content {
    background: var(--bg-secondary);
    border-radius: 16px;
    width: 90%;
    max-width: 800px;
    padding: 2rem;
    position: relative;
}

.competitions-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.competitions-header h2 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
}

.competitions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.competition-card {
    background: var(--bg-elevated);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    text-decoration: none;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.competition-card:hover {
    background: var(--bg-hover);
    transform: translateY(-2px);
}

.competition-icon {
    font-size: 2rem;
    color: var(--accent-primary);
}

.competition-name {
    color: var(--text-primary);
    font-weight: 500;
    text-align: left;
    margin: 0;
}

.competition-count {
    background: var(--accent-primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.2s ease;
}

.close-modal:hover {
    color: var(--text-primary);
}

/* Match Card Styles */
.match-teams {
    display: flex;
    align-items: center;
   
    gap: 0.5rem;
    padding: 0.5rem;
    margin-bottom: 1rem;
}

.team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.team-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.team-name {
    font-size: 0.9rem;
    color: var(--text-primary);
    text-align: center;
    font-weight: 500;
}

.vs {
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding: 0 0.5rem;
}

.highlight-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.meta-item i {
    font-size: 1rem;
    color: #292929;
}

.match-competition {
    margin-bottom: 8px;
    color: #6c757d;
    font-size: 0.9em;
    padding: 2px 0;
}

.match-competition:empty {
    display: none;
}

.competition-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

@media (max-width: 768px) {
    .highlight-meta {
        gap: 0.75rem;
    }
    
    .meta-item {
        font-size: 0.8rem;
    }
    
    .competition-tag {
        padding: 0.25rem 0.6rem;
    }
    
    .competition-icon {
        width: 14px;
        height: 14px;
    }
    
    .team-logo {
        width: 28px;
        height: 28px;
    }
    
    .team-name {
        font-size: 0.8rem;
    }
}

.match-countdown {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    margin-bottom: 8px;
}

.match-countdown i {
    color: #007bff;
}

.match-views {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6c757d;
    font-size: 0.9em;
    margin-bottom: 8px;
}

.match-competition {
    margin-bottom: 8px;
}

.match-competition .badge {
    font-size: 0.85em;
    padding: 5px 10px;
}

.match-actions {
    margin-top: 15px;
}

.watch-now-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.watch-now-btn i {
    font-size: 1.1em;
}

/* Banner Slider */
.banner-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 16px;
    margin-bottom: 3rem;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.3);
    background: var(--bg-secondary);
}

.banner-slider::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.4) 0%, transparent 20%, transparent 80%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 1;
    pointer-events: none;
}

.banner-slider .carousel-item {
    height: 450px;
    position: relative;
    overflow: hidden;
}

.banner-slider .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
    transition: transform 8s ease;
}

.banner-slider .carousel-item.active img {
    transform: scale(1.1);
}

.banner-slider .carousel-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.5) 70%, rgba(0,0,0,0) 100%);
    padding: 2rem 1rem;
    text-align: left;
}

.carousel-caption h3 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.carousel-caption .banner-description {
    font-size: 1.1rem;
    margin-bottom: 0;
    opacity: 0.9;
    max-width: 800px;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .carousel-caption h3 {
        font-size: 1.25rem;
    }
    
    .carousel-caption .banner-description {
        font-size: 1rem;
    }
}

.banner-slider .carousel-caption {
    z-index: 2;
}

.banner-slider .carousel-control-prev,
.banner-slider .carousel-control-next {
    width: 15%;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 2;
}

.banner-slider:hover .carousel-control-prev {
    opacity: 1;
    transform: translateX(10px);
}

.banner-slider:hover .carousel-control-next {
    opacity: 1;
    transform: translateX(-10px);
}

.banner-slider .carousel-control-prev-icon,
.banner-slider .carousel-control-next-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    background-size: 24px;
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}

.banner-slider .carousel-control-prev-icon:hover,
.banner-slider .carousel-control-next-icon:hover {
    background-color: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

/* Add indicators */
.banner-slider .carousel-indicators {
    margin-bottom: 1.5rem;
    z-index: 2;
}

.banner-slider .carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    margin: 0 6px;
    transition: all 0.3s ease;
}

.banner-slider .carousel-indicators .active {
    background-color: #fff;
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .banner-slider {
        border-radius: 12px;
    }
    .banner-slider .carousel-item {
        height: 350px;
    }
    .banner-slider .carousel-caption {
        padding: 3rem 1.5rem 1.5rem;
    }
    .banner-slider .carousel-caption h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .banner-slider {
        border-radius: 8px;
    }
    .banner-slider .carousel-item {
        height: 250px;
    }
    .banner-slider .carousel-caption {
        padding: 2rem 1rem 1rem;
    }
    .banner-slider .carousel-caption h3 {
        font-size: 1.25rem;
    }
    .banner-slider .carousel-control-prev-icon,
    .banner-slider .carousel-control-next-icon {
        width: 40px;
        height: 40px;
        background-size: 20px;
    }
}

/* Live Match Styles */
.live-match-container {
    margin-top: 1rem;
}

.live-match-container .card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.live-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 8px;
    animation: pulse 1.5s infinite;
}

.live-match-container .embed-responsive {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
}

.live-match-container .embed-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.live-match-container .card-footer {
    background-color: #f8f9fa;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 0.75rem 1rem;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    }
    
    50% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(220, 53, 69, 0);
    }
    
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}

/* Latest Matches Styles */
.latest-matches {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #fff;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #0d6efd;
}

.match-card {
    background: #1a1a1a;
    border-radius: 10px;
    padding: 1.5rem;
    height: 100%;
    transition: transform 0.2s;
    border: 1px solid #2a2a2a;
}

.match-card:hover {
    transform: translateY(-5px);
    border-color: #0d6efd;
}

.team-vs-container {
  
}

.team {
    text-align: center;
    flex: 1;
}

.team-logo {
    width: 60px;
    height: 60px;
    margin: 0 auto 0.5rem;
}

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

.team-name {
    font-size: 0.9rem;
    color: #fff;
    margin-top: 0.5rem;
    font-weight: 500;
}

.vs {
    color: #666;
    margin: 0 1rem;
    font-weight: 600;
}

.match-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.5rem 0;
    border-top: 1px solid #2a2a2a;
    border-bottom: 1px solid #2a2a2a;
    font-size: 0.85rem;
    color: #888;
}

.match-date, .match-views {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.match-competition {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    text-align: center;
    font-weight: 500;
}

.match-competition:empty {
    display: none;
}

.watch-button {
    margin-top: 1rem;
}

.watch-button .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #0d6efd;
    border: none;
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: background-color 0.2s;
}

.watch-button .btn:hover {
    background: #0b5ed7;
}

.countdown-text {
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.countdown-text.live {
    color: var(--success);
    font-weight: 600;
    animation: pulse 2s infinite;
}

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

/* Match Countdown Styles */
.match-countdown {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.countdown-text {
    white-space: nowrap;
    transition: all 0.3s ease;
    font-weight: 500;
}

/* Scheduled matches (more than 2 hours away) */
.countdown-text.scheduled {
    color: var(--text-secondary);
}

/* Starting soon (within 2 hours) */
.countdown-text.soon {
    color: #fff;
    font-weight: 600;
    font-size: 1.1em;
    opacity: 0.9;
    letter-spacing: 1px;
}

/* Live matches */
.countdown-text.live {
    color: var(--success);
    font-weight: 600;
    animation: pulse 2s infinite;
}

/* Ended matches */
.countdown-text.ended {
    color: var(--danger);
}

.match-countdown {
    display: flex;
    align-items: center;
    gap: 8px;
}

.countdown-text {
    white-space: nowrap;
    transition: all 0.3s ease;
    font-weight: 500;
}

.match-countdown i {
    transition: color 0.3s ease;
}

.match-countdown[data-status="live"] i {
    color: var(--success);
}

.match-countdown[data-status="soon"] i {
    color: #fff;
}

.match-countdown[data-status="ended"] i {
    color: var(--danger);
}

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

.live-badge {
    background-color: #ff0000;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: bold;
    animation: pulse 2s infinite;
}

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

.team-vs-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 15px 0;
}

.team {
    text-align: center;
    flex: 1;
}

.vs {
    padding: 0 15px;
    font-weight: bold;
    color: #fff;
}

/* Match Status Colors */
.match-status,
.fas.fa-clock {
    font-weight: 600;
   
    border-radius: 4px;
}

.match-status.scheduled,
.fas.fa-clock.scheduled {
    color: #6c757d; /* Gray */
}

.match-status.soon,
.fas.fa-clock.soon {
    color: #ffc107; /* Yellow */
    animation: pulse-yellow 2s infinite;
}

.match-status.live,
.fas.fa-clock.live {
    color: #28a745; /* Green */
    animation: pulse-green 2s infinite;
}

.match-status.ended,
.fas.fa-clock.ended {
    color: #dc3545; /* Red */
}

@keyframes pulse-yellow {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
    100% {
        opacity: 1;
    }
}

@keyframes pulse-green {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
    100% {
        opacity: 1;
    }
}

.live-badge {
    background-color: #28a745;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: bold;
    animation: pulse-green 2s infinite;
}

.match-time {
    font-weight: 600;
}

.match-time.scheduled {
    color: #6c757d;
}

.match-time.soon {
    color: #fff;
    font-weight: 600;
    font-size: 1.1em;
    opacity: 0.9;
    letter-spacing: 1px;
}

.match-time.ended {
    color: #dc3545;
}

.match-countdown {
    display: flex;
    align-items: center;
    gap: 8px;
}

.countdown-text {
    white-space: nowrap;
    transition: all 0.3s ease;
    font-weight: 500;
}

.match-countdown .fas.fa-clock {
    font-size: 1.1em;
}

.competitions-filter {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.competitions-filter .btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 20px;
    transition: all 0.2s ease;
    background-color: #1a1a1a;
    border: 1px solid #333;
    font-size: 0.9rem;
}

.competitions-filter .btn:hover,
.competitions-filter .btn.active {
    background-color: #333;
    border-color: #444;
}

.competitions-filter .btn img.competition-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.competitions-filter .btn.active {
    border-color: #666;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.match-time {
    color: #fff;
    font-weight: 600;
    font-size: 1.1em;
    letter-spacing: 1px;
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
}

.match-time.live {
    color: #dc3545;
    animation: pulse-red 2s infinite;
}

.match-time.live i {
    font-size: 0.6em;
    vertical-align: middle;
    margin-right: 4px;
}
