/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

/* Mobile Navigation - Hidden on Desktop */
.mobile-nav {
    display: none;
}

/* Performance optimizations */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
}

:root {
    --primary-dark: #0a0f1a;
    --primary-darker: #16213e;
    --primary-light: #1a2332;
    --accent-orange: #ff6b35;
    --accent-yellow: #ffd23f;
    --accent-gold: #ff9f40;
    --warm-orange: #ff8c42;
    
    --navy-blue: #070922; /*#101656;*/
    --dark-orange: #ff6f00;
    --black: #000000;
    --white: #ffffff;
    --light-gray: #f5f5f5;
    --dark-gray: #333333;
    --gradient-primary: linear-gradient(135deg, var(--accent-orange), var(--warm-orange));
    --gradient-secondary: #000000; /* Siyah arka plan */
    /*linear-gradient(45deg, #040311 0%, #070922 100%);*/
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.2);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* Ana Renkler - Koyu Lacivert Tema */
  
  /* Gradient Renkler * /

  --gradient-dark: linear-gradient(135deg, var(--primary-dark), var(--primary-darker));
  --gradient-accent: linear-gradient(45deg, var(--accent-orange), var(--accent-yellow));
  --gradient-warm: linear-gradient(135deg, var(--accent-yellow), var(--accent-gold));
  
  /* Metin Renkleri */
  --text-primary: #ffffff;
  --text-secondary: #b8b8b8;
  --text-muted: #888888;
  --text-accent: var(--accent-yellow);
  
  /* Arka Plan Renkleri */
  --bg-primary: var(--primary-dark);
  --bg-secondary: var(--primary-darker);
  --bg-card: rgba(255, 255, 255, 0.05);
  --bg-hover: rgba(255, 255, 255, 0.1);
  
  /* Border ve Shadow */
  --border-radius: 12px;
  --border-radius-small: 8px;
  --border-radius-large: 20px;
  --shadow-small: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-large: 0 8px 32px rgba(0, 0, 0, 0.5);
  
  /* Transition */
  --transition-fast: all 0.2s ease;
  --transition-normal: all 0.3s ease;
  --transition-slow: all 0.5s ease;
  
  /* Spacing */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-xxl: 48px;
  
  /* Font Sizes */
  --font-xs: 12px;
  --font-sm: 14px;
  --font-md: 16px;
  --font-lg: 18px;
  --font-xl: 24px;
  --font-xxl: 32px;
  --font-title: 48px;
}

html {
    background: #000000;
}

body {
    font-family: 'Inter', sans-serif;
    background: #000000;
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

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

/* Loading Screen */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

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

.loading-progress-container {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    margin: 20px auto 0;
    overflow: hidden;
}

.loading-progress {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 2px;
    width: 0%;
    transition: width 0.3s ease;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid var(--dark-orange);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

/* Header */
.header {
    background: #000000;
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--dark-orange);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
}

.logo-link {
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.logo-link:hover {
    opacity: 0.8;
}

.logo span {
    font-weight: 300;
    letter-spacing: -1px;
}

.logo span strong {
    font-weight: 900;
}

.logo i {
    color: var(--dark-orange);
    font-size: 2rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    flex-shrink: 0;
}

.logo-text {
    font-family: 'Nunito', 'Quicksand', 'Poppins', 'Montserrat', 'Inter', 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--white);
    letter-spacing: -0.5px;
    display: inline-block;
}

.logo-text-thin {
    font-weight: 300; /* İnce harfler */
    letter-spacing: 1px;
    font-family: 'Nunito', 'Quicksand', 'Poppins', 'Montserrat', 'Inter', sans-serif;
}

.logo-text-bold {
    font-weight: 800 !important; /* Elma her zaman bold - kalın harfler */
    letter-spacing: -1px;
    font-family: 'Nunito', 'Quicksand', 'Poppins', 'Montserrat', 'Inter', sans-serif;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

.nav {
    display: flex;
    align-items: center;
}

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

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

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: baseline;
}

.nav-link {
    border: 2px solid transparent;
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    padding: 10px 15px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-dark);
    border-color: var(--accent-orange);
    background: var(--gradient-primary);
    transform: translateY(-2px);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Profile Button */
.profile-btn {
    background: transparent;
    border: none;
    color: var(--white);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.5rem; /* %25 büyütüldü (1.2rem * 1.25 = 1.5rem) */
    margin-left: 15px;
    padding: 0;
}

.profile-btn:hover {
    transform: scale(1.1);
    color: var(--dark-orange);
}

.lang-toggle {
    background: var(--gradient-primary);
    border: none;
    color: var(--white);
    padding: 8px 15px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.lang-toggle:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* Main Content */
.main {
    margin-top: 90px;
    min-height: 400px;
    background: #000000;
}

@media (max-width: 768px) {
    .main {
        margin-top: 80px; /* Header yüksekliği + küçük boşluk */
        min-height: calc(100vh - 80px);
    }
}

@media (max-width: 480px) {
    .main {
        margin-top: 80px; /* Header biter bitmez başlasın */
        min-height: calc(100vh - 80px);
    }
}

.page {
    display: none;
    padding: 0px 0px clamp(10px, 3vw, 30px) 0px; /* Responsive padding - mobilde daha az */
    background: #000000;
    min-height: auto; /* Dinamik yükseklik */
}

.page.active {
    display: block;
}

.page-header {
    text-align: center;
    margin-bottom: 15px;
    margin-top: 20px; /* Biraz daha aşağı */
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 10px; /* Biraz daha aşağı */
}

.page-title i {
    color: var(--dark-orange);
}

.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 0, 0, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid #ff0000;
    font-weight: 600;
    font-size: 0.9rem;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #02ff00;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

/* Sport Filter */
.sport-filter {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    margin-top: -10px; /* Biraz daha yukarı */
}

.sport-select {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--dark-orange);
    color: var(--white);
    padding: 12px 20px;
    border-radius: var(--border-radius);
    font-size: 1rem;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.sport-select option {
    background: #000000;
    color: var(--white);
}

/* Matches Grid */
.matches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: clamp(20px, 4vw, 40px); /* Responsive margin */
}

@media (min-width: 1200px) {
    .matches-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

.match-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 10px;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    min-height: 65px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.match-card.live {
    animation: pulseGlow 4s infinite;
    border-color: #ff0000;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.3);
    will-change: box-shadow, border-color; /* GPU hızlandırma */
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 20px rgba(255, 0, 0, 0.3);
        border-color: #ff0000;
    }
    50% {
        box-shadow: 0 0 25px rgba(255, 0, 0, 0.5);
        border-color: #ff3333;
    }
    100% {
        box-shadow: 0 0 20px rgba(255, 0, 0, 0.3);
        border-color: #ff0000;
    }
}

.match-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.match-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--dark-orange);
}

