body {
  background: #0e1218 url("assets/background.png") center/cover no-repeat fixed;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 18% 16%, rgba(255, 157, 84, 0.2), transparent 30%),
    linear-gradient(180deg, rgba(8, 11, 16, 0.82), rgba(8, 11, 16, 0.92) 45%, rgba(8, 11, 16, 0.97));
}

.news-page,
.admin-page {
  width: 100%;
  padding: 132px clamp(18px, 5vw, 86px) 72px;
}

.admin-page {
  display: grid;
  justify-items: center;
  align-content: start;
}

.news-hero {
  position: relative;
  width: min(1280px, 100%);
  margin: 0 auto 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 24px;
  align-items: stretch;
  padding: clamp(26px, 4vw, 46px);
  overflow: hidden;
  border: 1px solid rgba(255, 213, 111, 0.28);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(27, 31, 39, 0.96), rgba(17, 20, 27, 0.82)),
    rgba(20, 24, 31, 0.9);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

.news-hero::after {
  content: "";
  position: absolute;
  right: -110px;
  bottom: -140px;
  width: 430px;
  height: 430px;
  border-radius: 50%;
  background: rgba(255, 213, 111, 0.12);
  filter: blur(4px);
}

.news-hero__content,
.news-hero__panel {
  position: relative;
  z-index: 1;
}

.news-hero .eyebrow {
  margin: 0 0 12px;
  color: var(--accent-2, #ff9d54);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.news-hero h1 {
  max-width: none;
  margin: 0;
  font-size: clamp(2.5rem, 5.3vw, 5.8rem);
  line-height: 0.95;
}

.news-hero p:not(.eyebrow) {
  max-width: 720px;
  margin: 18px 0 0;
  color: rgba(255, 243, 207, 0.78);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
}

.news-hero__panel {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 8px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
}

.news-hero__panel span {
  color: var(--accent, #ffd56f);
  font-size: 3.4rem;
  font-weight: 900;
  line-height: 1;
}

.news-hero__panel small {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 700;
}

.admin-link,
.inline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 10px;
  padding: 0 18px;
  color: #17120e;
  font-weight: 900;
  text-decoration: none;
  background: linear-gradient(135deg, #ffd56f, #ffb95c);
  border: 0;
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(255, 157, 84, 0.24);
  cursor: pointer;
}

.news-board {
  position: relative;
  width: min(1280px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 18px;
}

.news-board::before {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 145px;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(255, 213, 111, 0.58), transparent);
}

.news-card {
  position: relative;
  display: grid;
  grid-template-columns: 122px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.news-card::before {
  content: "";
  position: absolute;
  top: 26px;
  left: 138px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffd56f;
  box-shadow: 0 0 0 6px rgba(255, 213, 111, 0.13), 0 0 30px rgba(255, 213, 111, 0.45);
}

.news-date {
  display: grid;
  gap: 3px;
  padding-top: 18px;
  color: rgba(255, 243, 207, 0.88);
  text-align: right;
}

.news-date strong {
  font-size: 0.92rem;
}

.news-date span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.8rem;
}

.news-card__body,
.empty-state,
.login-box,
.admin-box {
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(35, 39, 47, 0.94), rgba(18, 21, 28, 0.92));
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.32);
}

.news-card__body {
  position: relative;
  overflow: hidden;
  padding: clamp(20px, 2.8vw, 32px);
}

.news-card__body::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-left: 4px solid rgba(255, 213, 111, 0.58);
}

.news-card.is-featured .news-card__body {
  border-color: rgba(255, 213, 111, 0.35);
  background:
    linear-gradient(145deg, rgba(47, 43, 32, 0.95), rgba(20, 23, 30, 0.93));
}

.news-card__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 11px;
  color: #17120e;
  font-size: 0.76rem;
  font-weight: 900;
  background: linear-gradient(135deg, #ffd56f, #c9a86a);
  border-radius: 999px;
}

