:root {
  --bwnp-gold: #c59b24;
  --bwnp-gold-light: #e1bd4e;
  --bwnp-blue: #e1bd4e;
  --bwnp-bg: #101010;
}

.bwnp-root,
.bwnp-root * {
  box-sizing: border-box;
}

.bwnp-root {
  position: fixed;
  z-index: 999990;
  inset: 0;
  pointer-events: none;
  font-family: inherit, sans-serif;
}

.bwnp-tab {
  position: absolute;
  top: 50%;
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid rgba(197, 155, 36, .55);
  background: linear-gradient(135deg, rgba(197, 155, 36, .12), transparent 48%), rgba(10, 10, 10, .96);
  color: #fff;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .62), 0 0 18px rgba(197, 155, 36, .12);
  cursor: pointer;
  pointer-events: auto;
  transform: translateY(-50%);
  transition: color .2s ease, border-color .2s ease, background .2s ease, transform .3s ease;
  font: inherit;
}

.bwnp-side-right .bwnp-tab {
  right: 0;
  border-right: 0;
  border-radius: 0;
}

.bwnp-side-left .bwnp-tab {
  left: 0;
  border-left: 0;
  border-radius: 0;
}

.bwnp-tab:hover,
.bwnp-tab:focus-visible {
  border-color: var(--bwnp-gold);
  background-color: #141820;
  color: var(--bwnp-gold);
  outline: none;
}

.bwnp-tab-icon {
  display: flex;
  width: 22px;
  height: 22px;
}

.bwnp-tab-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bwnp-tab-text {
  color: var(--bwnp-gold);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.5px;
}

.bwnp-unread {
  position: absolute;
  top: -4px;
  width: 10px;
  height: 10px;
  border: 2px solid #0a0d12;
  border-radius: 50%;
  background: #ff4e4e;
  box-shadow: 0 0 9px rgba(255, 78, 78, .85);
}

.bwnp-side-right .bwnp-unread { left: -4px; }
.bwnp-side-left .bwnp-unread { right: -4px; }
.bwnp-unread.is-read { display: none; }

.bwnp-panel {
  position: absolute;
  top: 0;
  bottom: 0;
  width: min(440px, calc(100vw - 30px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-color: rgba(197, 155, 36, .42);
  border-style: solid;
  background:
    radial-gradient(circle at 25% 0%, rgba(197, 155, 36, .12), transparent 35%),
    linear-gradient(315deg, rgba(197, 155, 36, .06), transparent 40%),
    var(--bwnp-bg);
  color: #fff;
  box-shadow: 0 0 65px rgba(0, 0, 0, .88), 0 0 24px rgba(197, 155, 36, .09);
  pointer-events: auto;
  visibility: hidden;
  transition: transform .36s cubic-bezier(.2, .75, .25, 1), visibility .36s;
}

.bwnp-side-right .bwnp-panel {
  right: 0;
  border-width: 0 0 0 1px;
  transform: translateX(105%);
}

.bwnp-side-left .bwnp-panel {
  left: 0;
  border-width: 0 1px 0 0;
  transform: translateX(-105%);
}

.bwnp-root.is-open .bwnp-panel {
  visibility: visible;
  transform: translateX(0);
}

.bwnp-root.is-open .bwnp-tab {
  opacity: 0;
  pointer-events: none;
}

.bwnp-panel::before {
  content: "";
  position: absolute;
  inset: 8px;
  z-index: 0;
  border: 1px solid rgba(197, 155, 36, .11);
  border-radius: 0;
  pointer-events: none;
}

.bwnp-panel-glow {
  position: absolute;
  top: -80px;
  right: -80px;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  background: rgba(197, 155, 36, .08);
  filter: blur(30px);
  pointer-events: none;
}

.bwnp-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 26px 22px;
  border-bottom: 1px solid rgba(197, 155, 36, .18);
}

.bwnp-kicker {
  display: block;
  margin-bottom: 7px;
  color: var(--bwnp-blue);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 2.7px;
  text-shadow: 0 0 12px rgba(197, 155, 36, .35);
}

.bwnp-header h2 {
  margin: 0;
  color: var(--bwnp-gold);
  font-size: clamp(21px, 3vw, 27px);
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: .6px;
  text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .7);
}