.match-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.match-category {
    color: var(--primary-dark);
    border-color: var(--accent-orange);
    border: 2px solid transparent;
    background: var(--gradient-primary);
    padding: 5px 12px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.load-more {
    cursor: pointer;
    display: none;
    text-align: center;
    color: var(--primary-dark);
    border-color: var(--accent-orange);
    border: 2px solid transparent;
    background: var(--gradient-primary);
    padding: 5px 12px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.match-time {
    color: var(--dark-orange);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.match-time .live-dot {
    width: 6px;
    height: 6px;
    background: #02ff00;
    border-radius: 50%;
    animation: pulse 3s infinite;
    will-change: opacity; /* GPU hızlandırma */
}


.match-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.match-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 4px 0px 0px 0px;
    gap: 10px;
}

.team {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.team:first-child {
    justify-content: flex-start;
}

.team:last-child {
    justify-content: flex-end;
}

/* Modal içindeki kartta sağdaki takım logosu takım adının sağına, kartın en sağına */
.modal .team:last-child {
    flex-direction: row;
    justify-content: flex-end;
}

.modal .team:last-child .team-name {
    order: 1;
    margin-right: 10px;
}

.modal .team:last-child .team-badge,
.modal .team:last-child .team-badge-placeholder {
    order: 2;
}

.team-badge {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid #ffffff; /* İnce beyaz border */
}

.team-badge-placeholder {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-badge-placeholder-logo {
    width: 90%;
    height: 90%;
    object-fit: contain;
    border-radius: 8px;
}

.team-name {
    font-weight: 600;
    font-size: 13px;
    flex: 1;
   

}

.awayteam{
    text-align: right;
}

.vs {
    color: var(--dark-orange);
    font-weight: 700;
    font-size: 1.1rem;
    margin: 0 15px;
}

.match-score {
    color: var(--primary-dark);
    border-color: var(--accent-orange);
    border: 2px solid transparent;
    background: var(--gradient-primary);
    padding: 5px 8px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 13px;
    min-width: 50px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.match-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: auto;
    padding-top: 4px;
}

.match-status {
    display: flex;
    align-items: center;
}

.live-status {
    color: #ff0000;
    font-weight: 600;
    font-size: 0.8rem;
    animation: pulse 2s infinite;
}

.upcoming-status {
    color: var(--dark-orange);
    font-weight: 600;
    font-size: 0.8rem;
}

.match-sources {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.source-tag {
    background: rgba(255, 111, 0, 0.2);
    color: var(--dark-orange);
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.match-poster-container {
    margin: 10px 0;
}

.match-poster {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Sports Grid */
.sports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.sport-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}

.sport-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--dark-orange);
}

.sport-icon {
    font-size: 3rem;
    color: var(--dark-orange);
    margin-bottom: 15px;
}

.sport-name {
    font-size: 1.2rem;
    font-weight: 600;
}

/* No Matches */
.no-matches {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.7);
}

/* Mobilde maç yoksa footer'a daha yakın */
@media (max-width: 768px) {
    .page {
        padding-bottom: clamp(8px, 2vw, 15px); /* Mobilde minimal padding */
    }
    
    /* Maç yoksa sayfa padding'ini azalt */
    .page.no-matches-page {
        padding-bottom: 5px !important; /* Footer'a çok daha yakın */
    }
    
    .no-matches {
        padding: 25px 15px !important; /* Maç yoksa daha az padding */
        margin-bottom: 0; /* Footer'a daha yakın */
    }
    
    .page.no-matches-page .no-matches {
        padding: 15px 10px !important; /* Daha da az padding */
    }
    
    /* 5'ten az kart varsa footer'ı body'ye fit et ve boşluğu maksimum daralt */
    .page.few-cards-page {
        padding-bottom: 0 !important; /* Footer'a tamamen yakın */
        min-height: auto !important; /* Dinamik yükseklik */
    }
    
    .page.few-cards-page .matches-grid {
        margin-bottom: 10px !important; /* Minimal margin */
        gap: 15px !important; /* Daha az gap */
    }
    
    .page.few-cards-page .page-header {
        margin-bottom: 10px !important; /* Minimal margin */
    }
    
    .page.few-cards-page .sport-filter {
        margin-bottom: 10px !important; /* Minimal margin */
    }
    
    /* Footer mobilde minimal padding - 5'ten az kart varsa daha da az */
    .footer {
        padding: clamp(15px, 3vw, 25px) 0;
    }
    
    .footer.few-cards-footer {
        padding: 10px 0 !important; /* Çok minimal padding */
    }
}

.no-matches i {
    font-size: 4rem;
    color: var(--dark-orange);
    margin-bottom: 20px;
}

.no-matches h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95); /* Daha koyu siyah arka plan */
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    padding: 0px;
    width: 70vw;
    background: #000000;
    border-radius: var(--border-radius);
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    border: 2px solid var(--dark-orange);
}

.stream-content {
    max-width: 95vw;
    max-height: 95vh;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-close {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: var(--transition);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.modal-body {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.stream-content .modal-body {
    padding: 0px;
}

.match-info {
    margin-bottom: 30px;
}

.streams-container {
    display: grid;
    gap: 15px;
}

.stream-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.stream-item:hover {
    border-color: var(--dark-orange);
    background: rgba(255, 111, 0, 0.1);
}

.stream-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.stream-number {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.stream-quality {
    background: var(--dark-orange);
    color: var(--white);
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
}

.stream-language {
    color: var(--white);
    font-weight: 500;
    margin-bottom: 10px;
}

.stream-action {
    margin-top: 10px;
    display: flex;
    justify-content: center;
}

.stream-play-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    width: 100%;
    justify-content: center;
}

.stream-play-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(255, 107, 53, 0.4);
    background: var(--accent-orange);
}

.stream-play-btn:active {
    transform: translateY(0);
}

.stream-play-btn i {
    font-size: 1rem;
}

.stream-player-container {
    margin-bottom: 10px;
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    flex-shrink: 0;
    min-height: 400px; /* Minimum yükseklik */
}

.stream-player-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /*border-radius: var(--border-radius);*/
}

/* Stream Player Wrapper with Chat */
.stream-player-wrapper {
    display: grid;
    grid-template-columns: 1fr minmax(300px, 400px); /* Chat box orantılı genişlik */
    gap: 15px;
    width: 100%;
    height: 100%;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

@media (max-width: 1200px) {
    .stream-player-wrapper {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr auto;
    }
    
    .chat-box-container {
        max-height: 500px;
        min-height: 400px;
    }
}

/* Chat Box Styles */
.chat-box-container {
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid var(--dark-orange);
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 100%;
    min-height: 0;
    overflow: hidden;
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 111, 0, 0.1);
}

.chat-header h3 {
    color: var(--white);
    font-size: 1.1rem;
    margin: 0;
}

.chat-toggle {
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    font-size: 1rem;
    padding: 5px;
    transition: var(--transition);
}

.chat-toggle:hover {
    color: var(--dark-orange);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 200px;
    max-height: 100%;
    overflow-x: hidden;
}

.chat-message {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 10px 15px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    animation: fadeIn 0.3s ease-in;
}

.chat-message-username {
    font-weight: 600;
    color: var(--dark-orange);
    font-size: 0.85rem;
}

.chat-message-text {
    color: var(--white);
    font-size: 0.9rem;
    word-wrap: break-word;
}

.chat-message-time {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    align-self: flex-end;
}

.chat-input-container {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.5);
}

.chat-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 10px 15px;
    color: var(--white);
    font-size: 0.9rem;
    outline: none;
}

