#app-container {
    max-width: 650px;
    margin: 0 auto;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.season-btn { 
    padding: 10px 22px; 
    background: #1f1f1f; 
    color: #fff; 
    border: 2px solid #333; 
    cursor: pointer; 
    border-radius: 8px; 
    font-weight: 600;
    transition: all 0.3s ease;
}
.season-btn:hover { border-color: #ff4757; }
.season-btn.active { background: #ff4757; border-color: #ff4757; box-shadow: 0 4px 15px rgba(255,71,87,0.4); }

.episode-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); 
    gap: 15px; 
}
.episode-card { 
    background: #141414; 
    padding: 10px; 
    border-radius: 12px; 
    color: white; 
    cursor: pointer; 
    text-align: center; 
    border: 1px solid #222;
    transition: transform 0.2s, box-shadow 0.2s;
}
.episode-card:hover { 
    transform: translateY(-4px); 
    box-shadow: 0 6px 20px rgba(255,71,87,0.2); 
    border-color: #ff4757;
}
.episode-card img { width: 100%; height: 110px; object-fit: cover; border-radius: 8px; }
.episode-card p { margin: 8px 0 0 0; font-size: 13px; font-weight: bold; color: #ddd; }

.player-box { display: flex; flex-direction: column; align-items: center; color: white; position: relative; width: 100%; }
.ep-title { font-size: 17px; font-weight: bold; margin-bottom: 10px; color: #fff; text-align: center; letter-spacing: 0.5px; }

.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 600px;
    height: 350px;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.7);
    border: 1px solid #333;
}

.video-wrapper iframe { 
    width: 100% !important; 
    height: 100% !important; 
    border: none; 
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}

.drive-block-shield {
    position: absolute;
    top: 0;
    right: 0;
    width: 70px;
    height: 50px;
    z-index: 30;
    background: transparent;
    cursor: default;
}

.video-ad-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10,10,10,0.96), rgba(26,26,26,0.96));
    z-index: 50;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    padding: 20px;
    cursor: pointer;
}

.ad-banner-box {
    background: #181818;
    padding: 25px 15px;
    border-radius: 12px;
    margin-bottom: 15px;
    border: 2px dashed #ff4757;
    width: 100%;
    max-width: 340px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 20px rgba(255,71,87,0.15);
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0% { border-color: #ff4757; box-shadow: 0 0 10px rgba(255,71,87,0.2); }
    50% { border-color: #ff6b81; box-shadow: 0 0 25px rgba(255,71,87,0.5); }
    100% { border-color: #ff4757; box-shadow: 0 0 10px rgba(255,71,87,0.2); }
}

.click-ad-title {
    font-size: 16px;
    font-weight: bold;
    color: #ff4757;
    margin-bottom: 5px;
}

.click-ad-desc {
    font-size: 12px;
    color: #aaa;
}

.ad-timer-text {
    font-size: 14px;
    color: #fff;
    margin-bottom: 12px;
    font-weight: 600;
    background: rgba(255,255,255,0.08);
    padding: 5px 15px;
    border-radius: 20px;
}

.close-ad-btn {
    padding: 10px 25px;
    background: #333;
    color: #777;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: not-allowed;
    font-size: 14px;
    transition: all 0.3s;
}

.close-ad-btn.active {
    background: #2ed573;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(46,213,115,0.4);
}
.close-ad-btn.active:hover { background: #26af5f; }

#custom-video-logo {
    position: absolute;
    top: 8px; 
    right: 65px;
    width: 38px; 
    height: 38px;
    z-index: 25;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.3); 
    box-shadow: 0 2px 8px rgba(0,0,0,0.6);
    text-decoration: none;
}
#custom-video-logo img { width: 100%; height: 100%; object-fit: cover; }

#custom-subscribe-btn {
    position: absolute;
    bottom: 12px;
    right: 12px; 
    z-index: 15;
    background: #ff0000;
    color: #ffffff;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: bold;
    font-family: sans-serif;
    text-decoration: none;
    border-radius: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    gap: 5px;
    transition: transform 0.2s, background 0.2s;
}
#custom-subscribe-btn:hover { background: #cc0000; transform: scale(1.05); }

.controls-group {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.btn { 
    padding: 9px 18px; 
    background: #ff4757; 
    color: white; 
    text-decoration: none; 
    border-radius: 8px; 
    border: none; 
    cursor: pointer; 
    font-size: 13px; 
    font-weight: bold; 
    box-shadow: 0 4px 12px rgba(255,71,87,0.3);
    transition: background 0.2s, transform 0.2s;
}
.btn:hover { background: #ff253a; transform: translateY(-2px); }
.btn:disabled { background: #333; color: #666; cursor: not-allowed; box-shadow: none; transform: none; }