/* ============================================
   VOYPLATFORMS - ПОЛНЫЕ СТИЛИ v8.0
   ============================================ */

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

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

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a2e;
}

::-webkit-scrollbar-thumb {
    background: #ff0000;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #cc0000;
}

/* ========== MODAL ========== */
.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; }
}

/* ========== HOW TO POST MODAL ========== */
.how-to-post-modal {
    max-width: 550px;
    width: 90%;
    border-radius: 20px;
    overflow: hidden;
}

.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;
    transform: scale(1.02);
}

.status-check {
    background: #2a2a3e;
    margin: 15px;
    padding: 20px;
    border-radius: 16px;
    text-align: center;
}

.status-check h3 {
    color: #ffd700;
    margin-bottom: 10px;
}

.status-check p {
    color: #aaa;
    font-size: 13px;
    margin-bottom: 15px;
}

.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;
    transform: scale(1.02);
}

/* ========== АВТОРИЗАЦИЯ ========== */
.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 ========== */
.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 ========== */
.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); }
}

/* ========== VIDEO GRID ========== */
.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 video,
.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.video-card:hover .video-thumbnail video,
.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;
}

.user-tag {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.7);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    color: #00cc66;
    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;
}

/* ========== SHORTS ========== */
.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;
    left: auto;
    width: 80px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: none;
    padding: 0;
}

.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 span {
    font-size: 10px;
}

.short-stats button:hover {
    background: #ff0000;
    transform: scale(1.05);
}

.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 NAVIGATION ========== */
.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 ========== */
.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;
}

#videoPreview,
#thumbnailPreview,
#seriesThumbPreview,
#episodePreview,
#bookThumbPreview {
    width: 100%;
    max-height: 200px;
    object-fit: contain;
    border-radius: 8px;
}

.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 ========== */
.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-card h2 {
    margin-bottom: 20px;
}

.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 button */
.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);
    background: linear-gradient(135deg, #00aaff, #0088cc);
}

/* User videos section */
.user-videos-section {
    margin-top: 30px;
    text-align: left;
}

.user-videos-section h3 {
    color: #ffd700;
    margin-bottom: 15px;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.user-video-item {
    background: #2a2a3e;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
}

.user-video-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.user-video-thumb {
    position: relative;
    aspect-ratio: 16/9;
    background: #000;
}

.user-video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-video-duration {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.7);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
}

.user-video-info {
    padding: 10px;
}

.user-video-title {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-video-date {
    font-size: 10px;
    color: #aaa;
}

/* Favorites list */
.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;
}

/* ========== BOOKS SPECIFIC ========== */
.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;
    transform: scale(1.02);
}

.book-page-counter {
    color: #aaa;
    font-size: 14px;
}

/* ========== VIDEO MODAL ========== */
.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;
}

.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;
}

.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;
}

.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;
}

.action-btn:hover {
    background: #3a3a4e;
}

.action-btn.active {
    background: #ff0000;
    color: white;
}

#favoriteBtn.active {
    background: #ff4757;
    color: white;
}

/* ========== EPISODES ========== */
.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;
    transform: scale(1.02);
}

.delete-episode {
    background: #2a2a3e;
    border: none;
    color: #ff3333;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.delete-episode:hover {
    background: #ff3333;
    color: white;
    transform: scale(1.02);
}

/* ========== COMMENTS ========== */
.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 {
    width: 100%;
    padding: 12px;
    background: #2a2a3e;
    border: 1px solid #3a3a4e;
    border-radius: 12px;
    color: white;
    margin: 10px 0;
    resize: vertical;
    font-family: inherit;
}

#commentText:focus {
    outline: none;
    border-color: #ff0000;
}

.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 MANAGEMENT ========== */
.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 ========== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

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

.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 (ADMIN) ========== */
.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;
    transform: scale(1.02);
}

.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;
    transform: scale(1.02);
}

/* ========== NOTIFICATIONS ========== */
.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 ========== */
.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 ========== */
.empty-state {
    text-align: center;
    padding: 50px;
    color: #aaa;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 15px;
}

.loading {
    text-align: center;
    padding: 50px;
    color: #aaa;
}