.bwnp-close {
  flex: 0 0 39px;
  width: 39px;
  height: 39px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(225, 189, 78, .38);
  border-radius: 0;
  background: rgba(6, 10, 16, .8);
  color: #fff;
  font: inherit;
  font-size: 27px;
  line-height: 1;
  cursor: pointer;
  transition: .2s ease;
}

.bwnp-close:hover,
.bwnp-close:focus-visible {
  border-color: var(--bwnp-gold);
  background: var(--bwnp-gold);
  color: #000;
  outline: none;
  box-shadow: 0 0 18px rgba(197, 155, 36, .3);
}

.bwnp-content {
  position: relative;
  z-index: 1;
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 18px 18px 26px;
  scrollbar-width: thin;
  scrollbar-color: rgba(197, 155, 36, .55) rgba(255, 255, 255, .04);
}

.bwnp-list {
  display: grid;
  gap: 13px;
}

.bwnp-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(197, 155, 36, .19);
  border-radius: 0;
  background: linear-gradient(145deg, rgba(255, 255, 255, .025), transparent), rgba(28, 28, 28, .82);
  box-shadow: 0 8px 25px rgba(0, 0, 0, .22);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.bwnp-card:hover {
  transform: translateY(-2px);
  border-color: rgba(197, 155, 36, .7);
  box-shadow: 0 11px 28px rgba(197, 155, 36, .08);
}

.bwnp-card-link {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  min-height: 128px;
  color: inherit;
  text-decoration: none !important;
}

.bwnp-card:not(:has(.bwnp-thumb)) .bwnp-card-link {
  grid-template-columns: 1fr;
}

.bwnp-thumb {
  min-height: 100%;
  overflow: hidden;
  background: #080a0e;
}

.bwnp-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: saturate(.83) contrast(1.05);
  transition: transform .35s ease, filter .35s ease;
}

.bwnp-card:hover .bwnp-thumb img {
  transform: scale(1.04);
  filter: saturate(1) contrast(1.05);
}

.bwnp-card-body {
  min-width: 0;
  padding: 14px 15px 13px;
}

.bwnp-newest {
  display: inline-block;
  margin-bottom: 5px;
  color: var(--bwnp-blue);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 1.35px;
}

.bwnp-card h3 {
  margin: 0 0 4px;
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.3;
  text-transform: uppercase;
  transition: color .2s ease;
}

.bwnp-card:hover h3 { color: var(--bwnp-gold-light); }

.bwnp-card time {
  display: block;
  margin-bottom: 7px;
  color: #8d98a9;
  font-size: 10px;
}

.bwnp-card p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 7px;
  color: #bfc4cc;
  font-size: 11.5px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.bwnp-read-more {
  color: var(--bwnp-gold);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .25px;
}

.bwnp-empty {
  padding: 28px 15px;
  color: #c7cbd1;
  text-align: center;
}

.bwnp-footer {
  position: relative;
  z-index: 1;
  padding: 16px 24px 20px;
  border-top: 1px solid rgba(197, 155, 36, .13);
  background: rgba(5, 8, 12, .45);
  text-align: center;
}

.bwnp-footer a {
  color: var(--bwnp-gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .3px;
  text-decoration: none;
}

.bwnp-footer a:hover { color: var(--bwnp-gold-light); }

.bwnp-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .63);
  opacity: 0;
  visibility: hidden;
  pointer-events: auto;
  transition: opacity .3s ease, visibility .3s ease;
}

.bwnp-root.is-open .bwnp-backdrop {
  opacity: 1;
  visibility: visible;
}

body.bwnp-panel-open { overflow: hidden; }

@media (max-width: 600px) {
  .bwnp-tab {
    top: auto;
    bottom: 82px;
    padding: 10px 12px;
  }

  .bwnp-panel { width: min(390px, calc(100vw - 14px)); }
  .bwnp-header { padding: 23px 20px 18px; }
  .bwnp-content { padding: 14px 12px 22px; }
  .bwnp-card-link { grid-template-columns: 96px minmax(0, 1fr); }
  .bwnp-card-body { padding: 12px; }
}

@media (max-width: 370px) {
  .bwnp-card-link { grid-template-columns: 82px minmax(0, 1fr); }
  .bwnp-card p { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .bwnp-panel,
  .bwnp-tab,
  .bwnp-card,
  .bwnp-thumb img { transition: none !important; }
}
