body {
    background-color: #f8f9fa;
    min-height: 100vh;
    font-family: "Inter", sans-serif;
    font-size: clamp(14px, 1vw, 16px);
}

.navbar {
    background-color: #ffffff;
    padding: 1.2rem 0;
    font-family: "Poppins", sans-serif;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    color: #000000 !important;
    font-weight: 600;
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    letter-spacing: 0.5px;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    transform: translateY(-2px);
}

.navbar-nav {
    margin-left: auto;
}

.nav-link {
    color: #000000 !important;
    font-weight: 500;
    font-size: clamp(0.9rem, 1vw, 1rem);
    padding: 0.5rem 1.2rem !important;
    margin: 0 0.2rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background-color: #f5f5f5;
    transform: translateY(-2px);
}

.nav-link.active {
    background-color: #000000;
    color: #ffffff !important;
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
    margin-right: 1rem;
    order: 2;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0, 0, 0, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-collapse {
    order: 3;
}

.matches-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.match-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 300px;
    position: relative;
}

.match-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-color: #ddd;
}

.match-time {
    font-size: 14px;
    color: #555;
    margin-bottom: 5px;
    margin-right: 80px;
}

.match-competition {
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
    text-transform: uppercase;
    font-weight: 600;
}

.match-teams {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 10px;
    color: #000;
}

.live-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff4d4d;
    color: white;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 600;
    display: none;
    animation: pulse 1.5s infinite;
    z-index: 1;
}

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

.channels {
    display: none;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
    flex-wrap: wrap;
    gap: 8px;
    background-color: #f9f9f9;
    border-radius: 4px;
    padding: 10px;
    margin-top: 10px;
}

.channel-btn {
    background: #fff;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    min-width: 80px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.channel-btn:hover {
    background: #f0f0f0;
    transform: translateY(-1px);
    color: #000;
    border-color: #ccc;
}

.modal-content {
    background: #fff;
    color: #333;
    border: none;
    border-radius: 8px;
    overflow: hidden;
}

.modal-header {
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
    padding: 12px 20px;
}

.modal-title {
    font-weight: 600;
    color: #333;
}

.modal-body {
    padding: 0;
    position: relative;
}

.btn-close {
    padding: 0.5rem;
    margin: -0.5rem -0.5rem -0.5rem auto;
}

.btn-close:focus {
    box-shadow: none;
}

.loading-spinner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.loading-spinner p {
    margin-top: 10px;
    color: #333;
    font-size: 14px;
    font-weight: 500;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #000000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.donate-card {
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 3rem;
    margin-bottom: 2rem;
    border: 1px solid #e0e0e0;
}

.donate-title {
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-size: clamp(1.8rem, 2.5vw, 2.5rem);
    margin-bottom: 1.5rem;
    color: #000000;
    letter-spacing: 0.5px;
}

.donate-description {
    color: #666666;
    font-size: clamp(0.9rem, 1.1vw, 1.1rem);
    margin-bottom: 2rem;
    line-height: 1.8;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.payment-method {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    height: 100%;
    transition: transform 0.3s ease;
}

.payment-method:hover {
    transform: translateY(-5px);
}

.payment-title {
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-size: clamp(1.2rem, 1.5vw, 1.5rem);
    margin-bottom: 1.5rem;
    color: #000000;
    letter-spacing: 0.5px;
}

.payment-address {
    background-color: #ffffff;
    padding: 1.2rem;
    border-radius: 8px;
    font-family: monospace;
    word-break: break-all;
    margin-bottom: 1rem;
    border: 1px solid #e0e0e0;
    font-size: clamp(0.8rem, 1vw, 0.9rem);
    color: #333333;
}

.copy-btn {
    background-color: transparent;
    color: #000000;
    border: 1px solid #000000;
    padding: 0.7rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.copy-btn:hover {
    background-color: #000000;
    color: #ffffff;
    transform: translateY(-2px);
}

.saweria-btn {
    display: inline-block;
    background-color: #000000;
    color: #ffffff;
    padding: 0.9rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.saweria-btn:hover {
    background-color: #333333;
    color: #ffffff;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .match-card {
        padding: 12px;
    }
    
    .match-teams {
        font-size: 15px;
    }
    
    .channel-btn {
        padding: 5px 10px;
        font-size: 12px;
        min-width: 70px;
    }
    
    .modal-dialog {
        margin: 0.5rem;
    }
    
    .donate-card {
        padding: 2rem;
    }
    .payment-method {
        padding: 1.5rem;
    }
    .channels {
        padding: 8px;
        gap: 6px;
    }
    .live-indicator {
        font-size: 11px;
        padding: 3px 6px;
    }
    .spinner {
        width: 30px;
        height: 30px;
        border-width: 3px;
    }
    .loading-spinner p {
        font-size: 12px;
    }
}

.floating-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #000000;
    color: #ffffff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
}

.floating-btn.visible {
    opacity: 1;
    visibility: visible;
}

.floating-btn:hover {
    background-color: #333333;
    transform: translateY(-2px);
}

#scroll-top-btn {
    bottom: 70px;
}

#refresh-btn {
    bottom: 20px;
}

@media (max-width: 768px) {
    .floating-btn {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    #scroll-top-btn {
        bottom: 65px;
    }
    #refresh-btn {
        bottom: 15px;
    }
}

.no-matches-message {
    width: 100%;
    max-width: 600px;
    margin: 2rem auto;
    text-align: center;
    animation: fadeIn 0.5s ease-in;
}

.no-matches-message .alert {
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.no-matches-message .alert-heading {
    color: #0c5460;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.no-matches-message p {
    margin-bottom: 1.5rem;
    color: #0c5460;
    font-size: 1.1rem;
}

.no-matches-message .btn {
    padding: 0.5rem 1.5rem;
    font-weight: 500;
}

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

#streamFrame {
    aspect-ratio: 16 / 9;
    width: 100%;
    height: auto;
}