@import url('home.css');

/* Custom Components */
.btn {
    display: inline-block;
    padding: 14px 32px;
    background: linear-gradient(135deg, #ff0055, #ff4d8d, #ff8c00);
    background-size: 200% 200%;
    animation: gradient-shift 5s ease infinite;
    color: white;
    text-decoration: none;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 14px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(255, 0, 85, 0.3);
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 30px rgba(255, 0, 85, 0.4);
    filter: brightness(1.1);
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-outfit);
    margin: 0;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Page Transition Animations */
.animate-slide-up {
    animation: slideUp 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Skeleton Loading Animation */
.skeleton {
    background: linear-gradient(90deg, #1a1a1a 25%, #252525 50%, #1a1a1a 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite linear;
    border-radius: 4px;
    display: block;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.skeleton-text {
    height: 1rem;
    margin-bottom: 0.5rem;
    width: 100%;
}

.skeleton-rect {
    height: 80px;
    width: 100%;
}

/* Player Star Card Modal Styling */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(15px);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.player-card-premium {
    background: linear-gradient(145deg, rgba(30, 30, 30, 0.9), rgba(10, 10, 10, 1));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    width: 100%;
    max-width: 450px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8);
}

.close-modal {
    position: absolute;
    --surface: #0a0e17;
    --glass: rgba(15, 23, 42, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-main: 'Outfit', sans-serif;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    z-index: 10;
    transition: background 0.3s;
}

#hero-3d-scene {
    display: none;
}

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

.player-card-hero {
    height: 250px;
    position: relative;
    overflow: hidden;
}

.player-card-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8);
}

.player-card-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(10, 10, 10, 1), transparent);
}

.verified-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: var(--secondary);
    color: var(--bg-dark);
    padding: 6px 15px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.75rem;
    letter-spacing: 1px;
    z-index: 5;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.player-card-info {
    padding: 30px;
    text-align: center;
}

.player-name-main {
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 5px;
}

.player-reg-id {
    color: var(--text-dim);
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: 25px;
}

.player-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 20px;
}

.stat-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 12px;
    text-align: left;
}

.stat-label {
    font-size: 0.7rem;
    color: var(--text-dim);
    text-transform: uppercase;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 1rem;
    font-weight: 600;
}

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
}

.toast {
    background: rgba(20, 20, 20, 0.9);
    backdrop-filter: blur(10px);
    border-left: 4px solid var(--primary);
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.toast.show {
    transform: translateX(0);
}

.toast-icon {
    font-size: 1.2rem;
}

/* Ultra-Premium Glassmorphism */
.glass {
    background: var(--glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 215, 0, 0.1),
            transparent);
    transition: 0.6s;
    z-index: 10;
    pointer-events: none;
}

.glass:hover {
    border-color: var(--secondary);
    box-shadow: 0 20px 50px rgba(0, 242, 255, 0.1);
    transform: translateY(-8px);
}

.glass:hover::before {
    left: 150%;
}

.premium-gold-card {
    border: 2px solid rgba(255, 215, 0, 0.4) !important;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(255, 215, 0, 0.03)) !important;
}

/* Gold Glow & Shine Effect */
.gold-glow {
    position: relative;
    border: 1px solid rgba(255, 215, 0, 0.3) !important;
    overflow: hidden;
}

.gold-glow::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 215, 0, 0.1), transparent);
    transform: rotate(45deg);
    animation: gold-shine 3s infinite;
}

@keyframes gold-shine {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) rotate(45deg);
    }
}

.stat-card.orange-glow {
    border-bottom: 3px solid #ff8c00;
}

.stat-card.purple-glow {
    border-bottom: 3px solid #8a2be2;
}

/* TV Broadcast Style Scoreboard */
#live-score-container {
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.95), rgba(30, 30, 30, 0.95)) !important;
    border-radius: 0 0 30px 30px !important;
    border-top: 4px solid var(--primary) !important;
    padding: 30px !important;
}

