.confessions-container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 44px 28px 80px;
    color: #d3d3d3;
    font-family: "Courier New", monospace;
    position: relative;
}

.confessions-container::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 75% 8%, rgba(180, 0, 0, .22), transparent 28%),
        radial-gradient(circle at 50% 45%, rgba(120, 0, 0, .08), transparent 40%),
        linear-gradient(rgba(255, 0, 0, .025) 1px, transparent 1px);
    background-size: auto, auto, 100% 4px;
    z-index: -1;
}

.confessions-container::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle, transparent 45%, rgba(0, 0, 0, .75) 100%);
    z-index: -1;
}

/* HEADER */

.conf-header {
    display: grid;
    grid-template-columns: 1fr 420px;
    min-height: 240px;
    margin-bottom: 34px;
    border: 1px solid rgba(255, 0, 0, .35);
    background:
        linear-gradient(90deg, rgba(30,0,0,.55), rgba(0,0,0,.95) 58%, rgba(60,0,0,.18)),
        #050505;
    overflow: hidden;
    position: relative;
}

.conf-header-left {
    padding: 34px 28px;
    position: relative;
    z-index: 2;
}

.conf-header h1 {
    margin: 0;
    font-size: 64px;
    line-height: .95;
    color: #e7ded7;
    letter-spacing: 8px;
    font-weight: 900;
    text-shadow:
        0 0 18px rgba(255, 0, 0, .18),
        2px 2px 0 #320000;
}

.subtitle {
    margin-top: 22px;
    color: #8d8580;
    letter-spacing: 4px;
    font-size: 26px;
}

.conf-header-right {
    position: relative;
    height: 100%;
    min-height: 240px;
    overflow: hidden;
}

.conf-header-right img {
    width: 130%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* затемнение слева, чтобы картинка красиво входила в текст */
.conf-header-right::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, #050505 0%, rgba(5,5,5,.72) 18%, transparent 48%),
        linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.4));
    z-index: 1;
    pointer-events: none;
}

/* INFO */

.conf-info {
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: 150px;
    margin: 30px 0 34px;
    border: 1px solid rgba(255, 0, 0, .45);
    background:
        linear-gradient(90deg, rgba(120,0,0,.12), transparent 60%),
        rgba(5, 5, 5, .72);
    padding: 18px;
    box-shadow:
        inset 0 0 35px rgba(255,0,0,.08),
        0 0 20px rgba(255,0,0,.08);
}

.conf-info-img {
    width: 128px;
    height: 128px;
    flex-shrink: 0;
    background: url("/static/img/confessions/card.png") center/cover no-repeat;
    border: 1px solid rgba(255,0,0,.35);
    box-shadow: 0 0 18px rgba(255,0,0,.2);
}

.conf-info-text {
    font-size: 15px;
    line-height: 1.45;
    color: #bdb6ae;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.conf-info-text p {
    margin: 0 0 12px;
}

.conf-info-text .accent {
    color: #ff1b1b;
    text-shadow: 0 0 10px rgba(255,0,0,.45);
}

/* RULES */

.conf-rules {
    margin-bottom: 28px;
    border-left: 2px solid #8b0000;
    padding-left: 16px;
}

.conf-rules h3 {
    margin: 0 0 8px;
    color: #ff2525;
    font-size: 18px;
    letter-spacing: 1px;
}

.conf-rules ul {
    margin: 0;
    padding-left: 18px;
    color: #c5c5c5;
    font-size: 14px;
    line-height: 1.6;
}

/* FORM */

.conf-form {
    border: 1px solid rgba(255,0,0,.42);
    padding: 16px;
    background: rgba(4,4,4,.72);
    box-shadow: inset 0 0 35px rgba(255,0,0,.06);
}

.conf-form > label {
    display: block;
    margin-bottom: 10px;
    color: #ff2525;
    font-size: 16px;
    letter-spacing: 1px;
}

.conf-form textarea {
    width: 100%;
    height: 150px;
    background:
        radial-gradient(circle at 90% 65%, rgba(120,0,0,.14), transparent 22%),
        #080808;
    border: 1px solid rgba(255,0,0,.38);
    color: #d7d7d7;
    padding: 16px;
    resize: vertical;
    outline: none;
    font-family: "Courier New", monospace;
    font-size: 14px;
    box-sizing: border-box;
}

