body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #121212;
    color: #e0e0e0;
    min-width: 320px;
}

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

header {
    background-color: #1e1e1e;
    color: #e0e0e0;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
}

header h1 {
    margin: 0;
    color: #4CAF50;
}

nav a {
    color: #b0b0b0;
    text-decoration: none;
    margin-left: 15px;
    transition: color 0.3s ease;
}

nav a.active, nav a:hover {
    color: #4CAF50;
}

.channel-list {
    background-color: #1e1e1e;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.channels {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.channel-item {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 15px;
    border: 1px solid #333;
    border-radius: 5px;
    background-color: #2a2a2a;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.channel-item.active {
    border-color: #4CAF50;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.7);
}

.channel-item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.channel-item img {
    max-width: 100px;
    max-height: 60px;
    margin-bottom: 10px;
    max-width: 100%;
    height: auto;
}

.watch-btn {
    background-color: #4CAF50;
    color: white;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 5px;
    margin-top: 10px;
    transition: background-color 0.3s ease;
}

.watch-btn:hover {
    background-color: #45a049;
}

.video-section {
    background-color: #1e1e1e;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.video-player {
    position: relative;
    background-color: #000;
}

.video-player video {
    width: 100%;
    max-height: 600px;
    object-fit: contain;
    display: block;
    outline: none;
}

.video-actions {
    background-color: #2a2a2a;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#channel-info h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #e0e0e0;
}

#pip-button {
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

#pip-button:hover {
    background-color: #45a049;
    transform: scale(1.1);
}

#pip-button:disabled {
    background-color: #555;
    cursor: not-allowed;
    opacity: 0.6;
}

.share-buttons {
    display: flex;
    gap: 15px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #333;
    color: #fff;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.share-btn.facebook:hover {
    background-color: #3b5998;
}

.share-btn.twitter:hover {
    background-color: #1da1f2;
}

.share-btn.whatsapp:hover {
    background-color: #25d366;
}

.share-btn:hover {
    transform: scale(1.1);
}

.channel-preview {
    display: none;
}

footer {
    text-align: center;
    padding: 15px;
    background-color: #1e1e1e;
    color: #b0b0b0;
    margin-top: 20px;
    border-top: 1px solid #333;
}

.ad-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
    padding: 20px;
    box-sizing: border-box;
}

.ad-overlay-content {
    text-align: center;
    max-width: 600px;
    background-color: #2a2a2a;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.ad-overlay-content h2 {
    color: #4CAF50;
    margin-bottom: 15px;
}

.ad-overlay-content p {
    color: #e0e0e0;
    margin-bottom: 20px;
}

.ad-skip-btn {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.ad-skip-btn:hover {
    background-color: #45a049;
}

.ad-countdown {
    color: #e0e0e0;
    margin-top: 10px;
}

.channel-category {
    margin-bottom: 30px;
}

.channel-category h3 {
    color: #4CAF50;
    border-bottom: 2px solid #4CAF50;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.search-container {
    margin-bottom: 20px;
}

#search-input {
    width: 100%;
    padding: 10px;
    background-color: #2a2a2a;
    border: 1px solid #333;
    color: #e0e0e0;
    border-radius: 5px;
    font-size: 1rem;
}

.radio-item {
    background-color: #2c2c2c;
    border: 1px solid #444;
}

.radio-item .watch-btn {
    background-color: #ff6b6b;
}

.radio-item .watch-btn:hover {
    background-color: #ff5252;
}

#overlay{display:none;position:fixed;top:0;left:0;width:100%;height:100%;background:#000000e6;z-index:999}
#installPopup{display:none;position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);background:#fff;padding:20px;border-radius:10px;z-index:1000;text-align:center}
#installAppButton{cursor:pointer}
#installPopup p { color: #000; }

:root {
  --plyr-color-main: #4CAF50;
}

.plyr--video {
    overflow: hidden;
    border-radius: 10px 10px 0 0;
}

@media screen and (max-width: 1200px) {
    .container {
        padding: 10px;
    }

    .channels {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
}

@media screen and (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
    }

    nav {
        margin-top: 10px;
    }

    nav a {
        margin: 0 10px;
    }

    .video-actions {
        flex-direction: column;
        gap: 10px;
    }

    .video-section {
        flex-direction: column;
    }

    .video-player {
        margin-right: 0;
        margin-bottom: 15px;
        width: 100%;
    }

    .channels {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 15px;
    }

    .channel-item {
        padding: 10px;
    }

    .channel-item img {
        max-width: 80px;
        max-height: 50px;
    }

    .share-buttons {
        gap: 10px;
    }

    .share-btn {
        margin: 0;
    }
}

@media screen and (max-width: 480px) {
    .container {
        padding: 5px;
    }

    header h1 {
        font-size: 1.5rem;
    }

    nav a {
        font-size: 0.9rem;
        margin: 0 5px;
    }

    .channels {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
    }

    .channel-item {
        padding: 5px;
        font-size: 0.8rem;
    }

    .channel-item img {
        max-width: 60px;
        max-height: 40px;
    }

    .watch-btn {
        padding: 5px 10px;
        font-size: 0.7rem;
    }
}

* {
    box-sizing: border-box;
}