.tv-score-team {
    font-size: 1.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.tv-score-main {
    font-family: 'monospace';
    letter-spacing: -2px;
    text-shadow: 0 0 20px rgba(255, 77, 141, 0.5);
}

/* Floating Action Button (FAB) */
.fab-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.fab-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(255, 77, 141, 0.4);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    font-size: 1.5rem;
}

.fab-btn:hover {
    transform: scale(1.1) rotate(5deg);
    background: #ff4d8d;
}

/* Scroll Reveal Classes */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Preloader Intro Animation Styles */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), visibility 1s;
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.preloader-logo {
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: 5px;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: preloader-pulse 2s infinite ease-in-out;
    margin-bottom: 20px;
}

.preloader-bar {
    width: 150px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    border-radius: 2px;
}

.preloader-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--secondary), transparent);
    animation: preloader-loading 1.5s infinite;
}

@keyframes preloader-pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.8;
        filter: drop-shadow(0 0 10px rgba(255, 77, 141, 0));
    }

    50% {
        transform: scale(1.05);
        opacity: 1;
        filter: drop-shadow(0 0 30px rgba(255, 77, 141, 0.4));
    }
}

@keyframes preloader-loading {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

/* Ensure no scroll during preloader */
body.preloader-active {
    overflow: hidden;
}

/* Developer Credits Styling */
.dev-credits {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.dev-label {
    font-size: 0.75rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.dev-name {
    font-weight: 700;
    color: var(--secondary);
    font-size: 0.95rem;
}

.dev-socials {
    display: flex;
    gap: 15px;
}

.dev-icon {
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dev-icon:hover {
    background: var(--secondary);
    color: var(--bg-dark);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.dev-icon img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.btn-secondary {
    position: relative;
    overflow: hidden;
}

.btn:active {
    transform: scale(0.95);
}

/* Particles Background */
#particles-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: var(--secondary);
    border-radius: 50%;
    opacity: 0.3;
    filter: blur(2px);
    animation: float-particle linear infinite;
}

@keyframes float-particle {
    from {
        transform: translateY(0) translateX(0);
    }

    to {
        transform: translateY(-100vh) translateX(50px);
    }
}

.btn-secondary {
    display: inline-block;
    padding: 12px 28px;
    background: var(--glass-bg);
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background: var(--glass-border);
    border-color: var(--secondary);
    color: var(--secondary);
}

.active-nav {
    background: var(--secondary) !important;
    color: var(--bg-dark) !important;
    border-color: var(--secondary) !important;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 15px 0;
    background: var(--bg-nav);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.nav-links {
    display: flex;
    gap: 10px;
    align-items: center;
}

.nav-links .btn-secondary {
    padding: 8px 15px;
    font-size: 0.85rem;
}

.navbar h1 {
    font-size: 1.2rem;
    margin: 0;
    white-space: nowrap;
}

/* --- START MOBILE OPTIMIZATION --- */
@media (max-width: 600px) {

    /* Headings Scalability */
    h1 {
        font-size: 1.8rem !important;
    }

    h2 {
        font-size: 1.6rem !important;
    }

    h3 {
        font-size: 1.4rem !important;
    }

    .section-title {
        font-size: 1.8rem !important;
        margin-bottom: 30px !important;
    }

    /* Navbar Compactness */
    .navbar {
        padding: 10px 0 !important;
    }

    .navbar .container {
        flex-direction: column !important;
        gap: 8px !important;
        align-items: center !important;
    }

    .navbar h1 {
        font-size: 1.2rem !important;
    }

    .navbar img {
        height: 35px !important;
    }

    .nav-links {
        gap: 6px !important;
        width: 100% !important;
        justify-content: center !important;
    }

    .nav-links .btn-secondary {
        padding: 6px 10px !important;
        font-size: 0.75rem !important;
        border-radius: 8px !important;
    }

    /* Hero Refinement */
    .hero {
        padding: 120px 0 40px !important;
    }

    .hero-title {
        font-size: 2.2rem !important;
        padding: 0 15px !important;
    }

    .hero-subtitle {
        font-size: 0.95rem !important;
        padding: 0 25px !important;
    }

    .hero-actions {
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding: 0 30px;
    }

    .hero-actions .btn {
        width: 100% !important;
        padding: 14px !important;
        font-size: 1rem !important;
    }

    /* Match Center & Scoreboards */
    #live-score-container {
        padding: 25px 15px !important;
        border-radius: 15px !important;
    }

    #live-score-container h3 {
        font-size: 1.1rem !important;
    }

    #display-live-score1,
    #display-live-score2 {
        font-size: 2.2rem !important;
    }

    #display-live-wickets {
        font-size: 1.8rem !important;
    }

    .live-indicator {
        font-size: 0.7rem !important;
    }

    /* Tables (Points Table) */
    .premium-table th,
    .premium-table td {
        padding: 10px 8px !important;
        font-size: 0.75rem !important;
    }

    .premium-table td {
        font-weight: 600 !important;
    }

    /* Stat Cards (Leaderboard) */
    .stat-card {
        padding: 20px !important;
        border-radius: 15px !important;
    }

    .stat-value {
        font-size: 1.1rem !important;
    }

    .leaderboard-grid {
        gap: 15px !important;
    }

    /* Contact Cards */
    .contact-card {
        padding: 25px 20px !important;
        border-radius: 15px !important;
    }

    .contact-title {
        font-size: 1.1rem !important;
    }

    .contact-info {
        font-size: 0.9rem !important;
    }

    /* Spacing & Sections */
    section {
        padding: 60px 0 !important;
    }

    .container {
        padding: 0 15px !important;
    }

    /* Notice Bar */
    .notice-bar {
        font-size: 0.8rem !important;
        margin-bottom: 20px !important;
    }
}

/* Match Fixtures Styling */
.fixtures-grid {
    display: flex;
    gap: 25px;
    margin-top: 30px;
    overflow-x: auto;
    padding: 10px 10px 30px 10px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

/* Custom Scrollbar for Fixtures */
.fixtures-grid::-webkit-scrollbar {
    height: 8px;
}

.fixtures-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
}

.fixtures-grid::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    border-radius: 10px;
}

