/* Match Profile Page Styles */
:root {
    --cb-match-dark: #1D3163;
    --cb-match-accent: #152347;
    --cb-match-bg: #fcfcfc;
    --cb-match-border: #e9ecef;
    --cb-match-text: #444;
}

.cb_match-template-default .content_wrap {
    width: 100% !important;
}

.cb_match-template-default .row {
    margin: auto;
}

th.ps-3.py-2.text-uppercase {
    text-align: left !important;
}

.match-header-banner {
    background-color: #152347;
    color: #fff;
    padding: 60px 20px;
    text-align: center;
}

.match-header-banner h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: #fff;
}

.match-breadcrumbs {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.6);
}

.match-breadcrumbs a {
    color: #fff;
    text-decoration: none;
}

.match-preview-section {
    margin-top: -40px;
    margin-bottom: 40px;
}

.match-preview-card {
    background: #fff;
    border: 1px solid var(--cb-match-border);
    border-radius: 8px;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

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

.preview-team img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 10px;
}

.preview-team-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--cb-match-dark);
}

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

.preview-date {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 5px;
}

.preview-time {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1;
}

.preview-status {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #888;
    margin-top: 5px;
}

/* Live Pulse Text Animation */
.live-pulse-text {
    font-size: 3rem;
    font-weight: 900;
    color: #e74c3c;
    text-transform: uppercase;
    letter-spacing: 3px;
    animation: pulse-animation 1.5s ease-in-out infinite;
    position: relative;
    display: inline-block;
}

.live-pulse-text::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: rgba(231, 76, 60, 0.2);
    border-radius: 8px;
    animation: pulse-glow 1.5s ease-in-out infinite;
    z-index: -1;
}

@keyframes pulse-animation {

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

    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

@keyframes pulse-glow {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.8;
    }
}

.match-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.match-recap-text {
    font-size: 1rem;
    line-height: 1.8;
    color: #666;
    margin-bottom: 40px;
}

/* Module Header Bar */
.match-module-header {
    background-color: var(--cb-match-dark);
    color: #fff;
    padding: 12px 20px;
    font-size: 0.95rem;
    font-weight: 700;
    border-top: 4px solid var(--cb-match-accent);
}

/* Table Design */
.match-table-container {
    background: #fff;
    border: 1px solid var(--cb-match-border);
    margin-bottom: 30px;
}

@media only screen and (max-width: 990px) {
    .match-table-container {
        overflow-x: scroll;
    }
}

.cb-match-table {
    width: 100%;
    margin-bottom: 0;
}

.cb-match-table th {
    background-color: #f8f9fa;
    color: #111;
    font-size: 0.8rem;
    text-transform: uppercase;
    padding: 15px;
    font-weight: 700;
    text-align: center;
}

.cb-match-table td {
    padding: 15px;
    border-top: 1px solid var(--cb-match-border);
    font-size: 0.95rem;
    vertical-align: middle;
    text-align: center;
    color: #444;
}

.cb-match-table .text-start {
    text-align: left;
}

/* Venue & Map */
.match-venue-display {
    text-align: center;
    padding: 20px;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--cb-match-dark);
}

.match-map-container {
    height: 350px;
    width: 100%;
}

.match-venue-address {
    padding: 15px;
    text-align: center;
    font-size: 0.85rem;
    color: #888;
    background: #fdfdfd;
}

/* Cricket Scoreboard adjustments */
.score-highlight {
    color: var(--cb-match-dark);
    font-weight: 800;
}

.player-highlight {
    color: var(--cb-match-dark);
    text-decoration: none;
    font-weight: 600;
}

.player-highlight:hover {
    color: var(--cb-match-accent);
}

/* Match Tabs Section */
.cb-match-tabs-section {
    background: #fff;
    border: 1px solid var(--cb-match-border);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 40px;
}

.cb-match-tabs-nav {
    display: flex;
    border-bottom: 1px solid var(--cb-match-border);
    background: #f8f9fa;
}