.chat-input:focus {
    border-color: var(--dark-orange);
    background: rgba(255, 255, 255, 0.15);
}

.emoji-btn, .chat-send-btn {
    background: var(--dark-orange);
    border: none;
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
}

.emoji-btn:hover, .chat-send-btn:hover {
    background: var(--accent-orange);
    transform: scale(1.1);
}

.emoji-picker {
    position: absolute;
    bottom: 70px;
    left: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.95);
    border: 2px solid var(--dark-orange);
    border-radius: var(--border-radius);
    padding: 15px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 100;
}

.emoji-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 5px;
}

.emoji-item {
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    text-align: center;
    border-radius: 5px;
    transition: var(--transition);
}

.emoji-item:hover {
    background: rgba(255, 111, 0, 0.3);
    transform: scale(1.2);
}

/* Auth Form Styles */
.auth-form {
    padding: 20px;
}

.auth-input {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    color: var(--white);
    font-size: 1rem;
    outline: none;
    box-sizing: border-box;
}

.auth-input:focus {
    border-color: var(--dark-orange);
    background: rgba(255, 255, 255, 0.15);
}

.auth-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.auth-btn {
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, #ff6b35, #ff8c42);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(255, 107, 53, 0.4);
}

.auth-btn:active {
    transform: translateY(0);
}