.fixture-card {
    min-width: 380px;
    max-width: 380px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    scroll-snap-align: center;
    flex-shrink: 0;
}

.match-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.fixture-team {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.team-logo-small {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    border: 1px solid var(--glass-border);
}

.vs-badge {
    color: var(--secondary);
    font-weight: 900;
    font-size: 1rem;
    background: rgba(255, 215, 0, 0.1);
    padding: 5px 12px;
    border-radius: 50px;
    text-transform: uppercase;
}

.match-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.match-time {
    color: var(--text-main);
    font-weight: 800;
    font-size: 1.1rem;
}

.match-day {
    color: var(--secondary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.match-venue {
    color: var(--text-dim);
    font-size: 0.8rem;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

@media (max-width: 768px) {
    .fixture-card {
        min-width: 300px;
        max-width: 300px;
    }
}

/* Ticker Animations */
.news-ticker-container {
    padding: 0 !important;
}

.ticker-track {
    display: flex;
    white-space: nowrap;
    animation: ticker-scroll 40s linear infinite;
    gap: 0;
    width: fit-content;
}

.ticker-item {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    padding: 0 50px;
    flex-shrink: 0;
}

.ticker-label {
    background: var(--primary);
    color: white;
    padding: 15px 25px;
    font-weight: 900;
    z-index: 100;
    position: relative;
    box-shadow: 15px 0 30px rgba(0, 0, 0, 0.5);
    flex-shrink: 0;
}

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

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

/* 3D Scene removal */
#hero-3d-scene {
    display: none;
}

.hero {
    position: relative;
    z-index: 1;
}

/* Card Stabilization */
.glass,
.feature-card,
.contact-card,
.stat-card {
    transition: transform 0.3s ease-out;
}

/* Pulsing Dot Animations */
.pulsing-red-dot,
.pulsing-cyan-dot {
    display: inline-block;
    margin-right: 5px;
    font-size: 1.2rem;
    line-height: 1;
    vertical-align: middle;
}

.pulsing-red-dot {
    color: #ff0055;
    animation: pulse-red 1.5s infinite ease-in-out;
}

.pulsing-cyan-dot {
    color: #00f2ff;
    animation: pulse-cyan 1.5s infinite ease-in-out;
}

@keyframes pulse-red {

    0%,
    100% {
        opacity: 1;
        filter: drop-shadow(0 0 5px #ff0055);
    }

    50% {
        opacity: 0.4;
        filter: drop-shadow(0 0 10px #ff0055);
    }
}

@keyframes pulse-cyan {

    0%,
    100% {
        opacity: 1;
        filter: drop-shadow(0 0 5px #00f2ff);
    }

    50% {
        opacity: 0.4;
        filter: drop-shadow(0 0 10px #00f2ff);
    }
}

@media (max-width: 768px) {
    #hero-3d-scene {
        opacity: 0.4;
    }
}

/* Hero Section */
.hero {
    padding: 140px 0 60px;
    text-align: center;
    position: relative;
}

.hero-title {
    font-size: clamp(2rem, 10vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 20px;
    padding: 0 10px;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-dim);
    max-width: 600px;
    margin: 0 auto 30px;
    padding: 0 20px;
}

/* Sections */
section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
}

/* Footer */
footer {
    padding: 60px 0;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    color: var(--text-dim);
}

/* Grid Layout */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    padding: 40px;
    text-align: left;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

/* Premium Points Table Styles */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.premium-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 1rem;
}

.premium-table th {
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-dim);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--glass-border);
}

.premium-table td {
    padding: 18px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    text-align: center;
}

.premium-table tr {
    transition: background 0.3s ease;
}

.premium-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* Roster / Squad Styles */
.roster-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.player-card {
    padding: 20px;
    display: flex;
    align-items: center;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.02);
}

.player-info h4 {
    font-size: 1.1rem;
    margin: 0;
}

.player-format-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.player-format-badge.batting {
    background: #ff4d8d20;
    color: #ff4d8d;
    border: 1px solid #ff4d8d40;
}

.player-format-badge.bowling {
    background: #00f2ff20;
    color: #00f2ff;
    border: 1px solid #00f2ff40;
}

.player-format-badge.allrounder {
    background: #ff9f0020;
    color: #ff9f00;
    border: 1px solid #ff9f0040;
}

.active-filter {
    background: var(--secondary) !important;
    color: var(--bg-dark) !important;
    border-color: var(--secondary) !important;
}

.premium-table tr:last-child td {
    border-bottom: none;
}

.loading-spinner {
    width: 25px;
    height: 25px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid var(--secondary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-right: 10px;
    vertical-align: middle;
}

/* Animations */
@keyframes pulse-red {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 0, 85, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(255, 0, 85, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 0, 85, 0);
    }
}

.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 0, 85, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255, 0, 85, 0.2);
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse-red 2s infinite;
}