.cb-match-tab-btn {
    flex: 1;
    padding: 15px 20px;
    border: none;
    background: none;
    font-weight: 700;
    text-transform: uppercase;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
    border-right: 1px solid var(--cb-match-border);
}

.cb-match-tab-btn:last-child {
    border-right: none;
}

.cb-match-tab-btn:hover {
    background: #eee;
    color: var(--cb-match-dark);
}

.cb-match-tab-btn.active {
    background: var(--cb-match-dark);
    color: #fff;
}

.cb-match-tab-content {
    display: none;
    padding: 20px;
}

.cb-match-tab-content.active {
    display: block;
}

/* Match List Item */
.cb-match-card-item {
    display: flex;
    align-items: center;
    border: 1px solid var(--cb-match-border);
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 15px;
    transition: transform 0.2s;
    background: #fdfdfd;
}

.cb-match-card-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.cb-m-date-box {
    width: 80px;
    text-align: center;
    border-right: 1px solid var(--cb-match-border);
    padding-right: 15px;
    margin-right: 15px;
}

.cb-m-day {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--cb-match-dark);
    line-height: 1;
}

.cb-m-month {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #888;
}

.cb-m-details {
    flex: 1;
}

.cb-m-teams {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 5px;
    color: #333;
}

.cb-m-meta {
    font-size: 0.85rem;
    color: #777;
}

.cb-m-status {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 4px;
    background: #eee;
    color: #555;
    display: inline-block;
}

.status-live {
    background: #e74c3c;
    color: #fff;
}

.status-upcoming {
    background: #3498db;
    color: #fff;
}

.status-completed {
    background: #2ecc71;
    color: #fff;
}

.cb-m-action {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    min-width: 100px;
}

.cb-btn-view {
    font-size: 0.8rem;
    padding: 6px 12px;
    border: 1px solid var(--cb-match-dark);
    color: var(--cb-match-dark);
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.cb-btn-view:hover {
    background: var(--cb-match-dark);
    color: #fff;
}

.cb-load-more-container {
    text-align: center;
    margin-top: 20px;
}

.cb-load-more-btn {
    padding: 10px 30px;
    background: #f1f2f6;
    border: none;
    color: #333;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: background 0.3s;
}

.cb-load-more-btn:hover {
    background: #e1e2e6;
}

/* Stats Menu CSS - Dark Theme */
.cb-stats-menu h6 {
    background-color: #1a2c4e !important;
    /* Dark Blue */
    color: #fff !important;
    border-bottom: 1px solid #2c3e50;
}

.cb-stats-menu .list-group-item {
    border: none;
    border-bottom: 1px solid #eee;
    font-size: 0.9rem;
    padding: 12px 15px;
    font-weight: 500;
    color: #333;
    transition: all 0.2s;
}

.cb-stats-menu .list-group-item:hover {
    background-color: #f0f4f8;
    color: #0d6efd;
    padding-left: 18px;
    /* Slide effect */
}

.cb-stats-menu .list-group-item.active {
    background-color: #0d6efd;
    /* Bright Blue */
    border-color: #0d6efd;
    color: #fff;
    font-weight: 700;
}

.cb-stats-menu .hidden {
    display: none;
}

.cb-stat-link .cb-icon {
    font-size: 1.2em;
    font-weight: bold;
}

/* Premium Table - Dark Header */
.cb-table-premium thead th {
    background-color: #1a2c4e !important;
    /* Match Sidebar Header */
    color: #fff !important;
    font-weight: 600;
    padding: 12px 10px;
    border: none;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

.cb-table-premium tbody td {
    padding: 12px 10px;
    color: #333;
    border-bottom: 1px solid #eee;
    font-size: 0.9rem;
    vertical-align: middle;
}

.cb-table-premium tbody tr:hover {
    background-color: #f8f9fa;
}

.cb-team-stats-container .form-select {
    border-color: #ddd;
    font-size: 0.85rem;
}

.cb-team-stats-container .table thead th {
    font-weight: 600;
    color: #444;
    padding: 12px 8px;
}

.cb-team-stats-container .table tbody td {
    padding: 10px 8px;
    color: #333;
}

/* Live Match Center */
.wepl-live-center {
    background: #f8fafc;
    padding: 20px;
    border-radius: 20px;
}

.live-featured-box {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
}

.live-indicator {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(231, 76, 60, 0.9);
    color: #fff;
    padding: 5px 12px;
    font-size: 0.75rem;
    font-weight: 800;
    border-radius: 5px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 1px;
}

.live-indicator .pulse {
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    animation: live-pulse 1.5s infinite;
}

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

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

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

.featured-player {
    border: 4px solid #1D3163;
    border-radius: 12px;
}

.live-section-title {
    color: #1D3163;
    border-left: 5px solid #1D3163;
    padding-left: 15px;
    font-weight: 800;
}

.live-grid-card {
    transition: all 0.3s ease;
}

.live-grid-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

.no-stream-placeholder {
    height: 100%;
}

/* Upcoming Match Banner */
.upcoming-stream-banner {
    background: linear-gradient(135deg, #1D3163 0%, #152347 100%);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    color: #fff;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upcoming-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://www.transparenttextures.com/patterns/carbon-fibre.png');
    opacity: 0.1;
    pointer-events: none;
}

.upcoming-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.match-soon-badge {
    background: #ffc107;
    color: #000;
    display: inline-block;
    padding: 8px 24px;
    border-radius: 50px;
    font-weight: 800;
    letter-spacing: 2px;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

.match-vs-display {
    padding: 20px 0;
}

.u-team {
    flex: 1;
}

.u-logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 15px;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3));
}

.u-name {
    font-weight: 700;
    font-size: 1.4rem;
    text-transform: uppercase;
}

.u-vs {
    font-size: 2.5rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.2);
    font-style: italic;
}