/* Footer */
.footer {
    background: #000000;
    border-top: 2px solid var(--dark-orange);
    padding: clamp(20px, 4vw, 40px) 0;
    margin-top: 0; /* Boşluk kaldırıldı - page padding'i yeterli */
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr; /* Masaüstünde tek sütun */
    gap: 30px;
    max-width: 600px; /* Masaüstünde merkezde ve dar */
    margin: 0 auto;
}

/* Footer actions (butonlar ve copyright) */
.footer-actions {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.footer-actions p {
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-actions .contact-modal-btn,
.footer-actions .news-btn {
    width: 100%;
    max-width: 300px; /* Masaüstünde maksimum genişlik */
}

.footer-section h3,
.footer-section h4 {
    color: var(--dark-orange);
    margin-bottom: 15px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--dark-orange);
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding-bottom: 78px; /* Alt sabit menü için boşluk */
    }

    .header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
    }

    .header .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 10px 15px;
        flex-wrap: nowrap !important; /* Tek satırda tut */
        gap: 8px;
        position: relative;
        overflow: hidden; /* Taşan içeriği gizle */
    }

    .logo {
        font-size: 1.1rem;
        flex-shrink: 0;
        white-space: nowrap;
        min-width: 0;
        order: 1;
    }
    
    .logo span {
        font-weight: 300;
        letter-spacing: -1px;
    }
    
    .logo span strong {
        font-weight: 900;
    }

    .logo i {
        font-size: 1.3rem;
    }
    
    .logo-icon {
        width: 35px;
        height: 35px;
        object-fit: contain;
        flex-shrink: 0;
    }
    
    .logo-text {
        font-size: 1.5rem;
        font-family: 'Nunito', 'Quicksand', 'Poppins', 'Montserrat', 'Inter', sans-serif;
    }
    
    .logo-text-thin {
        font-weight: 300;
        font-family: 'Nunito', 'Quicksand', 'Poppins', 'Montserrat', 'Inter', sans-serif;
    }
    
    .logo-text-bold {
        font-weight: 800 !important; /* Elma her zaman bold */
        font-family: 'Nunito', 'Quicksand', 'Poppins', 'Montserrat', 'Inter', sans-serif;
    }

    .nav {
        display: none;
        align-items: center;
        order: 3;
        width: 100%;
        justify-content: center;
        margin-top: 10px;
    }

    .nav-menu {
        position: fixed;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.95);
        flex-direction: column;
        padding: 20px;
        transform: translateY(-100%);
        transition: var(--transition);
        border-top: 2px solid var(--dark-orange);
        z-index: 999;
        display: flex;
    }

    .nav-menu.active {
        transform: translateY(0);
    }

    /* Mobile bottom navigation - yeniden tasarım */
    .mobile-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        margin-top: 0;
        display: block;
        background: rgba(0, 0, 0, 0.92);
        border-top: 2px solid var(--dark-orange);
        padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0));
        z-index: 1100;
        backdrop-filter: blur(8px);
        box-shadow: 0 -8px 20px rgba(0,0,0,0.5);
    }

    .mobile-nav-menu {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        list-style: none;
        margin: 0;
        padding: 0;
        gap: 10px;
    }

    .mobile-nav-link {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 12px;
        color: var(--white);
        text-decoration: none;
        font-weight: 700;
        font-size: 0.95rem;
        background: rgba(255, 255, 255, 0.06);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 14px;
        transition: var(--transition);
        box-shadow: 0 4px 20px rgba(0,0,0,0.35);
    }

    .mobile-nav-link.active {
        background: var(--dark-orange);
        color: #000;
        border-color: var(--dark-orange);
        box-shadow: 0 6px 25px rgba(255,111,0,0.35);
        transform: translateY(-1px);
    }

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

    .nav-toggle {
        display: flex;
        flex-shrink: 0;
        order: 2;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .header-actions {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-shrink: 0;
        order: 3;
        justify-content: flex-end; /* Sağa hizala */
        min-width: 0; /* Taşmayı önle */
    }
    
    .search-container {
        order: 1;
        flex-shrink: 1;
        min-width: 0;
        max-width: 140px; /* Maksimum genişlik */
        width: auto;
        margin-top: 0;
    }
    
    .profile-btn {
        order: 2;
        flex-shrink: 0;
        margin-left: 5px;
    }
    
    .search-input {
        font-size: 0.85rem;
        padding: 8px 12px;
    }

    .lang-toggle {
        padding: 5px 10px;
        font-size: 0.8rem;
    }

    .page-title {
        font-size: 1.8rem;
        margin-top: 15px; /* Mobilde biraz daha aşağı */
        gap: 8px;
    }

    .modal-content {
        width: 95vw;
        margin: 0px;
        max-width: calc(100vw - 40px);
    }

    .stream-content {
        width: 100vw;
        max-width: calc(100vw - 20px);
        max-height: calc(100vh - 20px);
    }

    .team-badge {
        width: 45px;
        height: 45px;
    }

    .team-badge-placeholder {
        width: 45px;
        height: 45px;
    }

    .team-name {
        flex: 1;

    }
    
    .awayteam{
        text-align: right;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .header .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 8px 10px;
        position: relative;
    }

    .logo {
        font-size: 1rem;
        order: 1;
    }
    
    .logo span {
        font-weight: 300;
        letter-spacing: -1px;
    }
    
    .logo span strong {
        font-weight: 900;
    }

    .logo i {
        font-size: 1.2rem;
    }
    
    .logo-icon {
        width: 30px;
        height: 30px;
        object-fit: contain;
        flex-shrink: 0;
    }
    
    .logo-text {
        font-size: 1.2rem;
        font-family: 'Nunito', 'Quicksand', 'Poppins', 'Montserrat', 'Inter', sans-serif;
    }
    
    .logo-text-thin {
        font-weight: 300;
        font-family: 'Nunito', 'Quicksand', 'Poppins', 'Montserrat', 'Inter', sans-serif;
    }
    
    .logo-text-bold {
        font-weight: 800 !important; /* Elma her zaman bold */
        font-family: 'Nunito', 'Quicksand', 'Poppins', 'Montserrat', 'Inter', sans-serif;
    }

    .lang-toggle {
        padding: 4px 8px;
        font-size: 0.8rem;
    }

    .nav-toggle {
        padding: 2px;
        margin-left: 10px;
        order: 2;
    }

    .nav-toggle span {
        width: 20px;
        height: 2px;
    }

    .header-actions {
        gap: 5px;
        order: 3;
        justify-content: flex-end;
        flex-shrink: 0;
        min-width: 0;
    }
    
    .search-container {
        order: 1;
        flex-shrink: 1;
        min-width: 0;
        max-width: 140px;
        width: auto;
        margin-top: 0;
    }
    
    .search-input {
        font-size: 0.85rem;
        padding: 8px 12px;
    }
    
    .profile-btn {
        order: 2;
        flex-shrink: 0;
        margin-left: 5px;
    }

    .match-card {
        padding: 10px;
        min-height: 60px;
    }

    .match-teams {
        flex-direction: row;
        gap: 8px;
        justify-content: space-between;
        align-items: center;
    }

    .vs {
        margin: 0 8px;
        font-size: 1rem;
    }

    .team {
        justify-content: flex-start;
        flex: 1;
        min-width: 0;
        gap: 6px;
    }

    .team:first-child {
        justify-content: flex-start;
    }

    .team:last-child {
        justify-content: flex-end;
    }

    .team-name {
        font-size: 0.85rem;
        font-weight: 600;
        flex: 1;
  
    }

    .match-score {
        font-size: 0.8rem;
        padding: 3px 6px;
        min-width: 35px;
        flex-shrink: 0;
    }

    .team-badge {
        width: 40px;
        height: 40px;
        flex-shrink: 0;
    }

    .team-badge-placeholder {
        width: 40px;
        height: 40px;
        flex-shrink: 0;
    }

    .team-badge-placeholder i {
        font-size: 1rem;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-in {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

/* Touch Gestures */
.page {
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
}

.match-card {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mb-20 { margin-bottom: 20px; }
.mt-20 { margin-top: 20px; }
.hidden { display: none !important; }
.visible { display: block !important; }

/* Loading States */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

/* Smooth Transitions */
.page {
    transition: opacity 0.3s ease-in-out;
}

.page:not(.active) {
    opacity: 0;
    pointer-events: none;
}

.page.active {
    opacity: 1;
    pointer-events: auto;
}

/* Contact Modal Styles */

.contact-modal-btn {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 24px;
  background: linear-gradient(135deg, #ff6b35, #ff8c42);
  color: #000;
  border: none;
  border-radius: 20px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  justify-content: center;
  height: 52px; /* Sabit yükseklik - padding (16px*2) + font-size (14px) + line-height = ~52px */
  box-sizing: border-box;
}

.contact-modal-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.news-btn {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 24px;
  background: linear-gradient(135deg, #ff6b35, #ff8c42);
  color: #000;
  border: none;
  border-radius: 20px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  justify-content: center;
  height: 52px; /* İletişime Geç butonuyla AYNI yükseklik */
  box-sizing: border-box;
}

.news-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

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

/* News Grid Styles */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin-top: 30px;
  min-height: 400px; /* Loading için minimum yükseklik */
  position: relative;
}

/* News Loading Container - Tam ortaya hizalı */
.news-loading-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.news-loading-content {
  text-align: center;
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.news-loading-content i {
  font-size: 3rem;
  color: var(--dark-orange);
  animation: spin 1s linear infinite;
}

.news-loading-content p {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--white);
  margin: 0;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.news-card {
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 210, 63, 0.2);
  border-radius: var(--border-radius);
  padding: 20px;
  transition: var(--transition-normal);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.news-card:hover {
  border-color: var(--accent-yellow);
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(255, 210, 63, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.news-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--border-radius-small);
  background: var(--gradient-secondary);
}

.news-card-no-image {
  width: 100%;
  height: 200px;
  background: #000000;
  border-radius: var(--border-radius-small);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 210, 63, 0.3);
}

.news-card-no-image span {
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.news-card-title {
  font-size: var(--font-lg);
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  margin: 0;
}

.news-card-excerpt {
  font-size: var(--font-sm);
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: var(--font-xs);
  color: var(--text-muted);
  margin-top: auto;
}

.news-card-link {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--accent-yellow);
  font-size: var(--font-xs);
}

.news-card-date {
  display: flex;
  align-items: center;
  gap: 5px;
}

.news-card-category {
  display: inline-block;
  padding: 4px 12px;
  background: var(--gradient-primary);
  color: var(--primary-dark);
  border-radius: 20px;
  font-size: var(--font-xs);
  font-weight: 600;
  text-transform: uppercase;
}

.no-news {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-secondary);
}

.no-news i {
  font-size: 4rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.no-news h3 {
  font-size: var(--font-xl);
  margin-bottom: 10px;
  color: var(--text-primary);
}

.no-news p {
  font-size: var(--font-md);
  color: var(--text-muted);
}

/* News Modal Styles */
.news-modal-content {
  max-height: 90vh;
  overflow-y: auto;
  background: #000000 !important;
}

.news-modal-body {
  padding: 20px;
}

.news-modal-image {
  width: 100%;
  margin-bottom: 20px;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.news-modal-image img {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
  display: block;
}

.news-modal-no-image {
  width: 100%;
  height: 300px;
  background: #000000;
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 210, 63, 0.3);
  margin-bottom: 20px;
}

.news-modal-no-image span {
  color: #ffffff;
  font-size: 2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
}

.news-modal-category {
  margin-bottom: 15px;
}

.news-modal-category-badge {
  display: inline-block;
  padding: 6px 16px;
  background: var(--gradient-primary);
  color: var(--primary-dark);
  border-radius: 20px;
  font-size: var(--font-sm);
  font-weight: 600;
  text-transform: uppercase;
}

.news-modal-date {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: var(--font-sm);
  margin-bottom: 20px;
}

.news-modal-content-text {
  color: var(--text-primary);
  line-height: 1.8;
  font-size: var(--font-md);
  margin-bottom: 30px;
}

.news-modal-content-text p {
  margin-bottom: 15px;
}

.news-modal-content-text img {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius-small);
  margin: 15px 0;
  display: none; /* İçerikteki görselleri gizle, sadece üstteki görseli göster */
}

.news-modal-content-text a {
  color: var(--accent-yellow);
  text-decoration: underline;
}

.news-modal-footer {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.news-modal-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: var(--gradient-primary);
  color: var(--primary-dark);
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition-normal);
}

.news-modal-link-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(255, 107, 53, 0.3);
}

/* Mobile Responsive Improvements */
@media (max-width: 768px) {
  .news-modal-content {
    max-width: 95% !important;
    max-height: 95vh;
    margin: 2.5vh auto;
  }
  
  .news-modal-body {
    padding: 15px;
  }
  
  .news-modal-image img {
    max-height: 250px;
  }
  
  .news-modal-content-text {
    font-size: var(--font-sm);
  }
  
  .news-grid {
    grid-template-columns: 1fr;
    gap: 15px;
    min-height: 300px; /* Mobilde daha az yükseklik */
  }
  
  .news-loading-content i {
    font-size: 2.5rem;
  }
  
  .news-loading-content p {
    font-size: 1rem;
  }
  
  /* Mobilde chat box */
  .stream-player-wrapper {
    grid-template-columns: 1fr !important;
    min-height: 500px; /* Mobilde uzunluk uzatıldı */
  }
  
  .stream-player-container {
    min-height: 300px; /* Mobilde yayın uzunluğu */
  }
  
  .chat-box-container {
    max-height: 500px !important; /* Mobilde chat box uzunluğu uzatıldı */
    min-height: 400px; /* Minimum yükseklik */
    margin-top: 15px;
  }
  
  .chat-messages {
    min-height: 300px; /* Mobilde mesaj alanı uzunluğu */
  }
  
  .profile-btn {
    width: 50px; /* Mobilde biraz daha büyük */
    height: 50px;
    font-size: 1.875rem; /* %25 büyütüldü (1.5rem * 1.25 = 1.875rem) */
    margin-left: 10px;
    order: 3; /* En sağa taşı */
  }
  
  .header-actions {
    justify-content: flex-end; /* Sağa hizala */
  }
  
  .search-container {
    order: 2; /* Arama ikinci sırada */
  }
  
  .news-card {
    padding: 15px;
  }
  
  .news-card-image {
    height: 180px;
  }
  
  .matches-grid {
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: clamp(15px, 3vw, 25px); /* Mobilde daha az margin */
  }
  
  /* Desktop'ta footer spacing */
  @media (min-width: 769px) {
    .page {
      padding-bottom: clamp(20px, 3vw, 40px); /* Desktop'ta daha fazla padding */
    }
    
    .footer {
      padding: clamp(30px, 4vw, 50px) 0; /* Desktop'ta daha fazla padding */
    }
    
    .matches-grid {
      margin-bottom: clamp(30px, 4vw, 50px); /* Desktop'ta daha fazla margin */
    }
  }
  
  .match-card {
    padding: 15px;
  }
  
  .header {
    padding: 10px 0;
  }
  
  .header .container {
    flex-wrap: nowrap !important; /* Tek satırda tut */
    overflow: hidden;
  }
  
  .search-container {
    width: auto;
    margin-top: 0;
    order: 1;
    flex-shrink: 1;
    min-width: 0;
    max-width: 140px;
  }
  
  .header-actions {
    order: 2;
    flex-shrink: 0;
  }
  
  .profile-btn {
    order: 3;
    margin-left: 5px;
  }
  
  .nav-menu {
    flex-direction: column;
    width: 100%;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
    max-width: 100%; /* Mobilde tam genişlik */
  }
  
  .footer-section {
    margin-bottom: 20px;
  }
  
  .footer-actions {
    margin-top: 20px;
  }
  
  .contact-modal-btn,
  .news-btn {
    width: 100%;
    margin: 5px 0;
  }
  
  .modal-content {
    max-width: 95% !important;
    margin: 10px auto;
  }
  
  .page-header {
    padding: 15px 0;
    margin-top: 15px; /* Mobilde biraz daha aşağı */
  }
  
  .page-title {
    font-size: 1.5rem;
    margin-top: 10px; /* Mobilde biraz daha aşağı */
  }
  
  .sport-select {
    width: 100%;
    font-size: 14px;
  }
  
  .sport-filter {
    margin-top: -8px; /* Mobilde biraz daha yukarı */
  }
}

@media (max-width: 480px) {
  .news-modal-content {
    max-width: 100% !important;
    max-height: 100vh;
    margin: 0;
    border-radius: 0;
  }
  
  .news-modal-body {
    padding: 10px;
  }
  
  .news-modal-image img {
    max-height: 200px;
  }
  
  .news-card-title {
    font-size: 1rem;
  }
  
  .news-card-excerpt {
    font-size: 0.85rem;
  }
  
  .match-card {
    padding: 12px;
  }
  
  .match-countdown-top {
    font-size: 0.75rem;
    padding: 3px 6px;
  }
  
  .countdown-timer-main {
    font-size: 0.9rem;
  }
  
  .stream-play-btn {
    padding: 8px 16px;
    font-size: 0.85rem;
  }
  
  .stream-play-btn i {
    font-size: 0.9rem;
  }
}

.contact-modal-title {
  text-align: center;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin-bottom: 30px;
  margin-top: 20px;
}

.contact-options {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-option {
 max-width: 450px;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background: #000000; /* Siyah arka plan */
  border-radius: var(--border-radius);
  text-decoration: none;
  color: #ffffff; /* Beyaz yazı */
  transition: all 0.3s ease;
  border: 2px solid var(--accent-orange); /* Turuncu çerçeve her zaman görünür */
}

.contact-option:hover {
  border-color: var(--accent-orange);
  background: #1a1a1a; /* Hover'da biraz daha açık siyah */
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  color: #ffffff; /* Hover'da da beyaz */
}

.contact-option-icon {
  font-size: var(--font-xl);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  border-radius: 50%;
  color: var(--primary-dark);
}

.contact-option-content {
  flex: 1;
}

.contact-option-title {
  font-weight: 600;
  font-size: var(--font-md);
  margin-bottom: var(--spacing-xs);
}

.contact-option-description {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.contact-option-arrow {
  font-size: var(--font-lg);
  color: var(--accent-orange);
}


.search-container {
  width: 100%;
  max-width: 500px;
  position: relative;
  margin-top: 2px;
}

.search-input {
  width: 100%;
  padding: var(--spacing-md);
  background: #000000; /* Siyah arka plan - her zaman */
  border: 2px solid #a95c40;
  border-radius: var(--border-radius-large);
  color: var(--text-primary);
  font-size: var(--font-md);
  transition: var(--transition-normal);
}

.search-input:focus {
  outline: none;
  border-color: var(--accent-orange);
  background: #000000; /* Focus'ta da siyah kal */
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-btn {
  position: absolute;
  right: var(--spacing-sm);
  top: 50%;
  transform: translateY(-50%);
  background: var(--gradient-primary);
  border: none;
  border-radius: var(--border-radius-small);
  padding: var(--spacing-sm);
  cursor: pointer;
  transition: var(--transition-fast);
}

.search-btn:hover {
  transform: translateY(-50%) scale(1.1);
  background: var(--accent-orange);
  box-shadow: 0 4px 16px rgba(255, 107, 53, 0.3);
}

.search-btn:active {
  transform: translateY(-50%) scale(0.95);
}

/* Search Preview Styles */
.search-preview {
  max-width: 390px;
  width: 90vw;
  position: absolute;
  top: 100%;
  right: 0;
  background: #000000; /* Siyah arka plan */
  border: 2px solid rgba(255, 165, 0, 0.3);
  border-radius: var(--border-radius);
  box-shadow: 0 20px 40px rgba(255, 165, 0, 0.2), 0 0 0 1px rgba(255, 165, 0, 0.1);
  z-index: 1000;
  max-height: 350px;
  overflow-y: auto;
  display: none;
  margin-top: 4px;
  backdrop-filter: blur(10px);
}

.search-preview .match-card{
    margin-top: 15px;    
}

/* Countdown Timer Styles */
.match-card.starting-soon {
    border-color: var(--accent-yellow);
    box-shadow: 0 0 15px rgba(255, 210, 63, 0.3);
}

.countdown-timer {
    color: var(--accent-yellow);
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    animation: pulseCountdown 2s infinite;
    will-change: transform, opacity; /* GPU hızlandırma */
}

.countdown-timer-main {
    color: var(--accent-yellow);
    font-weight: 700;
    font-size: 1.2rem;
    display: inline-block;
    min-width: 60px;
    text-align: center;
    animation: pulseCountdown 2s infinite;
    will-change: transform, opacity; /* GPU hızlandırma */
}

.match-countdown {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px;
    background: rgba(255, 210, 63, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(255, 210, 63, 0.3);
}

.match-countdown-top {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 4px 8px;
    background: rgba(255, 210, 63, 0.15);
    border-bottom: 1px solid rgba(255, 210, 63, 0.3);
    border-radius: 8px 8px 0 0;
    font-size: 0.85rem;
    min-height: 28px;
}

.countdown-label {
    color: var(--accent-yellow);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.match-countdown-top .countdown-label {
    font-size: 0.7rem;
    font-weight: 600;
}

.match-countdown-top .countdown-timer-main {
    font-size: 1rem;
    font-weight: 700;
    min-width: 50px;
}

/* Sayaç bitince kartın rengi canlı maçlar gibi olacak - .match-card.live class'ı eklendiğinde otomatik pulseGlow animasyonu uygulanır */

@keyframes pulseCountdown {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.85;
        transform: scale(1.02);
    }
}



