:root {
    --bg-main: #121212;
    --bg-card: #1e1e1e;
    --accent: #ffb74d; 
    --text-main: #e0e0e0;
    --text-dim: #9e9e9e;
}

* { box-sizing: border-box; }
body { background-color: var(--bg-main); color: var(--text-main); font-family: 'Segoe UI', sans-serif; margin: 0; padding-bottom: 50px; }
a { text-decoration: none; color: inherit; transition: 0.2s; }
img { max-width: 100%; display: block; }

/* === ШАПКА === */
header { background: #181818; padding: 0 5%; height: 70px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #333; position: sticky; top: 0; z-index: 100; }
.logo { font-size: 22px; font-weight: 800; color: #fff; flex-shrink: 0; }
.logo span { color: var(--accent); }
.user-nav { flex-shrink: 0; }
.user-nav a { font-size: 14px; margin-left: 15px; color: var(--text-dim); font-weight: 600; }
.user-nav a:hover { color: #fff; }
.nav-avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent); display: block; }

/* ПОИСК */
.search-form { flex: 1; max-width: 500px; margin: 0 30px; position: relative; }
.search-input { width: 100%; padding: 10px 45px 10px 20px; background: #252525; border: 1px solid #444; border-radius: 30px; color: #fff; outline: none; font-size: 15px; transition: 0.2s; }
.search-input:focus { border-color: var(--accent); background: #1e1e1e; }
.search-btn { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); background: transparent; border: none; color: #888; cursor: pointer; font-size: 18px; padding: 0; }
.search-btn:hover { color: var(--accent); }

.container { max-width: 1100px; margin: 0 auto; padding: 20px; }

/* === ГЛАВНАЯ СТРАНИЦА === */
.hero { display: flex; gap: 2px; height: 400px; background: #000; border-radius: 8px; overflow: hidden; margin-bottom: 40px; border: 1px solid #252525; }
#main-slide { flex: 3; background-size: cover; background-position: center; position: relative; transition: 0.5s; }
.slide-content { position: absolute; bottom: 0; left: 0; right: 0; padding: 30px; background: linear-gradient(transparent, rgba(0,0,0,0.95)); }
#slide-title { font-size: 28px; margin: 0; color: #fff; }
#slide-desc { margin: 10px 0 20px; color: #ccc; max-width: 600px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.btn-read { background: var(--accent); color: #000; padding: 12px 30px; border: none; border-radius: 4px; font-weight: bold; cursor: pointer; text-decoration: none; display: inline-block; text-align: center; }
#slide-nav { flex: 1; background: #151515; display: flex; flex-direction: column; overflow-y: auto; }
.list-item { padding: 15px; display: flex; gap: 15px; cursor: pointer; border-bottom: 1px solid #222; opacity: 0.6; transition: 0.3s; }
.list-item.active { opacity: 1; background: #1e1e1e; border-left: 3px solid var(--accent); }

.novel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 20px; }
.novel-card { background: var(--bg-card); border-radius: 6px; overflow: hidden; text-decoration: none; transition: 0.3s; border: 1px solid #252525; display: block; position: relative; }
.novel-card:hover { transform: translateY(-5px); border-color: var(--accent); }
.novel-card img { width: 100%; aspect-ratio: 2/3; object-fit: cover; }
.card-info { padding: 10px; }
.card-info h3 { margin: 0; font-size: 14px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-info .author { font-size: 12px; color: var(--text-dim); margin-top: 5px; }

/* ======================================================= */
/* ПРОФЕССИОНАЛЬНЫЙ ДИЗАЙН СТРАНИЦЫ НОВЕЛЛЫ (GLASSMORPHISM) */
/* ======================================================= */

.novel-blur-bg {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background-size: cover; background-position: center;
    filter: blur(60px) brightness(0.25); z-index: -1;
    transform: scale(1.2); pointer-events: none;
}

.novel-header { display: flex; gap: 30px; margin-top: 20px; margin-bottom: 40px; }
.cover-wrapper { flex-shrink: 0; width: 260px; }
.cover-wrapper img { 
    width: 100%; border-radius: 12px; box-shadow: 0 15px 35px rgba(0,0,0,0.6); 
    border: 1px solid rgba(255,255,255,0.1);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}
.cover-wrapper:hover img { transform: translateY(-10px) scale(1.02); box-shadow: 0 25px 40px rgba(0,0,0,0.8); }

.info { flex: 1; display: flex; flex-direction: column; }
.novel-main-title { margin: 0 0 15px 0; font-size: 38px; line-height: 1.1; color: #fff; letter-spacing: -0.5px; }

.authors-block { margin-bottom: 25px; }
.author-line { color: var(--text-dim); font-size: 14px; margin-bottom: 5px; }
.author-line span, .author-line a { color: #fff; font-weight: 600; text-decoration: none; transition: 0.2s; }
.author-line a:hover { color: var(--accent); }

/* ПРЕМИУМ СТАТИСТИКА */
.stats-grid { 
    display: grid; 
    grid-template-columns: repeat(3, minmax(100px, max-content)); 
    gap: 15px; 
    margin-bottom: 30px; 
}
.stat-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 15px 20px;
    text-align: center;
    display: flex; flex-direction: column; justify-content: center;
    transition: 0.3s;
}
.stat-box:hover { background: rgba(255, 255, 255, 0.08); transform: translateY(-2px); }
.stat-v { font-size: 22px; font-weight: 800; color: #fff; margin-bottom: 4px; line-height: 1; }
.stat-label { font-size: 11px; color: #999; text-transform: uppercase; font-weight: 700; letter-spacing: 1px; }

/* СТЕКЛО ДЛЯ БЛОКОВ */
.tabs-content-box, .rating-detailed-block, .admin-panel, .chapter-card {
    background: rgba(30, 30, 30, 0.65) !important;
    backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.novel-desc-text { line-height: 1.7; color: #ddd; font-size: 15px; }
.divider { border: 0; border-top: 1px solid rgba(255,255,255,0.1); margin: 25px 0; }

/* КНОПКИ ДЕЙСТВИЙ (READ + BOOKMARK) */
.actions-row { margin-top: auto; display: flex; gap: 15px; align-items: stretch; height: 50px; }

.btn-read { 
    flex: 2; /* Широкая кнопка */
    background: var(--accent); color: #000; border: none; border-radius: 8px; 
    font-weight: 800; cursor: pointer; text-transform: uppercase; font-size: 15px;
    letter-spacing: 1px; box-shadow: 0 0 15px rgba(255, 183, 77, 0.3); 
    transition: all 0.2s ease; display: flex; align-items: center; justify-content: center; text-decoration: none;
}
.btn-read:hover { background: #ffc163; transform: translateY(-2px); box-shadow: 0 10px 20px rgba(255, 183, 77, 0.5); }
.btn-read:active { transform: translateY(1px); box-shadow: 0 2px 10px rgba(255, 183, 77, 0.3); }

.bookmark-dropdown { flex: 1; position: relative; }
.btn-bookmark { 
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5); color: #fff; border: 1px solid rgba(255, 255, 255, 0.2); 
    border-radius: 8px; font-weight: bold; cursor: pointer; 
    display: flex; align-items: center; justify-content: center;
    backdrop-filter: blur(5px); transition: all 0.2s ease; user-select: none; font-size: 14px;
}
.btn-bookmark:hover { background: rgba(255, 255, 255, 0.1); transform: translateY(-2px); }
.btn-bookmark.active { background: rgba(63, 81, 181, 0.4); border-color: #5c6bc0; color: #c5cae9; box-shadow: 0 0 15px rgba(63, 81, 181, 0.3); }
.bookmark-menu { display: none; position: absolute; top: 100%; left: 0; width: 100%; min-width: 160px; background: #252525; border: 1px solid #444; border-radius: 8px; box-shadow: 0 10px 25px rgba(0,0,0,0.5); z-index: 50; margin-top: 5px; overflow: hidden; }
.bookmark-menu.show { display: block; }
.bm-item { display: block; padding: 12px 15px; color: #ccc; cursor: pointer; font-size: 14px; transition: 0.2s; font-weight: 500; }
.bm-item:hover { background: var(--accent); color: #000; }
.bm-item.delete { border-top: 1px solid #333; color: #ff5252; }
.bm-item.delete:hover { background: #ff5252; color: #fff; }

/* Элементы */
.meta-row { margin-bottom: 15px; display: flex; gap: 10px; }
.badge { padding: 5px 10px; border-radius: 6px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; color: #fff; display: inline-block; }
.badge-trans { background: rgba(63, 81, 181, 0.2); border: 1px solid #5c6bc0; color: #9fa8da; }
.badge-orig { background: rgba(76, 175, 80, 0.2); border: 1px solid #66bb6a; color: #a5d6a7; }

.tag-section { margin-bottom: 10px; }
.tag-label { color: var(--text-dim); font-size: 12px; font-weight: 800; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 1px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.genre-badge { display: inline-block; padding: 6px 14px; border: 1px solid rgba(255,255,255,0.1); border-radius: 6px; font-size: 13px; color: #ddd; background: rgba(0,0,0,0.3); transition: 0.2s; font-weight: 500;}
.genre-badge:hover { border-color: var(--accent); color: #fff; background: rgba(255, 183, 77, 0.1); }
.tag-badge { display: inline-block; padding: 6px 12px; font-size: 13px; color: #aaa; background: rgba(255, 255, 255, 0.03); border-radius: 20px; transition: 0.2s; }
.tag-badge:hover { background: rgba(255, 183, 77, 0.1); color: var(--accent); }

/* РЕЙТИНГ БЛОК */
.rating-detailed-block { padding: 25px; border-radius: 8px; margin-bottom: 30px; }
.rating-flex-container { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 40px; width: 100%; }
.rating-bars { flex: 1; width: 100%; min-width: 0; }
.bar-row { display: flex; align-items: center; gap: 15px; margin-bottom: 10px; width: 100%; }
.bar-label { width: 40px; font-weight: bold; font-size: 14px; text-align: right; flex-shrink: 0; }
.progress-bg { flex-grow: 1; height: 8px; background: rgba(0,0,0,0.4); border-radius: 4px; overflow: hidden; min-width: 50px; }
.progress-fill { height: 100%; border-radius: 4px; }
.bar-count { width: 30px; font-size: 12px; color: #888; text-align: left; flex-shrink: 0; }
.user-vote-box { flex: 0 0 250px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 25px; background: rgba(0,0,0,0.3); border-radius: 12px; border: 1px solid rgba(255,255,255,0.05); }
.rating-area-big { display: flex; flex-direction: row-reverse; justify-content: center; gap: 5px; margin: 10px 0; }
.rating-area-big input { display: none; }
.rating-area-big label { font-size: 36px; color: #444; cursor: pointer; line-height: 1; transition: 0.2s; }
.rating-area-big label:before { content: '★'; }
.rating-area-big input:checked ~ label, .rating-area-big label:hover, .rating-area-big label:hover ~ label { color: var(--accent); text-shadow: 0 0 15px rgba(255, 183, 77, 0.5); }

/* СПИСОК ГЛАВ */
.chapter-list-container { margin-bottom: 40px; }
.chapter-list { display: flex; flex-direction: column; gap: 4px; }
.volume-header { color: var(--accent); font-weight: 800; font-size: 16px; margin: 25px 0 10px 5px; text-transform: uppercase; letter-spacing: 1px;}
.chapter-card-wrap { position: relative; }
.chapter-card { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-radius: 8px; text-decoration: none; transition: all 0.2s ease; border-left: 3px solid transparent !important; }
.chapter-card:hover { background: rgba(255, 255, 255, 0.1) !important; transform: translateX(5px); border-left: 3px solid var(--accent) !important; box-shadow: 0 5px 15px rgba(0,0,0,0.2); }
.ch-title { flex: 1; padding-right: 15px; display: flex; align-items: center; gap: 15px; }
.ch-prefix { color: var(--text-dim); font-weight: 600; font-size: 14px; white-space: nowrap; }
.ch-name { color: #fff; font-weight: 600; font-size: 15px; }
.ch-date { font-size: 13px; color: #888; white-space: nowrap; font-weight: 500;}

.admin-panel { padding: 15px 20px; border-radius: 8px; margin-bottom: 30px; display: flex; justify-content: space-between; align-items: center; border: 1px dashed rgba(255,183,77,0.5) !important; }
.btn-add-chapter { background: var(--accent); color: #000; padding: 8px 15px; border-radius: 6px; font-weight: bold; font-size: 13px; text-decoration: none; transition: 0.2s;}
.btn-add-chapter:hover { opacity: 0.9; }
.admin-controls { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: transparent; padding-left: 10px; display: flex; gap: 15px; opacity: 0; transition: 0.2s; }
.chapter-card-wrap:hover .admin-controls { opacity: 1; }
.admin-controls a { font-size: 16px; opacity: 0.7; transition: 0.2s; text-decoration:none; }
.admin-controls a:hover { opacity: 1; transform: scale(1.2); }

/* ВКЛАДКИ */
.tabs-nav { display: flex; margin-bottom: 0; background: rgba(20, 20, 20, 0.7); backdrop-filter: blur(10px); border-radius: 12px 12px 0 0; border: 1px solid rgba(255,255,255,0.05); border-bottom: none; overflow: hidden; }
.tab-btn { flex:1; padding: 18px 20px; background: transparent; border: none; border-bottom: 3px solid transparent; color: #888; font-weight: 700; cursor: pointer; font-size: 14px; text-transform: uppercase; letter-spacing: 1px; transition: 0.3s; }
.tab-btn:hover { color: #fff; background: rgba(255,255,255,0.02); }
.tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); background: rgba(255, 255, 255, 0.05); color: #fff; }
.info-tab-content { display: none; animation: fadeIn 0.3s; }
.info-tab-content.active { display: block; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* КОММЕНТАРИИ (MANGALIB) */
.comment-form { margin-bottom: 30px; background: rgba(0,0,0,0.2); padding: 15px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.05); }
.comment-form textarea { width: 100%; height: 80px; background: rgba(0,0,0,0.4); border: 1px solid #444; border-radius: 6px; padding: 12px; color: #e0e0e0; resize: vertical; font-family: inherit; font-size: 14px; }
.comment-form textarea:focus { border-color: var(--accent); outline: none; }
.btn-send-comment { background: var(--accent); color: #000; border: none; padding: 8px 20px; border-radius: 6px; cursor: pointer; margin-top: 10px; font-weight: 800; font-size: 13px; float: right; transition: 0.2s; }
.btn-send-comment:hover { background: #ffc163; }
.comment-list { display: flex; flex-direction: column; gap: 20px; clear: both; padding-top: 10px; }
.comment-item { display: flex; gap: 15px; position: relative; }
.comm-avatar { width: 45px; height: 45px; border-radius: 8px; object-fit: cover; flex-shrink: 0; border: 1px solid rgba(255,255,255,0.1); }
.comm-body { flex: 1; display: flex; flex-direction: column; }
.comm-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 6px; }
.comm-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.comm-author { font-weight: 800; color: #fff; text-decoration: none; font-size: 14px; letter-spacing: 0.5px;}
.comm-author:hover { color: var(--accent); }
.comm-date { color: #777; font-size: 12px; font-weight: 500; }
.comm-rating { display: flex; align-items: center; gap: 5px; color: #666; font-size: 12px; }
.rating-up, .rating-down { cursor: pointer; transition: 0.2s; font-size: 16px; font-weight: bold;}
.rating-up:hover { color: #4caf50; }
.rating-down:hover { color: #f44336; }
.rating-val { font-weight: bold; color: #8bc34a; font-size: 14px;}
.comm-text { font-size: 15px; line-height: 1.6; color: #ccc; word-break: break-word; }
.comm-footer { margin-top: 8px; display: flex; align-items: center; gap: 15px; }
.btn-reply { background: transparent; border: none; color: var(--accent); font-size: 13px; cursor: pointer; font-weight: 700; padding: 0; transition: 0.2s;}
.btn-reply:hover { color: #ffc163; text-decoration: underline; }
.reply-item { margin-left: 60px; margin-top: -5px; position: relative; }
.badge-author { background: rgba(255,183,77,0.1); border: 1px solid var(--accent); color: var(--accent); font-size: 10px; font-weight: 800; padding: 2px 6px; border-radius: 4px; text-transform: uppercase; }
.reply-tag { color: #4b8fd1; margin-right: 5px; font-weight: bold; font-size: 14px; cursor: pointer; }
#reply-status { display: none; font-size: 13px; color: #aaa; margin-bottom: 10px; background: rgba(0,0,0,0.3); padding: 8px 12px; border-radius: 6px; border-left: 3px solid var(--accent);}
#reply-target-name { color: var(--accent); font-weight: bold; }
#cancel-reply { margin-left: 15px; cursor: pointer; color: #ff5252; font-weight: bold;}

/* === ПРОФИЛЬ (Без изменений, сжат) === */
.profile-wrap { display: flex; flex-direction: column; gap: 30px; margin-top: 30px; }
.profile-card { flex: auto; width: 100%; text-align: center; display: flex; flex-direction: column; align-items: center; background: var(--bg-card); padding: 25px; border-radius: 8px; border: 1px solid #333; }
.avatar-img { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; border: 3px solid var(--accent); display: block; margin: 0 auto 15px auto; }
.role-badge { display: inline-block; background: #333; padding: 4px 10px; border-radius: 4px; font-size: 12px; margin-bottom: 20px; color: var(--accent); text-transform: uppercase; }
.profile-content { text-align: center; width: 100%; }
.profile-header-row { display: flex; flex-direction: column; gap: 15px; justify-content: center; margin-bottom: 25px; align-items: center; border-bottom: 1px solid #333; padding-bottom: 10px; }
.list-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 15px; justify-items: center; }
.mini-card { text-align: center; width: 100%; max-width: 160px; display: block; text-decoration: none; color: inherit; }
.mini-card img { width: 100%; aspect-ratio: 2/3; object-fit: cover; border-radius: 4px; margin-bottom: 8px; border: 1px solid #333; }
.mini-card div { font-size: 13px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.btn-add { display: inline-block; background: var(--accent); color: #000; padding: 8px 20px; border-radius: 4px; font-weight: bold; font-size: 13px; }
.btn-small { width: 100%; padding: 10px; background: #333; color: #fff; border: none; cursor: pointer; border-radius: 4px; font-size: 13px; font-weight: bold; }
.btn-logout { display: block; width: 100%; padding: 10px; background: rgba(255, 82, 82, 0.1); color: #ff5252; text-align: center; border: 1px solid #ff5252; border-radius: 4px; font-weight: bold; margin-top: 20px; }
.edit-gear { position: absolute; top: 5px; right: 5px; background: rgba(0,0,0,0.7); color: #fff; border-radius: 4px; padding: 5px; font-size: 14px; line-height: 1; z-index: 10; text-decoration: none; border: 1px solid #555; }
.form-group { margin-bottom: 15px; text-align: left; }
.form-group input { width: 100%; padding: 10px; background: #121212; border: 1px solid #444; color: #fff; border-radius: 4px; }
input[type="file"] { display: none; }
.file-upload-label { display: block; padding: 10px; background: #252525; border: 1px dashed #555; border-radius: 4px; cursor: pointer; font-size: 13px; margin-bottom: 20px; color: #ccc; }
.mobile-tabs-view { display: block !important; margin-bottom: 20px; }
.profile-tabs { display: flex; border-bottom: 2px solid #333; }
.p-tab-btn { flex: 1; padding: 15px; background: transparent; border: none; color: #888; font-size: 14px; font-weight: bold; text-transform: uppercase; cursor: pointer; }
.p-tab-btn.active { color: var(--accent); border-bottom: 2px solid var(--accent); margin-bottom: -2px; background: #1e1e1e; }
.desktop-only { display: none !important; }
.mobile-only { display: block !important; }
.p-tab-content { display: none; } 
.p-tab-content.active-mobile { display: block; animation: fadeIn 0.3s; }
#tab-novels:not(.p-tab-content) { display: block; } 
.tabs-nav-profile { display: flex; justify-content: center; flex-wrap: wrap; border-bottom: 1px solid #333; margin-bottom: 20px; overflow-x: auto; }
.tab-btn-profile { flex: 1 1 auto; text-align: center; padding: 12px 20px; background: transparent; border: none; border-bottom: 2px solid transparent; color: #999; font-weight: bold; cursor: pointer; font-size: 14px; white-space: nowrap; }
.tab-btn-profile.active { color: var(--accent); border-bottom-color: var(--accent); }

/* ======================================================= */
/* МОБИЛЬНАЯ ВЕРСИЯ (< 768px) */
/* ======================================================= */

@media (max-width: 768px) {
    header { padding: 10px 15px; height: auto; flex-wrap: wrap; justify-content: space-between; }
    .logo { order: 1; flex-shrink: 0; }
    .user-nav { order: 2; margin-left: auto; }
    .search-form { order: 3; width: 100%; max-width: 100%; margin: 15px 0 0 0; flex-basis: 100%; }
    .search-input { width: 100%; padding: 12px 20px; }

    .hero { flex-direction: column; height: auto; min-height: 400px; position: relative; }
    #main-slide { height: 320px; flex: none; position: relative; background-size: cover; background-position: center top; }
    #slide-nav { flex-direction: row; height: 80px; overflow-x: auto; overflow-y: hidden; flex: none; border-top: 1px solid #333; }
    .slide-content { padding: 20px; background: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,0.6) 100%); bottom: 0; top: auto; }
    #slide-title { font-size: 20px; margin-bottom: 5px; }
    #slide-desc { font-size: 13px; -webkit-line-clamp: 3; margin-bottom: 15px; }
    #slide-link.btn-read { width: 100%; display: block; padding: 10px; }
    .list-item { min-width: 60px; padding: 10px; justify-content: center; border-bottom: none; border-right: 1px solid #222; }
    .list-item div { display: none; }
    .novel-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    
    /* ОТКЛЮЧЕНИЕ ТЯЖЕЛЫХ ЭФФЕКТОВ НА ТЕЛЕФОНЕ */
    .novel-blur-bg { display: none !important; }
    .tabs-content-box, .rating-detailed-block, .admin-panel, .chapter-card { background: var(--bg-card) !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; box-shadow: none !important; border: 1px solid #252525 !important; }
    
    .novel-header { flex-direction: column; align-items: center; text-align: center; }
    .cover-wrapper { width: 200px; }
    .novel-main-title { font-size: 26px; }
    .info { align-items: center; width: 100%; }
    .meta-row { justify-content: center; }
    
    .stats-grid { grid-template-columns: repeat(3, 1fr); width: 100%; gap: 10px; }
    .stat-box { padding: 10px; }
    .stat-v { font-size: 18px; }
    
    .actions-row { flex-direction: column; width: 100%; height: auto; }
    .btn-read { width: 100%; padding: 15px; }
    .bookmark-dropdown { width: 100%; }
    
    .rating-flex-container { flex-direction: column-reverse; gap: 20px; }
    .user-vote-box { width: 100%; flex: none; }
    .rating-bars { width: 100%; }
    
    .admin-controls { opacity: 1; background: transparent; top: 15px; transform: none; right: 10px; position: static; display: flex; justify-content: flex-end; margin-top: 10px;}
    .chapter-card { flex-direction: column; align-items: flex-start; }
    .chapter-card:hover { transform: none; border-left: 3px solid transparent !important; }
    .ch-title { flex-direction: column; align-items: flex-start; gap: 5px; margin-bottom: 10px;}
    .ch-date { display: inline-block; }
    
    .reply-item { margin-left: 20px; } /* Меньше отступ на телефоне */
}

/* ДЕСКТОП СТИЛИ ПРОФИЛЯ */
@media (min-width: 769px) {
    .profile-wrap { flex-direction: row; }
    .profile-card { flex: 0 0 300px; text-align: left; align-items: stretch; border: 1px solid #333; background: var(--bg-card); padding: 25px; }
    .profile-header-row { flex-direction: row; justify-content: space-between; }
    .desktop-only { display: flex !important; }
    .mobile-only { display: none !important; }
    .mobile-tabs-view { display: none !important; }
    .p-tab-content { display: block !important; }
}