* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    color: #fff;
    overflow-x: hidden;
}

/* LOGIN STYLES */
.login-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.login-box {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.login-box h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #ff6b6b, #4ecdc4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
}

.login-box p {
    color: #aaa;
    margin-bottom: 30px;
    font-size: 0.9em;
}

#loginForm {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#passwordInput {
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    color: #fff;
    font-size: 1em;
    transition: all 0.3s ease;
}

#passwordInput:focus {
    outline: none;
    border-color: #ff6b6b;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 10px rgba(255, 107, 107, 0.3);
}

.login-btn {
    padding: 12px;
    background: linear-gradient(135deg, #ff6b6b, #ff8c8c);
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    font-size: 1em;
    transition: all 0.3s ease;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 107, 107, 0.4);
}

.error-message {
    color: #ff6b6b;
    font-size: 0.85em;
    display: none;
}

.error-message.show {
    display: block;
}

/* MAIN APP STYLES */
.app-container {
    padding-bottom: 80px;
    min-height: 100vh;
}

.header {
    background: rgba(20, 20, 30, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    max-width: 100%;
}

.logo {
    font-size: 1.5em;
    background: linear-gradient(135deg, #ff6b6b, #4ecdc4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
}

.logout-btn {
    padding: 8px 20px;
    background: rgba(255, 107, 107, 0.2);
    border: 1px solid #ff6b6b;
    color: #ff6b6b;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85em;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: #ff6b6b;
    color: white;
}

/* TABS */
.tabs-container {
    display: flex;
    gap: 10px;
    padding: 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tab-btn {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaa;
    border-radius: 25px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
    font-weight: 500;
}

.tab-btn.active {
    background: linear-gradient(135deg, #ff6b6b, #ff8c8c);
    color: white;
    border-color: #ff6b6b;
}

.tab-btn:hover {
    transform: translateY(-2px);
    border-color: #ff6b6b;
}

/* MULTI-STREAM SECTION */
.multi-stream-section {
    padding: 0 20px 20px 20px;
}

.multi-stream-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1em;
}

.multi-stream-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(78, 205, 196, 0.4);
}

.multi-stream-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* MATCHES CONTAINER */
.matches-container {
    padding: 20px;
    max-width: 100%;
}

.matches-section {
    margin-bottom: 30px;
}

.section-title {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 15px;
    color: #ff6b6b;
    padding: 0 10px;
}

.matches-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

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

/* MATCH CARD */
.match-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.match-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 107, 107, 0.3);
    box-shadow: 0 5px 20px rgba(255, 107, 107, 0.1);
    transform: translateY(-5px);
}

.match-status {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 12px;
    background: #ff6b6b;
    color: white;
    border-radius: 20px;
    font-size: 0.75em;
    font-weight: bold;
}

.match-status.upcoming {
    background: #4ecdc4;
}

.match-status.suspended {
    background: #ff9800;
}

.match-category {
    font-size: 0.75em;
    color: #4ecdc4;
    font-weight: 600;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.match-name {
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 10px;
    color: #fff;
}

.match-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.match-time {
    color: #aaa;
    font-size: 0.9em;
}

.countdown {
    color: #4ecdc4;
    font-weight: bold;
    font-size: 0.9em;
}

.tv-badge {
    background: rgba(255, 107, 107, 0.2);
    border: 1px solid #ff6b6b;
    color: #ff6b6b;
    padding: 4px 10px;
    border-radius: 5px;
    font-size: 0.75em;
    font-weight: bold;
}

/* ODDS DISPLAY */
.odds-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 10px;
    margin-bottom: 15px;
}

.odds-pair {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 10px;
    text-align: center;
}

.odds-label {
    font-size: 0.75em;
    color: #aaa;
    margin-bottom: 5px;
}

.odds-value {
    font-size: 1.3em;
    font-weight: bold;
    color: #4ecdc4;
    transition: all 0.3s ease;
}

.odds-value.increased {
    animation: oddsIncrease 0.5s ease;
}

.odds-value.decreased {
    animation: oddsDecrease 0.5s ease;
}

@keyframes oddsIncrease {
    0% { color: #4ecdc4; }
    50% { color: #00ff00; }
    100% { color: #4ecdc4; }
}

@keyframes oddsDecrease {
    0% { color: #4ecdc4; }
    50% { color: #ff6b6b; }
    100% { color: #4ecdc4; }
}

/* ACTION BUTTONS */
.card-actions {
    display: flex;
    gap: 10px;
}

.watch-btn {
    flex: 1;
    padding: 12px;
    background: linear-gradient(135deg, #ff6b6b, #ff8c8c);
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95em;
}

.watch-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

.select-checkbox {
    padding: 12px;
    background: rgba(78, 205, 196, 0.2);
    border: 1px solid #4ecdc4;
    border-radius: 10px;
    color: #4ecdc4;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

.select-checkbox.selected {
    background: #4ecdc4;
    color: white;
}

.no-matches {
    text-align: center;
    padding: 40px 20px;
    color: #aaa;
}

/* BOTTOM NAVIGATION */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(20, 20, 30, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    z-index: 100;
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    color: #aaa;
    cursor: pointer;
    padding: 10px;
    transition: all 0.3s ease;
    font-size: 0.85em;
}

.nav-item.active {
    color: #ff6b6b;
}

.nav-icon {
    font-size: 1.5em;
}

/* PLAYER PAGE */
.player-container {
    padding: 20px;
    min-height: 100vh;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
}

.player-header {
    margin-bottom: 20px;
}

.back-btn {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: rgba(255, 107, 107, 0.2);
    border-color: #ff6b6b;
}

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

@media (min-width: 768px) {
    .players-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.video-frame {
    background: #000;
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.video-frame iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* LOADING STATE */
.loading {
    text-align: center;
    padding: 40px 20px;
    color: #aaa;
}

/* RESPONSIVE */
@media (max-width: 480px) {
    .header-content {
        padding: 0 15px;
    }

    .logo {
        font-size: 1.2em;
    }

    .logout-btn {
        padding: 6px 15px;
        font-size: 0.75em;
    }

    .match-card {
        padding: 15px;
    }

    .match-name {
        font-size: 1em;
    }

    .tabs-container {
        padding: 15px;
        gap: 8px;
    }

    .tab-btn {
        padding: 8px 15px;
        font-size: 0.9em;
    }

    .odds-value {
        font-size: 1.1em;
    }
}

/* ANIMATIONS */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.match-card {
    animation: fadeIn 0.3s ease;
}