.news-card.is-event .tag {
  background: linear-gradient(135deg, #92ffb2, #5bc984);
}

.news-card.is-update .tag {
  background: linear-gradient(135deg, #8ec5ff, #6a9bc9);
}

.role,
.muted,
.news-card__body small {
  color: rgba(255, 255, 255, 0.62);
}

.news-card__body h2 {
  max-width: none;
  margin: 0 0 14px;
  color: #fff3cf;
  font-size: clamp(1.45rem, 2.4vw, 2.4rem);
  line-height: 1.05;
}

.news-card__body p {
  max-width: 95ch;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.78;
  white-space: normal;
}

.empty-state,
.login-box,
.admin-box {
  width: min(920px, 100%);
  margin: 0 auto 22px;
  padding: clamp(24px, 5vw, 36px);
}

.empty-state {
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
}

.empty-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  color: #17120e;
  font-size: 1.6rem;
  font-weight: 900;
  background: #ffd56f;
  border-radius: 50%;
}

.login-box {
  max-width: 520px;
  text-align: center;
}

.login-box h1,
.login-box h2,
.admin-box h2 {
  max-width: none;
  margin-top: 0;
  overflow-wrap: normal;
  font-size: clamp(2rem, 8vw, 3.2rem);
  line-height: 1.05;
}

.login-box h2,
.admin-box h2 {
  font-size: clamp(1.7rem, 6vw, 2.5rem);
}

label {
  display: grid;
  gap: 6px;
  margin: 12px 0;
  text-align: left;
}

input,
textarea,
select {
  width: 100%;
  padding: 11px 12px;
  color: #fff;
  background: #222;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
}

textarea {
  resize: vertical;
}

button {
  width: 100%;
  min-height: 44px;
  margin-top: 10px;
  color: #17120e;
  font-weight: 900;
  background: linear-gradient(135deg, #ffd56f, #ffb95c);
  border: 0;
  border-radius: 10px;
  cursor: pointer;
}

.role-display,
.form-message {
  width: min(920px, 100%);
  margin: 0 auto 16px;
  padding: 12px 14px;
  border-radius: 10px;
}

.role-display {
  color: #ffd56f;
  background: rgba(0, 0, 0, 0.32);
}

.form-message.error {
  color: #ffd1d1;
  background: rgba(120, 20, 20, 0.5);
}

.form-message.success {
  color: #ddffd6;
  background: rgba(26, 100, 42, 0.5);
}

.admin-news-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-news-item div {
  display: grid;
  gap: 5px;
}

.admin-news-item span {
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.85rem;
}

.admin-news-item form {
  flex: 0 0 auto;
}

.danger-button {
  width: auto;
  min-height: 38px;
  margin: 0;
  padding: 0 14px;
  color: #fff;
  background: #8d2d2d;
}

@media (max-width: 860px) {
  .news-hero {
    grid-template-columns: 1fr;
  }

  .news-hero__panel {
    justify-items: stretch;
  }

  .news-board::before,
  .news-card::before {
    display: none;
  }

  .news-card {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .news-date {
    padding-top: 0;
    text-align: left;
  }
}

@media (max-width: 640px) {
  .news-page,
  .admin-page {
    padding: 108px clamp(18px, 6vw, 30px) 44px;
  }

  .admin-news-item {
    align-items: stretch;
    flex-direction: column;
  }

  .news-hero,
  .news-card__body,
  .empty-state {
    border-radius: 16px;
  }
}

/* Discord checkbox in Admin-CMS */
.checkbox-row {
  display: flex !important;
  align-items: center;
  gap: 10px;
  flex-direction: row !important;
  margin: 14px 0 6px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px;
  background: rgba(255, 255, 255, .04);
}

.checkbox-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #d8b36a;
}

.checkbox-row span {
  margin: 0 !important;
}

.small-hint {
  font-size: .9rem;
  margin-top: 4px;
}