/* Notice Bar & Blinking Button */
.notice-bar {
    background: linear-gradient(90deg, transparent, rgba(0, 242, 255, 0.1), transparent);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    padding: 12px 0;
    text-align: center;
    font-size: 0.95rem;
    color: var(--secondary);
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 35px;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.notice-content {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 60s linear infinite;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

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

.btn-blink {
    padding: 18px 45px !important;
    font-size: 1.2rem !important;
    animation: blink 2s infinite ease-in-out;
    background: linear-gradient(135deg, var(--secondary), var(--primary)) !important;
}

.btn-red-blink {
    background: #ff0000 !important;
    color: white !important;
    animation: blink 1.5s infinite ease-in-out !important;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.6) !important;
    font-weight: 800 !important;
}

.btn-live-auction {
    background: linear-gradient(135deg, #00f2ff, #ff0055) !important;
    color: white !important;
    font-weight: 800 !important;
    animation: live-blink 2s infinite ease-in-out !important;
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

/* .btn-Players-details {
    background: linear-gradient(135deg, #00f2ff, #ff0055) !important;
    color: white !important;
    font-weight: 800 !important;
    animation: live-blink 2s infinite ease-in-out !important;
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
} */

@keyframes live-blink {

    0%,
    100% {
        box-shadow: 0 0 15px rgba(0, 242, 255, 0.4);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 0 25px rgba(255, 0, 85, 0.6), 0 0 40px rgba(0, 242, 255, 0.3);
        transform: scale(1.05);
    }
}

/* Infinity Gallery */
.gallery-container {
    width: 100%;
}

.gallery-track {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: gallery-scroll 30s linear infinite;
}

.gallery-track:hover {
    animation-play-state: paused;
}

.gallery-item {
    height: 380px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
    flex-shrink: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    position: relative; /* Added for label positioning */
}

.gallery-item.landscape {
    width: 580px;
}

.gallery-item.portrait {
    width: 280px;
}

.gallery-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 15px 15px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 20%, transparent);
    color: white;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 2;
    text-align: center;
}

.gallery-item:hover .gallery-label {
    transform: translateY(0);
}

.gallery-label h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.gallery-label p {
    margin: 3px 0 0;
    font-size: 0.75rem;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
}

.gallery-item:hover {
    border-color: var(--secondary);
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Shows the full photo without cropping */
    background: rgba(0, 0, 0, 0.4);
    /* Adds a dark background to fill gaps */
    display: block;
}

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

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

/* Leaderboard Caps Styling */
.leaderboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

.stat-card {
    padding: 25px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.orange-glow {
    border-top: 4px solid #ff8800;
    box-shadow: 0 10px 30px rgba(255, 136, 0, 0.1);
}

.purple-glow {
    border-top: 4px solid #a020f0;
    box-shadow: 0 10px 30px rgba(160, 32, 240, 0.1);
}

.stat-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.stat-icon {
    font-size: 1.5rem;
}

.leaderboard-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.leaderboard-item:hover {
    background: rgba(255, 255, 255, 0.03);
    padding-left: 18px;
}

.player-info h4 {
    font-size: 1rem;
    margin: 0;
}

.player-info p {
    font-size: 0.75rem;
    color: var(--text-dim);
    margin: 0;
}

.stat-value {
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--secondary);
}

@media (max-width: 768px) {
    .leaderboard-grid {
        grid-template-columns: 1fr;
    }
}

@keyframes modal-zoom {
    0% {
        transform: scale(0.5) translateY(100px);
        opacity: 0;
    }

    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}
/* ============================================
   COMPREHENSIVE MOBILE RESPONSIVENESS FIX
   ============================================ */
* { box-sizing: border-box; }

/* TABLET (max 768px) */
@media (max-width: 768px) {
    .navbar { padding: 8px 0 !important; }
    .navbar .container { flex-direction: row !important; flex-wrap: wrap !important; gap: 6px !important; padding: 0 12px !important; }
    .navbar h1 { font-size: 1rem !important; }
    .navbar img { height: 36px !important; }
    .nav-links { width: 100% !important; overflow-x: auto !important; flex-wrap: nowrap !important; justify-content: flex-start !important; padding-bottom: 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
    .nav-links::-webkit-scrollbar { display: none; }
    .nav-links .btn-secondary { white-space: nowrap !important; flex-shrink: 0 !important; padding: 7px 12px !important; font-size: 0.78rem !important; }

    .hero { padding: 115px 0 40px !important; }
    .hero-title { font-size: 2rem !important; padding: 0 12px !important; }
    .hero-subtitle { padding: 0 16px !important; font-size: 0.9rem !important; }
    .hero-actions { flex-direction: column !important; align-items: center !important; padding: 0 20px !important; gap: 10px !important; }
    .hero-actions .btn, .hero-actions .btn-secondary { width: 100% !important; text-align: center !important; padding: 14px !important; }

    section { padding: 60px 0 !important; }
    .container { padding: 0 14px !important; }
    .section-title { font-size: 1.8rem !important; margin-bottom: 30px !important; }
    .grid { grid-template-columns: 1fr !important; gap: 20px !important; }
    .leaderboard-grid { grid-template-columns: 1fr !important; gap: 15px !important; }

    .table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .premium-table { min-width: 480px; }
    .premium-table th, .premium-table td { padding: 10px 8px !important; font-size: 0.78rem !important; }

    .modal-backdrop { padding: 12px !important; align-items: flex-end !important; }
    .modal-content { width: 100% !important; max-width: 100% !important; max-height: 92vh !important; overflow-y: auto !important; border-radius: 20px 20px 0 0 !important; padding: 25px 20px !important; }

    .gallery-item.landscape { width: 320px !important; }
    .gallery-item.portrait { width: 200px !important; }
    .gallery-item { height: 240px !important; }
    .fixture-card { min-width: 280px !important; max-width: 90vw !important; }
    .stats-table th, .stats-table td { padding: 10px 8px !important; font-size: 0.8rem !important; }
    footer { padding: 40px 20px !important; }
    .fab-container { bottom: 15px; right: 15px; gap: 10px; }
    .fab-btn { width: 48px; height: 48px; font-size: 1.2rem; }
}

/* PHONE (max 480px) */
@media (max-width: 480px) {
    .navbar .container { padding: 0 10px !important; }
    .navbar h1 { font-size: 0.9rem !important; }
    .navbar img { height: 30px !important; }
    .nav-links .btn-secondary { padding: 6px 9px !important; font-size: 0.7rem !important; }

    .hero { padding: 95px 0 30px !important; }
    .hero-title { font-size: 1.7rem !important; }
    .premium-table { min-width: 420px !important; }
    .premium-table th { font-size: 0.7rem !important; }
    .premium-table td { font-size: 0.75rem !important; }
    #display-live-score1, #display-live-score2 { font-size: 1.8rem !important; }
    #display-live-wickets { font-size: 1.4rem !important; }
    .contact-card { padding: 22px 16px !important; border-radius: 14px !important; }
    .stat-card { padding: 18px !important; border-radius: 14px !important; }
    .stat-value { font-size: 1.1rem !important; }
    .news-ticker-container { height: 55px !important; border-radius: 30px !important; }
    .ticker-item { font-size: 0.82rem !important; }
    .ticker-label { padding: 0 12px !important; font-size: 0.68rem !important; }
    .player-card-info { padding: 18px !important; }
    .player-name-main { font-size: 1.7rem !important; }
    .player-stats-grid { grid-template-columns: 1fr 1fr !important; gap: 10px !important; }
    .scorecard-container { margin: 80px 10px 0 !important; padding: 10px !important; }
    .teams-display { flex-direction: column !important; gap: 10px !important; align-items: center !important; }
    .score-main { font-size: 2.5rem !important; }
    .scorecard-container button { font-size: 0.75rem !important; padding: 8px 14px !important; }
    .sponsors-section { margin: 50px 0 !important; padding: 35px 0 !important; }
    .gallery-item { height: 200px !important; }
    .gallery-item.landscape { width: 280px !important; }
    .gallery-item.portrait { width: 170px !important; }
}

/* ---- NAVBAR HAMBURGER ALIGNMENT FIX ---- */
@media (max-width: 768px) {
    /* Make navbar row hold logo + pinned links + hamburger button */
    .navbar .container {
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 8px !important;
    }
    /* The #dynamic-navbar flex row */
    #dynamic-navbar {
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        flex-shrink: 0;
    }
    /* Hide extra items, show only pinned + hamburger */
    #dynamic-navbar .nav-hidden-mobile {
        display: none !important;
    }
    /* Hamburger button visible */
    .nav-hamburger-btn {
        display: flex !important;
    }
    /* Pinned links compact */
    #dynamic-navbar a:not(.nav-hidden-mobile) {
        padding: 7px 11px !important;
        font-size: 0.78rem !important;
        white-space: nowrap;
    }
}
