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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0f0f0f;
    color: #fff;
    overflow-x: hidden;
}

::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: #1a1a2e; }
::-webkit-scrollbar-thumb { background: #ff0000; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #cc0000; }

/* ===== КРАСИВЫЕ ДИАЛОГИ ===== */
.voy-dialog-overlay {
    position: fixed; top:0; left:0; width:100%; height:100%;
    background: rgba(0,0,0,0.88); z-index: 99999;
    display: flex; align-items: center; justify-content: center;
    backdrop-filter: blur(8px); animation: fadeIn 0.2s ease;
}
.voy-dialog {
    background: #1a1a2e; border-radius: 22px; padding: 30px 24px;
    width: 90%; max-width: 370px; border: 1px solid #2a2a3e;
    box-shadow: 0 24px 60px rgba(0,0,0,0.7);
    animation: slideUp 0.25s ease;
}
.voy-dialog-icon { font-size: 42px; text-align: center; margin-bottom: 12px; }
.voy-dialog-title { font-size: 18px; font-weight: bold; color: #fff; text-align: center; margin-bottom: 6px; }
.voy-dialog-msg { font-size: 14px; color: #aaa; text-align: center; margin-bottom: 22px; line-height: 1.5; }
.voy-dialog-input {
    width: 100%; padding: 13px 14px; background: #2a2a3e;
    border: 1px solid #3a3a4e; border-radius: 12px; color: #fff;
    font-size: 15px; margin-bottom: 18px; box-sizing: border-box;
    outline: none; transition: border-color 0.2s; font-family: inherit;
}
.voy-dialog-input:focus { border-color: #ff0000; box-shadow: 0 0 0 2px rgba(255,0,0,0.2); }
.voy-dialog-btns { display: flex; gap: 10px; }
.voy-dialog-btn {
    flex: 1; padding: 13px; border: none; border-radius: 12px;
    font-size: 15px; font-weight: bold; cursor: pointer; transition: all 0.2s;
    font-family: inherit;
}
.voy-dialog-btn-primary { background: linear-gradient(135deg,#ff0000,#cc0000); color: #fff; }
.voy-dialog-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 15px rgba(255,0,0,0.4); }
.voy-dialog-btn-secondary { background: #2a2a3e; color: #aaa; border: 1px solid #3a3a4e; }
.voy-dialog-btn-secondary:hover { background: #3a3a4e; color: #fff; }
.voy-dialog-btn-danger { background: linear-gradient(135deg,#ff3333,#cc0000); color: #fff; }
.voy-dialog-btn-danger:hover { transform: translateY(-1px); box-shadow: 0 4px 15px rgba(255,0,0,0.4); }

.modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.96); z-index: 1000; display: none;
    align-items: center; justify-content: center; backdrop-filter: blur(5px);
}
.modal.active { display: flex; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }

.how-to-post-modal { max-width: 550px; width: 90%; border-radius: 20px; overflow: hidden; background: #1a1a2e; }
.how-to-post-modal .modal-header { background: linear-gradient(135deg, #1a1a2e, #2a2a3e); padding: 20px; border-bottom: 2px solid #ff0000; }
.how-to-post-modal .modal-header h2 { color: #ffd700; display: flex; align-items: center; gap: 10px; font-size: 20px; }
.how-to-post-steps { padding: 10px 0; }
.step { display: flex; gap: 15px; padding: 15px; border-bottom: 1px solid #2a2a3e; transition: all 0.3s; }
.step:hover { background: #2a2a3e; transform: translateX(5px); }
.step-number { width: 36px; height: 36px; background: #ff0000; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 18px; flex-shrink: 0; }
.step-content h3 { color: #ffd700; margin-bottom: 8px; font-size: 16px; }
.step-content p { color: #aaa; font-size: 13px; line-height: 1.4; }
.telegram-btn { display: inline-block; margin-top: 10px; background: #0088cc; color: white; padding: 8px 16px; border-radius: 30px; text-decoration: none; font-size: 13px; transition: all 0.3s; }
.telegram-btn:hover { background: #00aaff; }
.status-check { background: #2a2a3e; margin: 15px; padding: 20px; border-radius: 16px; text-align: center; }
.close-how-to-btn { background: #ff0000; border: none; color: white; padding: 10px 20px; border-radius: 30px; cursor: pointer; font-size: 14px; transition: all 0.3s; }
.close-how-to-btn:hover { background: #cc0000; }

.auth-card {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 24px; padding: 40px; width: 90%; max-width: 400px;
    text-align: center; border: 1px solid rgba(255,0,0,0.3);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}
.auth-header i { font-size: 64px; color: #ff0000; margin-bottom: 20px; }
.auth-header h2 { font-size: 28px; margin-bottom: 10px; background: linear-gradient(135deg, #fff, #ff0000); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.auth-header p { color: #888; font-size: 14px; }
.auth-card input { width: 100%; padding: 14px 16px; margin: 10px 0; background: #2a2a3e; border: 1px solid #3a3a4e; border-radius: 12px; color: white; font-size: 16px; transition: all 0.3s; }
.auth-card input:focus { outline: none; border-color: #ff0000; box-shadow: 0 0 0 2px rgba(255,0,0,0.2); }
.auth-card button { width: 100%; padding: 14px; background: linear-gradient(135deg, #ff0000, #cc0000); border: none; border-radius: 12px; color: white; font-size: 16px; font-weight: bold; cursor: pointer; margin-top: 10px; transition: all 0.3s; }
.auth-card button:hover { transform: translateY(-2px); box-shadow: 0 5px 20px rgba(255,0,0,0.4); }
.auth-link { margin-top: 20px; color: #888; font-size: 14px; }
.auth-link a { color: #ff0000; text-decoration: none; }
.auth-link a:hover { text-decoration: underline; }

.top-bar {
    position: fixed; top: 0; left: 0; right: 0; background: #1a1a2e;
    padding: 12px 20px; display: flex; justify-content: space-between;
    align-items: center; z-index: 100; border-bottom: 1px solid #2a2a3e;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.logo { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: bold; color: #ff0000; }
.logo i { font-size: 24px; }
.search-box { display: flex; align-items: center; background: #2a2a3e; border-radius: 30px; padding: 10px 18px; width: 40%; max-width: 400px; transition: all 0.3s; }
.search-box:focus-within { box-shadow: 0 0 0 2px rgba(255,0,0,0.3); }
.search-box i { color: #888; margin-right: 12px; }
.search-box input { background: none; border: none; color: white; width: 100%; outline: none; font-size: 14px; }
.user-info { display: flex; align-items: center; gap: 20px; }
.user-name { color: #fff; font-size: 14px; }
.user-avatar i { font-size: 32px; color: #ff0000; cursor: pointer; }

.content-area {
    margin-top: 70px; margin-bottom: 70px; padding: 20px;
    max-width: 1400px; margin-left: auto; margin-right: auto;
    min-height: calc(100vh - 140px);
}
.page { display: none; animation: pageFade 0.3s ease; }
.page.active { display: block; }
@keyframes pageFade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.videos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.video-card { background: #1a1a2e; border-radius: 16px; overflow: hidden; cursor: pointer; transition: all 0.3s; }
.video-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.3); }
.video-thumbnail { position: relative; aspect-ratio: 16/9; background: #000; overflow: hidden; }
.video-thumbnail img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.video-card:hover .video-thumbnail img { transform: scale(1.05); }
.video-tag { position: absolute; top: 10px; left: 10px; background: rgba(0,0,0,0.8); padding: 4px 10px; border-radius: 20px; font-size: 11px; color: #ffd700; z-index: 2; }
.series-badge { position: absolute; top: 10px; right: 10px; background: rgba(255,0,0,0.9); padding: 4px 10px; border-radius: 20px; font-size: 11px; color: white; font-weight: bold; z-index: 2; }
.book-badge { position: absolute; top: 10px; right: 10px; background: rgba(0,100,255,0.9); padding: 4px 10px; border-radius: 20px; font-size: 11px; color: white; font-weight: bold; z-index: 2; }
.video-info { padding: 12px; }
.video-title { font-size: 14px; font-weight: 500; margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.4; }
.video-stats { font-size: 12px; color: #aaa; display: flex; gap: 12px; flex-wrap: wrap; }

.shorts-container { position: fixed; top: 70px; right: 0; bottom: 70px; width: 400px; overflow-y: scroll; scroll-snap-type: y mandatory; background: #000; z-index: 50; }
@media (max-width: 768px) { .shorts-container { width: 100%; left: 0; } }
.short-video { height: calc(100vh - 140px); scroll-snap-align: start; position: relative; background: #000; display: flex; align-items: center; justify-content: center; }
.short-video video { width: auto; height: 100%; max-width: 100%; object-fit: contain; }
.short-info { position: absolute; right: 20px; bottom: 100px; width: 80px; display: flex; flex-direction: column; gap: 20px; }
.short-stats { display: flex; flex-direction: column; gap: 20px; align-items: center; }
.short-stats button { background: rgba(0,0,0,0.6); border: none; color: white; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 12px; border-radius: 50%; font-size: 12px; transition: all 0.3s; width: 50px; height: 50px; }
.short-stats button i { font-size: 24px; }
.short-stats button:hover { background: #ff0000; }
.short-title { position: absolute; bottom: 20px; left: 20px; right: 100px; background: linear-gradient(transparent, rgba(0,0,0,0.8)); padding: 15px; border-radius: 12px; font-size: 14px; font-weight: bold; }

.bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; background: #1a1a2e; display: flex; justify-content: space-around; padding: 10px 0; border-top: 1px solid #2a2a3e; z-index: 100; }
.nav-btn { background: none; border: none; color: #aaa; display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 8px 20px; border-radius: 12px; cursor: pointer; transition: all 0.3s; font-size: 12px; }
.nav-btn i { font-size: 22px; }
.nav-btn.active { color: #ff0000; background: rgba(255,0,0,0.1); }
.nav-btn:hover:not(.active) { color: white; background: #2a2a3e; }

.admin-panel { max-width: 900px; margin: 0 auto; }
.admin-header { text-align: center; margin-bottom: 30px; }
.admin-header h2 { font-size: 28px; color: #ffd700; }
.admin-header p { color: #aaa; }
.admin-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; background: #1a1a2e; padding: 15px; border-radius: 16px; }
.admin-tab { background: #2a2a3e; border: none; color: white; padding: 10px 20px; border-radius: 30px; cursor: pointer; transition: all 0.3s; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.admin-tab.active { background: #ff0000; color: white; }
.admin-tab:hover:not(.active) { background: #3a3a4e; }
.admin-tab-content { display: none; }
.admin-tab-content.active { display: block; animation: fadeIn 0.3s ease; }
.admin-card { background: #1a1a2e; border-radius: 20px; padding: 25px; margin-bottom: 25px; border: 1px solid #2a2a3e; }
.admin-card h3 { color: #ffd700; margin-bottom: 20px; font-size: 18px; display: flex; align-items: center; gap: 10px; }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 8px; color: #aaa; font-size: 13px; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 12px 14px; background: #2a2a3e; border: 1px solid #3a3a4e; border-radius: 10px; color: white; font-size: 14px; transition: all 0.3s; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: #ff0000; }
.form-group textarea { resize: vertical; min-height: 80px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.preview-area { background: #2a2a3e; border-radius: 12px; padding: 15px; margin: 15px 0; }
.preview-header { color: #ffd700; margin-bottom: 10px; font-size: 13px; display: flex; align-items: center; gap: 8px; }
.preview-placeholder { text-align: center; padding: 30px; color: #aaa; }
.preview-placeholder i { font-size: 40px; margin-bottom: 10px; display: block; }
.submit-btn { width: 100%; padding: 14px; background: linear-gradient(135deg, #ff0000, #cc0000); border: none; border-radius: 12px; color: white; font-size: 16px; font-weight: bold; cursor: pointer; margin-top: 15px; transition: all 0.3s; display: flex; align-items: center; justify-content: center; gap: 10px; }
.submit-btn:hover { transform: translateY(-2px); box-shadow: 0 5px 20px rgba(255,0,0,0.4); }

.profile-card { background: #1a1a2e; border-radius: 24px; padding: 30px; max-width: 800px; margin: 0 auto; text-align: center; border: 1px solid #2a2a3e; }
.profile-avatar { width: 100px; height: 100px; background: linear-gradient(135deg, #ff0000, #cc0000); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.profile-avatar i { font-size: 50px; color: white; }
.profile-stats { display: flex; justify-content: center; gap: 40px; margin: 20px 0; }
.profile-stats .stat { text-align: center; }
.profile-stats .stat-value { font-size: 28px; font-weight: bold; color: #ffd700; }
.profile-stats .stat-label { font-size: 12px; color: #aaa; }
.how-to-post-btn { background: linear-gradient(135deg, #0088cc, #006699); color: white; border: none; padding: 12px 24px; border-radius: 40px; cursor: pointer; font-size: 16px; font-weight: bold; margin: 20px 0; display: inline-flex; align-items: center; gap: 10px; transition: all 0.3s; }
.how-to-post-btn:hover { transform: translateY(-3px); box-shadow: 0 5px 20px rgba(0,136,204,0.4); }
.favorites-list { margin-top: 25px; text-align: left; }
.favorites-list h3 { margin-bottom: 15px; color: #ffd700; }
.favorite-item { display: flex; justify-content: space-between; align-items: center; padding: 12px 15px; background: #2a2a3e; border-radius: 10px; margin-bottom: 8px; cursor: pointer; transition: all 0.3s; }
.favorite-item:hover { background: #3a3a4e; transform: translateX(5px); }
.logout-btn { background: #2a2a3e; border: none; color: #ff0000; padding: 12px 30px; border-radius: 30px; cursor: pointer; font-size: 16px; margin-top: 25px; transition: all 0.3s; }
.logout-btn:hover { background: #ff0000; color: white; }

.book-reader-modal { max-width: 800px; width: 90vw; height: 85vh; background: #1a1a2e; border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; }
.book-page-container { flex: 1; overflow-y: auto; padding: 30px; background: #2a2a3e; }
.book-page-content { background: #1a1a2e; border-radius: 12px; padding: 30px; min-height: 400px; }
.book-page-text { font-size: 18px; line-height: 1.8; color: #ddd; white-space: pre-wrap; }
.book-page-image { max-width: 100%; max-height: 500px; object-fit: contain; display: block; margin: 0 auto; }
.book-nav { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; background: #1a1a2e; border-top: 1px solid #2a2a3e; }
.book-nav-btn { background: #ff0000; border: none; color: white; padding: 10px 20px; border-radius: 30px; cursor: pointer; transition: all 0.3s; display: flex; align-items: center; gap: 8px; }
.book-nav-btn:disabled { background: #444; cursor: not-allowed; }
.book-nav-btn:hover:not(:disabled) { background: #cc0000; }
.book-page-counter { color: #aaa; font-size: 14px; }

.video-modal-content, .series-modal-content { width: 90vw; max-width: 1000px; height: 85vh; background: #0f0f0f; border-radius: 20px; position: relative; display: flex; flex-direction: column; overflow: hidden; }
.close-modal { position: absolute; top: 15px; right: 15px; background: rgba(0,0,0,0.6); border: none; color: white; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; z-index: 10; transition: all 0.3s; font-size: 16px; }
.close-modal:hover { background: #ff0000; transform: rotate(90deg); }
#videoPlayer, #episodePlayer { width: 100%; height: 55%; background: #000; object-fit: contain; }
.video-info-panel, .series-info-panel { padding: 20px; height: 45%; overflow-y: auto; overflow-x: hidden; }
.video-info-panel::-webkit-scrollbar { width: 3px; }
.video-info-panel::-webkit-scrollbar-thumb { background: #ff0000; border-radius: 2px; }
.video-actions { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; margin: 15px 0; padding-bottom: 15px; border-bottom: 1px solid #2a2a3e; }
.action-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.action-btn { background: #2a2a3e; border: none; color: white; padding: 8px 16px; border-radius: 30px; cursor: pointer; display: flex; align-items: center; gap: 8px; transition: all 0.3s; font-size: 13px; }
.action-btn:hover { background: #3a3a4e; }
.action-btn.active { background: #ff0000; color: white; }
#favoriteBtn.active, #iframeFavoriteBtn.active { background: #ff4757; }
#likeBtn.active, #iframeLikeBtn.active { background: #ff0000 !important; color: white !important; }
#dislikeBtn.active, #iframeDislikeBtn.active { background: #ff0000 !important; color: white !important; }

.episodes-section h4 { margin-bottom: 15px; color: #ffd700; }
.episodes-list { display: flex; flex-direction: column; gap: 10px; max-height: 300px; overflow-y: auto; }
.episode-item { display: flex; align-items: center; padding: 12px 15px; background: #2a2a3e; border-radius: 10px; margin-bottom: 8px; transition: all 0.3s; }
.episode-item:hover { background: #3a3a4e; }
.episode-number { font-weight: bold; color: #ffd700; min-width: 100px; }
.episode-title { flex: 1; margin-left: 15px; }
.episode-duration { color: #aaa; font-size: 12px; margin-right: 15px; }
.episode-actions { display: flex; gap: 8px; }
.play-episode { background: #ff0000; border: none; color: white; padding: 6px 12px; border-radius: 6px; cursor: pointer; transition: all 0.3s; display: flex; align-items: center; gap: 5px; }
.play-episode:hover { background: #cc0000; }
.delete-episode { background: #2a2a3e; border: none; color: #ff3333; padding: 6px 10px; border-radius: 6px; cursor: pointer; transition: all 0.3s; }
.delete-episode:hover { background: #ff3333; color: white; }

.comments-section { margin-top: 15px; }
.comments-section h4 { margin-bottom: 15px; color: #ffd700; }
.comments-list { max-height: 200px; overflow-y: auto; margin-bottom: 15px; }
.comment { background: #1a1a2e; padding: 12px; border-radius: 12px; margin-bottom: 10px; }
.comment-header { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 12px; color: #aaa; }
.comment-author { color: #ff0000; font-weight: bold; }
.comment-text { font-size: 14px; line-height: 1.4; }
#commentText, #iframeCommentText { width: 100%; padding: 12px; background: #2a2a3e; border: 1px solid #3a3a4e; border-radius: 12px; color: white; margin: 10px 0; resize: none; font-family: inherit; min-height: 70px; box-sizing: border-box; transition: all 0.3s; }
#commentText:focus, #iframeCommentText:focus { outline: none; border-color: #ff0000; box-shadow: 0 0 0 2px rgba(255,0,0,0.2); }
.comment-btn { background: #ff0000; border: none; color: white; padding: 10px 20px; border-radius: 30px; cursor: pointer; transition: all 0.3s; }
.comment-btn:hover { background: #cc0000; }

.pages-list { max-height: 300px; overflow-y: auto; margin: 15px 0; }
.page-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 15px; background: #2a2a3e; border-radius: 8px; margin-bottom: 8px; }
.page-item-info { display: flex; gap: 15px; align-items: center; flex-wrap: wrap; }
.page-number { font-weight: bold; color: #ffd700; min-width: 60px; }
.page-type { font-size: 12px; padding: 2px 8px; border-radius: 12px; }
.page-type-text { background: #00cc66; color: white; }
.page-type-image { background: #ffd700; color: #000; }
.page-preview { font-size: 12px; color: #aaa; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.delete-page-btn { background: #ff0000; border: none; color: white; padding: 5px 10px; border-radius: 6px; cursor: pointer; }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat-card { background: #2a2a3e; padding: 20px; border-radius: 16px; text-align: center; transition: all 0.3s; }
.stat-card:hover { transform: translateY(-3px); }
.stat-icon { font-size: 32px; margin-bottom: 10px; }
.stat-value { font-size: 32px; font-weight: bold; color: #ffd700; }
.stat-label { font-size: 12px; color: #aaa; margin-top: 5px; }

.items-list { max-height: 400px; overflow-y: auto; }
.admin-item { display: flex; justify-content: space-between; align-items: center; padding: 12px 15px; background: #2a2a3e; border-radius: 10px; margin-bottom: 8px; transition: all 0.3s; }
.admin-item:hover { background: #3a3a4e; }
.admin-item-info { flex: 1; }
.admin-item-title { font-weight: bold; margin-bottom: 4px; }
.admin-item-meta { font-size: 11px; color: #aaa; }
.admin-item-actions { display: flex; gap: 8px; }
.delete-btn { background: #ff0000; border: none; color: white; padding: 8px 15px; border-radius: 8px; cursor: pointer; transition: all 0.3s; display: flex; align-items: center; gap: 5px; }
.delete-btn:hover { background: #cc0000; }
.edit-btn { background: #ffd700; border: none; color: #000; padding: 8px 15px; border-radius: 8px; cursor: pointer; transition: all 0.3s; display: flex; align-items: center; gap: 5px; }
.edit-btn:hover { background: #ffaa00; }

.notification { position: fixed; top: 80px; right: 20px; z-index: 9999; min-width: 280px; max-width: 400px; background: #1a1a2e; border-radius: 12px; overflow: hidden; transform: translateX(400px); transition: transform 0.3s ease; box-shadow: 0 5px 20px rgba(0,0,0,0.3); border-left: 4px solid; }
.notification.show { transform: translateX(0); }
.notification-success { border-left-color: #00cc66; }
.notification-error { border-left-color: #ff3333; }
.notification-info { border-left-color: #ffd700; }
.notification-content { padding: 15px; display: flex; align-items: center; gap: 12px; }
.notification-content i { font-size: 20px; }
.notification-success .notification-content i { color: #00cc66; }
.notification-error .notification-content i { color: #ff3333; }
.notification-info .notification-content i { color: #ffd700; }
.notification-progress { height: 3px; background: rgba(255,255,255,0.1); animation: progress 3s linear forwards; }
@keyframes progress { from { width: 100%; } to { width: 0%; } }

.progress-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.95); z-index: 10000; display: none; align-items: center; justify-content: center; backdrop-filter: blur(5px); }
.progress-container { background: #1a1a2e; border-radius: 20px; padding: 30px; text-align: center; min-width: 300px; border: 1px solid #ff0000; }
.progress-icon { font-size: 48px; color: #ffd700; margin-bottom: 15px; }
.progress-message { color: white; font-size: 16px; margin-bottom: 20px; }
.progress-bar-bg { width: 100%; height: 8px; background: #2a2a3e; border-radius: 4px; overflow: hidden; margin-bottom: 10px; }
.progress-bar-fill { height: 100%; background: linear-gradient(90deg, #ff0000, #ffd700); width: 0%; transition: width 0.3s ease; border-radius: 4px; }
.progress-percent { color: #ffd700; font-size: 14px; font-weight: bold; }

.empty-state { text-align: center; padding: 50px; color: #aaa; }
.empty-state i { font-size: 48px; margin-bottom: 15px; display: block; }
.loading { text-align: center; padding: 50px; color: #aaa; }
.loading i { font-size: 40px; margin-bottom: 15px; display: block; animation: spin 1s linear infinite; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

#iframeModal .video-info-panel { height: 45%; overflow-y: auto; overflow-x: hidden; padding: 20px; }
#iframeModal .comments-list { max-height: none !important; overflow-y: visible !important; overflow: visible !important; margin-bottom: 12px; }

/* STREAMS */
.stream-card { background: #1a1a2e; border-radius: 16px; overflow: hidden; cursor: pointer; transition: all 0.3s; }
.stream-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(255,0,0,0.2); }
.pending-badge { background: #ff0000; color: #fff; border-radius: 50%; font-size: 10px; font-weight: bold; min-width: 16px; height: 16px; display: inline-flex; align-items: center; justify-content: center; margin-left: 4px; padding: 0 4px; }

@media (max-width: 768px) {
    .top-bar { padding: 10px 15px; }
    .logo span { display: none; }
    .search-box { width: 50%; padding: 8px 12px; }
    .user-name { display: none; }
    .content-area { padding: 15px; margin-top: 65px; }
    .videos-grid { grid-template-columns: 1fr; gap: 15px; }
    .form-row { grid-template-columns: 1fr; }
    .admin-tabs { flex-direction: column; }
    .video-modal-content, .series-modal-content { width: 100vw; height: 100vh; border-radius: 0; }
    #videoPlayer, #episodePlayer { height: 40%; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .episode-number { min-width: 70px; font-size: 12px; }
}
@media (max-width: 480px) {
    .nav-btn span { display: none; }
    .nav-btn i { font-size: 24px; }
    .nav-btn { padding: 8px 16px; }
    .stats-grid { grid-template-columns: 1fr; }
}
