.forum-hero{display:flex;justify-content:space-between;gap:20px;align-items:center;padding:28px;border-radius:24px;background:linear-gradient(135deg,rgba(43,87,179,.95),rgba(23,53,122,.92));border:1px solid rgba(127,179,255,.4);margin-bottom:20px}.forum-search{display:flex;gap:10px;min-width:360px}.forum-tabs,.forum-post-meta,.forum-post-title-row,.forum-actions{display:flex;flex-wrap:wrap;gap:10px}.forum-tabs{margin:18px 0}.forum-tabs a{padding:10px 14px;border-radius:999px;background:rgba(79,140,255,.14);border:1px solid rgba(127,179,255,.3);color:#fff!important;font-weight:800}.forum-tabs a.active,.forum-tabs a:hover{background:rgba(79,140,255,.35)}.forum-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:22px}.forum-feed,.forum-sidebar{display:grid;gap:16px;align-content:start}.forum-post-card{display:grid;grid-template-columns:64px minmax(0,1fr);gap:16px;padding:20px;border-radius:22px;background:linear-gradient(180deg,rgba(43,87,179,.88),rgba(31,65,145,.88));border:1px solid rgba(127,179,255,.35)}.forum-post-avatar img{width:64px;height:64px;border-radius:18px;object-fit:cover}.forum-post-card h2 a{color:#fff!important}.forum-video-fields{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:18px 0}.forum-uploaded-video video{width:100%;max-height:680px;margin-top:18px;border-radius:18px;background:#000}.forum-video-embed{position:relative;width:100%;padding-top:56.25%;margin-top:18px;border-radius:18px;overflow:hidden;background:#000}.forum-video-embed iframe{position:absolute;inset:0;width:100%;height:100%;border:0}.forum-comments{display:grid;gap:14px;margin:16px 0}.forum-comment{display:grid;grid-template-columns:52px minmax(0,1fr);gap:12px;padding:14px;border-radius:18px;background:rgba(79,140,255,.14);border:1px solid rgba(127,179,255,.25)}.forum-comment img{width:52px;height:52px;border-radius:16px;object-fit:cover}.forum-comment strong,.forum-comment small{display:block}@media(max-width:900px){.forum-hero{display:block}.forum-search{min-width:0;margin-top:14px;display:grid}.forum-layout,.forum-video-fields{grid-template-columns:1fr}.forum-post-card{grid-template-columns:1fr}.forum-post-avatar{display:none}}

.forum-rules-list{
    display:grid;
    gap:10px;
    margin:14px 0 0;
    padding-left:20px;
}

.forum-rules-list li{
    color:#dbeafe;
    line-height:1.5;
}

.forum-rules-note{
    margin-top:14px;
    padding-top:12px;
    border-top:1px solid rgba(127,179,255,.25);
    font-weight:700;
}

.forum-picture-field{
    margin:20px 0;
}

.forum-picture-picker{
    display:flex;
    align-items:center;
    gap:14px;
    padding:18px;
    border:2px dashed rgba(127,179,255,.55);
    border-radius:18px;
    background:rgba(79,140,255,.1);
    cursor:pointer;
    transition:border-color .2s ease,background .2s ease,transform .2s ease;
}

.forum-picture-picker:hover,
.forum-picture-picker:focus-within{
    border-color:#7fb3ff;
    background:rgba(79,140,255,.2);
    transform:translateY(-1px);
}

.forum-picture-picker-icon{
    font-size:34px;
    line-height:1;
}

.forum-picture-picker strong,
.forum-picture-picker small{
    display:block;
}

.forum-picture-picker small{
    margin-top:4px;
    color:#dbeafe;
}

.forum-hidden-file{
    position:absolute;
    width:1px;
    height:1px;
    padding:0;
    margin:-1px;
    overflow:hidden;
    clip:rect(0,0,0,0);
    white-space:nowrap;
    border:0;
}

.forum-picture-preview{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(130px,1fr));
    gap:12px;
    margin-top:14px;
}

.forum-picture-preview:empty{
    display:none;
}

.forum-picture-preview-item{
    min-width:0;
    padding:8px;
    border-radius:14px;
    background:rgba(4,16,48,.55);
    border:1px solid rgba(127,179,255,.3);
}

.forum-picture-preview-item img{
    display:block;
    width:100%;
    aspect-ratio:1/1;
    object-fit:cover;
    border-radius:10px;
}

.forum-picture-preview-item small{
    display:block;
    margin-top:7px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.forum-image-gallery{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px;
    margin-top:20px;
}

.forum-gallery-item{
    display:block;
    min-width:0;
    padding:0;
    border:1px solid rgba(127,179,255,.4);
    border-radius:18px;
    overflow:hidden;
    background:#06122e;
    cursor:zoom-in;
}

.forum-gallery-item img{
    display:block;
    width:100%;
    height:clamp(210px,32vw,430px);
    object-fit:cover;
    transition:transform .2s ease,filter .2s ease;
}

.forum-gallery-item:hover img,
.forum-gallery-item:focus-visible img{
    transform:scale(1.02);
    filter:brightness(1.08);
}

.forum-image-gallery.single-image{
    grid-template-columns:minmax(0,1fr);
}

.forum-image-gallery.single-image .forum-gallery-item img{
    height:auto;
    max-height:720px;
    object-fit:contain;
}

.forum-image-lightbox[hidden]{
    display:none;
}

.forum-image-lightbox{
    position:fixed;
    z-index:9999;
    inset:0;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:64px 80px;
    background:rgba(0,5,20,.94);
    backdrop-filter:blur(8px);
}

.forum-image-lightbox img{
    display:block;
    max-width:min(1200px,100%);
    max-height:calc(100vh - 150px);
    object-fit:contain;
    border-radius:16px;
    box-shadow:0 24px 80px rgba(0,0,0,.65);
}

.forum-lightbox-close,
.forum-lightbox-nav{
    position:absolute;
    z-index:2;
    display:grid;
    place-items:center;
    width:48px;
    height:48px;
    padding:0;
    border:1px solid rgba(255,255,255,.35);
    border-radius:50%;
    color:#fff;
    background:rgba(18,42,94,.86);
    cursor:pointer;
    font-size:34px;
    line-height:1;
}

.forum-lightbox-close{
    top:18px;
    right:22px;
}

.forum-lightbox-nav{
    top:50%;
    transform:translateY(-50%);
}

.forum-lightbox-nav.previous{left:20px}
.forum-lightbox-nav.next{right:20px}

.forum-lightbox-caption{
    position:absolute;
    left:20px;
    right:20px;
    bottom:16px;
    margin:0;
    color:#fff;
    text-align:center;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}

body.forum-lightbox-open{
    overflow:hidden;
}

@media(max-width:700px){
    .forum-image-gallery{grid-template-columns:1fr}
    .forum-gallery-item img{height:auto;max-height:520px;object-fit:contain}
    .forum-image-lightbox{padding:70px 16px}
    .forum-lightbox-nav{top:auto;bottom:56px}
    .forum-lightbox-nav.previous{left:18px}
    .forum-lightbox-nav.next{right:18px}
}
