@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,100..800;1,100..800&display=swap');

html {
    scrollbar-color: #8181816e #00000000;
    scrollbar-width: thin;
}
body {
    /*font-family: 'Inter var', sans-serif;*/
    font-size: 14px;
    margin: 0;
    padding: 0;
    background: #1E1E1E;
    color: #cfcfcf;
}
br {
    display: none;
}
a {
    color: #45a049;
    text-decoration: none;
}

/* ------------------- NAVBAR ------------------- */

header {
    background-color: #1E1E1E;
    color: #fff;
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}
header .container {
    margin: 0 auto;
    padding: 0 15px;
}
header nav ul {
    margin: 0;
    padding: 0;
}
.header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.header__logo {
    display: flex;
    align-items: center;
    width: 46px;
    height: 46px;
}
.header__logo a {
    text-decoration: none;
}
.header__logo img, .header__logo svg {
    width: 100%;
    height: auto;
    transition: all 0.3s ease;
}
.header__logo svg:hover {
    box-shadow: 0 0 30px #9251E1;
    border-radius: 50%;
    transition: all 0.3s ease;
}

/* ======================================= */
/* Контейнер логотипа */
.header__logo {
    position: relative;
    height: 46px;
    display: inline-block;
}

.header__logo a {
    display: block;
    height: 46px;
}

.header__logo svg {
    height: 46px;
    width: auto;
    display: block;
    position: relative;
    z-index: 10;
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.3));
}

/* Эффекты при наведении на логотип */
.header__logo:hover svg {
    transform: scale(1.05);
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.6));
}

/* Контейнер для метеоритов */
.header__logo .meteor-shower {
    position: absolute;
    top: -25px;
    left: -25px;
    width: calc(100% + 50px);
    height: calc(100% + 50px);
    pointer-events: none;
    overflow: hidden;
    z-index: 5;
}

/* Базовый стиль метеорита */
.header__logo .meteor {
    position: absolute;
    width: 2px;
    height: 2px;
    background: linear-gradient(45deg, #ffaa00, #ff6b00, #ff3300);
    border-radius: 50%;
    box-shadow: 0 0 5px #ffaa00, 0 0 10px #ff6b00;
    opacity: 0;
    transform: rotate(45deg);
}

/* Хвост метеорита */
.header__logo .meteor::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 1px;
    background: linear-gradient(90deg, #ffaa00, #ff6b00, transparent);
    border-radius: 50%;
}

/* Бесконечная анимация */
@keyframes meteorFall {
    0% {
        opacity: 1;
        transform: translate(0, 0) rotate(45deg);
    }
    100% {
        opacity: 0;
        transform: translate(120px, 120px) rotate(45deg);
    }
}

/* Запускаем анимацию при наведении */
.header__logo:hover .meteor {
    animation: meteorFall 1.2s linear infinite;
}

/* Индивидуальные настройки для каждого метеорита */
.header__logo .meteor:nth-child(1) {
    top: -20%;
    left: -20%;
    animation-delay: 0s;
    width: 3px;
    height: 3px;
}
.header__logo .meteor:nth-child(1)::before {
    width: 35px;
}

.header__logo .meteor:nth-child(2) {
    top: -30%;
    left: 10%;
    animation-delay: 0.2s;
    width: 2px;
    height: 2px;
}
.header__logo .meteor:nth-child(2)::before {
    width: 25px;
}

.header__logo .meteor:nth-child(3) {
    top: -15%;
    left: 40%;
    animation-delay: 0.4s;
    width: 2.5px;
    height: 2.5px;
}
.header__logo .meteor:nth-child(3)::before {
    width: 30px;
}

.header__logo .meteor:nth-child(4) {
    top: -25%;
    left: 70%;
    animation-delay: 0.1s;
    width: 2px;
    height: 2px;
}
.header__logo .meteor:nth-child(4)::before {
    width: 22px;
}

.header__logo .meteor:nth-child(5) {
    top: -10%;
    left: 90%;
    animation-delay: 0.3s;
    width: 3px;
    height: 3px;
}
.header__logo .meteor:nth-child(5)::before {
    width: 32px;
}

.header__logo .meteor:nth-child(6) {
    top: -40%;
    left: -10%;
    animation-delay: 0.5s;
    width: 3.5px;
    height: 3.5px;
}
.header__logo .meteor:nth-child(6)::before {
    width: 40px;
}

.header__logo .meteor:nth-child(7) {
    top: -35%;
    left: 50%;
    animation-delay: 0.15s;
    width: 2px;
    height: 2px;
}
.header__logo .meteor:nth-child(7)::before {
    width: 24px;
}

.header__logo .meteor:nth-child(8) {
    top: -45%;
    left: 30%;
    animation-delay: 0.35s;
    width: 2.5px;
    height: 2.5px;
}
.header__logo .meteor:nth-child(8)::before {
    width: 28px;
}

.header__logo .meteor:nth-child(9) {
    top: -50%;
    left: 80%;
    animation-delay: 0.45s;
    width: 3px;
    height: 3px;
}
.header__logo .meteor:nth-child(9)::before {
    width: 35px;
}

.header__logo .meteor:nth-child(10) {
    top: -55%;
    left: 110%;
    animation-delay: 0.25s;
    width: 2px;
    height: 2px;
}
.header__logo .meteor:nth-child(10)::before {
    width: 26px;
}

/* Анимация для логотипа */
.header__logo:hover svg circle[fill="#FEFEFE"] {
    animation: logoPulse 1.5s ease infinite;
}

@keyframes logoPulse {
    0%, 100% {
        fill: #FEFEFE;
    }
    50% {
        fill: #fff5cc;
    }
}

/*.header__logo:hover svg path[stroke="#1E1E1E"] {*/
/*    animation: pathGlow 1.5s ease infinite;*/
/*}*/

/*@keyframes pathGlow {*/
/*    0%, 100% {*/
/*        stroke: #1E1E1E;*/
/*        stroke-width: 8;*/
/*    }*/
/*    50% {*/
/*        stroke: #ffaa00;*/
/*        stroke-width: 9;*/
/*    }*/
/*}*/

/* Эффект свечения */
.header__logo:hover::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,170,0,0.15) 0%, transparent 80%);
    pointer-events: none;
    z-index: 5;
    animation: glowExpand 1.5s ease infinite;
}

