* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 285px;
  height: 163px;
  overflow: hidden;
  background: #1c0506;
  font-family: Cambria, Georgia, serif;
}

.widget {
  width: 285px;
  height: 163px;
  overflow: hidden;
  background: #1c0506;
  border: 1px solid #4a1113;
}

/* ---------- header ---------- */

.widget-header {
  height: 20px;
  line-height: 20px;
  padding: 0 8px;
  background: -webkit-linear-gradient(top, #4a1113, #24080a);
  background: linear-gradient(to bottom, #4a1113, #24080a);
  border-bottom: 2px solid #ffcc00;
  overflow: hidden;
  white-space: nowrap;
}

.widget-title {
  color: #ffcc00;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 0 4px rgba(255, 204, 0, 0.5);
}

.widget-live {
  float: right;
  color: #7fd858;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* ---------- news list ---------- */

.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
  height: 127px;
  overflow-y: auto;
  overflow-x: hidden;
  background: -webkit-linear-gradient(top, #2b0a0b, #1c0506);
  background: linear-gradient(to bottom, #2b0a0b, #1c0506);
}

.news-list::-webkit-scrollbar {
  width: 5px;
}

.news-list::-webkit-scrollbar-track {
  background: #1c0506;
}

.news-list::-webkit-scrollbar-thumb {
  background: #7a2a1f;
  border-radius: 3px;
}

.news-item {
  display: block;
  padding: 5px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.news-item:last-child {
  border-bottom: none;
}

.news-item:hover {
  background: rgba(255, 204, 0, 0.08);
}

.tag {
  display: inline-block;
  font-size: 8px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  vertical-align: middle;
}

.tag-event  { background: #ffcc00; color: #310a0b; }
.tag-update { background: #7fd858; color: #123607; }
.tag-maint  { background: #9a9a9a; color: #1a1a1a; }
.tag-shop   { background: #e06b3f; color: #2a0f04; }

.news-title {
  display: block;
  color: #f1e2c8;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 3px;
}

.news-title:hover {
  color: #ffcc00;
  text-decoration: underline;
}

.news-date {
  display: block;
  color: #bc8566;
  font-size: 9px;
  letter-spacing: 0.3px;
  margin-top: 2px;
}

.new-badge {
  display: inline-block;
  background: #c0392b;
  color: #ffffff;
  font-style: normal;
  font-size: 8px;
  font-weight: 700;
  padding: 0 4px;
  border-radius: 2px;
  margin-left: 4px;
  vertical-align: middle;
}

/* ---------- footer ---------- */

.widget-footer {
  height: 16px;
  line-height: 16px;
  padding: 0 8px;
  background: #24080a;
  border-top: 1px solid #4a1113;
  text-align: right;
}

.widget-footer a {
  color: #bc8566;
  font-size: 9px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.widget-footer a:hover {
  color: #ffcc00;
}
