/* ========================================
   СБРОС И ОСНОВЫ (DLE-совместимый)
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #0a0a0a;
    color: #33ff33;
    font-family: 'Share Tech Mono', 'Rajdhani', monospace;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Эффект сканирующих строк */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 255, 0, 0.015) 2px,
        rgba(0, 255, 0, 0.015) 4px
    );
    pointer-events: none;
    z-index: 9999;
}

/* Эффект свечения монитора */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(ellipse at center, rgba(0, 30, 0, 0.2) 0%, rgba(0, 0, 0, 0.8) 100%);
    pointer-events: none;
    z-index: 9998;
}

/* ========================================
   КОНТЕЙНЕР
   ======================================== */
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   ШАПКА (ТЕРМИНАЛ)
   ======================================== */
.cyber-header {
    background: linear-gradient(180deg, #050f05 0%, transparent 100%);
    padding: 15px 0 40px 0;
    border-bottom: 1px solid rgba(51, 255, 51, 0.15);
    position: relative;
}

.header-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon a {
    font-size: 1.6rem;
    color: #33ff33;
    text-shadow: 0 0 20px rgba(51, 255, 51, 0.3);
    font-family: 'Press Start 2P', monospace;
    letter-spacing: 1px;text-decoration: none;
}

.cursor-blink {
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.logo-sub {
    font-size: 0.65rem;
    color: #33aa33;
    letter-spacing: 3px;
    text-transform: uppercase;
    border-left: 2px solid #33ff33;
    padding-left: 15px;
    opacity: 0.8;
}

/* Навигация */
.nav-list {
    display: flex;
    gap: 25px;
    list-style: none;
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.nav-list a {
    color: #33ff33;
    text-decoration: none;
    transition: all 0.3s;
    padding: 6px 0;
    position: relative;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #33ff33;
    transition: width 0.3s;
}

.nav-list a:hover::after {
    width: 100%;
}

.nav-list .nav-cta {
    border: 1px solid #33ff33;
    padding: 6px 18px;
    border-radius: 2px;
    background: rgba(51, 255, 51, 0.05);
}

.nav-list .nav-cta:hover {
    background: rgba(51, 255, 51, 0.15);
    box-shadow: 0 0 30px rgba(51, 255, 51, 0.1);
}

.nav-list .nav-cta::after {
    display: none;
}

/* ========================================
   ГЛАВНЫЙ ЭКРАН
   ======================================== */
.hero {
    padding: 30px 0 40px;
    position: relative;
}

/* Терминальное окно */
.terminal-header {
    background: #0a1a0a;
    border: 1px solid #1a3a1a;
    border-radius: 6px 6px 0 0;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 15px;
    max-width: 500px;
    margin: 0 auto 20px;
}

.terminal-header.mini {
    max-width: 350px;
    margin: 0 auto 15px;
}

.terminal-dots {
    display: flex;
    gap: 8px;
}

.terminal-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.dot-red { background: #ff3333; }
.dot-yellow { background: #ffcc00; }
.dot-green { background: #33ff33; }

.terminal-title {
    font-size: 0.7rem;
    color: #33aa33;
    letter-spacing: 2px;
    font-family: 'Press Start 2P', monospace;
}

.hero-content {
    text-align: center;
    position: relative;
    padding: 30px 0;
}

/* Сканирующая линия */
.scanline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #33ff33, transparent);
    animation: scanMove 4s linear infinite;
    opacity: 0.3;
}

@keyframes scanMove {
    0% { top: 0; opacity: 0; }
    10% { opacity: 0.4; }
    90% { opacity: 0.4; }
    100% { top: 100%; opacity: 0; }
}

.hero h1 {
    font-family: 'Press Start 2P', monospace;
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    color: #33ff33;
    text-shadow: 0 0 30px rgba(51, 255, 51, 0.2), 0 0 60px rgba(51, 255, 51, 0.05);
    letter-spacing: 8px;
    margin-bottom: 15px;
}

.tagline {
    font-size: 1rem;
    color: #33cc33;
    background: rgba(0, 20, 0, 0.6);
    border: 1px solid #1a3a1a;
    padding: 12px 24px;
    display: inline-block;
    border-radius: 4px;
    margin-bottom: 20px;
    font-family: 'Share Tech Mono', monospace;
}

.prompt {
    color: #33ff33;
    margin-right: 10px;
}

.blink-cursor {
    animation: blink 0.8s step-end infinite;
    color: #33ff33;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 20px 0;
    font-size: 0.85rem;
    color: #33aa33;
    letter-spacing: 1px;
}

.hero-stats span {
    border-right: 1px solid rgba(51, 255, 51, 0.15);
    padding-right: 30px;
}

.hero-stats span:last-child {
    border-right: none;
    padding-right: 0;
}

.hero-sub {
    font-size: 1rem;
    color: #33bb33;
    margin-top: 10px;
    letter-spacing: 1px;
}

.green-dim {
    color: #227722;
    font-size: 0.85rem;
}

/* ========================================
   СЕКЦИИ
   ======================================== */
.section-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 50px 0 30px;
    border-bottom: 1px solid rgba(51, 255, 51, 0.1);
    padding-bottom: 12px;
}

.section-icon {
    color: #33ff33;
    font-size: 1.4rem;
}

.section-title {
    font-family: 'Press Start 2P', monospace;
    font-size: 1.2rem;
    color: #33ff33;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.section-count {
    color: #227722;
    font-size: 0.85rem;
    margin-left: auto;
    font-family: 'Share Tech Mono', monospace;
}

/* ========================================
   ВИДЕОТЕКА (ФИЛЬМЫ)
   ======================================== */
.film-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 35px;
    margin-bottom: 40px;
}

.film-card {
    background: #0d150d;
    border: 1px solid #1a3a1a;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.film-card:hover {
    border-color: #33ff33;
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(51, 255, 51, 0.05);
}

.film-poster {
    position: relative;
    overflow: hidden;
    aspect-ratio: 2/3;
    background: #050a05;
}

.film-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
    filter: grayscale(0.3) brightness(0.8);
}

.film-card:hover .film-poster img {
    transform: scale(1.05);
    filter: grayscale(0) brightness(1);
}

.film-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: opacity 0.3s ease;
}

.film-card:hover .film-overlay {
    opacity: 1;
}

.play-icon {
    width: 60px;
    height: 60px;
    background: rgba(51, 255, 51, 0.15);
    border: 2px solid #33ff33;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #33ff33;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.play-icon:hover {
    background: rgba(51, 255, 51, 0.3);
    box-shadow: 0 0 40px rgba(51, 255, 51, 0.2);
    transform: scale(1.1);
}

.film-info {
    padding: 18px 20px 20px;
}

.year {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.7rem;
    color: #33aa33;
    margin-bottom: 8px;
}

.film-info h3 {
    font-size: 1.1rem;
    color: #33ff33!important;
    margin-bottom: 8px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
}
.film-info h3 a {
    font-size: 1.1rem;
    color: #33ff33!important;
    margin-bottom: 8px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
}
.film-info .desc {
    font-size: 0.85rem;
    color: #77aa77;
    line-height: 1.5;
    margin-bottom: 12px;
}

.film-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.75rem;
    color: #337733;
    flex-wrap: wrap;
}

.watch-link {
    margin-left: auto;
    color: #33ff33;
    text-decoration: none;
    border: 1px solid #33ff33;
    padding: 4px 14px;
    border-radius: 2px;
    font-size: 0.7rem;
    letter-spacing: 1px;
    transition: all 0.3s;
}

.watch-link:hover {
    background: #33ff33;
    color: #0a0a0a;
}

/* ========================================
   БАЗА ДАННЫХ РОБОТОВ
   ======================================== */
.robot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.robot-card {
    background: #0d150d;
    border: 1px solid #1a3a1a;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.robot-card:hover {
    border-color: #33ff33;
    box-shadow: 0 5px 30px rgba(51, 255, 51, 0.05);
}

.robot-header {
    background: #0a120a;
    padding: 12px 18px;
    border-bottom: 1px solid #1a3a1a;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.robot-model {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.9rem;
    color: #33ff33;
}

.robot-class {
    font-size: 0.6rem;
    color: #337733;
    letter-spacing: 1px;
}

.robot-body {
    display: flex;
    gap: 20px;
    padding: 18px;
    align-items: flex-start;
}

.robot-img {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border: 1px solid #1a3a1a;
    border-radius: 4px;
    overflow: hidden;
    background: #050a05;
}

.robot-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0.5) brightness(0.7);
}

.robot-specs {
    flex: 1;
    font-size: 0.75rem;
}

