:root { color-scheme: dark; font-family: "Segoe UI", Tahoma, sans-serif; background: #0d0d11; color: #f4f2f7; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; overflow-x: hidden; background: radial-gradient(circle at 14% 0%,rgba(255,0,80,.1),transparent 28%),#0d0d11; }
button,input,textarea { font: inherit; }
button,a { -webkit-tap-highlight-color: transparent; }
.forum-header { position: sticky; top: 0; z-index: 10; min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 10px max(20px,calc((100vw - 1240px)/2)); background: rgba(13,13,17,.92); border-bottom: 1px solid #2b2a31; backdrop-filter: blur(14px); }
.brand { color: #fff; font-size: 17px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; min-width: 0; }
.viewer { color: #aaa5b0; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.back-button { padding: 9px 13px; color: #eee; border: 1px solid #3b3942; border-radius: 9px; text-decoration: none; font-size: 13px; background: #1b1a20; }
.back-button:hover { border-color: #ff4c83; }
.page-shell { width: min(1240px,calc(100% - 32px)); margin: 30px auto 60px; }
.hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 18px; padding: 24px 26px; border: 1px solid #34313b; border-radius: 18px; background: linear-gradient(135deg,#1f1720,#17171d 65%); box-shadow: 0 15px 40px rgba(0,0,0,.23); }
.hero > div { min-width: 0; }
.hero h1 { margin: 4px 0 8px; font-size: clamp(25px,4vw,38px); }
.hero p { max-width: 720px; margin: 0; color: #b6b0bb; line-height: 1.65; overflow-wrap: anywhere; }
.hero .eyebrow { color: #ff5d90; font-size: 11px; font-weight: 900; letter-spacing: .18em; }
.hero-compose-action { display: grid; justify-items: stretch; gap: 7px; flex: 0 0 auto; text-align: center; }
.hero-compose-action small { color: #8f8995; font-size: 11px; }
.primary-button { border: 0; border-radius: 10px; padding: 11px 17px; color: #fff; background: linear-gradient(135deg,#ff0050,#c90048); font-weight: 750; cursor: pointer; box-shadow: 0 7px 18px rgba(255,0,80,.18); white-space: nowrap; }
.primary-button:hover { filter: brightness(1.12); }
.primary-button:disabled { opacity: .55; cursor: wait; }
.notice { margin-bottom: 18px; padding: 11px 14px; color: #e7cf83; background: rgba(90,65,0,.2); border: 1px solid #5d4b11; border-radius: 10px; font-size: 13px; overflow-wrap: anywhere; }
.composer { margin-bottom: 18px; padding: 20px; border: 1px solid #3d3945; border-radius: 16px; background: #17171d; }
.section-title-row { display: flex; justify-content: space-between; gap: 15px; margin-bottom: 15px; }
.section-title-row h2 { margin: 0 0 4px; font-size: 18px; }
.section-title-row p { margin: 0; color: #96909d; font-size: 13px; }
.icon-button { width: 34px; height: 34px; border: 1px solid #3d3945; border-radius: 9px; color: #ddd; background: #202027; font-size: 22px; cursor: pointer; }
form label { display: block; margin: 13px 0 7px; color: #c8c3cd; font-size: 13px; font-weight: 700; }
input,textarea { width: 100%; padding: 12px 13px; color: #fff; background: #0f0f13; border: 1px solid #3c3943; border-radius: 9px; outline: none; }
input:focus,textarea:focus { border-color: #ff3978; box-shadow: 0 0 0 3px rgba(255,0,80,.1); }
textarea { min-height: 132px; resize: vertical; line-height: 1.55; }
.form-footer { display: flex; justify-content: flex-end; align-items: center; gap: 12px; margin-top: 13px; }
.form-footer span { margin-right: auto; color: #ff9ab9; font-size: 12px; }
.forum-grid { display: grid; grid-template-columns: minmax(320px,420px) minmax(0,1fr); gap: 18px; align-items: start; }
.topic-panel,.discussion-panel { border: 1px solid #302e36; border-radius: 16px; background: #15151a; overflow: hidden; }
.panel-heading { min-height: 70px; display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid #2d2b33; }
.panel-heading h2 { margin: 0 0 3px; font-size: 17px; }
.panel-heading span { color: #8f8995; font-size: 12px; }
.refresh-button { border: 1px solid #3a3740; border-radius: 8px; padding: 7px 10px; color: #bcb7c2; background: #1f1e24; cursor: pointer; }
.topic-list { max-height: 680px; overflow-y: auto; padding: 8px; }
.topic-card { width: 100%; max-width: 100%; min-width: 0; margin: 0 0 7px; padding: 13px; overflow: hidden; border: 1px solid transparent; border-radius: 11px; color: inherit; background: transparent; text-align: left; cursor: pointer; }
.topic-card:hover { background: #1e1d24; }
.topic-card.active { border-color: #9f3158; background: linear-gradient(135deg,rgba(255,0,80,.12),#211c23); }
.topic-card h3 { margin: 0 0 7px; font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.topic-card p { display: -webkit-box; margin: 0 0 9px; color: #98929e; font-size: 12px; line-height: 1.5; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.topic-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 7px 11px; color: #797480; font-size: 11px; }
.author-chip { color: #e3a7ba; }
.discussion-panel { min-height: 480px; }
.empty-state { display: grid; place-items: center; align-content: center; min-height: 480px; padding: 30px; text-align: center; }
.empty-icon { font-size: 42px; }
.empty-state h2 { margin: 12px 0 5px; font-size: 19px; }
.empty-state p { margin: 0; color: #8f8995; }
.detail-head { padding: 22px; border-bottom: 1px solid #302e36; }
.detail-head h1 { margin: 6px 0 10px; font-size: clamp(21px,3vw,29px); line-height: 1.35; overflow-wrap: anywhere; }
.detail-body { margin: 18px 0; color: #d6d1da; line-height: 1.75; white-space: pre-wrap; overflow-wrap: anywhere; }
.detail-actions { display: flex; align-items: center; gap: 9px; }
.like-button { padding: 8px 12px; border: 1px solid #45414b; border-radius: 999px; color: #d6d1da; background: #202027; cursor: pointer; }
.like-button.liked { color: #ff94b6; border-color: #a52e58; background: rgba(255,0,80,.13); }
.danger-button { margin-left: auto; padding: 8px 12px; border: 1px solid #71333d; border-radius: 999px; color: #ff9eaa; background: rgba(130,25,42,.15); cursor: pointer; }
.danger-button:hover { color: #fff; border-color: #c8485c; background: rgba(180,35,58,.28); }
.danger-button:disabled { opacity: .55; cursor: wait; }
.comments-section { padding: 19px 22px 24px; }
.comments-section h2 { margin: 0 0 13px; font-size: 16px; }
.comment-form { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: 9px; margin-bottom: 18px; }
.comment-form textarea { min-height: 72px; }
.comment-list { display: grid; gap: 10px; }
.comment { padding: 13px 14px; border: 1px solid #302e36; border-radius: 11px; background: #1b1a20; }
.comment-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; color: #817b87; font-size: 11px; }
.comment-author { color: #dea2b5; font-weight: 700; }
.comment-body { margin: 0 0 10px; color: #d4ced8; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.comment .like-button { padding: 5px 9px; font-size: 11px; }
.loading,.list-empty { padding: 35px 15px; color: #918b97; text-align: center; }
.toast { position: fixed; right: 22px; bottom: 22px; z-index: 20; max-width: min(360px,calc(100vw - 44px)); padding: 11px 15px; border: 1px solid #514b58; border-radius: 10px; color: #fff; background: #25232b; box-shadow: 0 12px 35px rgba(0,0,0,.4); }
.toast.error { color: #ffc1c1; border-color: #7a3030; background: #351a1e; }
@media (max-width: 850px) { .forum-grid { grid-template-columns: 1fr; } .topic-list { max-height: 420px; } }
@media (max-width: 620px) { .forum-header { align-items: center; flex-wrap: wrap; padding: 10px 14px; } .brand { font-size: 15px; } .header-actions { width: 100%; align-items: center; justify-content: space-between; flex-direction: row; gap: 8px; } .viewer { max-width: 150px; } .back-button { padding: 7px 9px; font-size: 12px; } .page-shell { width: calc(100% - 20px); margin-top: 16px; } .hero { align-items: stretch; flex-direction: column; padding: 19px; } .hero h1 { overflow-wrap: anywhere; } .hero-compose-action,.hero .primary-button { width: 100%; } .comment-form { grid-template-columns: 1fr; } .comment-form .primary-button { width: 100%; } }