@keyframes glowExpand {
    0%, 100% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1.1);
    }
}
/* ======================================= */

.nav__list {
    display: flex;
    list-style: none;
    gap: 10px;
}
.nav__link {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}
.nav__link:hover {
    color: #32DD72;
}
.burger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 28px;
    height: 28px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    gap: 0;
}
.burger span {
    width: 28px;
    height: 1px;
    background-color: #fff;
    transition: all 0.3s;
}
.burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 6px);
}
.burger.active span:nth-child(2) {
    opacity: 0;
}
.burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -6px);
}
@media (max-width: 768px) {
    .burger {
        display: flex;
    }
    .nav {
        position: fixed;
        top: 62px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 62px);
        background-color: #1e1e1e;
        transition: left 0.3s;
        overflow-y: auto;
    }
    .nav.active {
        left: 0;
    }
    .nav__list {
        width: 100%;
        flex-direction: column;
        align-items: center;
        padding: 0;
    }
    .nav__link {
        display: block;
        text-align: center;
    }
}

main {
    margin-top: 100px;
}
/* ------------------- /NAVBAR ------------------- */

.container {
    max-width: 1024px;
    margin: 20px auto;
}
.form-group {
    margin-bottom: 15px;
}
.btn {
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
.btn:hover {
    background: #45a049;
}
.btn-danger {
    background: #f44336;
}
.btn-danger:hover {
    background: #da190b;
}
.alert {
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
}
.alert-success {
    background: #dff0d8;
    color: #3c763d;
}
.alert-error {
    background: #f2dede;
    color: #a94442;
}
.form-control {
    background-color: transparent;
    color: #999999;
}

/* ---------------------- index ---------------------- */
.search-container {
    margin: 40px auto;
}
.search-container form {
    display: flex;
    max-width: 720px;
    margin: 0 auto;
    gap: 10px;
}
.search-container form input {
    flex: 1;
    padding: 6px 10px;
    border: 1px solid #555;
    border-radius: 8px;
    background: #333;
    color: white;
    font-size: 14px;
}
.search-container form button {
    padding: 6px 16px;
    background: #32dd7280;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.boards-container {
    background: #232323;
    padding: 20px;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.boards-container h3 {
    padding: 8px;
}



.new-posts-indicator .badge {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75em;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-weight: bold;
    box-shadow: 0 0 6px rgba(255, 0, 0, 0.7);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7); }
    70% { box-shadow: 0 0 0 8px rgba(255, 0, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 0, 0, 0); }
}
/* Анимация появления индикатора */
@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}
.new-posts-indicator.show {
    display: inline-block !important;
    position: absolute;
    top: -4px;
    right: -6px;
    animation: fadeInScale 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}