.spec-line {
    padding: 3px 0;
    color: #559955;
    border-bottom: 1px solid rgba(51, 255, 51, 0.05);
}

.spec-line span {
    color: #33aa33;
    font-weight: 600;
}

.green-text { color: #33ff33; }
.red-text { color: #ff3333; }
.yellow-text { color: #ffcc00; }

.robot-desc {
    padding: 0 18px 18px;
    font-size: 0.85rem;
    color: #77aa77;
    line-height: 1.6;
    border-top: 1px solid rgba(51, 255, 51, 0.05);
    padding-top: 15px;
}

/* ========================================
   CTA (ПОДКЛЮЧИТЬСЯ)
   ======================================== */
.cta-section {
    background: #0a120a;
    border: 1px solid #1a3a1a;
    border-radius: 6px;
    padding: 50px 30px;
    margin: 40px 0;
    text-align: center;
}

.cta-section h2 {
    font-family: 'Press Start 2P', monospace;
    font-size: 1.5rem;
    color: #33ff33;
    margin: 15px 0;
    letter-spacing: 2px;
}

.cta-section p {
    color: #77aa77;
    max-width: 600px;
    margin: 0 auto 25px;
}

.cta-form {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.cyber-input {
    background: #050a05;
    border: 1px solid #1a3a1a;
    color: #33ff33;
    padding: 12px 20px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.85rem;
    min-width: 280px;
    border-radius: 4px;
    outline: none;
    transition: border-color 0.3s;
}

.cyber-input:focus {
    border-color: #33ff33;
    box-shadow: 0 0 20px rgba(51, 255, 51, 0.05);
}

.cyber-input::placeholder {
    color: #225522;
}

.btn-cyber {
    background: transparent;
    color: #33ff33;
    border: 1px solid #33ff33;
    padding: 12px 35px;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.7rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
    border-radius: 4px;
    cursor: pointer;
}

.btn-cyber:hover {
    background: #33ff33;
    color: #0a0a0a;
    box-shadow: 0 0 40px rgba(51, 255, 51, 0.1);
}

.cta-footnote {
    font-size: 0.65rem !important;
    color: #225522 !important;
    margin-top: 20px !important;
}

/* ========================================
   ПОДВАЛ
   ======================================== */
.footer {
    margin-top: 40px;
    padding: 25px 0;
    border-top: 1px solid #1a3a1a;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    color: #225522;
    font-size: 0.75rem;
    font-family: 'Share Tech Mono', monospace;
}

.footer-red {
    color: #33ff33;
}

.footer-tags span {
    color: #337733;
}

/* ========================================
   АДАПТИВНОСТЬ
   ======================================== */
@media (max-width: 992px) {
    .robot-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .header-grid {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    .logo {flex-direction: column;}
    .nav-list {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
        font-size: 0.7rem;
    }

    .hero h1 {
        font-size: 1.5rem;
        letter-spacing: 4px;
    }

    .hero-stats {
        gap: 15px;
        flex-wrap: wrap;
        font-size: 0.75rem;
    }

    .hero-stats span {
        padding-right: 15px;
    }

    .film-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 20px;
    }

    .robot-grid {
        grid-template-columns: 1fr;
    }

    .robot-body {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .section-title {
        font-size: 0.9rem;
        word-break: break-word;
    }

    .cyber-input {
        min-width: 200px;
        width: 100%;
    }

    .cta-form {
        flex-direction: column;
        align-items: center;
    }

    .footer {
        flex-direction: column;
        align-items: center;
        gap: 8px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .logo-icon {
        font-size: 1.2rem;
    }

    .logo-sub {
        font-size: 0.5rem;
        padding-left: 10px;
    }

    .tagline {
        font-size: 0.75rem;
        padding: 8px 12px;
    }

    .film-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .film-info {
        padding: 12px 12px 15px;
    }

    .film-info h3 {
        font-size: 0.9rem;
    }

    .film-info .desc {
        font-size: 0.7rem;
    }

    .film-meta {
        font-size: 0.65rem;
        gap: 8px;
    }

    .watch-link {
        font-size: 0.6rem;
        padding: 2px 10px;
    }

    .robot-card {
        font-size: 0.85rem;
    }

    .cta-section {
        padding: 30px 15px;
    }

    .cta-section h2 {
        font-size: 1.1rem;
    }
}

/* ========================================
   ВИДЕОТЕКА С ПЛЕЕРОМ (DLE-совместимый)
   ======================================== */
.player-section {
    margin: 40px 0 50px;
}

/* ОБЁРТКА ДЛЯ СЕТКИ */
.player-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    align-items: start;
}

/* ========================================
   ОСНОВНОЙ БЛОК .tab-pane
   ======================================== */
.tab-pane.sect {
    display: contents; /* Позволяет гриду работать напрямую с потомками */
}

/* ----- ЛЕВАЯ КОЛОНКА: ПЛЕЕР (sect-cont) ----- */
.sect-cont.playertab {
    background: #0a120a;
    border: 1px solid #1a3a1a;
    border-radius: 6px;
    overflow: hidden;
    grid-column: 1 / 2;
    grid-row: 1 / 2;
}

/* Терминальная шапка для плеера (добавляется через псевдоэлемент) */
.sect-cont.playertab::before {
    content: '● ● ●  СКАЙНЕТ_ПЛЕЕР.EXE  ●  ONLINE';
    display: block;
    background: #050f05;
    padding: 8px 16px;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.6rem;
    color: #33ff33;
    border-bottom: 1px solid #1a3a1a;
    letter-spacing: 1px;
}

/* Контейнер для самого плеера */
.sect-cont.playertab .player-embed,
.sect-cont.playertab iframe,
.sect-cont.playertab video,
.sect-cont.playertab .player-content {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #050a05;
    border: none;
    padding: 15px;
}



/* ========================================
   ПРАВАЯ КОЛОНКА: НАВИГАЦИЯ (playernav)
   ======================================== */
.playernav {
    background: #0a120a;
    border: 1px solid #1a3a1a;
    border-radius: 6px;
    overflow: hidden;
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    display: flex;
    flex-direction: column;
}

/* Заголовок навигации */
.playernav h3 {
    background: #050f05;
    padding: 10px 16px;
    margin: 0;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.7rem;
    color: #33ff33;
    border-bottom: 1px solid #1a3a1a;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.playernav h3::after {
    content: ' ▸ выберите часть';
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.5rem;
    color: #337733;
    font-weight: 400;
}

/* Список навигации */
.blocknav {
    list-style: none;
    padding: 10px 12px;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

/* Элемент навигации (сохранён data-ajaxc) */
.blocknav li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #050f05;
    border: 1px solid #1a3a1a;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Share Tech Mono', monospace;
    position: relative;
    color: #77aa77;
    font-size: 0.85rem;
}

.blocknav li:hover {
    border-color: #33ff33;
    background: #0a1a0a;
    transform: translateX(4px);
}

/* Активный элемент */
.blocknav li.is-active {
    border-color: #33ff33;
    background: rgba(51, 255, 51, 0.05);
    box-shadow: 0 0 20px rgba(51, 255, 51, 0.05);
    color: #33ff33;
}

/* Маркер активного элемента */
.blocknav li.is-active::before {
    content: '▶';
    position: absolute;
    left: -8px;
    color: #33ff33;
    font-size: 0.7rem;
    animation: blink 1s step-end infinite;
}

/* Номер фильма (из шаблона navigator) */
.blocknav li .nav-number,
.blocknav li span:first-child {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.55rem;
    color: #337733;
    min-width: 28px;
}

.blocknav li.is-active .nav-number,
.blocknav li.is-active span:first-child {
    color: #33ff33;
}

/* Название фильма */
.blocknav li .nav-name,
.blocknav li span:nth-child(2) {
    flex: 1;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Год */
.blocknav li .nav-year,
.blocknav li span:last-child {
    font-size: 0.6rem;
    color: #225522;
    padding: 2px 10px;
    border: 1px solid #1a3a1a;
    border-radius: 2px;
    font-family: 'Share Tech Mono', monospace;
}

.blocknav li.is-active .nav-year,
.blocknav li.is-active span:last-child {
    border-color: #33ff33;
    color: #33ff33;
}

/* ========================================
   АДАПТИВНОСТЬ
   ======================================== */
@media (max-width: 992px) {
    .player-wrapper {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .sect-cont.playertab {
        grid-column: 1 / 2;
        grid-row: 1 / 2;
    }

    .playernav {
        grid-column: 1 / 2;
        grid-row: 2 / 3;
    }

    .sect-cont.playertab .player-embed,
    .sect-cont.playertab iframe,
    .sect-cont.playertab video,
    .sect-cont.playertab .player-content {
        aspect-ratio: 16 / 9;
        min-height: 300px;
    }
}

@media (max-width: 768px) {
    .player-section {
        margin: 25px 0 30px;
    }

    .sect-cont.playertab .player-embed,
    .sect-cont.playertab iframe,
    .sect-cont.playertab video,
    .sect-cont.playertab .player-content {
        min-height: 220px;
        padding: 10px;
    }

    .sect-cont.playertab::before {
        font-size: 0.5rem;
        padding: 6px 12px;
    }

    .sect-cont.playertab::after {
        font-size: 0.5rem;
        padding: 6px 12px;
        text-align: center;
    }

    .playernav h3 {
        font-size: 0.6rem;
        padding: 8px 12px;
    }

    .playernav h3::after {
        font-size: 0.45rem;
    }

    .blocknav {
        padding: 8px 10px;
        gap: 4px;
    }

    .blocknav li {
        padding: 8px 12px;
        font-size: 0.75rem;
        gap: 8px;
    }

    .blocknav li .nav-number,
    .blocknav li span:first-child {
        font-size: 0.5rem;
        min-width: 22px;
    }

    .blocknav li .nav-year,
    .blocknav li span:last-child {
        font-size: 0.5rem;
        padding: 1px 8px;
    }

    .blocknav li.is-active::before {
        font-size: 0.6rem;
        left: -6px;
    }
}

@media (max-width: 480px) {
    .sect-cont.playertab .player-embed,
    .sect-cont.playertab iframe,
    .sect-cont.playertab video,
    .sect-cont.playertab .player-content {
        min-height: 160px;
        padding: 6px;
    }

    .sect-cont.playertab::before {
        font-size: 0.4rem;
        padding: 5px 10px;
    }

    .sect-cont.playertab::after {
        font-size: 0.4rem;
        padding: 5px 10px;
    }

    .playernav h3 {
        font-size: 0.5rem;
        padding: 6px 10px;
    }

    .blocknav {
        padding: 6px 8px;
        gap: 3px;
    }

    .blocknav li {
        padding: 6px 10px;
        font-size: 0.65rem;
        gap: 6px;
    }

    .blocknav li .nav-number,
    .blocknav li span:first-child {
        font-size: 0.4rem;
        min-width: 18px;
    }

    .blocknav li .nav-year,
    .blocknav li span:last-child {
        font-size: 0.4rem;
        padding: 1px 6px;
    }

    .blocknav li.is-active::before {
        font-size: 0.5rem;
        left: -5px;
    }

    .player-wrapper {
        gap: 15px;
    }
}

/* ========================================
   ПОДДЕРЖКА DLE-КЛАССОВ
   ======================================== */
.tab-pane.fade {
    transition: opacity 0.3s ease;
}

.tab-pane.fade:not(.in) {
    opacity: 0.7;
}

.tab-pane.fade.in {
    opacity: 1;
}

/* Скрываем стандартные заголовки DLE, если мешают */
.playernav h3:only-child {
    margin-bottom: 0;
}

/* Для AJAX-навигации */
.ajaxnav {
    cursor: pointer;
}

.ajaxnav.loading {
    opacity: 0.5;
    pointer-events: none;
}

.ajaxnav.loading::after {
    content: '...';
    animation: blink 0.5s step-end infinite;
}

/* ========================================
   ВКЛАДКИ ПЛЕЕРА (ИСПРАВЛЕННЫЕ)
   ======================================== */
.tabs {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 15px;
    list-style: none !important;
    padding: 4px !important;
    margin: 0 0 20px 0 !important;
    background: #0a120a;
    border: 1px solid #1a3a1a;
    border-radius: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.tabs.tab {
    flex: 0 0 auto !important;
    display: inline-block !important;
    padding: 10px 24px;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.6rem;
    color: #337733;
    background: transparent !important;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid transparent;
    user-select: none;
    white-space: nowrap;
    min-width: auto;
    width: auto;
    float: none;
    clear: none;
    position: relative;
    z-index: 1;
}

/* Сбрасываем возможные DLE-стили */
.tabs .tab:hover {
    color: #77aa77 !important;
    background: rgba(51, 255, 51, 0.03) !important;
    border-color: transparent !important;
}

.tabs .tab.active {
    color: #33ff33 !important;
    background: rgba(51, 255, 51, 0.05) !important;
    border-color: #33ff33 !important;
    box-shadow: 0 0 20px rgba(51, 255, 51, 0.05);
}

.tabs .tab.active::before {
    content: '▶ ';
    font-size: 0.5rem;
    animation: blink 1s step-end infinite;
}

/* Убираем возможные конфликты с DLE */
.tabs li {
    list-style: none !important;
    display: inline-block !important;
    float: none !important;
    clear: none !important;
}

/* ========================================
   КОНТЕЙНЕРЫ ПЛЕЕРА
   ======================================== */
#playerContainer,
#playerFrame {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #050a05;
    border-radius: 4px;
    overflow: hidden;
}

#playerFrame {
    border: none;
    background: #000;
}

/* Плейсхолдер для пустого контента */
.player-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 300px;
    color: #337733;
    font-family: 'Share Tech Mono', monospace;
    text-align: center;
    padding: 20px;
}

.player-placeholder .placeholder-icon {
    font-size: 4rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

.player-placeholder p {
    font-size: 0.9rem;
    color: #33aa33;
    letter-spacing: 3px;
}

.player-placeholder .placeholder-sub {
    font-size: 0.6rem;
    color: #225522;
    margin-top: 8px;
}

.player-placeholder .placeholder-link {
    margin-top: 15px;
    color: #33ff33;
    border: 1px solid #33ff33;
    padding: 8px 25px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.7rem;
    transition: all 0.3s;
}

.player-placeholder .placeholder-link:hover {
    background: #33ff33;
    color: #0a0a0a;
}

/* ========================================
   АДАПТИВ ДЛЯ ВКЛАДОК
   ======================================== */
@media (max-width: 768px) {
    .tabs .tab {
        padding: 8px 14px;
        font-size: 0.5rem;
    }
}

@media (max-width: 480px) {
    .tabs {
        flex-wrap: nowrap !important;
        gap: 3px;
        padding: 3px;
        overflow-x: auto;
    }
    
    .tabs .tab {
        padding: 6px 10px;
        font-size: 0.4rem;
        flex: 0 0 auto !important;
    }
}

/* ========================================
   SEO-ТЕКСТ О ФРАНШИЗЕ ТЕРМИНАТОР
   ======================================== */
.terminator-seo {
    margin: 40px 0 30px;
    padding: 30px 35px;
    background: #0a120a;
    border: 1px solid #1a3a1a;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

/* Сканирующая линия сверху */
.terminator-seo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #33ff33, transparent);
    animation: scanMove 4s linear infinite;
    opacity: 0.3;
}

.terminator-seo h2 {
    font-family: 'Press Start 2P', monospace;
    font-size: 1.1rem;
    color: #33ff33;
    margin-bottom: 20px;
    letter-spacing: 1px;
    line-height: 1.5;
    text-shadow: 0 0 20px rgba(51, 255, 51, 0.05);
}

.terminator-seo h2::before {
    content: '▶ ';
    font-size: 0.8rem;
    color: #33ff33;
}

.terminator-seo p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #88aa88;
    margin-bottom: 18px;
}

.terminator-seo p:last-child {
    margin-bottom: 0;
}

.terminator-seo strong {
    color: #33ff33;
    font-weight: 600;
}

.terminator-seo em {
    color: #33aa33;
    font-style: italic;
}

/* ========================================
   АДАПТИВ ДЛЯ SEO-ТЕКСТА
   ======================================== */
@media (max-width: 992px) {
    .terminator-seo {
        padding: 25px 25px;
    }
    
    .terminator-seo h2 {
        font-size: 0.95rem;
    }
    
    .terminator-seo p {
        font-size: 0.9rem;
        line-height: 1.7;
    }
}

@media (max-width: 768px) {
    .terminator-seo {
        padding: 20px 18px;
        margin: 30px 0 20px;
    }
    
    .terminator-seo h2 {
        font-size: 0.8rem;
        margin-bottom: 15px;
    }
    
    .terminator-seo p {
        font-size: 0.8rem;
        line-height: 1.6;
        margin-bottom: 12px;
    }
}

@media (max-width: 480px) {
    .terminator-seo {
        padding: 15px 12px;
        margin: 20px 0 15px;
    }
    
    .terminator-seo h2 {
        font-size: 0.65rem;
        margin-bottom: 12px;
    }
    
    .terminator-seo h2::before {
        font-size: 0.6rem;
    }
    
    .terminator-seo p {
        font-size: 0.7rem;
        line-height: 1.5;
        margin-bottom: 10px;
    }
}

/* ========================================
   ОПИСАНИЕ ВСЕХ ЧАСТЕЙ
   ======================================== */
.parts-description {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 2px solid rgba(51, 255, 51, 0.08);
}

.parts-description h3 {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.85rem;
    color: #33ff33;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.parts-description h3::before {
    content: '▸ ';
    color: #33ff33;
}

.part-item {
    display: flex;
    gap: 18px;
    padding: 15px 18px;
    margin-bottom: 12px;
    background: rgba(10, 18, 10, 0.5);
    border: 1px solid #1a3a1a;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.part-item:hover {
    border-color: #33ff33;
    background: rgba(51, 255, 51, 0.02);
    transform: translateX(5px);
}

.part-number {
    flex-shrink: 0;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.75rem;
    color: #33aa33;
    min-width: 45px;
    padding-top: 2px;
}

.part-info {
    flex: 1;
}

.part-title {
    font-size: 1rem;
    color: #33ff33;
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
}

.part-desc {
    font-size: 0.85rem;
    color: #88aa88;
    line-height: 1.6;
    margin: 0;
}

/* ========================================
   АДАПТИВ ДЛЯ ОПИСАНИЯ ЧАСТЕЙ
   ======================================== */
@media (max-width: 768px) {
    .parts-description {
        margin-top: 20px;
        padding-top: 18px;
    }
    
    .parts-description h3 {
        font-size: 0.7rem;
    }
    
    .part-item {
        padding: 12px 14px;
        gap: 12px;
        flex-wrap: wrap;
    }
    
    .part-number {
        font-size: 0.65rem;
        min-width: 35px;
    }
    
    .part-title {
        font-size: 0.85rem;
    }
    
    .part-desc {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .parts-description {
        margin-top: 15px;
        padding-top: 12px;
    }
    
    .parts-description h3 {
        font-size: 0.55rem;
        margin-bottom: 12px;
    }
    
    .part-item {
        padding: 10px 12px;
        gap: 10px;
        margin-bottom: 8px;
    }
    
    .part-number {
        font-size: 0.5rem;
        min-width: 28px;
    }
    
    .part-title {
        font-size: 0.7rem;
    }
    
    .part-desc {
        font-size: 0.65rem;
        line-height: 1.4;
    }
}

.fullstory-bg {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    background: #050a05;
    margin-bottom: 30px;
    border-radius: 8px 8px 0 0;
    border: 1px solid #1a3a1a;
    border-bottom: none;
}

.fullstory-bg img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: 1;
    opacity: 1;
    transition: opacity 1.5s ease;
}

.fullstory-bg video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    opacity: 0;
    z-index: 1;
    transition: opacity 1.5s ease;
}

.fullstory-bg video.visible {
    opacity: 0.6;
}

.fullstory-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(5, 10, 5, 0.6) 0%, rgba(5, 10, 5, 0.85) 100%);
    z-index: 2;
}

.fullstory-bg .scanline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #33ff33, transparent);
    animation: scanMove 4s linear infinite;
    opacity: 0.2;
    z-index: 4;
}

/* --- Терминальная шапка на фоне --- */
.fullstory-terminal {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    background: rgba(10, 18, 10, 0.7);
    border: 1px solid #1a3a1a;
    border-radius: 6px;
    padding: 8px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    backdrop-filter: blur(4px);
    max-width: 90%;
}

.fullstory-terminal .terminal-title {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.7rem;
    color: #33aa33;
    letter-spacing: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fullstory-terminal .terminal-status {
    font-size: 0.55rem;
    font-family: 'Press Start 2P', monospace;
    animation: blink 1.2s step-end infinite;
    margin-left: auto;
}

/* --- КОНТЕЙНЕР --- */
.fullstory-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 40px;
}

/* --- ВЕРХНЯЯ ЧАСТЬ: ПОСТЕР + ИНФО --- */
.fullstory-top {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 35px;
    margin-bottom: 40px;
    padding: 30px;
    background: #0a120a;
    border: 1px solid #1a3a1a;
    border-radius: 8px;
    position: relative;
    z-index: 10;
    margin-top: -60px;
}

/* --- Постер --- */
.fullstory-poster {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.fullstory-poster img {
    width: 100%;
    max-width: 260px;
    height: auto;
    border-radius: 6px;
    border: 2px solid #1a3a1a;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transition: border-color 0.3s;
}

.fullstory-poster img:hover {
    border-color: #33ff33;
}

/* --- РЕЙТИНГ (ВАШ БЛОК) --- */


/* --- Кнопки --- */
.fullstory-actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    flex: 1;
    padding: 10px 15px;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.55rem;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s;
    letter-spacing: 0.5px;
}

.action-btn.watch {
    background: transparent;
    color: #33ff33;
    border: 1px solid #33ff33;
}

.action-btn.watch:hover {
    background: #33ff33;
    color: #0a0a0a;
    box-shadow: 0 0 30px rgba(51, 255, 51, 0.1);
}

.action-btn.trailer {
    background: transparent;
    color: #ff8844;
    border: 1px solid #ff8844;
}

.action-btn.trailer:hover {
    background: #ff8844;
    color: #0a0a0a;
    box-shadow: 0 0 30px rgba(255, 136, 68, 0.1);
}

/* --- Шаринг --- */
.fullstory-share {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.share-label {
    font-size: 0.55rem;
    color: #337733;
    font-family: 'Share Tech Mono', monospace;
    letter-spacing: 1px;
}

.share-buttons {
    display: flex;
    gap: 6px;
}

.share-btn {
    padding: 4px 12px;
    font-size: 0.55rem;
    font-family: 'Press Start 2P', monospace;
    text-decoration: none;
    border-radius: 3px;
    transition: all 0.3s;
    color: #337733;
    border: 1px solid #1a3a1a;
    background: transparent;
}

.share-btn:hover {
    border-color: #33ff33;
    color: #33ff33;
    background: rgba(51, 255, 51, 0.05);
}

/* --- Информация --- */
.fullstory-info {
    display: flex;
    flex-direction: column;
}

.fullstory-title {
    font-family: 'Press Start 2P', monospace;
    font-size: 1.8rem;
    color: #33ff33;
    margin-bottom: 18px;
    letter-spacing: 2px;
    text-shadow: 0 0 30px rgba(51, 255, 51, 0.05);
}

.fullstory-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 20px;
}

.meta-line {
    display: flex;
    font-size: 0.8rem;
    color: #77aa77;
    padding: 4px 0;
    border-bottom: 1px solid rgba(51, 255, 51, 0.03);
}

.meta-line.fulline {
    grid-column: 1 / -1;
}

.meta-label {
    color: #337733;
    min-width: 100px;
    font-weight: 600;
}

.meta-value {
    color: #99cc99;
}

/* --- ОПИСАНИЕ --- */
.fullstory-description,
.fullstory-creators,
.fullstory-specs,
.fullstory-related {
    margin-bottom: 40px;
    padding: 25px 30px;
    background: #0a120a;
    border: 1px solid #1a3a1a;
    border-radius: 8px;
}

.fullstory-description h2,
.fullstory-creators h2,
.fullstory-specs h2,
.fullstory-related h2 {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.9rem;
    color: #33ff33;
    margin-bottom: 18px;
    letter-spacing: 1px;
}

.description-content {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #88aa88;
}

.description-content p {
    margin-bottom: 15px;
}

.description-content strong {
    color: #33ff33;
}

.description-content em {
    color: #33aa33;
    font-style: italic;
}

/* --- СОЗДАТЕЛИ --- */
.creators-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.creator-card {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: rgba(10, 18, 10, 0.5);
    border: 1px solid #1a3a1a;
    border-radius: 6px;
    transition: all 0.3s;
}

.creator-card:hover {
    border-color: #33ff33;
}

.creator-avatar {
    height: 250px;
    border-radius: 15px;
    overflow: hidden;
    border: 2px solid #1a3a1a;
}

.creator-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.creator-info {
    flex: 1;
}

.creator-role {
    font-size: 0.6rem;
    color: #337733;
    font-family: 'Share Tech Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.creator-name {
    display: block;
    font-size: 0.9rem;
    color: #33ff33;
    margin: 2px 0 4px;
}

.creator-bio {
    font-size: 0.75rem;
    color: #77aa77;
    line-height: 1.5;
    margin: 0;
}

/* --- ТЕХНИЧЕСКИЕ ХАРАКТЕРИСТИКИ --- */
.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.spec-item {
    display: flex;
    flex-direction: column;
    padding: 12px 16px;
    background: rgba(10, 18, 10, 0.5);
    border: 1px solid #1a3a1a;
    border-radius: 4px;
}

.spec-label {
    font-size: 0.6rem;
    color: #337733;
    font-family: 'Share Tech Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.spec-value {
    font-size: 0.85rem;
    color: #99cc99;
    font-weight: 600;
    margin-top: 2px;
}

.spec-value.active { color: #33ff33; }
.spec-value.destroyed { color: #ff3333; }
.spec-value.obsolete { color: #ffcc00; }

/* --- КЛЮЧЕВЫЕ СЛОВА --- */
.fullstory-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 20px 0;
    border-top: 1px solid rgba(51, 255, 51, 0.05);
    margin-top: 30px;
}

.fullstory-keywords .keyword {
    font-size: 0.6rem;
    color: #337733;
    font-family: 'Share Tech Mono', monospace;
    padding: 4px 12px;
    background: rgba(51, 255, 51, 0.02);
    border: 1px solid #1a3a1a;
    border-radius: 3px;
    transition: all 0.3s;
}

.fullstory-keywords .keyword:hover {
    color: #33ff33;
    border-color: #33ff33;
}

/* --- КОММЕНТАРИИ --- */
.fullstory-comments {
    margin-top: 40px;
}

/* ============================================================
   АДАПТИВ
   ============================================================ */
@media (max-width: 992px) {
    .fullstory-top {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 20px;
        margin-top: -40px;
    }
    
    .fullstory-poster {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        width: 100%;
        max-width: 240px;        margin: auto;
    }
    
  
    
    .fullstory-title {
        font-size: 1.4rem;
    }
    
    .fullstory-meta {
        grid-template-columns: 1fr;
    }
    
    .creators-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .specs-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .fullstory-bg {
        height: 300px;
    }
    
    .fullstory-terminal {
        padding: 6px 14px;
        top: 12px;
    }
    
    .fullstory-terminal .terminal-title {
        font-size: 0.5rem;
    }
    
    .fullstory-terminal .terminal-status {
        font-size: 0.45rem;
    }
    
    .fullstory-container {
        padding: 0 12px 30px;
    }
    
    .fullstory-top {
        padding: 15px;
        gap: 18px;
        margin-top: -30px;
    }
    
 
    
    .fullstory-title {
        font-size: 1.1rem;
        text-align: center;
    }
    
    .fullstory-meta {
        font-size: 0.7rem;
    }
    
    .meta-label {
        min-width: 70px;
    }
    
    .fullstory-description,
    .fullstory-creators,
    .fullstory-specs,
    .fullstory-related {
        padding: 18px;
    }
    
    .fullstory-description h2,
    .fullstory-creators h2,
    .fullstory-specs h2,
    .fullstory-related h2 {
        font-size: 0.7rem;
    }
    
    .description-content {
        font-size: 0.8rem;
    }
    
    .creators-grid {
        grid-template-columns: 1fr;
    }
    
    .specs-grid {
        grid-template-columns: 1fr;
    }
    
    .fullstory-actions {
        flex-direction: column;
    }
    
    .action-btn {
        font-size: 0.5rem;
        padding: 8px 12px;
    }
}

@media (max-width: 480px) {
    .fullstory-bg {
        height: 200px;
    }
    
    .fullstory-terminal {
        padding: 4px 10px;
        top: 8px;
        gap: 8px;
    }
    
    .fullstory-terminal .terminal-title {
        font-size: 0.4rem;
    }
    
    .fullstory-terminal .terminal-status {
        font-size: 0.35rem;
    }
    
    .fullstory-top {
        padding: 12px;
        margin-top: -20px;
    }
    
    .fullstory-poster {
        flex-direction: column;
        align-items: center;
    }

    
    .fullstory-title {
        font-size: 0.9rem;
    }
    
    .fullstory-meta {
        font-size: 0.6rem;
    }
    
    .meta-label {
        min-width: 50px;
    }
    
    .fullstory-description,
    .fullstory-creators,
    .fullstory-specs,
    .fullstory-related {
        padding: 12px;
    }
    
    .fullstory-description h2,
    .fullstory-creators h2,
    .fullstory-specs h2,
    .fullstory-related h2 {
        font-size: 0.55rem;
    }
    
    .description-content {
        font-size: 0.7rem;
        line-height: 1.5;
    }
    
    .creator-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .creator-avatar {
        width: 50px;
        height: 50px;
    }
    
    .fullstory-keywords {
        gap: 4px;
    }
    
    .fullstory-keywords .keyword {
        font-size: 0.45rem;
        padding: 2px 8px;
    }
    

}

/* ========================================
   РЕЙТИНГ В ВИДЕ КРУГА (АДАПТИРОВАННЫЙ)
   ======================================== */

/* --- Контейнер рейтинга --- */
.flikes {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 20;
    white-space: nowrap;
    background: rgba(10, 18, 10, 0.8);
    border: 1px solid #1a3a1a;
    border-radius: 6px;
    padding: 4px 0;
    margin-top: 5px;
    width: 100%;
    overflow: hidden;
}

/* --- Кнопки лайков --- */
.rate-plus,
.rate-minus {
    cursor: pointer;
    display: flex;
    align-items: center;
    width: 50%;
    flex: 1;
    min-height: 40px;
}

.rate-plus {
    justify-content: flex-start;
}

.rate-minus {
    justify-content: flex-end;
}

/* --- Иконки (Font Awesome) --- */
.flikes .fal {
    width: 36px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    font-size: 15px;
    flex-shrink: 0;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.rate-plus .fal {
    background-color: #2d6b2d;
    color: #33ff33;
    margin-left: 4px;
}

.rate-plus .fal:hover {
    background-color: #33aa33;
    box-shadow: 0 0 20px rgba(51, 255, 51, 0.2);
    transform: scale(1.05);
}

.rate-minus .fal {
    background-color: #6b2d2d;
    color: #ff4444;
    margin-right: 4px;
}

.rate-minus .fal:hover {
    background-color: #aa3333;
    box-shadow: 0 0 20px rgba(255, 68, 68, 0.2);
    transform: scale(1.05);
}

.rate-plus:hover .fal,
.rate-minus:hover .fal {
    opacity: 0.85;
}

/* --- Счётчики голосов --- */
.psc,
.msc {
    color: #33ff33;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.8rem;
    font-weight: 600;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 8px;
}

.psc {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 10px;
    background: linear-gradient(90deg, rgba(51, 255, 51, 0.08), rgba(10, 18, 10, 0));
    min-width: 30px;
}

.msc {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10px;
    background: linear-gradient(90deg, rgba(10, 18, 10, 0), rgba(255, 68, 68, 0.08));
    min-width: 30px;
}

.rate-minus {
    justify-content: flex-end;
}

/* --- Круг рейтинга --- */
.slide-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
    background-color: #0a120a;
    box-shadow: 0 0 0 4px #0a120a, 0 0 15px 0 rgba(0, 0, 0, 0.5);
    margin: 0 5px;
}

/* Контент внутри круга */
.slide-circle > div {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    padding-top: 12px;
    color: #33ff33;
    font-family: 'Press Start 2P', monospace;
    line-height: 1.2;
    pointer-events: none;
}

.slide-circle > div div {
    font-size: 7px;
    color: #337733;
    font-weight: 400;
    margin-top: -2px;
    letter-spacing: 0.5px;
}

/* Canvas для круга */
.slide-circle canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

/* --- Скрытые голоса --- */
.fvotes.hidden {
    display: none;
}

/* ========================================
   АДАПТИВ ДЛЯ РЕЙТИНГА
   ======================================== */
@media (max-width: 768px) {
    .flikes {
        padding: 3px 0;
        margin-top: 3px;
    }

    .flikes .fal {
        width: 30px;
        height: 30px;
        line-height: 30px;
        font-size: 13px;
    }

   

    .psc,
    .msc {
        font-size: 0.7rem;
        padding: 0 6px;
    }

    .psc {
        padding-left: 6px;
    }

    .msc {
        padding-right: 6px;
    }
}

@media (max-width: 480px) {
    .flikes {
        padding: 2px 0;
        margin-top: 2px;
        border-radius: 4px;
    }

    .flikes .fal {
        width: 26px;
        height: 26px;
        line-height: 26px;
        font-size: 11px;
    }

    

    .psc,
    .msc {
        font-size: 0.6rem;
        padding: 0 4px;
    }

    .psc {
        padding-left: 4px;
    }

    .msc {
        padding-right: 4px;
    }
}

.slide-circle > div > div {display: none;}


/* ============================================================
   ФОРМА КОММЕНТАРИЕВ (ТЕРМИНАЛЬНЫЙ СТИЛЬ)
   ============================================================ */

/* --- Основной контейнер формы --- */
.terminator-comment-form {
    background: #0a120a;
    border: 1px solid #1a3a1a;
    border-radius: 8px;
    padding: 25px 30px 20px;
    margin: 30px 0 20px;
    position: relative;
    overflow: hidden;
}

/* Сканирующая линия сверху */
.terminator-comment-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #33ff33, transparent);
    animation: scanMove 4s linear infinite;
    opacity: 0.2;
}

/* Уголки */
.terminator-comment-form::after {
    content: '▸ ВВОД_ДАННЫХ ◂';
    position: absolute;
    bottom: 8px;
    right: 20px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.45rem;
    color: rgba(51, 255, 51, 0.04);
    letter-spacing: 2px;
    pointer-events: none;
}

/* --- Заголовок формы (для неавторизованных) --- */
.ac-form__header {
    display: flex;
    gap: 20px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.form-field {
    flex: 1;
    min-width: 200px;
}

.form-label {
    display: block;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.5rem;
    color: #337733;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    padding: 10px 14px;
    background: #050f05;
    border: 1px solid #1a3a1a;
    border-radius: 4px;
    color: #33ff33;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    outline: none;
}

.form-input:focus {
    border-color: #33ff33;
    box-shadow: 0 0 20px rgba(51, 255, 51, 0.05);
}

.form-input::placeholder {
    color: #225522;
    font-size: 0.7rem;
}

/* --- Редактор --- */
.ac-form__editor {
    margin-bottom: 18px;
    position: relative;
}

.editor-terminal-header {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #050f05;
    padding: 6px 14px;
    border: 1px solid #1a3a1a;
    border-bottom: none;
    border-radius: 6px 6px 0 0;
}

.editor-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.editor-dot.red { background: #ff3333; }
.editor-dot.yellow { background: #ffcc00; }
.editor-dot.green { background: #33ff33; }

.editor-title {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.5rem;
    color: #33aa33;
    letter-spacing: 1px;
    margin-left: 5px;
}

.editor-status {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.4rem;
    color: #33ff33;
    margin-left: auto;
    animation: blink 1.2s step-end infinite;
}

/* Стили для самого редактора (DLE) */
.ac-form__editor .fr-box {
    border: 1px solid #1a3a1a !important;
    border-radius: 0 0 6px 6px !important;
    background: #050f05 !important;
}

.ac-form__editor .fr-toolbar {
    background: #0a120a !important;
    border-bottom: 1px solid #1a3a1a !important;
}

.ac-form__editor .fr-wrapper {
    background: #050f05 !important;
}

.ac-form__editor .fr-element {
    color: #88aa88 !important;
    font-family: 'Share Tech Mono', monospace !important;
    font-size: 0.85rem !important;
    min-height: 120px;
}

/* --- Защита от спама --- */
.message-info.form {
    margin-top: 15px;
    padding: 15px 18px;
    background: rgba(10, 18, 10, 0.5);
    border: 1px solid #1a3a1a;
    border-radius: 6px;
}

.form__row {
    margin-bottom: 12px;
}

.form__row:last-child {
    margin-bottom: 0;
}

.form__label {
    display: block;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.5rem;
    color: #337733;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.form__label .label-icon {
    color: #33ff33;
    margin-right: 5px;
}

.form__input {
    width: 100%;
    padding: 10px 14px;
    background: #050f05;
    border: 1px solid #1a3a1a;
    border-radius: 4px;
    color: #33ff33;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    outline: none;
}

.form__input:focus {
    border-color: #33ff33;
    box-shadow: 0 0 20px rgba(51, 255, 51, 0.05);
}

.form__input::placeholder {
    color: #225522;
    font-size: 0.7rem;
}

.form__sec-code {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.form__sec-code .form__input {
    flex: 1;
    min-width: 150px;
}

.sec-code-image img {
    border: 1px solid #1a3a1a;
    border-radius: 4px;
    background: #0a120a;
}

.recaptcha-wrapper {
    background: #0a120a;
    padding: 10px;
    border: 1px solid #1a3a1a;
    border-radius: 4px;
}

/* --- Нижняя часть формы --- */
.ac-form__bottom {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid rgba(51, 255, 51, 0.06);
    flex-wrap: wrap;
}

/* --- Кнопка отправки --- */
.ac-form__btn {
    padding: 12px 35px;
    background: transparent;
    color: #33ff33;
    border: 1px solid #33ff33;
    border-radius: 4px;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.6rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ac-form__btn .btn-icon {
    font-size: 0.5rem;
}

.ac-form__btn:hover {
    background: #33ff33;
    color: #0a0a0a;
    box-shadow: 0 0 30px rgba(51, 255, 51, 0.1);
}

/* --- Чекбокс подписки --- */
.has-checkbox {
    display: flex;
    align-items: center;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.65rem;
    color: #337733;
    letter-spacing: 0.5px;
}

.checkbox-input {
    display: none;
}

.checkbox-custom {
    width: 18px;
    height: 18px;
    border: 2px solid #1a3a1a;
    border-radius: 4px;
    background: #050f05;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.checkbox-input:checked + .checkbox-custom {
    border-color: #33ff33;
    background: rgba(51, 255, 51, 0.05);
}

.checkbox-input:checked + .checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #33ff33;
    font-size: 12px;
}

.checkbox-label:hover .checkbox-custom {
    border-color: #33ff33;
}

.checkbox-text {
    color: #559955;
    font-size: 0.6rem;
    letter-spacing: 0.5px;
}

/* --- Подпись внизу формы --- */
.form-footer-sign {
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px solid rgba(51, 255, 51, 0.03);
    text-align: right;
}

.sign-text {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.45rem;
    color: rgba(51, 255, 51, 0.08);
    letter-spacing: 2px;
}

/* ============================================================
   АДАПТИВ ДЛЯ ФОРМЫ
   ============================================================ */
@media (max-width: 768px) {
    .terminator-comment-form {
        padding: 18px 15px 15px;
        margin: 20px 0 15px;
    }

    .ac-form__header {
        flex-direction: column;
        gap: 12px;
    }

    .form-field {
        min-width: 100%;
    }

    .form-label {
        font-size: 0.45rem;
    }

    .form-input {
        font-size: 0.7rem;
        padding: 8px 12px;
    }

    .ac-form__bottom {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }

    .ac-form__btn {
        justify-content: center;
        padding: 10px 20px;
        font-size: 0.5rem;
    }

    .has-checkbox {
        justify-content: center;
    }

    .checkbox-text {
        font-size: 0.55rem;
    }

    .editor-terminal-header {
        padding: 4px 10px;
        gap: 6px;
    }

    .editor-dot {
        width: 8px;
        height: 8px;
    }

    .editor-title {
        font-size: 0.4rem;
    }

    .editor-status {
        font-size: 0.35rem;
    }

    .form__sec-code {
        flex-direction: column;
        gap: 10px;
    }

    .form__sec-code .form__input {
        min-width: 100%;
    }

    .terminator-comment-form::after {
        font-size: 0.35rem;
        bottom: 5px;
        right: 12px;
    }

    .message-info.form {
        padding: 12px 14px;
    }

    .form__label {
        font-size: 0.45rem;
    }
}

@media (max-width: 480px) {
    .terminator-comment-form {
        padding: 12px 10px 10px;
        margin: 15px 0 10px;
        border-radius: 6px;
    }

    .form-input {
        font-size: 0.6rem;
        padding: 6px 10px;
    }

    .form-label {
        font-size: 0.4rem;
    }

    .ac-form__btn {
        font-size: 0.45rem;
        padding: 8px 16px;
    }

    .checkbox-text {
        font-size: 0.5rem;
    }

    .checkbox-custom {
        width: 16px;
        height: 16px;
    }

    .editor-title {
        font-size: 0.35rem;
    }

    .editor-status {
        font-size: 0.3rem;
    }

    .terminator-comment-form::after {
        display: none;
    }

    .sign-text {
        font-size: 0.35rem;
    }

    .ac-form__editor .fr-element {
        min-height: 80px;
        font-size: 0.7rem !important;
    }
}

/* ============================================================
   СТИЛИ ДЛЯ TEXTAREA КОММЕНТАРИЕВ
   ============================================================ */

/* --- Обычное текстовое поле (если не используется редактор) --- */
#comments,
textarea[name="comments"] {
    width: 100%;
    min-height: 150px;
    padding: 14px 18px;
    background: #050f05;
    border: 1px solid #1a3a1a;
    border-radius: 0 0 6px 6px;
    color: #33ff33;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.85rem;
    line-height: 1.8;
    transition: all 0.3s ease;
    outline: none;
    resize: vertical;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.3);
}

#comments:focus,
textarea[name="comments"]:focus {
    border-color: #33ff33;
    box-shadow: 0 0 25px rgba(51, 255, 51, 0.04), inset 0 2px 10px rgba(0, 0, 0, 0.3);
}

#comments::placeholder,
textarea[name="comments"]::placeholder {
    color: #225522;
    font-size: 0.75rem;
    font-family: 'Share Tech Mono', monospace;
}

/* --- Стили для поля если оно внутри терминальной шапки --- */
.ac-form__editor textarea {
    border-radius: 0 0 6px 6px !important;
}

/* --- Если текстовое поле используется с терминальной шапкой --- */
.editor-terminal-header + #comments,
.editor-terminal-header + textarea[name="comments"] {
    border-top: none;
    border-radius: 0 0 6px 6px;
}

/* --- Стили скроллбара для textarea --- */
#comments::-webkit-scrollbar,
textarea[name="comments"]::-webkit-scrollbar {
    width: 6px;
    background: #050f05;
}

#comments::-webkit-scrollbar-track,
textarea[name="comments"]::-webkit-scrollbar-track {
    background: #050f05;
    border-radius: 0 0 6px 0;
}

#comments::-webkit-scrollbar-thumb,
textarea[name="comments"]::-webkit-scrollbar-thumb {
    background: #1a3a1a;
    border-radius: 3px;
    transition: background 0.3s;
}

#comments::-webkit-scrollbar-thumb:hover,
textarea[name="comments"]::-webkit-scrollbar-thumb:hover {
    background: #33ff33;
}

/* --- Для Firefox --- */
#comments,
textarea[name="comments"] {
    scrollbar-width: thin;
    scrollbar-color: #1a3a1a #050f05;
}

/* ============================================================
   АДАПТИВ ДЛЯ TEXTAREA
   ============================================================ */
@media (max-width: 768px) {
    #comments,
    textarea[name="comments"] {
        min-height: 120px;
        padding: 12px 14px;
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    #comments,
    textarea[name="comments"] {
        min-height: 100px;
        padding: 10px 12px;
        font-size: 0.65rem;
        border-radius: 0 0 4px 4px;
    }
}

/* ============================================================
   КОММЕНТАРИИ (ТЕРМИНАЛЬНЫЙ СТИЛЬ)
   ============================================================ */

/* --- Основной блок комментария --- */
.comm {
    background: #0a120a;
    border: 1px solid #1a3a1a;
    border-radius: 8px;
    padding: 18px 22px 16px;
    margin-bottom: 15px;
    position: relative;
    transition: all 0.3s ease;
}

.comm:hover {
    border-color: #2a4a2a;
}

/* Положительный комментарий */
.comm.pos {
    border-left: 3px solid #33aa33;
}

/* Отрицательный комментарий */
.comm.neg {
    border-left: 3px solid #aa3333;
}

/* --- Заголовок комментария (если есть) --- */
.comm__title {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.7rem;
    color: #33ff33;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(51, 255, 51, 0.06);
    letter-spacing: 0.5px;
}

.comm__title a {
    color: #33ff33;
    text-decoration: none;
    transition: color 0.3s;
}

.comm__title a:hover {
    color: #77ff77;
}

/* --- Шапка комментария --- */
.comm__header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

/* --- Аватар --- */
.comm__img {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #1a3a1a;
    background: #050f05;
    transition: border-color 0.3s;
}

.comm:hover .comm__img {
    border-color: #33ff33;
}

.comm__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- Мета-данные --- */
.comm__meta {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    flex-wrap: wrap;
}

.comm__author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.comm__author > span {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.85rem;
    color: #33ff33;
    font-weight: 600;
}

/* --- Группа пользователя --- */
.comm__group {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.45rem;
    color: #337733;
    padding: 2px 10px;
    border: 1px solid #1a3a1a;
    border-radius: 3px;
    background: rgba(51, 255, 51, 0.03);
    letter-spacing: 0.5px;
}

.comm__group.adm {
    color: #33ff33;
    border-color: #33ff33;
    background: rgba(51, 255, 51, 0.05);
}

/* --- Дата --- */
.comm__date {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.7rem;
    color: #337733;
    white-space: nowrap;
}

/* --- Рейтинг комментария --- */
.comm__rating {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.75rem;
    color: #33aa33;
    padding: 2px 12px;
    border: 1px solid #1a3a1a;
    border-radius: 4px;
    background: rgba(10, 18, 10, 0.5);
}

.comm__rating .fal {
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.3s;
    color: #337733;
}

.comm__rating .fal.fa-thumbs-up:hover {
    color: #33ff33;
}

.comm__rating .fal.fa-thumbs-down:hover {
    color: #ff3333;
}

/* --- Текст комментария --- */
.comm__text {
    font-size: 0.9rem;
    line-height: 1.7;
    color: #88aa88;
    padding: 10px 0 8px;
    border-top: 1px solid rgba(51, 255, 51, 0.04);
    margin-top: 4px;
}

.comm__text p {
    margin-bottom: 8px;
}

.comm__text a {
    color: #33ff33;
    text-decoration: none;
    border-bottom: 1px dashed rgba(51, 255, 51, 0.2);
    transition: all 0.3s;
}

.comm__text a:hover {
    border-bottom-color: #33ff33;
}

.comm__text strong {
    color: #33ff33;
}

.comm__text em {
    color: #33aa33;
    font-style: italic;
}

/* --- Цитаты в комментариях --- */
.comm__text blockquote {
    background: rgba(10, 18, 10, 0.5);
    border-left: 3px solid #33aa33;
    padding: 10px 16px;
    margin: 10px 0;
    border-radius: 0 4px 4px 0;
    color: #77aa77;
    font-size: 0.85rem;
}

.comm__text blockquote cite {
    display: block;
    font-size: 0.7rem;
    color: #337733;
    margin-bottom: 5px;
    font-style: normal;
}

/* --- Коды в комментариях --- */
.comm__text code {
    background: #050f05;
    color: #33ff33;
    padding: 2px 8px;
    border-radius: 3px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.8rem;
    border: 1px solid #1a3a1a;
}

/* --- Картинки в комментариях --- */
.comm__text img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    border: 1px solid #1a3a1a;
}

/* --- Подвал комментария --- */
.comm__footer {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(51, 255, 51, 0.04);
    flex-wrap: wrap;
}

/* --- Действия с комментарием --- */
.comm__action {
    display: flex;
    align-items: center;
    gap: 15px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.comm__action li {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.7rem;
    color: #337733;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.comm__action li .fal {
    font-size: 0.6rem;
}

.comm__action li:hover {
    color: #33ff33;
}

.comm__action li a {
    color: #337733;
    text-decoration: none;
    transition: all 0.3s;
}

.comm__action li a:hover {
    color: #33ff33;
}

/* --- Кнопка управления комментарием (три точки) --- */
.comm__ctrl {
    position: relative;
    margin-left: auto;
}

.comm__ctrl-btn {
    background: transparent;
    border: none;
    color: #337733;
    font-size: 1rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.3s;
}

.comm__ctrl-btn:hover {
    color: #33ff33;
    background: rgba(51, 255, 51, 0.03);
}

/* --- Выпадающее меню управления --- */
.comm__ctrl-menu {
    position: absolute;
    right: 0;
    top: 100%;
    background: #0a120a;
    border: 1px solid #1a3a1a;
    border-radius: 6px;
    padding: 6px 0;
    min-width: 180px;
    z-index: 100;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    list-style: none;
    margin: 4px 0 0;
}

.comm__ctrl-menu li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.7rem;
    color: #337733;
    cursor: pointer;
    transition: all 0.3s;
}

.comm__ctrl-menu li:hover {
    color: #33ff33;
    background: rgba(51, 255, 51, 0.03);
}

.comm__ctrl-menu li .fal {
    font-size: 0.7rem;
    width: 18px;
}

.comm__ctrl-menu li a {
    color: #337733;
    text-decoration: none;
    transition: all 0.3s;
    flex: 1;
}

.comm__ctrl-menu li a:hover {
    color: #33ff33;
}

/* --- Чекбокс массовых действий --- */
.has-checkbox {
    display: flex;
    align-items: center;
}

/* ============================================================
   ВЛОЖЕННЫЕ КОММЕНТАРИИ (ОТВЕТЫ)
   ============================================================ */
.comm[data-level] {
    margin-left: 40px;
    border-left-color: #1a3a1a;
}

.comm[data-level="1"] { margin-left: 40px; }
.comm[data-level="2"] { margin-left: 70px; }
.comm[data-level="3"] { margin-left: 100px; }
.comm[data-level="4"] { margin-left: 130px; }
.comm[data-level="5"] { margin-left: 160px; }

/* ============================================================
   АДАПТИВ ДЛЯ КОММЕНТАРИЕВ
   ============================================================ */
@media (max-width: 768px) {
    .comm {
        padding: 14px 16px 12px;
        margin-bottom: 12px;
    }

    .comm__header {
        gap: 10px;
    }

    .comm__img {
        width: 36px;
        height: 36px;
    }

    .comm__author > span {
        font-size: 0.75rem;
    }

    .comm__group {
        font-size: 0.4rem;
        padding: 1px 8px;
    }

    .comm__date {
        font-size: 0.6rem;
    }

    .comm__text {
        font-size: 0.8rem;
        line-height: 1.6;
    }

    .comm__action li {
        font-size: 0.6rem;
    }

    .comm__ctrl-menu {
        min-width: 150px;
        right: -10px;
    }

    .comm__ctrl-menu li {
        font-size: 0.6rem;
        padding: 6px 12px;
    }

    /* Вложенные комментарии */
    .comm[data-level="1"] { margin-left: 25px; }
    .comm[data-level="2"] { margin-left: 45px; }
    .comm[data-level="3"] { margin-left: 65px; }
    .comm[data-level="4"] { margin-left: 85px; }
    .comm[data-level="5"] { margin-left: 105px; }

    .comm__rating {
        font-size: 0.65rem;
        padding: 1px 10px;
    }

    .comm__text blockquote {
        padding: 8px 12px;
        font-size: 0.75rem;
    }

    .comm__text code {
        font-size: 0.7rem;
        padding: 1px 6px;
    }
}

@media (max-width: 480px) {
    .comm {
        padding: 10px 12px 10px;
        margin-bottom: 10px;
        border-radius: 6px;
    }

    .comm__header {
        flex-wrap: wrap;
        gap: 8px;
    }

    .comm__img {
        width: 30px;
        height: 30px;
    }

    .comm__author > span {
        font-size: 0.65rem;
    }

    .comm__group {
        font-size: 0.35rem;
        padding: 1px 6px;
    }

    .comm__date {
        font-size: 0.5rem;
        white-space: normal;
    }

    .comm__text {
        font-size: 0.7rem;
        line-height: 1.5;
        padding: 6px 0 4px;
    }

    .comm__footer {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }

    .comm__action {
        justify-content: center;
        gap: 12px;
        flex-wrap: wrap;
    }

    .comm__action li {
        font-size: 0.55rem;
    }

    .comm__ctrl {
        margin-left: 0;
        text-align: center;
    }

    .comm__ctrl-menu {
        right: 0;
        left: 0;
        min-width: auto;
    }

    .comm__rating {
        font-size: 0.55rem;
        padding: 1px 8px;
        gap: 5px;
    }

    .comm__rating .fal {
        font-size: 0.6rem;
    }

    /* Вложенные комментарии */
    .comm[data-level="1"] { margin-left: 15px; }
    .comm[data-level="2"] { margin-left: 25px; }
    .comm[data-level="3"] { margin-left: 35px; }
    .comm[data-level="4"] { margin-left: 45px; }
    .comm[data-level="5"] { margin-left: 55px; }

    .comm__text blockquote {
        padding: 6px 10px;
        font-size: 0.65rem;
        border-left-width: 2px;
    }

    .comm__text code {
        font-size: 0.6rem;
        padding: 1px 4px;
    }

    .comm__title {
        font-size: 0.55rem;
    }
}

/* ============================================================
   МЕНЮ УПРАВЛЕНИЯ КОММЕНТАРИЕМ (СКРЫТОЕ ПО УМОЛЧАНИЮ)
   ============================================================ */

/* --- Контейнер управления --- */
.comm__ctrl {
    position: relative;
    margin-left: auto;
    display: inline-block;
}

/* --- Кнопка-триггер (три точки) --- */
.comm__ctrl-btn {
    background: transparent;
    border: none;
    color: #337733;
    font-size: 1rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.3s;
    line-height: 1;
}

.comm__ctrl-btn:hover {
    color: #33ff33;
    background: rgba(51, 255, 51, 0.03);
}

/* --- Выпадающее меню (СКРЫТО ПО УМОЛЧАНИЮ) --- */
.comm__ctrl-menu {
    display: none !important; /* Скрыто по умолчанию */
    position: absolute;
    right: 0;
    top: 100%;
    background: #0a120a;
    border: 1px solid #1a3a1a;
    border-radius: 6px;
    padding: 6px 0;
    min-width: 200px;
    z-index: 1000;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    list-style: none;
    margin: 4px 0 0;
}

/* --- Меню открыто (показывается) --- */
.comm__ctrl-menu.open {
    display: block !important;
}

/* --- Элементы меню --- */
.comm__ctrl-menu li {
    display: flex !important;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.7rem;
    color: #337733;
    cursor: pointer;
    transition: all 0.3s;
    border-bottom: 1px solid rgba(51, 255, 51, 0.02);
}

.comm__ctrl-menu li:last-child {
    border-bottom: none;
}

.comm__ctrl-menu li:hover {
    color: #33ff33;
    background: rgba(51, 255, 51, 0.03);
}

.comm__ctrl-menu li .fal {
    font-size: 0.7rem;
    width: 18px;
    flex-shrink: 0;
}

.comm__ctrl-menu li a {
    color: #337733;
    text-decoration: none;
    transition: all 0.3s;
    flex: 1;
}

.comm__ctrl-menu li a:hover {
    color: #33ff33;
}

/* --- Для IP-адреса --- */
.comm__ctrl-menu li .fa-server {
    color: #33aa33;
}

.comm__ctrl-menu li .fa-server a {
    color: #33aa33;
}

.comm__ctrl-menu li .fa-server a:hover {
    color: #33ff33;
}

/* ============================================================
   АДАПТИВ ДЛЯ МЕНЮ
   ============================================================ */
@media (max-width: 768px) {
    .comm__ctrl-menu {
        min-width: 170px;
        right: -10px;
    }

    .comm__ctrl-menu li {
        font-size: 0.6rem;
        padding: 6px 12px;
    }

    .comm__ctrl-menu li .fal {
        font-size: 0.6rem;
        width: 16px;
    }
}

@media (max-width: 480px) {
    .comm__ctrl {
        margin-left: 0;
        text-align: center;
        width: 100%;
    }

    .comm__ctrl-menu {
        right: 0;
        left: 0;
        min-width: auto;
        position: fixed;
        top: auto;
        bottom: 0;
        width: 100%;
        border-radius: 12px 12px 0 0;
        margin: 0;
        padding: 10px 0;
        max-height: 60vh;
        overflow-y: auto;
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
    }

    .comm__ctrl-menu li {
        font-size: 0.6rem;
        padding: 10px 16px;
        justify-content: center;
    }
}

/* ============================================================
   АВАТАР С БУКВОЙ (ЕСЛИ НЕТ КАРТИНКИ)
   ============================================================ */

/* --- Блок аватара --- */
.comm__img {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #1a3a1a;
    background: #0a120a;
    transition: border-color 0.3s;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.comm:hover .comm__img {
    border-color: #33ff33;
}

/* --- Картинка аватара --- */
.comm__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --- Буква-заглушка (если нет картинки) --- */
.comm__img .avatar-letter {
    display: none;
    font-family: 'Press Start 2P', monospace;
    font-size: 1.2rem;
    color: #33ff33;
    text-transform: uppercase;
    text-shadow: 0 0 20px rgba(51, 255, 51, 0.1);
    user-select: none;
}

/* --- Если картинка не загрузилась или её нет --- */
.comm__img img:not([src]), 
.comm__img img[src=""], 
.comm__img img[src*="noavatar"],
.comm__img img.error {
    display: none;
}

.comm__img img:not([src]) + .avatar-letter,
.comm__img img[src=""] + .avatar-letter,
.comm__img img[src*="noavatar"] + .avatar-letter,
.comm__img img.error + .avatar-letter {
    display: block !important;
}

/* --- Анимация при появлении буквы --- */
.comm__img .avatar-letter {
    animation: avatarFadeIn 0.4s ease;
}

@keyframes avatarFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* ============================================================
   АДАПТИВ ДЛЯ АВАТАРА
   ============================================================ */
@media (max-width: 768px) {
    .comm__img {
        width: 36px;
        height: 36px;
    }
    
    .comm__img .avatar-letter {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .comm__img {
        width: 30px;
        height: 30px;
    }
    
    .comm__img .avatar-letter {
        font-size: 0.8rem;
    }
}