.match-timing {
    background: rgba(255, 255, 255, 0.05);
    display: inline-block;
    padding: 15px 40px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.u-date {
    font-size: 1.1rem;
    font-weight: 600;
    opacity: 0.9;
}

.u-time {
    font-size: 2rem;
    font-weight: 800;
    color: #ffc107;
}

@media (max-width: 768px) {
    .match-vs-display {
        gap: 20px !important;
        flex-direction: column;
    }

    .u-vs {
        display: none;
    }
}

/* Match Profile Sidebar */
.match-sidebar {
    position: sticky;
    top: 20px;
}

.sidebar-widget {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.widget-header {
    background: #1D3163;
    color: #fff;
    padding: 10px 15px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.nav-widget .widget-content {
    padding: 20px;
}

.btn-premium {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    border-radius: 10px;
    color: #fff !important;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    text-align: left;
}

.btn-premium i {
    font-size: 18px;
    opacity: 0.8;
}

.btn-premium:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    filter: brightness(1.1);
}

.btn-home-team {
    background: linear-gradient(135deg, #1D3163 0%, #34495e 100%);
}

.btn-away-team {
    background: linear-gradient(135deg, #1abc9c 0%, #16a085 100%);
}

.btn-league {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
}

.btn-live {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.s-logo {
    width: 45px;
    height: 45px;
    object-fit: contain;
}

.s-logo.small {
    width: 35px;
    height: 35px;
}

.s-match-meta {
    font-size: 0.7rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.match-widget .widget-content {
    transition: background 0.3s ease;
}

.match-widget .widget-content:hover {
    background: #f8fafc !important;
}

/* Coming Soon Placeholder */
.live-coming-soon {
    border-radius: 12px;
    padding: 60px 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(29, 49, 99, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin: 20px 0;
}

.coming-soon-icon {
    font-size: 4rem;
    color: #ffc107;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 15px rgba(255, 193, 7, 0.4));
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-20px);}
    60% {transform: translateY(-10px);}
}

.coming-soon-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.coming-soon-text {
    font-size: 1.1rem;
    opacity: 0.8;
    max-width: 500px;
    margin: 0 auto;
}