.conf-form textarea:focus {
    border-color: #ff2525;
    box-shadow: 0 0 18px rgba(255,0,0,.18);
}

.conf-form textarea::placeholder {
    color: #5e5e5e;
}

.conf-form-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 14px;
}

.anon {
    color: #aaa;
    font-size: 14px;
}

.anon input {
    accent-color: #b00000;
}

.conf-form button {
    background: linear-gradient(90deg, rgba(60,0,0,.2), rgba(140,0,0,.16));
    border: 1px solid #ff1010;
    color: #ff2525;
    padding: 13px 28px;
    cursor: pointer;
    font-family: "Courier New", monospace;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: .18s;
}

.conf-form button:hover {
    color: #fff;
    background: #b00000;
    box-shadow: 0 0 18px rgba(255,0,0,.45);
}

/* LIST */

.conf-list {
    margin-top: 28px;
}

.conf-list-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 12px;
}

.conf-list-header h2 {
    margin: 0;
    color: #ddd;
    font-size: 28px;
    letter-spacing: 1px;
    text-shadow: 2px 2px 0 #270000;
}

.conf-list-header a {
    color: #ff2525;
    text-decoration: none;
    font-size: 13px;
}

.conf-card {
    display: grid;
    grid-template-columns: 72px 1fr 120px;
    min-height: 62px;
    border: 1px solid rgba(255,0,0,.32);
    background:
        linear-gradient(90deg, rgba(90,0,0,.12), transparent),
        rgba(6,6,6,.78);
    margin-top: 8px;
    transition: .15s;
}

.conf-card:hover {
    border-color: rgba(255,0,0,.75);
    box-shadow: 0 0 18px rgba(255,0,0,.12);
    transform: translateX(2px);
}

.votes {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    border-right: 1px solid rgba(255,0,0,.28);
    color: #d9d9d9;
    font-size: 14px;
}

.up,
.down {
    line-height: 1;
    color: #ff2525;
}

