/* ========================================================================
   FILE 3: PAGES.CSS (Fullstory, Generator, Player UI/UX, Comments)
   ======================================================================== */

/* ==========================================================================
   1. ASOSIY QOIDALAR (Ikkala sahifa uchun umumiy)
   ========================================================================== */
/* GRID NI YORIB CHIQISH UCHUN QAT'IY QOIDA */
.modern-fullstory, 
.modern-generator { 
    grid-column: 1 / -1 !important; 
    width: 100% !important; 
    display: flex; 
    flex-direction: column; 
    color: var(--text-main, #fff); 
    margin-bottom: 50px; 
}

/* ==========================================================================
   2. HERO QISMI (Faqat Fullstory uchun, Posterli)
   ========================================================================== */
.fs-hero-section { position: relative; display: flex; gap: 40px; padding: 40px; background: var(--bg-card); border-radius: 20px; border: 1px solid var(--border); overflow: hidden; margin-bottom: 30px; }
.fs-backdrop { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; opacity: 0.15; filter: blur(30px); pointer-events: none; }
.fs-backdrop img { width: 100%; height: 100%; object-fit: cover; }
.fs-hero-content { position: relative; z-index: 1; display: flex; gap: 40px; width: 100%; }

.fs-poster-box { flex: 0 0 260px; width: 260px; }
.fs-poster-box img { width: 100%; aspect-ratio: 2/3; object-fit: cover; border-radius: 16px; box-shadow: 0 15px 40px rgba(0,0,0,0.6); border: 1px solid rgba(255,255,255,0.1); }

.fs-info-box { flex: 1; display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.fs-title { font-size: 40px; font-weight: 900; line-height: 1.1; margin: 0 0 5px 0; text-shadow: 0 5px 15px rgba(0,0,0,0.5); }
.fs-alt-title { font-size: 18px; color: var(--text-muted); font-weight: 500; margin-bottom: 25px; }

.fs-meta-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 25px; }
.meta-tag { background: rgba(255,255,255,0.05); padding: 8px 15px; border-radius: 8px; font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 6px; border: 1px solid rgba(255,255,255,0.05); }
.meta-tag i { color: var(--accent); }
.meta-tag.quality { background: var(--danger); color: #fff; border: none; }
.meta-tag.age { border-color: rgba(255,255,255,0.2); }

.fs-details-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; background: rgba(0,0,0,0.3); padding: 20px; border-radius: 12px; margin-bottom: 20px; border: 1px solid rgba(255,255,255,0.05); }
.detail-item { font-size: 14px; color: var(--text-main, #fff); line-height: 1.5; }
.detail-item span { color: var(--text-muted); font-weight: 500; display: block; font-size: 12px; margin-bottom: 2px; }
.detail-item a { color: var(--accent); transition: 0.2s; text-decoration: none; }
.detail-item a:hover { text-decoration: underline; }

.fs-desc-wrapper { position: relative; }
.fs-desc-text { font-size: 14px; color: #ccc; line-height: 1.6; max-height: 80px; overflow: hidden; position: relative; transition: max-height 0.4s ease; }
.fs-desc-text::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 40px; background: linear-gradient(transparent, var(--bg-card)); transition: opacity 0.3s; }
.fs-desc-text.expanded { max-height: 2000px; }
.fs-desc-text.expanded::after { opacity: 0; pointer-events: none; }
.fs-desc-text.no-gradient::after { display: none; }
.read-more-btn { background: none; border: none; color: var(--accent); font-weight: 600; font-size: 14px; margin-top: 10px; cursor: pointer; transition: 0.2s; display: flex; align-items: center; gap: 5px; padding: 0;}
.read-more-btn:hover { color: var(--text-main, #fff); }

/* ==========================================================================
   3. PLEYER VA QISMLAR LAYOUTI (Mukammal va bo'sh joysiz)
   ========================================================================== */
.fs-player-layout { display: flex; gap: 20px; margin-bottom: 30px; align-items: flex-start !important; }

/* PRO YONDASHUV: Qismlar bor bo'lsa Grid ishlatamiz (generator.tpl uchun) */
.fs-player-layout.has-episodes { 
    display: grid !important; 
    grid-template-columns: 1fr 340px; 
    align-items: start;
} 

/* Serial Poster Placeholder (player o'rniga — kino_url yo'q bo'lganda) */
.fs-serial-placeholder { position: relative; width: 100%; padding-top: 56.25%; border-radius: 16px; overflow: hidden; background: #000; border: 1px solid var(--border); box-shadow: 0 15px 40px rgba(0,0,0,0.5); }
.fs-serial-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(8px) brightness(0.4); transform: scale(1.1); }
.fs-serial-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 15px; z-index: 2; }
.fs-serial-overlay i { font-size: 60px; color: var(--accent); filter: drop-shadow(0 5px 15px rgba(0,230,118,0.4)); }
.fs-serial-overlay span { color: #fff; font-size: 16px; font-weight: 700; text-shadow: 0 2px 10px rgba(0,0,0,0.8); text-align: center; padding: 0 20px; }
@media (max-width: 768px) { .fs-serial-overlay i { font-size: 40px; } .fs-serial-overlay span { font-size: 14px; } }
.fs-player-main { display: flex; flex-direction: column; min-width: 0; width: 100%; }

/* =========================================
   UCHIB KETGAN NAVIGATSIYA DIZAYNI TIKLANDI
   ========================================= */
.gen-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; background: var(--bg-card); padding: 20px 30px; border-radius: 16px; margin-bottom: 25px; border: 1px solid var(--border); }
.gen-title { font-size: 22px; font-weight: 800; margin: 0; display: flex; align-items: center; gap: 12px; color: var(--text-main, #fff); }
.gen-ep-tag { background: var(--accent); padding: 4px 12px; border-radius: 8px; font-size: 14px; color: #fff; }
.gen-back-btn { background: rgba(255,255,255,0.05); color: var(--text-main, #fff); padding: 10px 20px; border-radius: 8px; font-weight: 600; font-size: 14px; transition: 0.3s; border: 1px solid rgba(255,255,255,0.05); text-decoration: none;}
.gen-back-btn:hover { background: rgba(255,255,255,0.1); }
.ep-nav-top { display: flex; gap: 15px; margin-bottom: 20px; width: 100%; }
.ep-nav-top a, .ep-nav-top span { flex: 1; padding: 15px; background: var(--bg-card); border-radius: 12px; text-align: center; font-weight: 700; font-size: 14px; border: 1px solid var(--border); transition: 0.3s; color: var(--text-main, #fff); display: flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none;}
.ep-nav-top a:hover { background: var(--bg-input); color: var(--accent); }

/* =========================================
   PLEYERNI TEMIRDEK QOTIRISH FIXI (Chrome + Edge uchun 100% ishlaydi)
   ========================================= */
.fs-video-wrapper { 
    position: relative !important;
    width: 100% !important; 
    aspect-ratio: 16 / 9;
    background: #000; 
    border-radius: 16px; 
    overflow: hidden; 
    box-shadow: 0 15px 40px rgba(0,0,0,0.5); 
    border: 1px solid var(--border); 
    display: block !important;
}

.fs-video-wrapper iframe, 
.fs-video-wrapper video, 
.fs-video-wrapper .v-source, 
.fs-video-wrapper #myplayer,
.fs-video-wrapper .pjsdiv { 
    position: absolute !important; 
    top: 0 !important; 
    left: 0 !important; 
    width: 100% !important; 
    height: 100% !important; 
    border: none !important; 
}

/* Harakatlar paneli (Like/Dislike) */
.fs-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 15px; flex-wrap: wrap; gap: 15px; }
.fs-actions-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fs-rating-box { display: flex; background: var(--bg-card); border-radius: 12px; border: 1px solid var(--border); padding: 5px; gap: 5px; }
.rate-btn { padding: 10px 20px; font-size: 14px; font-weight: 700; color: #bbb; display: flex; align-items: center; gap: 8px; cursor: pointer; transition: 0.2s; border-radius: 8px; }
.rate-btn.like { color: #4caf50; } .rate-btn.dislike { color: #f44336; }
.rate-btn.like:hover { background: rgba(76, 175, 80, 0.15); } .rate-btn.dislike:hover { background: rgba(244, 67, 54, 0.15); }
.rate-btn.voted-like { color: #fff !important; background-color: #2a5298 !important; border-color: #2a5298 !important; }
.rate-btn.voted-dislike { color: #fff !important; background-color: #dc3545 !important; border-color: #dc3545 !important; }
.rate-count { font-size: 15px; font-weight: 800; color: var(--accent); padding: 0 8px; min-width: 30px; text-align: center; }
.action-btn { padding: 12px 20px; background: rgba(255,255,255,0.05); color: var(--text-main, #fff); border-radius: 12px; font-weight: 600; font-size: 14px; transition: 0.2s; display: flex; align-items: center; gap: 8px; border: 1px solid rgba(255,255,255,0.05); text-decoration: none;}
.action-btn:hover { background: rgba(255,255,255,0.1); }

/* Qismlar paneli (O'ng tomonda) */
.fs-player-sidebar { width: 100%; position: sticky; top: 100px; max-height: 550px; overflow-y: auto; }
.fs-player-sidebar::-webkit-scrollbar { width: 5px; }
.fs-player-sidebar::-webkit-scrollbar-track { background: transparent; }
.fs-player-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 10px; }

.episode-selector { background: var(--bg-card); border-radius: 16px; border: 1px solid var(--border); padding: 20px; }
.ep-header { color: var(--text-main, #fff); font-size: 16px; font-weight: 800; margin-bottom: 15px; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 15px;}
.ep-header i { color: var(--accent); }

/* Qismlar navigatsiyasi ({series_navigation} uchun) */
.ep-navigation { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.ep-navigation a, .ep-navigation span, .ep-navigation b { padding: 6px 14px; border-radius: 8px; font-size: 13px; font-weight: 700; text-decoration: none; transition: 0.2s; display: inline-block; cursor: pointer; }
.ep-navigation a { background: var(--bg-input); color: var(--text-muted); border: 1px solid transparent; }
.ep-navigation a:hover { background: rgba(255,255,255,0.08); color: var(--text-main, #fff); border-color: rgba(255,255,255,0.1); }
.ep-navigation span, .ep-navigation b { background: var(--accent); color: #fff; box-shadow: 0 3px 10px var(--accent-glow); }

.episode-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(60px, 1fr)); gap: 8px; max-height: 400px; overflow-y: auto; padding-right: 5px; }
.episode-links .episode-grid { display: contents; }
.episode-links::-webkit-scrollbar { width: 5px; }
.episode-links::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 10px; }
.episode-links a, .episode-links span, .episode-links b { background: var(--bg-input); color: var(--text-muted); padding: 12px 5px; border-radius: 8px; font-weight: 600; font-size: 13px; text-align: center; transition: 0.2s; cursor: pointer; display: block; border: 1px solid transparent; text-decoration: none;}
.episode-links a:hover { background: rgba(255,255,255,0.05); color: var(--text-main, #fff); border-color: rgba(255,255,255,0.1); }
.episode-links span, .episode-links b, .episode-links .active { background: var(--accent) !important; color: #fff !important; box-shadow: 0 5px 15px var(--accent-glow); border-color: var(--accent) !important; }

/* ==========================================================================
   4. COMMENTS SYSTEM (Izohlar qismi to'liq tiklandi)
   ========================================================================== */
.comments-toggle-btn { width: 100%; background: var(--bg-card); color: var(--text-main, #fff); border: 1px solid var(--border); padding: 18px; border-radius: 12px; font-size: 15px; font-weight: 700; cursor: pointer; transition: 0.3s; display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 10px; }
.comments-toggle-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.comments-toggle-btn:hover:not(.active) { background: rgba(255,255,255,0.05); }

.premium-comments-section { animation: fadeIn 0.4s ease; width: 100%; margin-top: 20px; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
.page__ac { margin-bottom: 25px; }
.no-comments-msg { text-align: center; padding: 30px 20px; color: var(--text-muted, #9ca3af); font-size: 15px; background: var(--bg-card, #1a1c23); border: 1px solid var(--border, rgba(255,255,255,0.05)); border-radius: 12px; }
.no-comments-msg i { margin-right: 8px; font-size: 18px; }

/* Izoh formasi (addcomments) */
.ac-form { background: var(--bg-card, #1a1c23); padding: 20px; border-radius: 12px; border: 1px solid var(--border, rgba(255,255,255,0.05)); }
.ac-form__header { display: flex; gap: 10px; margin-bottom: 12px; }
.ac-form__input { width: 100%; padding: 10px 14px; border-radius: 8px; background: var(--bg-main, #0e0f13); border: 1px solid var(--border, #2d303a); color: var(--text-main, #fff); font-size: 14px; outline: none; box-sizing: border-box; }
.ac-form__input:focus { border-color: var(--accent, #00e676); }
.ac-form__editor { margin-bottom: 12px; }
.ac-form__editor textarea, .ac-form__editor .bb-editor { width: 100% !important; min-height: 120px; padding: 12px 14px; border-radius: 8px; background: var(--bg-main, #0e0f13); border: 1px solid var(--border, #2d303a); color: var(--text-main, #fff); font-family: inherit; font-size: 14px; resize: vertical; outline: none; box-sizing: border-box; }
.ac-form__editor textarea:focus, .ac-form__editor .bb-editor:focus { border-color: var(--accent, #00e676); }
.ac-form__label { display: block; color: var(--text-muted, #9ca3af); font-size: 13px; margin-bottom: 5px; }
.ac-form__protect { margin-bottom: 12px; }
.ac-form__row { margin-bottom: 10px; }
.ac-form__captcha { display: flex; align-items: center; gap: 10px; }
.ac-form__captcha .ac-form__input { flex: 1; }
.ac-form__bottom { display: flex; align-items: center; gap: 12px; }
.ac-form__btn { background: var(--accent, #00e676); color: #000; border: none; padding: 12px 24px; border-radius: 8px; font-weight: 700; font-size: 14px; cursor: pointer; transition: 0.3s; }
.ac-form__btn:hover { opacity: 0.85; transform: scale(1.02); }
@media (max-width: 768px) { .ac-form__header { flex-direction: column; } }

/* DLE vizual redaktor uchun */

/* Izoh yozish formasi */
#addcform { background: var(--bg-card); padding: 25px; border-radius: 16px; border: 1px solid var(--border); margin-bottom: 40px; box-shadow: 0 10px 30px rgba(0,0,0,0.2); width: 100%; box-sizing: border-box; }
#addcform .bb-editor, #addcform table { background: transparent !important; border: none !important; width: 100% !important; }
#addcform textarea, .premium-textarea { width: 100%; min-height: 120px; background: var(--bg-input); border: 1px solid rgba(255, 255, 255, 0.05); border-radius: 12px; padding: 15px; color: var(--text-main, #fff); font-size: 15px; font-family: inherit; resize: vertical; margin-bottom: 15px; transition: 0.3s; box-sizing: border-box; }
#addcform textarea:focus, .premium-textarea:focus { border-color: var(--accent); box-shadow: 0 0 15px var(--accent-glow); outline: none; background: var(--bg-body); }
#addcform button[name="submit"], #addcform .bb-btn, .premium-submit-btn { background: var(--accent); color: #fff; border: none; padding: 12px 30px; border-radius: 10px; font-size: 15px; font-weight: 700; cursor: pointer; transition: 0.3s; display: inline-flex; align-items: center; gap: 10px; text-transform: uppercase; }
#addcform button[name="submit"]:hover, .premium-submit-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px var(--accent-glow); background: var(--accent-hover); }

.add-comment-actions { display: flex; justify-content: flex-end; align-items: center; gap: 15px; margin-top: 15px; flex-wrap: wrap; }
.premium-input { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.1); color: var(--text-main, #fff); padding: 12px 15px; border-radius: 8px; font-size: 14px; }
.premium-captcha { display: flex; align-items: center; gap: 10px; }

/* Izohlar ro'yxati */
#dle-comments-list .comments-tree, #dle-comments-list .comments-item { margin-bottom: 20px; list-style: none; padding: 0; }
.comments-item, .comments-tree-item, .premium-comment-item { background: rgba(0, 0, 0, 0.2); padding: 20px; border-radius: 16px; border: 1px solid var(--border); display: flex; gap: 15px; margin-bottom: 15px; }
.com-avatar img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent); }
.com-content, .com-body { flex: 1; min-width: 0; }
.com-author { font-weight: 800; color: var(--text-main, #fff); font-size: 16px; margin-bottom: 5px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.com-date { font-size: 12px; color: var(--text-muted); font-weight: 500; }
.com-text { color: #cbd5e1; line-height: 1.6; font-size: 14px; margin-top: 10px; background: rgba(255,255,255,0.02); padding: 15px; border-radius: 12px; word-wrap: break-word; }
.com-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; flex-wrap: wrap;}
.com-footer { display: flex; gap: 15px; margin-top: 12px; font-size: 13px; font-weight: 600; }
.com-action { color: var(--text-muted); cursor: pointer; transition: 0.2s; text-decoration: none;}
.com-action:hover { color: var(--text-main, #fff); }

/* Izohlar reytingi */
.comment-rating { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.com-rate-btn { color: var(--text-muted); cursor: pointer; transition: 0.2s; padding: 4px 8px; border-radius: 4px; }
.com-rate-btn:hover { color: var(--text-main, #fff); background: rgba(255,255,255,0.05); }
.com-rate-count { font-size: 13px; font-weight: 700; color: var(--accent); min-width: 20px; text-align: center; }

/* ==========================================================================
   5. RESPONSIVE (MOBILDA EKRANGA YOPISHTIRISH) XATOLIK TO'G'RILANDI
   ========================================================================== */
@media (max-width: 1024px) {
    .fs-player-layout.has-episodes { display: flex !important; flex-direction: column; } 
    .fs-player-sidebar { width: 100%; position: static; max-height: 400px; }
    .episode-links { max-height: 250px; grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); }
}

@media (max-width: 768px) {
    .fs-hero-section { flex-direction: column; padding: 25px; align-items: center; text-align: center; }
    .fs-hero-content { flex-direction: column; align-items: center; }
    .fs-title { font-size: 30px; }
    .fs-meta-tags { justify-content: center; }
    .fs-details-grid { grid-template-columns: 1fr; text-align: left; }
    
    /* PLEYER CHAPGA KESILIB KETMASLIGI UCHUN MUAMMO HAL QILINDI */
    .fs-video-wrapper { 
        border-radius: 0 !important; 
        width: 100% !important; /* O'zidan oshib ketmaydi */
        margin-left: 0 !important; /* Minus yigirma o'chirildi! */
        margin-right: 0 !important;
        border-left: none !important;
        border-right: none !important;
    }
    
    .gen-header { flex-direction: column; align-items: flex-start; text-align: left; }
    .ep-nav-top a { padding: 12px; font-size: 12px; }

    /* Kommentlar responsive */
    .comments-item, .premium-comment-item { flex-direction: column; gap: 10px; padding: 15px; }
    .com-avatar img { width: 40px; height: 40px; }
    .add-comment-actions { justify-content: stretch; flex-direction: column; }
    .add-comment-actions > * { width: 100%; }
    #addcform button[name="submit"] { justify-content: center; width: 100%; }
}

/* ==========================================================================
   6. ADVANCED SEARCH PAGE (Kengaytirilgan qidiruv sahifasi)
   ========================================================================== */
#dle-content > form,
#dle-content > form[name="searchform"],
#dle-content > #searchtable,
.modern-search-page {
    grid-column: 1 / -1 !important; 
    width: 100% !important;
    display: block !important;
}

.modern-search-page {
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
}

.search-form-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    width: 100%;
    box-sizing: border-box;
}

/* DLE search form wrapper - form element */
#fullsearch { grid-column: 1 / -1 !important; width: 100% !important; }

.search-form-wrapper table { width: 100% !important; border-collapse: collapse; border: none; }
.search-form-wrapper td { padding: 0; color: var(--text-main, #fff); font-size: 14px; font-weight: 500; vertical-align: middle; border: none; }
.search-form-wrapper td > div { margin: 0 !important; } /* DLE inline margin:10px override */
.search-form-wrapper br { display: none; } /* DLE <br/><br/> orasini yashirish */

/* Input - DLE inline style="width:250px" ni !important bilan bekor qilish */
.search-form-wrapper input[type="text"],
.search-form-wrapper input[type="search"],
.search-form-wrapper input.textin {
    width: 100% !important; max-width: 100% !important; padding: 16px 22px !important; background: var(--bg-input) !important;
    border: 1px solid rgba(255,255,255,0.08) !important; border-radius: 12px !important; color: var(--text-main, #fff) !important;
    font-family: inherit !important; font-size: 16px !important; outline: none !important; transition: 0.3s;
    box-sizing: border-box !important; margin-bottom: 16px;
}
.search-form-wrapper input[type="text"]:focus,
.search-form-wrapper input[type="search"]:focus,
.search-form-wrapper input.textin:focus {
    border-color: var(--accent) !important; box-shadow: 0 0 20px var(--accent-glow) !important; background: var(--bg-body) !important;
}

/* Buttons - DLE .bbcodes klassini stillaymiz */
.search-form-wrapper input[type="button"],
.search-form-wrapper input[type="submit"],
.search-form-wrapper input.bbcodes {
    background: var(--accent) !important; color: #000 !important; border: none !important; padding: 14px 30px !important;
    border-radius: 12px !important; font-size: 14px !important; font-weight: 700 !important; cursor: pointer;
    transition: 0.3s; text-transform: uppercase; margin-top: 4px; margin-right: 10px;
    box-shadow: 0 4px 15px var(--accent-glow); font-family: inherit !important;
}
.search-form-wrapper input[type="button"]:hover,
.search-form-wrapper input[type="submit"]:hover,
.search-form-wrapper input.bbcodes:hover {
    background: var(--accent-hover) !important; transform: translateY(-2px); box-shadow: 0 6px 25px var(--accent-glow);
}
/* Second button (Kengaytirilgan) - outline variant */
.search-form-wrapper input.bbcodes#dofullsearch {
    background: transparent !important; color: var(--accent) !important;
    border: 2px solid var(--accent) !important;
}
.search-form-wrapper input.bbcodes#dofullsearch:hover {
    background: var(--accent) !important; color: #000 !important;
}

.search-form-wrapper select {
    padding: 14px 18px; background: var(--bg-input); color: var(--text-main, #fff); border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px; outline: none; font-family: inherit; font-size: 14px; width: 100%; max-width: 300px;
    margin-bottom: 12px;
}
.search-form-wrapper label,
.search-form-wrapper .search td:first-child { color: var(--text-muted); font-size: 13px; margin-bottom: 4px; }

/* Checkbox/Radio stillari */
.search-form-wrapper input[type="checkbox"],
.search-form-wrapper input[type="radio"] {
    accent-color: var(--accent); width: 18px; height: 18px; cursor: pointer; margin-right: 6px;
}

.search-msg-box {
    background: rgba(0, 230, 118, 0.1); border-left: 4px solid var(--accent); padding: 15px 20px;
    border-radius: 8px; color: var(--text-main, #fff); margin-top: 25px; display: flex; align-items: center; gap: 12px;
    font-size: 15px; font-weight: 500;
}
.search-msg-box i { color: var(--accent); font-size: 20px; }

@media (max-width: 768px) {
    .search-form-wrapper { padding: 20px; }
    .search-form-wrapper table, .search-form-wrapper tbody, .search-form-wrapper tr, .search-form-wrapper td {
        display: block; width: 100% !important; text-align: left;
    }
    .search-form-wrapper td { padding: 8px 0; }
    .search-form-wrapper input[type="button"],
    .search-form-wrapper input[type="submit"],
    .search-form-wrapper input.bbcodes {
        width: 100% !important; margin-right: 0 !important; margin-bottom: 10px;
    }
    .search-form-wrapper select { max-width: 100% !important; }
}

/* ==========================================================================
   8. PERSONAL MESSAGES (Shaxsiy xabarlar sahifasi)
   ========================================================================== */
.modern-pm-page {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 50px;
}

.pm-header-box {
    background: var(--bg-card);
    padding: 25px;
    border-radius: 16px;
    border: 1px solid var(--border);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.pm-nav-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pm-nav-tabs a { text-decoration: none; }

.pm-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--bg-input);
    color: var(--text-muted);
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: 0.3s;
    border: 1px solid transparent;
}
.pm-tab-btn:hover { background: rgba(255,255,255,0.05); color: var(--text-main, #fff); }
.pm-tab-btn.active, .pm-nav-tabs a.active .pm-tab-btn { 
    background: rgba(0, 230, 118, 0.15); 
    color: var(--accent); 
    border-color: var(--accent);
}
.pm-tab-btn.new-msg-btn { background: var(--accent); color: #fff; }
.pm-tab-btn.new-msg-btn:hover { background: var(--accent-hover); box-shadow: 0 5px 15px var(--accent-glow); }

.pm-status-bar {
    min-width: 200px;
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}
.status-text { margin-bottom: 8px; }
.pm-status-bar table, .pm-status-bar div[style*="border"] { width: 100% !important; border-radius: 5px; overflow: hidden; background: var(--bg-input) !important; border: none !important;}

.pm-list-wrapper {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid var(--border);
    overflow-x: auto;
}
.pm-list-wrapper table { width: 100%; border-collapse: collapse; color: var(--text-main, #fff); font-size: 14px; }
.pm-list-wrapper td { padding: 15px 10px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.pm-list-wrapper tr:hover td { background: rgba(255,255,255,0.02); }
.pm-list-wrapper a { color: var(--accent); text-decoration: none; }
.pm-list-wrapper a:hover { text-decoration: underline; }

.pm-form-box {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid var(--border);
}
.pm-sub-title { font-size: 20px; color: var(--text-main, #fff); font-weight: 800; margin-bottom: 25px; display: flex; align-items: center; gap: 10px; }
.pm-sub-title i { color: var(--accent); }

.pm-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.pm-input, .pm-textarea {
    width: 100%; padding: 15px; background: var(--bg-input); border: 1px solid rgba(255,255,255,0.05);
    border-radius: 10px; color: var(--text-main, #fff); font-size: 14px; font-family: inherit; transition: 0.3s; box-sizing: border-box;
}
.pm-input:focus, .pm-textarea:focus { border-color: var(--accent); outline: none; background: var(--bg-body); }
.pm-textarea { resize: vertical; min-height: 150px; }

.pm-checkbox-group { display: flex; align-items: center; gap: 10px; color: var(--text-muted); font-size: 14px; margin-top: 15px; margin-bottom: 25px; }
.pm-checkbox-group input { width: 18px; height: 18px; accent-color: var(--accent); cursor: pointer; }

.pm-captcha-box { margin-bottom: 20px; background: rgba(255,255,255,0.02); padding: 20px; border-radius: 10px; border-left: 3px solid var(--accent); }
.pm-captcha-box label { display: block; color: var(--text-main, #fff); font-weight: 600; margin-bottom: 10px; font-size: 14px; }
.c-captcha-img { margin-bottom: 10px; }

.pm-submit-actions { display: flex; gap: 15px; margin-top: 30px; flex-wrap: wrap; }
.pm-btn { padding: 14px 30px; border-radius: 10px; font-size: 15px; font-weight: 700; cursor: pointer; border: none; display: flex; align-items: center; gap: 10px; transition: 0.3s; }
.submit-btn { background: var(--accent); color: #fff; }
.submit-btn:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 5px 15px var(--accent-glow); }
.preview-btn { background: rgba(255,255,255,0.05); color: var(--text-main, #fff); border: 1px solid rgba(255,255,255,0.1); }
.preview-btn:hover { background: rgba(255,255,255,0.1); }

.pm-read-box { background: var(--bg-card); border-radius: 16px; border: 1px solid var(--border); padding: 30px; }
.pm-read-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 25px; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 20px; flex-wrap: wrap; gap: 15px;}
.pm-author-info { display: flex; align-items: center; gap: 15px; }
.pm-avatar img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent); }
.pm-author { color: var(--text-main, #fff); font-size: 18px; display: block; margin-bottom: 5px; }
.pm-date { color: var(--text-muted); font-size: 13px; font-weight: 500; }
.del-btn { background: rgba(255, 51, 102, 0.1); color: var(--danger); border: none; padding: 10px 15px; border-radius: 8px; cursor: pointer; transition: 0.3s; }
.del-btn:hover { background: var(--danger); color: #fff; }
.del-btn a { color: inherit; text-decoration: none; }

.pm-msg-title { font-size: 22px; font-weight: 800; color: var(--text-main, #fff); margin-bottom: 15px; }
.pm-msg-text { color: #ccc; line-height: 1.6; font-size: 15px; background: var(--bg-input); padding: 20px; border-radius: 12px; }
.pm-signature { margin-top: 20px; color: var(--text-muted); font-size: 13px; font-style: italic; }
.sig-line { width: 50px; height: 2px; background: rgba(255,255,255,0.1); margin-bottom: 10px; }

@media (max-width: 768px) {
    .pm-header-box { flex-direction: column; align-items: flex-start; }
    .pm-nav-tabs { width: 100%; }
    .pm-tab-btn { flex: 1; justify-content: center; }
    .pm-form-grid { grid-template-columns: 1fr; }
    .pm-submit-actions .pm-btn { width: 100%; justify-content: center; }
    .pm-form-box, .pm-read-box { padding: 20px; }
}

/* ==========================================================================
   10. FEEDBACK PAGE (Biz bilan aloqa sahifasi - Premium Dizayn)
   ========================================================================== */
.feedback-page-container {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    max-width: 700px; 
    margin: 20px auto 50px auto;
}

.modern-form-box {
    background: var(--bg-card); 
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5); 
}

.ui-form {
    padding: 0; margin: 0; list-style: none;
    display: flex; flex-direction: column; gap: 25px;
}

.form-group {
    display: flex; flex-direction: column; gap: 10px;
}

.form-group label {
    color: var(--text-main, #fff); font-size: 15px; font-weight: 600; margin-left: 5px;
}

.modern-input, .modern-textarea, .modern-form-box select, .modern-form-box textarea {
    width: 100%;
    padding: 16px 20px;
    background: var(--bg-input) !important; 
    border: 1px solid rgba(255,255,255,0.1) !important;
    border-radius: 12px;
    color: var(--text-main, #fff) !important; 
    font-family: inherit; font-size: 15px; outline: none; transition: 0.3s; box-sizing: border-box;
}
.modern-input:focus, .modern-textarea:focus, .modern-form-box select:focus, .modern-form-box textarea:focus {
    border-color: var(--accent) !important; 
    box-shadow: 0 0 20px var(--accent-glow);
    background: var(--bg-body) !important;
}
.modern-textarea { resize: vertical; min-height: 130px; }

.select-wrapper { position: relative; }
.modern-form-box select {
    appearance: none; -webkit-appearance: none; -moz-appearance: none; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2300e676' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 15px center; background-size: 20px; padding-right: 45px;
}
.modern-form-box select option { background: var(--bg-card); color: var(--text-main, #fff); padding: 10px; }

.combo-group { flex-direction: row; gap: 20px; }
.combo_field { flex: 1; display: flex; flex-direction: column; gap: 10px; }

.captcha-group { margin-top: 25px; }
.c-captcha {
    display: flex; align-items: center; gap: 20px;
    background: rgba(255,255,255,0.03); padding: 20px;
    border-radius: 12px; border: 1px solid rgba(255,255,255,0.05);
}
.captcha-img-box img { border-radius: 8px; height: 50px; border: 1px solid rgba(255,255,255,0.1); }
.sec_block { flex: 1; }

.form_submit { margin-top: 35px; }
.modern-btn.submit-btn {
    width: 100%; padding: 18px;
    background: var(--accent); color: #fff; border: none; border-radius: 12px;
    font-size: 18px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px;
    cursor: pointer; transition: 0.3s; display: flex; align-items: center; justify-content: center; gap: 12px;
}
.modern-btn.submit-btn:hover {
    background: var(--accent-hover); transform: translateY(-3px);
    box-shadow: 0 10px 30px var(--accent-glow);
}

@media (max-width: 768px) {
    .modern-form-box { padding: 25px; }
    .combo-group { flex-direction: column; }
    .c-captcha { flex-direction: column; align-items: stretch; text-align: center; }
}

/* ==========================================================================
   11. ONLINE RADIO PAGE (Zamonaviy Radio sahifasi va Sticky Player)
   ========================================================================== */
.modern-radio-page {
    grid-column: 1 / -1 !important; 
    width: 100% !important;
    display: flex;
    flex-direction: column;
    margin-bottom: 80px; 
}

.radio-grid-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    width: 100%;
}

.radio-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: 0.3s;
    position: relative;
}
.radio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 230, 118, 0.15); 
    border-color: rgba(0, 230, 118, 0.3);
}

.rc-cover {
    width: 100%;
    aspect-ratio: 1/1; 
    position: relative;
    background: #000;
}
.rc-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.4s;
}

.rc-play-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: 0.3s;
}
.rc-play-overlay i {
    font-size: 40px; color: var(--accent); filter: drop-shadow(0 0 10px var(--accent));
}
.radio-card:hover .rc-cover img { opacity: 0.5; transform: scale(1.05); }
.radio-card:hover .rc-play-overlay { opacity: 1; }

.rc-info {
    padding: 15px;
    text-align: center;
}
.rc-info .song {
    font-size: 15px; font-weight: 800; color: var(--text-main, #fff); margin-bottom: 5px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rc-info .artist {
    font-size: 12px; font-weight: 700; color: var(--danger);
    background: rgba(255, 51, 102, 0.1); display: inline-block; padding: 2px 8px; border-radius: 4px;
}

.radio-card.playing {
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(0, 230, 118, 0.3);
}
.radio-card.playing .rc-cover::after {
    content: 'PLAYING'; position: absolute; bottom: 10px; right: 10px;
    background: var(--accent); color: #000; font-size: 10px; font-weight: 900; padding: 4px 8px; border-radius: 4px;
}

/* STICKY RADIO PLAYER */
.sticky-radio-player {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(15, 16, 20, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255,255,255,0.05);
    z-index: 9999; 
    box-shadow: 0 -10px 40px rgba(0,0,0,0.5);
    animation: slideUp 0.4s ease forwards;
}

@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }

.srp-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.srp-info { display: flex; align-items: center; gap: 15px; width: 300px; }
.srp-info img { width: 50px; height: 50px; border-radius: 8px; object-fit: cover; border: 1px solid rgba(255,255,255,0.1); }
.srp-text h4 { font-size: 15px; font-weight: 700; color: var(--text-main, #fff); margin: 0 0 4px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.srp-text p { font-size: 12px; color: var(--danger); font-weight: 700; margin: 0; }

.srp-controls { display: flex; align-items: center; gap: 20px; }
.srp-btn {
    background: transparent; border: none; color: var(--text-main, #fff); font-size: 20px; cursor: pointer; transition: 0.2s;
    width: 45px; height: 45px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.play-pause-btn { background: var(--accent); color: #000; font-size: 18px; }
.play-pause-btn:hover { transform: scale(1.1); box-shadow: 0 5px 15px var(--accent-glow); }
.stop-btn { color: var(--text-muted); }
.stop-btn:hover { color: var(--danger); background: rgba(255,255,255,0.05); }

.srp-volume { display: flex; align-items: center; gap: 10px; width: 200px; justify-content: flex-end; }
.srp-volume i { color: var(--text-muted); font-size: 14px; }
.srp-volume span { color: var(--text-muted); font-size: 12px; font-weight: 600; width: 40px; }
.srp-volume input[type="range"] {
    flex: 1; accent-color: var(--accent); height: 4px; background: rgba(255,255,255,0.1);
    border-radius: 5px; outline: none; -webkit-appearance: none;
}
.srp-volume input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); cursor: pointer;
}

@media (max-width: 768px) {
    .radio-grid-list { grid-template-columns: repeat(2, 1fr); gap: 15px; } 
    .srp-container { flex-wrap: wrap; padding: 15px; justify-content: center; gap: 15px; }
    .srp-info { width: 100%; justify-content: center; text-align: center; }
    .srp-volume { display: none; } 
}

/* ==========================================================================
   12. INFO & 404 ERROR PAGE (Xatoliklar va Tizim xabarlari)
   ========================================================================== */
.modern-info-page {
    grid-column: 1 / -1 !important; 
    width: 100% !important;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
    min-height: 60vh; 
}

.info-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 50px;
    text-align: center;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    animation: scaleIn 0.4s ease forwards;
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.info-icon i {
    font-size: 80px;
    color: var(--danger); 
    margin-bottom: 25px;
    filter: drop-shadow(0 0 20px rgba(255, 51, 102, 0.4));
}

.info-title {
    font-size: 28px;
    font-weight: 900;
    color: var(--text-main, #fff);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-text {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 35px;
}

.info-home-btn {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 15px 35px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 800;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
}
.info-home-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px var(--accent-glow);
    color: #fff;
}

@media (max-width: 768px) {
    .info-box { padding: 35px 20px; }
    .info-icon i { font-size: 60px; }
    .info-title { font-size: 22px; }
}

/* ==========================================================================
   13. 404 ERROR PAGE (Katta xatolik sahifasi)
   ========================================================================== */
.error-code-text {
    font-size: 130px;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 10px;
    background: var(--gradient); 
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 15px 30px var(--accent-glow));
    font-family: 'Inter', sans-serif;
}

@media (max-width: 768px) {
    .error-code-text {
        font-size: 90px;
    }
}

/* ==========================================================================
   14. TOP 100 PAGE (Eng ko'p ko'rilgan kinolar sahifasi)
   ========================================================================== */
.modern-top100-page {
    grid-column: 1 / -1 !important; 
    width: 100% !important;
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 50px;
}

.top100-header {
    background: var(--bg-card);
    padding: 40px 20px;
    border-radius: 16px;
    border: 1px solid var(--border);
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.top100-header .section-title {
    font-size: 32px;
    margin-bottom: 10px;
    color: var(--text-main, #fff);
}
.top100-header .section-title::before { display: none; }

.top100-subtitle {
    color: var(--text-muted);
    font-size: 16px;
    font-weight: 500;
}

.top100-filters {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: none; 
}
.top100-filters::-webkit-scrollbar { display: none; } 

.filter-btn {
    background: var(--bg-card);
    color: var(--text-muted);
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    border: 1px solid var(--border);
    transition: 0.3s;
    white-space: nowrap;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.filter-btn:hover {
    background: var(--bg-input);
    color: var(--text-main, #fff);
    border-color: rgba(255,255,255,0.1);
}

.filter-btn.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    box-shadow: 0 5px 15px var(--accent-glow);
}

@media (max-width: 768px) {
    .top100-header { padding: 25px 15px; }
    .top100-header .section-title { font-size: 24px; }
    .top100-subtitle { font-size: 14px; }
    .filter-btn { padding: 10px 20px; font-size: 13px; }
}

/* ==========================================================================
   15. STATIC PAGES (DMCA, Maxsus sahifalar)
   ========================================================================== */
.modern-static-page {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    max-width: 1000px;
    margin: 0 auto 50px auto;
    background: var(--bg-card);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    color: #ccc;
}
.modern-static-page .section-title { font-size: 32px; font-weight: 900; color: var(--text-main, #fff); margin-bottom: 25px; }
.modern-static-page .section-title::before { display: none; }
.static-content { font-size: 16px; line-height: 1.8; }
.static-content p { margin-bottom: 15px; }
.static-content ol, .static-content ul { margin-bottom: 20px; padding-left: 20px; line-height: 1.8; list-style: disc; }
.static-content li { margin-bottom: 10px; }
.static-content a { color: var(--accent); font-weight: 600; }
.static-content a:hover { text-decoration: underline; }
.static-content h2, .static-content h3 { color: var(--text-main, #fff); margin: 25px 0 15px 0; font-weight: 800; }
.static-content img { border-radius: 12px; margin: 15px 0; }
.highlight { font-weight: 700; color: #fff; background: rgba(255, 51, 102, 0.2); padding: 2px 6px; border-radius: 4px; }
.lang-buttons { display: flex; gap: 10px; margin-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 20px; flex-wrap: wrap; }
.lang-btn { font-size: 14px; font-weight: 700; padding: 10px 20px; border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; background-color: var(--bg-input); color: var(--text-muted); cursor: pointer; display: inline-flex; align-items: center; gap: 10px; transition: 0.3s ease; }
.lang-btn img { width: 20px; height: 15px; border-radius: 2px; }
.lang-btn:hover { background-color: rgba(255,255,255,0.05); color: #fff; }
.lang-btn.active { background-color: rgba(0, 230, 118, 0.15); border-color: var(--accent); color: #fff; box-shadow: 0 4px 15px var(--accent-glow); }
.lang-content { display: none; }
.lang-content.active { display: block; animation: fadeIn 0.4s ease; }
.static-contact { margin-top: 30px; padding: 20px; background: rgba(255,255,255,0.02); border-radius: 12px; border-left: 4px solid var(--accent); font-size: 16px; }
.static-contact a { color: var(--accent); font-weight: 700; }
.static-contact a:hover { text-decoration: underline; color: #fff; }
.static-footer { margin-top: 30px; text-align: center; font-weight: 700; color: var(--text-muted); font-size: 14px; }
@media (max-width: 768px) { .modern-static-page { padding: 25px; border-radius: 16px; } .modern-static-page .section-title { font-size: 24px; } .lang-btn { flex: 1; justify-content: center; } }

/* ==========================================================================
   16. CUSTOM PAGES (Premyeralar va boshqa maxsus sahifalar)
   ========================================================================== */
.modern-custom-page {
    grid-column: 1 / -1 !important; 
    width: 100% !important;
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 50px;
}

.page-header-box {
    background: var(--bg-card);
    padding: 40px 20px;
    border-radius: 16px;
    border: 1px solid var(--border);
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.page-header-box .section-title {
    font-size: 32px;
    margin-bottom: 10px;
    color: var(--text-main, #fff);
}
.page-header-box .section-title::before { display: none; }

.page-subtitle {
    color: var(--text-muted);
    font-size: 16px;
    font-weight: 500;
}

@media (max-width: 768px) {
    .page-header-box { padding: 25px 15px; }
    .page-header-box .section-title { font-size: 24px; }
    .page-subtitle { font-size: 14px; }
}

/* ==========================================================================
   DROPDOWN OCHILISHI UCHUN QAT'IY QOIDALAR
   ========================================================================== */

/* 1. Odatiy holatda ichki menyu mutlaqo yopiq va ko'rinmas bo'lishi shart */
.nav-dropdown-content {
    max-height: 0 !important;
    overflow: hidden !important;
    visibility: hidden !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    opacity: 0 !important;
}

/* 2. .active klassi qo'shilganda (JS orqali), uni majburan ochamiz */
.nav-dropdown.active .nav-dropdown-content {
    max-height: 1000px !important; 
    visibility: visible !important;
    opacity: 1 !important;
    padding: 10px 0 !important;
}

/* ==========================================================================
   16. COMMENTS (comments.tpl — yangi class nomlari)
   ========================================================================== */
.comment-item { background: rgba(0, 0, 0, 0.2); padding: 20px; border-radius: 16px; border: 1px solid var(--border); margin-bottom: 15px; }
.comment-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.comment-avatar { flex-shrink: 0; }
.comment-avatar img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent); }
.comment-meta { flex: 1; min-width: 0; }
.comment-author { font-weight: 700; color: var(--text-main, #fff); font-size: 14px; display: block; }
.comment-date { font-size: 12px; color: var(--text-muted); }
.comment-actions { display: flex; gap: 10px; align-items: center; }
.comment-body { color: #cbd5e1; line-height: 1.7; font-size: 14px; word-wrap: break-word; padding: 12px; background: rgba(255,255,255,0.02); border-radius: 10px; }
@media (max-width: 768px) {
    .comment-avatar img { width: 36px; height: 36px; }
    .comment-item { padding: 15px; }
}

/* ==========================================================================
   17. AUTH PAGES (login.tpl, registration.tpl, lostpassword.tpl)
   ========================================================================== */
.auth-page { display: flex; justify-content: center; align-items: center; min-height: 50vh; padding: 40px 20px; grid-column: 1 / -1 !important; }
.auth-card { background: var(--bg-card, #1a1c23); border: 1px solid var(--border, rgba(255,255,255,0.05)); border-radius: 16px; padding: 35px; width: 100%; max-width: 450px; box-shadow: 0 10px 40px rgba(0,0,0,0.3); }
.auth-title { font-size: 22px; font-weight: 800; color: var(--text-main, #fff); margin-bottom: 25px; display: flex; align-items: center; gap: 10px; }
.auth-title i { color: var(--accent); }
.auth-links { margin-top: 20px; text-align: center; display: flex; justify-content: center; gap: 20px; }
.auth-links a { color: var(--accent); font-size: 14px; text-decoration: none; transition: 0.2s; }
.auth-links a:hover { text-decoration: underline; }

/* ==========================================================================
   18. FORM UTILITIES (Formlar uchun umumiy classlar)
   ========================================================================== */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; color: var(--text-muted); margin-bottom: 6px; }
.form-input { width: 100%; padding: 12px 15px; border-radius: 10px; background: var(--bg-body, #0f1014); border: 1px solid var(--border, rgba(255,255,255,0.1)); color: var(--text-main, #fff); font-size: 14px; font-family: inherit; outline: none; box-sizing: border-box; transition: border-color 0.2s; }
.form-input:focus { border-color: var(--accent); }
textarea.form-input { min-height: 120px; resize: vertical; }
.form-card { background: var(--bg-card, #1a1c23); border: 1px solid var(--border); border-radius: 16px; padding: 25px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 20px; border-radius: 10px; font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.2s; border: 1px solid transparent; text-decoration: none; font-family: inherit; }
.btn-primary { background: var(--accent); color: #000; border: none; padding: 13px 28px; border-radius: 10px; font-size: 15px; font-weight: 700; cursor: pointer; transition: all 0.3s; display: inline-flex; align-items: center; gap: 8px; font-family: inherit; width: 100%; justify-content: center; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 20px var(--accent-glow); }
.btn-outline { background: transparent; color: var(--text-muted); border: 1px solid var(--border); }
.btn-outline:hover { background: rgba(255,255,255,0.05); color: var(--text-main); border-color: var(--text-muted); }
.btn-sm { padding: 6px 12px; font-size: 12px; }

/* ==========================================================================
   19. BREADCRUMB (speedbar.tpl)
   ========================================================================== */
.breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 12px 0; font-size: 13px; color: var(--text-muted); grid-column: 1 / -1; }
.breadcrumb a { color: var(--text-muted); text-decoration: none; transition: 0.2s; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span.bc-arrow { font-size: 10px; color: var(--text-muted); }

/* ==========================================================================
   20. MOVIE CARD UTILITIES (mc-link, mc-dot, text-over)
   ========================================================================== */
.mc-link { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 10; }
.mc-dot { color: var(--text-muted); font-size: 8px; }
.text-over { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100px; display: inline-block; vertical-align: bottom; }

/* ==========================================================================
   21. USER PROFILE PAGE (userinfo.tpl)
   ========================================================================== */
.user-profile-page { grid-column: 1 / -1 !important; width: 100%; }
.profile-header { display: flex; gap: 25px; align-items: center; background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 30px; margin-bottom: 25px; }
.profile-avatar { flex-shrink: 0; }
.profile-avatar img { width: 90px; height: 90px; border-radius: 50%; object-fit: cover; border: 3px solid var(--accent); }
.profile-info { flex: 1; min-width: 0; }
.profile-name { font-size: 24px; font-weight: 800; color: var(--text-main, #fff); margin-bottom: 8px; }
.profile-meta { display: flex; flex-wrap: wrap; gap: 15px; font-size: 13px; color: var(--text-muted); margin-bottom: 10px; }
.profile-meta span { display: flex; align-items: center; gap: 6px; }
.profile-meta i { color: var(--accent); }
.profile-stats { display: flex; gap: 15px; font-size: 13px; color: var(--text-muted); }
.profile-stats span { display: flex; align-items: center; gap: 6px; }
.profile-stats i { color: var(--accent); }
.profile-tabs { display: flex; gap: 10px; margin-bottom: 25px; border-bottom: 1px solid var(--border); padding-bottom: 10px; }
.tab-link { display: flex; align-items: center; gap: 6px; padding: 10px 20px; border-radius: 10px 10px 0 0; font-size: 14px; font-weight: 600; color: var(--text-muted); text-decoration: none; transition: 0.2s; border-bottom: 2px solid transparent; }
.tab-link:hover { color: var(--text-main); }
.tab-link.active { color: var(--accent); border-bottom-color: var(--accent); }
.tab-pane { display: none; }
.tab-pane.show { display: block; }
.movie-grid-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 15px; }
@media (max-width: 768px) {
    .profile-header { flex-direction: column; text-align: center; align-items: center; padding: 20px; }
    .profile-avatar img { width: 70px; height: 70px; }
    .profile-name { font-size: 20px; }
    .profile-meta, .profile-stats { justify-content: center; }
    .movie-grid-list { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
}

/* ==========================================================================
   22. PROFILE POPUP (profile_popup.tpl)
   ========================================================================== */
.profile-popup { background: var(--bg-card, #1a1c23); border: 1px solid var(--border); border-radius: 16px; padding: 20px; max-width: 450px; width: 100%; box-shadow: 0 10px 40px rgba(0,0,0,0.4); }
.profile-popup__header { display: flex; gap: 15px; align-items: flex-start; margin-bottom: 15px; padding-bottom: 15px; border-bottom: 1px solid var(--border); }
.profile-popup__avatar { flex-shrink: 0; }
.profile-popup__avatar img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent); }
.profile-popup__avatar .avatar { position: relative; display: inline-block; }
.profile-popup__avatar .avatar.online::after { content: ''; position: absolute; bottom: 2px; right: 2px; width: 12px; height: 12px; background: var(--accent); border-radius: 50%; border: 2px solid var(--bg-card); }
.profile-popup__avatar .avatar.offline::after { content: ''; position: absolute; bottom: 2px; right: 2px; width: 12px; height: 12px; background: #6b7280; border-radius: 50%; border: 2px solid var(--bg-card); }
.profile-popup__stats { display: flex; gap: 15px; flex: 1; }
.profile-popup__stat { text-align: center; }
.profile-popup__stat-label { display: block; font-size: 11px; color: var(--text-muted); margin-bottom: 4px; }
.profile-popup__stat-num { font-size: 14px; font-weight: 700; color: var(--text-main, #fff); }
.profile-popup__stat-num a { color: var(--accent); text-decoration: none; }
.profile-popup__stat-num a:hover { text-decoration: underline; }
.profile-popup__body { font-size: 14px; color: var(--text-muted); }
.profile-popup__name { font-size: 16px; font-weight: 700; color: var(--text-main, #fff); margin-bottom: 4px; }
.profile-popup__group { font-size: 13px; color: var(--text-muted); margin-bottom: 10px; }
.profile-popup__label { font-size: 12px; color: var(--text-muted); margin-bottom: 2px; }
.profile-popup__value { font-size: 14px; color: var(--text-main, #fff); }
.rss-link { color: var(--accent); margin-left: 6px; font-size: 12px; }
.rss-link:hover { color: var(--accent-hover); }

/* ==========================================================================
   23. PM PAGE (pm.tpl)
   ========================================================================== */
.pm-page { grid-column: 1 / -1 !important; width: 100%; }
.pm-content { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 25px; }
.pm-content table { width: 100%; border-collapse: collapse; }
.pm-content td, .pm-content th { padding: 12px 15px; border-bottom: 1px solid var(--border); font-size: 14px; color: var(--text-main); }
.pm-content th { font-weight: 700; text-align: left; background: rgba(0,0,0,0.2); }
.pm-content a { color: var(--accent); text-decoration: none; }
.pm-content a:hover { text-decoration: underline; }

/* ==========================================================================
   24. FEEDBACK PAGE (feedback.tpl)
   ========================================================================== */
.feedback-page { grid-column: 1 / -1 !important; width: 100%; max-width: 700px; margin: 0 auto; padding: 20px 0; }

/* ==========================================================================
   25. STATS PAGE (stats.tpl)
   ========================================================================== */
.stats-page { grid-column: 1 / -1 !important; width: 100%; }
.stats-summary { margin-bottom: 30px; }
.stats-period { list-style: none; padding: 0; margin: 0; }
.stats-period li { padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 14px; color: var(--text-muted); }
.stats-period li b { color: var(--text-main); margin-right: 8px; }
.stats-details { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.stats-group { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 20px; }
.stats-group h5 { font-size: 16px; font-weight: 700; color: var(--text-main); margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.stats-group ul { list-style: none; padding: 0; margin: 0; }
.stats-group li { padding: 8px 0; font-size: 13px; color: var(--text-muted); display: flex; justify-content: space-between; }
.stats-group li b { color: var(--accent); }
.subtitle { font-size: 14px; color: var(--text-muted); margin-bottom: 15px; }
.top-users, .userstop { list-style: none; padding: 0; margin: 0; }
.top-users li, .userstop li { padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 14px; color: var(--text-muted); }

/* ==========================================================================
   26. VOTE / POLL (vote.tpl, poll.tpl)
   ========================================================================== */
.vote-widget, .poll-widget { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 20px; margin-bottom: 20px; }
.vote-title, .poll-title { font-size: 16px; font-weight: 700; color: var(--text-main, #fff); margin-bottom: 15px; }
.vote-list, .poll-list { margin-bottom: 15px; }
.vote-list label, .poll-list label { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 8px; cursor: pointer; transition: 0.2s; font-size: 14px; color: var(--text-main); }
.vote-list label:hover, .poll-list label:hover { background: rgba(255,255,255,0.03); }
.vote-count { font-size: 13px; color: var(--text-muted); }
.vote-actions, .poll-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.poll-closed { font-size: 13px; color: var(--text-muted); font-style: italic; }

/* ==========================================================================
   27. TAGS CLOUD (tagscloud.tpl)
   ========================================================================== */
.tagscloud { grid-column: 1 / -1 !important; width: 100%; }
.tags-wrap { display: flex; flex-wrap: wrap; gap: 10px; }
.tags-wrap a { display: inline-flex; padding: 8px 16px; background: rgba(255,255,255,0.05); border: 1px solid var(--border); border-radius: 20px; color: var(--text-muted); font-size: 13px; text-decoration: none; transition: all 0.2s; }
.tags-wrap a:hover { background: var(--accent); color: #000; border-color: var(--accent); }

/* ==========================================================================
   28. INFO / ERROR PAGE (info.tpl)
   ========================================================================== */
.info-page { grid-column: 1 / -1 !important; padding: 40px 20px; text-align: center; }

/* ==========================================================================
   29. ADD NEWS PAGE (addnews.tpl)
   ========================================================================== */
.addnews-page { grid-column: 1 / -1 !important; width: 100%; }
.addnews-form-wrap { max-width: 800px; margin: 0 auto; }
.form-control { width: 100%; padding: 12px 15px; border-radius: 10px; background: var(--bg-body, #0f1014); border: 1px solid var(--border); color: var(--text-main, #fff); font-size: 14px; font-family: inherit; outline: none; box-sizing: border-box; transition: border-color 0.2s; }
.form-control:focus { border-color: var(--accent); }
.form-label { display: block; font-size: 14px; font-weight: 600; color: var(--text-muted); margin-bottom: 6px; }
.form-actions { display: flex; gap: 10px; margin-top: 20px; }
.captcha-wrap { margin: 15px 0; }

/* ==========================================================================
   30. OFFLINE PAGE (offline.tpl)
   ========================================================================== */
.offline-page { grid-column: 1 / -1; text-align: center; padding: 60px 20px; }
.offline-logo { font-size: 48px; margin-bottom: 20px; color: var(--accent); }
.offline-title { font-size: 24px; font-weight: 800; color: var(--text-main); margin-bottom: 10px; }
.offline-reason { font-size: 15px; color: var(--text-muted); line-height: 1.6; max-width: 500px; margin: 0 auto 20px; }
.offline-copyright { font-size: 12px; color: var(--text-muted); margin-top: 30px; }

/* ==========================================================================
   31. MISC PAGES (preview, attachment, informer, print, splitnav, category menu)
   ========================================================================== */
.preview-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 20px; margin-bottom: 15px; }
.preview-title { font-size: 18px; font-weight: 700; color: var(--text-main); margin-bottom: 8px; }
.preview-text { font-size: 14px; color: var(--text-muted); line-height: 1.6; }
.preview-meta { font-size: 12px; color: var(--text-muted); margin-top: 10px; }
.preview-category { color: var(--accent); }

.attachment-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 15px; margin-bottom: 10px; display: flex; align-items: center; gap: 12px; }
.attachment-denied { color: var(--danger); font-size: 13px; }

.splitnewsnavigation { text-align: center; margin: 20px 0; }
.splitnewsnavigation a { display: inline-flex; padding: 8px 16px; background: rgba(255,255,255,0.05); border: 1px solid var(--border); border-radius: 8px; color: var(--text-muted); text-decoration: none; margin: 0 4px; transition: 0.2s; }
.splitnewsnavigation a:hover { background: var(--accent); color: #000; border-color: var(--accent); }
.splitnewsnavigation span { display: inline-flex; padding: 8px 16px; background: var(--accent); color: #000; border-radius: 8px; font-weight: 700; margin: 0 4px; }

.category-menu { display: flex; flex-wrap: wrap; gap: 10px; padding: 15px 0; grid-column: 1 / -1; }
.category-menu a { padding: 8px 16px; background: rgba(255,255,255,0.05); border: 1px solid var(--border); border-radius: 8px; color: var(--text-muted); text-decoration: none; font-size: 13px; transition: 0.2s; }
.category-menu a:hover, .category-menu a.active { background: var(--accent); color: #000; border-color: var(--accent); }

/* ==========================================================================
   32. BOOTSTRAP-LIKE UTILITIES
   ========================================================================== */
.row { display: flex; flex-wrap: wrap; gap: 15px; }
.col { flex: 1; min-width: 0; }
.col-12 { width: 100%; }
.d-none { display: none !important; }
.text-muted { color: var(--text-muted) !important; }
.text-danger { color: var(--danger) !important; }
.mt-2 { margin-top: 10px; }
.mt-3 { margin-top: 15px; }
.mb-1 { margin-bottom: 5px; }
.mb-3 { margin-bottom: 15px; }
.me-1 { margin-right: 5px; }
.me-2 { margin-right: 10px; }
@media (min-width: 768px) {
    .d-md-block { display: block !important; }
}

/* ==========================================================================
   TAGS, PWA TOAST, iOS MODAL
   ========================================================================== */
.fs-tags { margin-top: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted, #9ca3af); }
.fs-tags i { color: var(--accent, #00e676); }
.fs-tags a { color: var(--text-muted, #9ca3af); transition: 0.2s; }
.fs-tags a:hover { color: var(--accent, #00e676); }

/* PWA Toast */
.fs-pwa-toast { position: fixed; bottom: -150px; left: 50%; transform: translateX(-50%); background: var(--bg-card, rgba(26, 28, 35, 0.95)); backdrop-filter: blur(10px); border: 1px solid rgba(0, 230, 118, 0.3); border-radius: 12px; padding: 12px 15px; display: flex; align-items: center; gap: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6); z-index: 9998; transition: bottom 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.5s ease; opacity: 0; width: 380px; max-width: 90%; }
.fs-pwa-toast.show { bottom: 30px; opacity: 1; }
@media (max-width: 768px) { .fs-pwa-toast.show { bottom: 90px; } }
.fs-toast-icon { font-size: 26px; color: var(--accent, #00e676); background: rgba(0, 230, 118, 0.1); padding: 8px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.fs-toast-text { flex: 1; display: flex; flex-direction: column; }
.fs-toast-text strong { color: var(--text-main, #fff); font-size: 14px; margin-bottom: 3px; }
.fs-toast-text span { color: var(--text-muted, #9ca3af); font-size: 11px; line-height: 1.3; }
.fs-toast-install-btn { background: var(--accent, #00e676); color: #000; border: none; padding: 8px 15px; border-radius: 6px; font-weight: 700; font-size: 12px; cursor: pointer; transition: 0.2s; text-transform: uppercase; box-shadow: 0 2px 10px rgba(0, 230, 118, 0.3); }
.fs-toast-install-btn:hover { transform: scale(1.05); }
.fs-toast-close-btn { background: transparent; border: none; color: #6b7280; font-size: 18px; cursor: pointer; padding: 5px; transition: 0.2s; }
.fs-toast-close-btn:hover { color: #ef4444; }

/* iOS Modal */
.fs-ios-modal { display: none; position: fixed; z-index: 10000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.8); backdrop-filter: blur(5px); align-items: center; justify-content: center; }
.fs-ios-content { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 25px; width: 90%; max-width: 420px; text-align: center; position: relative; box-shadow: 0 10px 40px rgba(0,230,118,0.2); animation: scaleUp 0.3s ease; }
.fs-ios-close { position: absolute; top: 15px; right: 20px; color: var(--text-muted); font-size: 28px; font-weight: bold; cursor: pointer; transition: 0.2s; }
.fs-ios-close:hover { color: var(--danger); }

/* ==========================================================================
   LIGHT MODE OVERRIDES (pages.css)
   ========================================================================== */

/* ---- Fullstory Hero ---- */
/* Hero backdrop & poster overlay — dark gradient saqlanadi */
body.light-mode .fs-hero-section { background: #fff; }
body.light-mode .fs-hero-content { color: #111827; }
body.light-mode .fs-title { color: #111827; }
body.light-mode .fs-alt-title { color: #6b7280; }
body.light-mode .meta-tag { background: #f3f4f6; color: #111827; border-color: #e5e7eb; }
body.light-mode .meta-tag.quality { background: var(--danger); color: #fff; }
body.light-mode .meta-tag.age { background: #f59e0b; color: #fff; }
body.light-mode .detail-item { color: #111827; }
body.light-mode .detail-item span:first-child { color: #6b7280; }
body.light-mode .fs-desc-text { color: #374151; }
body.light-mode .read-more-btn { color: var(--accent); }
body.light-mode .read-more-btn:hover { color: var(--accent-hover); }
body.light-mode .fs-tags { color: #6b7280; }
body.light-mode .fs-tags a { color: #6b7280; }
body.light-mode .fs-tags a:hover { color: var(--accent); }

/* ---- Player ---- */
body.light-mode .fs-player-layout { background: #fff; }
body.light-mode .ep-navigation a { background: #f3f4f6; color: #4b5563; border-color: #e5e7eb; }
body.light-mode .ep-navigation a:hover { background: #e5e7eb; color: #111827; }
body.light-mode .ep-navigation span, body.light-mode .ep-navigation b { background: var(--accent); color: #fff; }
body.light-mode .fs-serial-placeholder { border-color: #e5e7eb; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
body.light-mode .fs-serial-overlay span { color: #fff; /* oq qoladi — qora overlay ustida */ }
body.light-mode .fs-player-sidebar { background: #f9fafb; border-color: #e5e7eb; }
body.light-mode .ep-header { color: #111827; border-bottom-color: #e5e7eb; }
body.light-mode .episode-links a { background: #f3f4f6; color: #4b5563; border-color: #e5e7eb; }
body.light-mode .episode-links a:hover { background: #e5e7eb; color: #111827; border-color: #d1d5db; }
body.light-mode .episode-links span,
body.light-mode .episode-links b,
body.light-mode .episode-links .active { background: var(--accent) !important; color: #fff !important; }

/* ---- Actions (like/dislike, comment btn) ---- */
body.light-mode .fs-actions { border-color: #e5e7eb; }
body.light-mode .rate-btn { color: #4b5563; }
body.light-mode .action-btn { background: #f3f4f6; color: #111827; border-color: #e5e7eb; }
body.light-mode .action-btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ---- Comments ---- */
body.light-mode .comments-toggle-btn { background: #f3f4f6; color: #111827; border-color: #e5e7eb; }
body.light-mode .comments-toggle-btn:hover { border-color: var(--accent); }
body.light-mode .comments-toggle-btn.active { background: var(--accent); color: #fff; }
body.light-mode .premium-comments-section { background: #fff; }
body.light-mode .com-author { color: #111827; }
body.light-mode .com-action { color: #6b7280; }
body.light-mode .com-action:hover { color: #111827; }
body.light-mode #addcform textarea,
body.light-mode .premium-textarea { background: #f3f4f6; border-color: #e5e7eb; color: #111827; }
body.light-mode #addcform textarea:focus,
body.light-mode .premium-textarea:focus { border-color: var(--accent); background: #fff; }
body.light-mode .premium-input { background: #f3f4f6; border-color: #e5e7eb; color: #111827; }
body.light-mode #addcform button[name="submit"],
body.light-mode .premium-submit-btn { background: var(--accent); color: #fff; }

/* ---- Generator (Episode page) ---- */
body.light-mode .gen-title { color: #111827; }
body.light-mode .gen-ep-tag { color: #fff; }
body.light-mode .gen-back-btn { background: #f3f4f6; color: #111827; border-color: #e5e7eb; }
body.light-mode .gen-back-btn:hover { background: var(--accent); color: #fff; }
body.light-mode .ep-nav-top a,
body.light-mode .ep-nav-top span { background: #f3f4f6; color: #111827; border-color: #e5e7eb; }
body.light-mode .ep-nav-top a:hover { background: var(--accent); color: #fff; }

/* ---- Search Page ---- */
body.light-mode .search-form-wrapper { background: #fff; border-color: #e5e7eb; box-shadow: 0 4px 15px rgba(0,0,0,0.06); }
body.light-mode .search-form-wrapper td { color: #111827; }
body.light-mode .search-form-wrapper input[type="text"],
body.light-mode .search-form-wrapper input[type="search"],
body.light-mode .search-form-wrapper input.textin { background: #f3f4f6 !important; border-color: #e5e7eb !important; color: #111827 !important; }
body.light-mode .search-form-wrapper input[type="text"]:focus,
body.light-mode .search-form-wrapper input.textin:focus { background: #fff !important; border-color: var(--accent) !important; }
body.light-mode .search-form-wrapper input[type="button"],
body.light-mode .search-form-wrapper input.bbcodes { background: var(--accent) !important; color: #fff !important; }
body.light-mode .search-form-wrapper input.bbcodes#dofullsearch { background: transparent !important; color: var(--accent) !important; border-color: var(--accent) !important; }
body.light-mode .search-form-wrapper input.bbcodes#dofullsearch:hover { background: var(--accent) !important; color: #fff !important; }
body.light-mode .search-form-wrapper select { background: #f3f4f6; color: #111827; border-color: #e5e7eb; }
body.light-mode .search-msg-box { background: rgba(0, 176, 80, 0.06); color: #111827; }

/* ---- Personal Messages ---- */
body.light-mode .pm-tab-btn { color: #4b5563; border-color: #e5e7eb; }
body.light-mode .pm-tab-btn:hover { background: #f3f4f6; color: #111827; }
body.light-mode .pm-tab-btn.active { background: var(--accent); color: #fff; }
body.light-mode .pm-tab-btn.new-msg-btn { background: var(--accent); color: #fff; }
body.light-mode .pm-list-wrapper table { color: #111827; }
body.light-mode .pm-sub-title { color: #111827; }
body.light-mode .pm-author { color: #111827; }
body.light-mode .pm-msg-title { color: #111827; }
body.light-mode .submit-btn { background: var(--accent); color: #fff; }
body.light-mode .preview-btn { background: #f3f4f6; color: #111827; border-color: #e5e7eb; }
body.light-mode .del-btn:hover { background: var(--danger); color: #fff; }
body.light-mode .pm-captcha-box label { color: #111827; }

/* ---- Forms (Register, Feedback) ---- */
body.light-mode .modern-form-box select option { background: #fff; color: #111827; }

/* ---- Info / Error pages ---- */
body.light-mode .info-box { background: #fff; border-color: #e5e7eb; }

/* ---- Static pages (DMCA) ---- */
body.light-mode .modern-static-page { background: #fff; border-color: #e5e7eb; color: #374151; box-shadow: 0 10px 40px rgba(0,0,0,0.06); }
body.light-mode .modern-static-page .section-title { color: #111827; }
body.light-mode .static-content { color: #374151; }
body.light-mode .static-content h2, body.light-mode .static-content h3 { color: #111827; }
body.light-mode .highlight { color: #111827; background: rgba(255, 51, 102, 0.1); }
body.light-mode .lang-btn { background: #f3f4f6; color: #4b5563; border-color: #e5e7eb; }
body.light-mode .lang-btn:hover { background: #e5e7eb; color: #111827; }
body.light-mode .lang-btn.active { background: rgba(0, 176, 80, 0.1); border-color: var(--accent); color: var(--accent); }
body.light-mode .static-contact { background: #f9fafb; border-left-color: var(--accent); }
body.light-mode .rate-count { color: var(--accent); }
body.light-mode .comment-rating { color: #4b5563; }
body.light-mode .com-rate-count { color: var(--accent); }

/* ---- Ad wrapper ---- */
.fs-ad-wrapper { width: 100%; margin: 25px auto; display: flex; justify-content: center; align-items: center; overflow: hidden; min-height: 90px; background: var(--bg-card, #141414); border: 1px solid var(--border, rgba(255,255,255,0.05)); border-radius: 12px; padding: 15px; box-sizing: border-box; }
@media (max-width: 768px) { .fs-ad-wrapper { margin: 15px auto; min-height: 60px; padding: 10px; } }
body.light-mode .fs-ad-wrapper { background: #f9fafb; border-color: #e5e7eb; }

/* ---- Global rgba fix: transparent whites → transparent blacks ---- */
body.light-mode .premium-scroll::-webkit-scrollbar-track { background: #f3f4f6; }

/* ---- Stories wrapper (pages.css duplicate) ---- */
body.light-mode .stories-wrapper .section-title { color: #111827; }

/* ---- Search result cards ---- */
body.light-mode .search-result-card { border-color: #e5e7eb; }
body.light-mode .search-result-card .mc-title { color: #111827; }

/* ---- Forms (Register/Feedback) ---- */
body.light-mode .form-group label { color: #111827; }
body.light-mode .modern-input,
body.light-mode .modern-textarea,
body.light-mode .modern-form-box select,
body.light-mode .modern-form-box textarea { background: #f3f4f6 !important; border-color: #e5e7eb !important; color: #111827 !important; }
body.light-mode .modern-input:focus,
body.light-mode .modern-textarea:focus,
body.light-mode .modern-form-box select:focus,
body.light-mode .modern-form-box textarea:focus { background: #fff !important; border-color: var(--accent) !important; }
body.light-mode .c-captcha { background: #f9fafb; border-color: #e5e7eb; }

/* ---- Radio page ---- */
body.light-mode .rc-info .song { color: #111827; }
body.light-mode .srp-text h4 { color: #111827; }
body.light-mode .srp-btn { color: #111827; }
body.light-mode .sticky-radio-player { background: rgba(255, 255, 255, 0.95); border-top-color: #e5e7eb; box-shadow: 0 -10px 40px rgba(0,0,0,0.1); }

/* ---- Info/Error pages ---- */
body.light-mode .info-title { color: #111827; }

/* ---- Top100 & Custom pages ---- */
body.light-mode .top100-header .section-title { color: #111827; }
body.light-mode .top100-header { box-shadow: 0 10px 30px rgba(0,0,0,0.06); }
body.light-mode .filter-btn { background: #fff; color: #4b5563; border-color: #e5e7eb; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
body.light-mode .filter-btn:hover { background: #f3f4f6; color: #111827; border-color: #d1d5db; }
body.light-mode .page-header-box .section-title { color: #111827; }
body.light-mode .page-header-box { box-shadow: 0 10px 30px rgba(0,0,0,0.06); }

/* ---- Comments (yangi classlar) ---- */
body.light-mode .comment-item { background: #f9fafb; border-color: #e5e7eb; }
body.light-mode .comment-author { color: #111827; }
body.light-mode .comment-date { color: #6b7280; }
body.light-mode .comment-body { color: #374151; background: #f3f4f6; }
body.light-mode .comment-avatar img { border-color: var(--accent); }

/* ---- Auth Pages ---- */
body.light-mode .auth-card { background: #fff; border-color: #e5e7eb; box-shadow: 0 4px 20px rgba(0,0,0,0.06); }
body.light-mode .auth-title { color: #111827; }
body.light-mode .form-input { background: #f9fafb; border-color: #e5e7eb; color: #111827; }
body.light-mode .form-input:focus { border-color: var(--accent); background: #fff; }
body.light-mode .form-group label { color: #374151; }

/* ---- Profile Page ---- */
body.light-mode .profile-header { background: #fff; border-color: #e5e7eb; }
body.light-mode .profile-name { color: #111827; }
body.light-mode .profile-tabs { border-bottom-color: #e5e7eb; }
body.light-mode .tab-link { color: #6b7280; }
body.light-mode .tab-link:hover { color: #111827; }

/* ---- Profile Popup ---- */
body.light-mode .profile-popup { background: #fff; border-color: #e5e7eb; }
body.light-mode .profile-popup__header { border-bottom-color: #e5e7eb; }
body.light-mode .profile-popup__name { color: #111827; }
body.light-mode .profile-popup__stat-num { color: #111827; }

/* ---- PM Page ---- */
body.light-mode .pm-content { background: #fff; border-color: #e5e7eb; }
body.light-mode .pm-content td, body.light-mode .pm-content th { color: #111827; border-bottom-color: #e5e7eb; }
body.light-mode .pm-content th { background: #f3f4f6; }

/* ---- Stats Page ---- */
body.light-mode .stats-period li { border-bottom-color: #e5e7eb; color: #4b5563; }
body.light-mode .stats-period li b { color: #111827; }
body.light-mode .stats-group { background: #fff; border-color: #e5e7eb; }
body.light-mode .stats-group h5 { color: #111827; border-bottom-color: #e5e7eb; }
body.light-mode .stats-group li { color: #4b5563; }

/* ---- Form Card ---- */
body.light-mode .form-card { background: #fff; border-color: #e5e7eb; }
body.light-mode .form-control { background: #f9fafb; border-color: #e5e7eb; color: #111827; }
body.light-mode .form-control:focus { border-color: var(--accent); background: #fff; }

/* ---- Vote Widget ---- */
body.light-mode .vote-widget, body.light-mode .poll-widget { background: #fff; border-color: #e5e7eb; }
body.light-mode .vote-title, body.light-mode .poll-title { color: #111827; }
body.light-mode .vote-list label, body.light-mode .poll-list label { color: #111827; }
body.light-mode .vote-list label:hover, body.light-mode .poll-list label:hover { background: #f3f4f6; }
body.light-mode .btn-outline { color: #4b5563; border-color: #e5e7eb; }
body.light-mode .btn-outline:hover { background: #f3f4f6; color: #111827; }

/* ---- Tags Cloud ---- */
body.light-mode .tags-wrap a { background: #f3f4f6; border-color: #e5e7eb; color: #4b5563; }
body.light-mode .tags-wrap a:hover { background: var(--accent); color: #000; border-color: var(--accent); }

/* ---- Breadcrumb ---- */
body.light-mode .breadcrumb { color: #6b7280; }
body.light-mode .breadcrumb a { color: #6b7280; }
body.light-mode .breadcrumb a:hover { color: var(--accent); }

/* ---- Preview/Attachment ---- */
body.light-mode .preview-item { background: #fff; border-color: #e5e7eb; }
body.light-mode .preview-title { color: #111827; }
body.light-mode .attachment-item { background: #fff; border-color: #e5e7eb; }

/* ---- SplitNav & Category Menu ---- */
body.light-mode .splitnewsnavigation a { background: #f3f4f6; border-color: #e5e7eb; color: #4b5563; }
body.light-mode .splitnewsnavigation a:hover { background: var(--accent); color: #000; }
body.light-mode .category-menu a { background: #f3f4f6; border-color: #e5e7eb; color: #4b5563; }
body.light-mode .category-menu a:hover, body.light-mode .category-menu a.active { background: var(--accent); color: #000; }

/* 3. Strelka aylanishi */
.nav-dropdown.active .arrow {
    transform: rotate(180deg) !important;
    color: var(--accent) !important;
}

/* 4. Tugma rangi o'zgarishi */
.nav-dropdown.active .nav-dropdown-btn {
    color: var(--accent) !important;
    background: rgba(255, 255, 255, 0.03) !important;
}

/* ========================================================================
   STORIES (Instagram-style "Hozir trendda")
   ======================================================================== */
.stories-wrapper { margin-bottom: 25px; width: 100%; overflow: hidden; }
.stories-wrapper .section-title { font-size: 18px; font-weight: 700; color: var(--text-main, #fff); margin-bottom: 15px; display: flex; align-items: center; gap: 8px; }
.stories-wrapper .section-title i { color: #ff6b35; }

.story-item { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; cursor: pointer; text-align: center; width: 84px !important; min-width: 84px !important; max-width: 84px !important; flex-shrink: 0 !important; margin: 0 auto; transition: transform 0.2s ease; gap: 8px; }
.story-item:hover { transform: scale(1.05); }
.story-img-ring { width: 74px !important; height: 74px !important; min-width: 74px !important; min-height: 74px !important; max-width: 74px !important; max-height: 74px !important; border-radius: 50% !important; padding: 2px !important; background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); display: flex; align-items: center; justify-content: center; box-shadow: 0 5px 15px rgba(0,0,0,0.3); flex-shrink: 0 !important; box-sizing: border-box !important; }
.istoriyimg { width: 100% !important; height: 100% !important; border-radius: 50% !important; object-fit: cover !important; border: 3px solid var(--bg-body, #141414) !important; box-sizing: border-box !important; background-color: var(--bg-card, #111); display: block; margin: 0 !important; }
.story-title { font-size: 12px; color: var(--text-muted); font-weight: 600; width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; transition: color 0.2s; line-height: 1.2; }
.story-item:hover .story-title { color: var(--text-main, #fff); }

@media (max-width: 576px) {
    .story-item { width: 68px !important; min-width: 68px !important; max-width: 68px !important; }
    .story-img-ring { width: 60px !important; height: 60px !important; min-width: 60px !important; min-height: 60px !important; max-width: 60px !important; max-height: 60px !important; }
    .story-title { font-size: 10px; }
}

/* ========================================================================
   33. FULLSTORY BOTTOM SECTIONS & TRAILER
   ======================================================================== */
.fs-bottom-sections { width: 100%; margin-top: 30px; }
.fs-trailer-section { width: 100%; }
.fs-trailer-section .section-title { margin-bottom: 15px; }

/* ========================================================================
   34. INTERACTION UTILITIES (ignore-select, scroll-to, hover-op, active-op)
   ======================================================================== */
.ignore-select { -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; }
.scroll-to { cursor: pointer; }
.hover-op { transition: opacity 0.2s ease; }
.hover-op:hover { opacity: 0.85; }
.active-op:active { opacity: 0.7; transform: scale(0.97); }

/* ========================================================================
   35. ADD COMMENT FORM (addcomments.tpl)
   ======================================================================== */
.premium-add-comment { background: var(--bg-card); padding: 25px; border-radius: 12px; margin-top: 30px; border: 1px solid var(--border); }
.addcomment { width: 100%; }
.addcomment__textarea { width: 100%; min-height: 120px; padding: 15px; border-radius: 8px; background: var(--bg-card, #141414); border: 1px solid var(--border, #2d303a); color: var(--text-main, #fff); font-family: inherit; font-size: 14px; resize: vertical; outline: none; box-sizing: border-box; }
.addcomment__textarea:focus { border-color: var(--accent, #00e676); }
.addcomment__btn { background: var(--accent, #00e676); color: #000; padding: 12px 25px; border: none; border-radius: 8px; font-weight: bold; cursor: pointer; transition: 0.3s; }
.addcomment__btn:hover { transform: scale(1.03); box-shadow: 0 4px 15px var(--accent-glow, rgba(0, 230, 118, 0.3)); }
.combo { margin-bottom: 15px; }
.wide { width: 100%; box-sizing: border-box; }
.major-btn { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; }
.auth-notice { text-align: center; padding: 20px; color: var(--text-muted); }
.auth-notice a { color: var(--accent); text-decoration: none; }
.auth-notice a:hover { text-decoration: underline; }

/* ========================================================================
   36. MINI COMMENTS SIDEBAR WIDGET (latest_comments.tpl)
   ======================================================================== */
.comment-mini { display: flex; flex-direction: column; gap: 4px; padding: 10px 0; border-bottom: 1px solid var(--border, rgba(255,255,255,0.06)); }
.comment-mini:last-child { border-bottom: none; }
.comment-mini-author { color: var(--accent, #00e676); font-weight: 600; font-size: 13px; text-decoration: none; transition: 0.2s; }
.comment-mini-author:hover { opacity: 0.8; }
.comment-mini-text { color: var(--text-muted, #9ca3af); font-size: 13px; line-height: 1.4; text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color 0.2s; }
.comment-mini-text:hover { color: var(--text-main, #fff); }
.comment-mini-date { color: var(--text-muted, #6b7280); font-size: 11px; opacity: 0.7; }

/* ========================================================================
   37. INFORMER TEMPLATE
   ======================================================================== */
.informer-title { font-size: 15px; font-weight: 600; color: var(--text-main, #fff); margin-bottom: 4px; }
.informer-title a { color: inherit; text-decoration: none; }
.informer-title a:hover { color: var(--accent, #00e676); }
.informer-text { font-size: 13px; color: var(--text-muted, #9ca3af); line-height: 1.5; margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.informer-more { display: inline-flex; align-items: center; color: var(--accent, #00e676); font-size: 13px; text-decoration: none; transition: 0.2s; }
.informer-more:hover { opacity: 0.8; }

/* ========================================================================
   38. POLL COUNT & ADDVOTE
   ======================================================================== */
.poll-count { font-size: 13px; color: var(--text-muted, #9ca3af); }
.addvote { margin-bottom: 15px; }
.admin-checkboxes { margin: 10px 0; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.admin-checkboxes label { display: flex; align-items: center; gap: 5px; color: var(--text-muted); font-size: 13px; cursor: pointer; }

/* ========================================================================
   39. PROFILE POPUP INFO & CUSTOM MODAL BTN
   ======================================================================== */
.profile-popup__info { font-size: 14px; color: var(--text-muted, #9ca3af); line-height: 1.5; }
.custom-modal-btn { cursor: pointer; outline: none; }
.custom-modal-btn:focus-visible { outline: 2px solid var(--accent, #00e676); outline-offset: 2px; border-radius: 8px; }

/* ========================================================================
   40. TELEGRAM BUTTON (sidebar)
   ======================================================================== */
.tg-btn { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 20px; border-radius: 10px; font-weight: 700; font-size: 14px; text-decoration: none; transition: 0.3s; border: none; cursor: pointer; }
.tg-btn:hover { transform: scale(1.03); }

/* ========================================================================
   LIGHT MODE OVERRIDES — Sections 33-40
   ======================================================================== */
body.light-mode .premium-add-comment { background: var(--bg-card); border-color: var(--border); }
body.light-mode .addcomment__textarea { background: #fff; border-color: var(--border); color: var(--text-main); }
body.light-mode .comment-mini { border-color: var(--border); }
body.light-mode .comment-mini-author { color: var(--accent); }
body.light-mode .comment-mini-text { color: var(--text-muted); }
body.light-mode .comment-mini-text:hover { color: var(--text-main); }
body.light-mode .informer-title { color: var(--text-main); }
body.light-mode .informer-text { color: var(--text-muted); }
body.light-mode .profile-popup__info { color: var(--text-muted); }
body.light-mode .auth-notice { color: var(--text-muted); }
body.light-mode .poll-count { color: var(--text-muted); }

/* ========================================================================
   41. INFO-MESSAGE & ONLINE/OFFLINE STATUS
   ======================================================================== */
.info-message { background: var(--bg-card, #1a1c23); border: 1px solid var(--border, rgba(255,255,255,0.05)); border-radius: 12px; padding: 30px; max-width: 600px; margin: 0 auto; color: var(--text-muted, #ccc); font-size: 15px; line-height: 1.6; }
.info-message h3 { color: var(--text-main, #fff); margin-bottom: 15px; }

/* Profile online/offline status dot */
.avatar.online::after { content: ''; position: absolute; bottom: 3px; right: 3px; width: 10px; height: 10px; background: #22c55e; border: 2px solid var(--bg-card, #1a1c23); border-radius: 50%; }
.avatar.offline::after { content: ''; position: absolute; bottom: 3px; right: 3px; width: 10px; height: 10px; background: #6b7280; border: 2px solid var(--bg-card, #1a1c23); border-radius: 50%; }
.avatar { position: relative; display: inline-block; }

body.light-mode .info-message { background: var(--bg-card); border-color: var(--border); color: var(--text-muted); }
body.light-mode .info-message h3 { color: var(--text-main); }

/* ========================================================================
   42. COMMENT DLE ENHANCEMENTS
   ======================================================================== */
.comment-admin { border-left: 3px solid var(--accent); }
.comment-online { color: #22c55e; font-size: 10px; margin-left: 5px; }
.comment-news-title { margin-bottom: 8px; font-size: 13px; }
.comment-news-title a { color: var(--accent); text-decoration: none; }
.comment-news-title a:hover { text-decoration: underline; }

body.light-mode .comment-admin { border-left-color: var(--accent); }