.loading i {
    font-size: 40px;
    margin-bottom: 15px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .top-bar {
        padding: 10px 15px;
    }
    
    .logo span {
        display: none;
    }
    
    .logo i {
        font-size: 24px;
    }
    
    .search-box {
        width: 50%;
        padding: 8px 12px;
    }
    
    .user-name {
        display: none;
    }
    
    .user-avatar i {
        font-size: 28px;
    }
    
    .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;
    }
    
    .admin-tab {
        justify-content: center;
    }
    
    .video-modal-content,
    .series-modal-content {
        width: 100vw;
        height: 100vh;
        border-radius: 0;
    }
    
    #videoPlayer,
    #episodePlayer {
        height: 40%;
    }
    
    .video-actions {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .action-buttons {
        flex-wrap: wrap;
    }
    
    .episode-number {
        min-width: 70px;
        font-size: 12px;
    }
    
    .episode-title {
        font-size: 13px;
    }
    
    .episode-actions {
        flex-direction: column;
        gap: 5px;
    }
    
    .short-info {
        right: 10px;
        bottom: 80px;
    }
    
    .short-stats button {
        width: 40px;
        height: 40px;
        padding: 8px;
    }
    
    .short-stats button i {
        font-size: 18px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .user-videos-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .nav-btn span {
        display: none;
    }
    
    .nav-btn i {
        font-size: 24px;
    }
    
    .nav-btn {
        padding: 8px 16px;
    }
    
    .short-title {
        font-size: 12px;
    }
    
    .admin-card {
        padding: 18px;
    }
}

.iframe-player-wrapper {
    width: 100%;
    height: 55%;
    background: #000;
    position: relative;
}

.iframe-player-wrapper iframe {
    width: 100%;
    height: 100%;
    display: block;
}

.iframe-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 100, 0, 0.9);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    color: white;
    font-weight: bold;
    z-index: 2;
}

/* ========== IFRAME MODAL FIX ========== */
#iframeModal .video-info-panel {
    height: 45%;
    overflow-y: auto;
    padding: 20px;
}

#iframeModal .comments-section {
    margin-top: 15px;
}

#iframeModal .comments-section h4 {
    color: #ffd700;
    margin-bottom: 12px;
    font-size: 15px;
}

#iframeModal .comments-list {
    max-height: 150px;
    overflow-y: auto;
    margin-bottom: 12px;
}

#iframeModal .comment {
    background: #1a1a2e;
    padding: 10px 12px;
    border-radius: 10px;
    margin-bottom: 8px;
}

#iframeModal .comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 11px;
    color: #aaa;
}

#iframeModal .comment-author {
    color: #ff0000;
    font-weight: bold;
}

#iframeModal .comment-text {
    font-size: 13px;
    line-height: 1.4;
    color: #ddd;
}

#iframeCommentText {
    width: 100%;
    padding: 12px 14px;
    background: #2a2a3e;
    border: 1px solid #3a3a4e;
    border-radius: 12px;
    color: white;
    font-size: 14px;
    font-family: inherit;
    resize: none;
    min-height: 70px;
    margin-bottom: 10px;
    transition: all 0.3s;
    box-sizing: border-box;
}

#iframeCommentText:focus {
    outline: none;
    border-color: #ff0000;
    box-shadow: 0 0 0 2px rgba(255, 0, 0, 0.2);
}

#iframeCommentText::placeholder {
    color: #666;
}

#iframeModal .comment-btn {
    background: #ff0000;
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

#iframeModal .comment-btn:hover {
    background: #cc0000;
    transform: scale(1.02);
}

#iframeModal .video-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 12px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid #2a2a3e;
}

#iframeModal .action-btn {
    background: #2a2a3e;
    border: none;
    color: white;
    padding: 8px 14px;
    border-radius: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    transition: all 0.3s;
}

#iframeModal .action-btn:hover {
    background: #3a3a4e;
}

#iframeModal .action-btn.active {
    background: #ff0000;
    color: white;
}

#iframeFavoriteBtn.active {
    background: #ff4757;
}

#iframeModal .video-stats {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: #aaa;
    flex-wrap: wrap;
}

#iframeModal .video-stats span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ========== IFRAME SCROLLBAR FIX ========== */
#iframeModal .video-info-panel {
    height: 45%;
    overflow-y: auto !important;
    overflow-x: hidden;
    padding: 20px;
}

#iframeModal .comments-list {
    max-height: none !important;
    overflow-y: visible !important;
    overflow: visible !important;
    margin-bottom: 12px;
}

/* ========== IFRAME LIKE/DISLIKE/FAVORITE ACTIVE ========== */
#iframeLikeBtn.active {
    background: #ff0000 !important;
    color: white !important;
}

#iframeDislikeBtn.active {
    background: #ff0000 !important;
    color: white !important;
}

#iframeFavoriteBtn.active {
    background: #ff4757 !important;
    color: white !important;
}

#likeBtn.active {
    background: #ff0000 !important;
    color: white !important;
}

#dislikeBtn.active {
    background: #ff0000 !important;
    color: white !important;
}