.conf-text {
    padding: 16px;
    color: #cfcfcf;
    font-size: 18px;
    line-height: 1.55;
    overflow: hidden;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.conf-card .conf-text {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.conf-meta {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    gap: 6px;
    padding: 12px;
    font-size: 12px;
    color: #777;
}

.conf-meta span:last-child {
    color: #ff2525;
}

/* MOBILE */

@media (max-width: 760px) {
    .conf-header {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .conf-header-left {
        padding: 28px 18px;
    }

    .conf-header h1 {
        font-size: 38px;
        letter-spacing: 4px;
    }

    .conf-header-right {
        min-height: 180px;
    }
}

.votes {
    width: 64px;
    display: grid;
    grid-template-rows: 20px 20px 20px;
    align-content: center;
    justify-items: center;
    gap: 2px;
    border-right: 1px solid rgba(255,0,0,.35);
    background:
        linear-gradient(180deg, rgba(120,0,0,.18), transparent),
        rgba(0,0,0,.35);
}

.vote-btn {
    width: 26px;
    height: 20px;
    border: 1px solid rgba(255,0,0,.35);
    background: transparent;
    color: #ff1b1b;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    font-family: "Courier New", monospace;
    transition: .15s;
}

.vote-btn:hover {
    background: #b00000;
    color: #fff;
    box-shadow: 0 0 10px rgba(255,0,0,.45);
}

.vote-score {
    color: #ff2a2a;
    font-size: 13px;
    line-height: 20px;
    text-shadow: 0 0 8px rgba(255,0,0,.45);
}

.conf-card {
    display: grid;
    grid-template-columns: 64px 1fr 110px;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: #aaa;
    font-size: 14px;
    user-select: none;
}

/* скрываем стандартный чекбокс */
.checkbox input {
    display: none;
}

/* кастомная коробка */
.checkmark {
    width: 16px;
    height: 16px;
    border: 1px solid rgba(255,0,0,.6);
    background: rgba(10,10,10,.8);
    position: relative;
    transition: .15s;
}

/* эффект при наведении */
.checkbox:hover .checkmark {
    border-color: #ff2525;
    box-shadow: 0 0 6px rgba(255,0,0,.4);
}

/* галочка */
.checkmark::after {
    content: "✕";
    position: absolute;
    width: 15px;
    height: 15px;
    opacity: 0;
    transition: .15s;
    font-size: 12px;
    color: #ff2525;
    top: -2px;
    left: 2px;
}

/* когда включено */
.checkbox input:checked + .checkmark::after {
    opacity: 1;
}

/* активное состояние */
.checkbox input:checked + .checkmark {
    background: rgba(80,0,0,.25);
    border-color: #ff2525;
}

.checkmark.pulse {
    animation: checkboxPulse .35s ease;
}

@keyframes checkboxPulse {
    0% {
        box-shadow: 0 0 0 rgba(255,0,0,0);
        transform: scale(1);
    }
    45% {
        box-shadow: 0 0 16px rgba(255,0,0,.65);
        transform: scale(1.18);
    }
    100% {
        box-shadow: 0 0 0 rgba(255,0,0,0);
        transform: scale(1);
    }
}

.conf-form button.sending {
    pointer-events: none;
    color: #fff;
    background: #8b0000;
    box-shadow: 0 0 22px rgba(255,0,0,.7);
    animation: sendPulse .7s infinite alternate;
}

@keyframes sendPulse {
    from {
        filter: brightness(1);
    }
    to {
        filter: brightness(1.45);
    }
}

.vote-btn.active {
    background: #8b0000;
    color: #fff;
    border-color: #ff2525;
    box-shadow: 0 0 12px rgba(255,0,0,.55);
}

.vote-down.active {
    background: #2a0000;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,0,0,.22);
}

.page-btn {
    color: #ff2525;
    text-decoration: none;
    border: 1px solid rgba(255,0,0,.45);
    padding: 9px 16px;
    font-size: 13px;
    letter-spacing: 1px;
    background: rgba(10,0,0,.35);
    transition: .15s;
}

.page-btn:hover {
    background: #8b0000;
    color: #fff;
    box-shadow: 0 0 14px rgba(255,0,0,.4);
}

.page-current {
    color: #888;
    font-size: 13px;
}

.conf-sort {
    display: flex;
    gap: 10px;
    margin: 24px 0 18px;
}

.conf-sort a {
    color: #8f8f8f;
    text-decoration: none;
    border: 1px solid rgba(255,0,0,.25);
    padding: 8px 14px;
    font-size: 13px;
    background: rgba(10,0,0,.25);
    transition: .15s;
}

.conf-sort a:hover,
.conf-sort a.active {
    color: #fff;
    border-color: #ff2525;
    background: rgba(130,0,0,.55);
    box-shadow: 0 0 12px rgba(255,0,0,.28);
}

.conf-link {
    text-decoration: none;
    display: block;
}

.conf-link:hover {
    color: #fff;
}

.conf-detail-header {
    margin-bottom: 24px;
}

.conf-detail-header h1 {
    margin: 18px 0 0;
    font-size: 42px;
    color: #e7ded7;
    letter-spacing: 4px;
    text-shadow: 2px 2px 0 #320000;
}

.back-link {
    color: #ff2525;
    text-decoration: none;
    font-size: 13px;
}

.back-link:hover {
    color: #fff;
}

.conf-detail-card {
    display: grid;
    grid-template-columns: 72px 1fr;
    border: 1px solid rgba(255,0,0,.42);
    background:
        linear-gradient(90deg, rgba(90,0,0,.15), transparent),
        rgba(6,6,6,.82);
    box-shadow: inset 0 0 35px rgba(255,0,0,.06);
}

.conf-detail-content {
    padding: 24px;
    overflow: hidden;
}

.conf-detail-text {
    color: #d5d5d5;
    font-size: 16px;
    line-height: 1.75;

    white-space: pre-wrap;

    overflow-wrap: anywhere;
    word-break: break-word;

    max-width: 100%;
}

.conf-detail-card {
    max-width: 900px;
}

.conf-detail-text {
    padding-right: 10px;
}

.conf-detail-meta {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 28px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,0,0,.22);
    color: #777;
    font-size: 13px;
}