.latest-posts-container {
    background: #232323;
    /*max-width: 720px;*/
    padding: 20px;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    margin: 0 auto;
    margin-bottom: 20px;
}
.latest-posts-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
}
.latest-posts-title {
    font-size: 16px;
    font-weight: bold;
}
.latest-posts-refresh {
    background: #353535;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}
.latest-posts-refresh:hover {
    background: #45a049;
}
.latest-post {
    background: #232323;
    padding: 12px;
    margin-bottom: 10px;
    border-left: 1px solid #4caf50a3;
    border-radius: 3px;
    transition: all 0.3s ease;
}
.latest-post:hover {
    background: #232323;
    transform: translateX(5px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.latest-post-header {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
    font-size: 13px;
    gap: 10px;
    flex-wrap: wrap;
}
.latest-post-info {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}
.latest-post-board {
    background: #e3f2fd;
    color: #1976d2;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: bold;
    font-size: 12px;
}
.latest-post-user {
    font-weight: bold;
}
.latest-post-tripcode {
    color: #800080;
    font-family: "JetBrains Mono", monospace;
    word-spacing: -5px;
    font-weight: bold;
}
.latest-post-id {
    color: #009688;
    font-family: "JetBrains Mono", monospace;
    word-spacing: -5px;
}
.latest-post-date {
    color: #a3a3a3;
    font-family: "JetBrains Mono", monospace;
    word-spacing: -5px;
}
.latest-post-content {
    margin-bottom: 8px;
    line-height: 1.5;
    font-size: 14px;
}
.latest-post-content p {
    margin-bottom: 2px;
}
.latest-post-images {
    display: flex;
    gap: 5px;
    margin-top: 8px;
}
.latest-post-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 3px;
    border: 1px solid #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}
.latest-post-image:hover {
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
}
.latest-post-more {
    color: #32DD72;
    text-decoration: none;
    font-size: 12px;
}
.latest-post-more:hover {
    text-decoration: underline;
}

.tags-contaner {
    /*max-width: 720px;*/
    background: #232323;
    padding: 20px;
    border-radius: 8px;
    margin: 20px auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.latest-news-container {
    /*max-width: 720px;*/
    background: #232323;
    padding: 20px;
    border-radius: 8px;
    margin: 20px auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.stats-container {
    background: #232323;
    /*max-width: 720px;*/
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    margin: 0 auto;
    margin-bottom: 20px;
    position: relative;
}
.stats-header {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.stats-refresh-btn {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}
.stats-refresh-btn:hover {
    background: rgba(255,255,255,0.3);
}
.stats-refresh-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.stats-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.stat-item {
    display: flex;
    max-width: 224px;
    background: rgb(255 255 255 / 2%);
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.stat-item:hover {
    transform: translateY(-2px);
    background: rgba(255,255,255,0.15);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.stat-label {
    font-size: 12px;
    opacity: 0.9;
}

.board-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(313px, 1fr));
    gap: 10px;
}
.board-card {
    display: flex;
    position: relative;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    background: #282828;
    padding: 12px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    gap: 6px;
}
.board-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.board-card h3 {
    margin: 0 0 10px 0;
}
.board-card-url a {
    color: #4CAF50;
    font-size: 14px;
}
.board-card-name {
    color: #cfcfcf !important;
}
.board-card a {
    color: #32DD72;
    text-decoration: none;
}
.board-card a:hover {
    color: #4CAF50;
}
.board-card small {
    font-size: 12px;
}
.post-link {
    color: #000080 !important;
    text-decoration: underline !important;
    font-weight: bold;
    background: #ffffcc;
    padding: 0 2px;
    border-radius: 2px;
}
.post-link:hover {
    background: #ffcc00 !important;
    color: #cc0000 !important;
}

.latest-post-like-container {
    display: flex;
    gap: 4px;
    font-size: 12px;
}
.latest-post-like-btn {
    background: none;
    border: 1px solid #535353;
    border-radius: 3px;
    padding: 2px 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 3px;
    transition: all 0.2s;
    font-size: 11px;
}
.latest-post-like-btn:hover {
    border: 1px solid #7d7d7d;
}
.latest-post-like-btn.active {
    border-color: #4CAF50;
    color: #4CAF50;
    font-weight: bold;
}
.latest-post-dislike-btn {
    background: none;
    border: 1px solid #535353;
    border-radius: 3px;
    padding: 2px 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 3px;
    transition: all 0.2s;
    font-size: 11px;
}
.latest-post-dislike-btn:hover {
    border: 1px solid #7d7d7d;
}
.latest-post-dislike-btn.active {
    border-color: #f44336;
    color: #f44336;
    font-weight: bold;
}
.latest-post-like-count {
    color: #4CAF50;
    font-weight: bold;
}
.latest-post-dislike-count {
    color: #f44336;
    font-weight: bold;
}

/* ---------------------- /index ---------------------- */

/* ---------------------- RULES ---------------------- */

.site-signup, .site-login, .site-error, .site-rules {
    background: #232323;
    padding: 20px;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* ---------------------- /RULES ---------------------- */

/* BOARD */

.thread {
    background: #232323;
    margin-bottom: 15px;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.thread-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.thread-title {
    flex: 1;
}
.thread a {
    color: #32DD72;
    text-decoration: none;
}
.thread-actions {
    display: flex;
    gap: 5px;
}
.thread-actions button {
    padding: 4px 8px;
    font-size: 11px;
    border: 1px solid #535353;
    border-radius: 3px;
    cursor: pointer;
}
.report-btn {
    background:rgb(255 68 68 / 40%);
    color: white;
}
.report-btn:hover {
    background: #cc0000;
}
.delete-btn {
    background: rgb(255 68 68 / 40%);
    color: white;
}
.delete-btn:hover {
    background: #da190b;
}
.tripcode {
    color: #800080;
    font-weight: bold;
}
.thread-image-container {
    display: inline-block;
    margin: 2px;
    border: 1px solid #ddd;
    border-radius: 3px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}
.thread-image-container:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
}
.thread-image-container img {
    display: block;
    max-width: 150px;
    max-height: 150px;
    transition: all 0.3s ease;
}
.thread-image-container:hover img {
    opacity: 0.9;
}
.thread-image-label {
    position: absolute;
    bottom: 2px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 11px;
    color: white;
    background: rgba(0,0,0,0.7);
    padding: 2px;
    display: none;
}
.thread-image-container:hover .thread-image-label {
    display: block;
}
.post-link {
    color: #000080 !important;
    text-decoration: underline !important;
    font-weight: bold;
    background: #ffffcc;
    padding: 0 2px;
    border-radius: 2px;
}
.post-link:hover {
    background: #ffcc00 !important;
    color: #cc0000 !important;
}
.reply-btn {
    background: transparent;
    color: white;
    border: none;
    padding: 4px 10px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
}
.reply-btn:hover {
    background: #45a049;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.like-container {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.like-btn {
    background: none;
    border: 1px solid #535353;
    border-radius: 4px;
    padding: 3px 8px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 3px;
    transition: all 0.2s;
}
.like-btn:hover {
    border: 1px solid #7d7d7d;
}
.like-btn.active {
    border-color: #4CAF50;
    color: #4CAF50;
    font-weight: bold;
}
.dislike-btn {
    background: none;
    border: 1px solid #535353;
    border-radius: 4px;
    padding: 3px 8px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 3px;
    transition: all 0.2s;
}
.dislike-btn:hover {
    border: 1px solid #7d7d7d;
}
.dislike-btn.active {
    border-color: #f44336;
    color: #f44336;
    font-weight: bold;
}
.like-count {
    font-size: 12px;
    color: #4CAF50;
    font-weight: bold;
}
.dislike-count {
    font-size: 12px;
    color: #f44336;
    font-weight: bold;
}

/* Стили для капчи в темной теме */
#quick-reply-captcha-wrapper {
    background: #2a2a2a !important;
    border: 1px solid #555 !important;
    border-radius: 4px !important;
    padding: 8px !important;
}
.captcha-input {
    background: #333 !important;
    color: white !important;
    border: 1px solid #555 !important;
    border-radius: 4px !important;
}

/* THREAD */

.post {
    margin: 15px 0;
    padding: 15px;
    background: #232323;
    border-left: 1px solid #4caf50a3;
    border-radius: 3px;
    position: relative;
}
.post-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
    flex-wrap: wrap;
}
.post-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}
.post-actions {
    display: flex;
    gap: 5px;
}
.post-link {
    color: #000080 !important;
    text-decoration: underline !important;
    font-weight: bold;
    cursor: pointer;
    background: #ffffcc;
    padding: 0 2px;
    border-radius: 2px;
    transition: all 0.2s ease;
}
.post-link:hover {
    background: #ffcc00 !important;
    color: #cc0000 !important;
    text-decoration: underline !important;
}
.post-actions button {
    padding: 2px 6px;
    font-size: 11px;
    border: 1px solid #535353;
    border-radius: 3px;
    cursor: pointer;
}
.reply-btn {
    background: transparent;
    color: white;
}
.reply-btn:hover {
    background: #0b7dda;
}
.report-btn {
    background: transparent;
    color: white;
}
.report-btn:hover {
    background: #cc0000;
}
.delete-btn {
    background: transparent;
    color: white;
}
.delete-btn:hover {
    background: #da190b;
}
.post-content {
    margin-bottom: 15px;
    line-height: 1.6;
}
.post-link {
    color: #000080;
    text-decoration: none;
}
.post-link:hover {
    text-decoration: underline;
}
.tripcode {
    color: #800080;
    font-weight: bold;
}
.reply-form {
    background: #232323;
    max-width: 640px;
    margin: 0px auto;
    padding: 0 14px 14px 14px;
    border: 1px dashed;
    border-radius: 5px;
}
.reply-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
    resize: vertical;
}
.reply-options {
    display: flex;
    gap: 10px;
    align-items: center;
}
.reply-options input[type="password"] {
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 12px;
}
.submit-btn {
    padding: 8px 16px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}
.submit-btn:hover {
    background: #45a049;
}

.post-like-container {
    display: flex;
    gap: 4px;
}
.post-like-btn {
    background: none;
    border: 1px solid #535353;
    border-radius: 4px;
    padding: 0px 8px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s;
}
.post-like-btn:hover {
    border: 1px solid #7d7d7d;
}
.post-like-btn.active {
    /*border-color: #4CAF50;*/
    /*background: #e8f5e9;*/
    color: #4CAF50;
    font-weight: bold;
}
.post-dislike-btn {
    background: none;
    border: 1px solid #535353;
    border-radius: 4px;
    padding: 0px 8px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s;
}
.post-dislike-btn:hover {
    border: 1px solid #7d7d7d;
}
.post-dislike-btn.active {
    /*border-color: #f44336;*/
    /*background: #ffebee;*/
    color: #f44336;
    font-weight: bold;
}
.post-like-count {
    font-size: 13px;
    color: #4CAF50;
    font-weight: bold;
}
.post-dislike-count {
    font-size: 13px;
    color: #f44336;
    font-weight: bold;
}

/* Стили для кнопки копирования ссылки */
.copy-link-btn {
    background: #00000000;
    color: white;
    border: 1px solid #535353;
    padding: 2px 6px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.copy-link-btn:hover {
    background: linear-gradient(135deg, #5568d3 0%, #653f8a 100%);
}
.copy-link-btn:active {
    transform: translateY(0);
}
.copy-icon {
    font-size: 16px;
    line-height: 1;
}
.copy-text {
    font-weight: 500;
}

/* Стили для спойлеров */
.spoiler {
    background-color: #000;
    color: #000;
    cursor: pointer;
    padding: 1px 3px;
    border-radius: 2px;
    font-weight: bold;
    transition: all 0.3s ease;
}
.spoiler.revealed {
    background-color: #444;
    color: #fff;
}
.spoiler:hover {
    opacity: 0.8;
    background-color: transparent;
    color: #f8f8f8;
}

/* Стили для темы Windows 95 */
.theme-win95 .copy-link-btn {
    background: #008080 !important;
    color: white !important;
    border: 2px solid #000 !important;
    border-top: 2px solid #fff !important;
    border-left: 2px solid #fff !important;
    border-radius: 0 !important;
    padding: 2px 8px !important;
    font-family: "MS Sans Serif", Geneva, sans-serif !important;
    font-size: 11px !important;
    box-shadow: none !important;
    height: 22px !important;
}
.theme-win95 .copy-link-btn:hover {
    background: #00a0a0 !important;
    transform: none !important;
}
.theme-win95 .copy-link-btn:active {
    background: #006060 !important;
    border: 2px solid #fff !important;
    border-bottom: 2px solid #000 !important;
    border-right: 2px solid #000 !important;
    padding: 3px 7px 1px 9px !important;
}
.theme-win95 .copy-icon {
    font-size: 14px !important;
}

/* Стили для секции опроса в форме */
.poll-section {
    margin: 10px 0 0;
    padding: 8px;
    border-radius: 6px;
    border: 1px dashed #efefef;
}
.poll-section:hover {
    border-color: #4CAF50;
    box-shadow: 0 0 15px rgba(76, 175, 80, 0.2);
}
.poll-option-row {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    align-items: center;
    transition: opacity 0.2s, transform 0.2s;
}
.poll-option-row.dragging {
    opacity: 0.5;
    transform: scale(1.05);
}
/* Стили для отображения опроса в посте */
.poll-container {
    margin: 20px 0;
    padding: 15px;
    background: #2a2a2a;
    border-radius: 6px;
    border-left: 1px solid #4caf50a3;
}
.poll-question {
    color: #4CAF50;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.poll-question::before {
    content: "📊";
    font-size: 20px;
}
.poll-options {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 10px;
}
.poll-vote-btn {
    width: 100%;
    text-align: left;
    padding: 6px 10px;
    background: #3a3a3a;
    border: 1px solid #555;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: unset;
    position: relative;
}
.poll-vote-btn:hover:not(:disabled) {
    background: #4a4a4a;
    transform: translateX(5px);
}
.poll-vote-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.poll-vote-btn::before {
    content: attr(data-letter);
    display: inline-block;
    width: 10px;
    height: 10px;
    background: #4CAF50;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}
.poll-option-result {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
}
.poll-option-label {
    display: flex;
    justify-content: space-between;
    color: #ccc;
    font-size: 14px;
    margin-bottom: 4px;
}
.poll-option-bar {
    background: #333;
    border-radius: 4px;
    overflow: hidden;
    height: 24px;
    position: relative;
}
.poll-option-bar-fill {
    height: 100%;
    background: #2196F3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 13px;
    transition: width 0.5s ease;
}
.poll-option-bar-fill.winner {
    background: #4CAF50;
}
.poll-total-votes {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #444;
    color: #888;
    font-size: 13px;
    text-align: right;
}
.poll-total-votes strong {
    /*color: #fff;*/
}
.poll-expired {
    color: #ff9800;
    font-style: italic;
    margin-top: 5px;
    font-size: 12px;
}

.theme-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 720px;
    margin: 0 auto;
    padding: 12px;
    gap: 4px;
}
.theme-btn {
    border: 0px;
    background: unset;
    padding: 0;
}
/* Стили для темы Win95 */
.theme-win95 .poll-section {
    background: #c0c0c0 !important;
    border: 2px solid #000 !important;
    border-top: 2px solid #fff !important;
    border-left: 2px solid #fff !important;
    border-radius: 0 !important;
    color: #000 !important;
}
.theme-win95 .poll-vote-btn {
    background: #c0c0c0 !important;
    border: 2px solid #000 !important;
    border-top: 2px solid #fff !important;
    border-left: 2px solid #fff !important;
    border-radius: 0 !important;
    color: #000 !important;
    font-family: "MS Sans Serif", Geneva, sans-serif !important;
    font-size: 12px !important;
    height: 26px !important;
}
.theme-win95 .poll-vote-btn:hover:not(:disabled) {
    background: #a0a0a0 !important;
    transform: none !important;
}
.theme-win95 .poll-question {
    color: #000080 !important;
    font-family: "MS Serif", Georgia, serif !important;
}
.theme-win95 .poll-option-bar {
    background: #a0a0a0 !important;
}
.theme-win95 .poll-option-bar-fill {
    background: #000080 !important;
    /*color: white !important;*/
    font-family: "MS Sans Serif", Geneva, sans-serif !important;
    font-size: 12px !important;
}

/* VIDEO */

.video-embed{
    position:relative;
    width:340px;
    max-width:100%;
    aspect-ratio:16/9;
    cursor:pointer;
    background:#000;
    border-radius:12px;
    overflow:hidden;
}

.video-thumb{
    width:100%;
    height:100%;
    background-size:cover;
    background-position:center;
    display:flex;
    align-items:center;
    justify-content:center;
}

.video-play{
    font-size:40px;
    background:#1e1e1e;
    color:white;
    padding:10px 20px;
    border-radius:50%;
}

.video-embed iframe{
    width:100%;
    height:100%;
    border:0;
}

/* MEDIA */

@media(max-width:496px) {
    .boards-container {
        padding: 14px;
    }
    .board-card {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 10px;
    }
    .thread-image-container img, .post img {
        max-width: 60px !important;
    }
}
