/* ForgeWire 7.1 — mobile-first entertainment wire (IGN-inspired layout) */

:root {
  --fw-bg: #0d0d0d;
  --fw-bg-elev: #161616;
  --fw-bg-panel: #1c1c1c;
  --fw-line: #2a2a2a;
  --fw-text: #f2f2f2;
  --fw-muted: #a3a3a3;
  --fw-red: #bf1313;
  --fw-red-hot: #e01818;
  --fw-white: #ffffff;
  --fw-max: 1120px;
  --fw-font: "Source Sans 3", "Segoe UI", sans-serif;
  --fw-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --fw-radius: 2px;
  --fw-header-h: 52px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--fw-font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--fw-text);
  background: var(--fw-bg);
  background-image:
    radial-gradient(ellipse 120% 60% at 50% -10%, rgba(191, 19, 19, 0.18), transparent 55%),
    linear-gradient(180deg, #121212 0%, #0d0d0d 40%, #0a0a0a 100%);
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--fw-white);
  text-decoration: none;
}

a:hover {
  color: var(--fw-red-hot);
}

button,
input,
textarea {
  font: inherit;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.fw-skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--fw-red);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 10000;
}

.fw-skip-link:focus {
  left: 0;
}

.fw-site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.fw-main {
  flex: 1;
  width: 100%;
  max-width: var(--fw-max);
  margin: 0 auto;
  padding: 0 12px 48px;
}

/* Header — sticky black bar */
.fw-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #000;
  border-bottom: 1px solid #1f1f1f;
}

.fw-header-bar {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  height: var(--fw-header-h);
  max-width: var(--fw-max);
  margin: 0 auto;
  padding: 0 8px;
}

.fw-nav-toggle {
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.fw-nav-toggle-lines,
.fw-nav-toggle-lines::before,
.fw-nav-toggle-lines::after {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  position: relative;
  transition: transform 0.2s ease;
}

.fw-nav-toggle-lines::before,
.fw-nav-toggle-lines::after {
  content: "";
  position: absolute;
  left: 0;
}

.fw-nav-toggle-lines::before {
  top: -6px;
}

.fw-nav-toggle-lines::after {
  top: 6px;
}

.fw-header-brand {
  display: flex;
  justify-content: center;
}

.fw-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff !important;
}

.fw-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: var(--fw-red);
  color: #fff;
  font-family: var(--fw-display);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.02em;
  border-radius: 0;
}

.fw-brand-stack {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.fw-brand-text {
  font-family: var(--fw-display);
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.fw-brand-region {
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #bbb;
  font-weight: 600;
}

.fw-feed-title {
  margin: 0 0 6px;
  font-family: var(--fw-display);
  font-size: 1.35rem;
  line-height: 1.12;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 700;
}

.fw-feed-object {
  margin: 8px 0 0;
  font-size: 0.82rem;
  color: var(--fw-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.fw-object-link {
  color: #fff !important;
  font-weight: 700;
}

.fw-object-link:hover {
  color: var(--fw-red-hot) !important;
}

.fw-feed-head {
  border-bottom: 3px solid var(--fw-red);
  margin-bottom: 14px;
  padding-bottom: 6px;
}

.fw-section-title {
  font-size: 1.15rem !important;
  margin: 0 !important;
}

.fw-header-actions {
  display: flex;
  justify-content: flex-end;
}

.fw-search-toggle {
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.fw-icon-search {
  display: block;
  width: 16px;
  height: 16px;
  border: 2px solid #fff;
  border-radius: 50%;
  position: relative;
  margin: 0 auto;
}

.fw-icon-search::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 2px;
  background: #fff;
  right: -6px;
  bottom: -2px;
  transform: rotate(45deg);
}

.fw-tagline-bar {
  display: none;
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fw-muted);
  padding: 0 12px 8px;
}

.fw-topic-nav {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-top: 1px solid #1a1a1a;
  background: #0a0a0a;
}

.fw-topic-list {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 8px 10px;
  min-width: max-content;
}

.fw-topic-list a {
  display: inline-block;
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #ddd;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
}

.fw-topic-list .is-active a,
.fw-topic-list a:hover {
  color: #fff;
  border-color: #333;
  background: #1a1a1a;
}

.fw-topic-list .is-active a {
  border-color: var(--fw-red);
  background: #1a0a0a;
}

.fw-search-panel {
  padding: 10px 12px 14px;
  background: #111;
  border-top: 1px solid #222;
}

.fw-search-panel[hidden] {
  display: none !important;
}

.fw-search-form {
  display: flex;
  gap: 8px;
}

.fw-search-input {
  flex: 1;
  min-width: 0;
  background: #1a1a1a;
  border: 1px solid #333;
  color: #fff;
  padding: 10px 12px;
  border-radius: var(--fw-radius);
}

.fw-search-submit,
.fw-btn {
  background: var(--fw-red);
  color: #fff !important;
  border: 0;
  padding: 10px 14px;
  border-radius: var(--fw-radius);
  cursor: pointer;
  font-weight: 600;
}

.fw-search-submit:hover,
.fw-btn:hover {
  background: var(--fw-red-hot);
}

/* Drawer */
.fw-drawer {
  position: fixed;
  inset: 0 auto 0 0;
  width: min(86vw, 320px);
  background: #0a0a0a;
  z-index: 1200;
  transform: translateX(-105%);
  transition: transform 0.25s ease;
  border-right: 1px solid #222;
  visibility: hidden;
}

.fw-drawer.is-open {
  transform: translateX(0);
  visibility: visible;
}

.fw-drawer[hidden] {
  display: block;
  visibility: hidden;
  pointer-events: none;
}

.fw-drawer.is-open {
  pointer-events: auto;
  visibility: visible;
}

.fw-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1100;
}

.fw-drawer-backdrop[hidden] {
  display: none !important;
}

.fw-drawer-inner {
  padding: 16px;
  height: 100%;
  overflow: auto;
}

.fw-drawer-close {
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  margin-bottom: 12px;
}

.fw-drawer-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.fw-drawer-list a {
  display: block;
  padding: 12px 4px;
  border-bottom: 1px solid #1f1f1f;
  font-weight: 600;
}

.fw-drawer-label {
  margin: 0 0 8px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #777;
}

.fw-drawer-sub {
  list-style: none;
  margin: 0 0 8px;
  padding: 0 0 0 12px;
  border-left: 2px solid #2a2a2a;
}

.fw-drawer-sub a {
  font-weight: 500;
  font-size: 0.92rem;
  color: #cfcfcf;
  border-bottom-color: #171717;
  padding: 8px 4px;
}

.fw-section-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
}

.fw-section-links a {
  color: #ddd;
  font-weight: 600;
  font-size: 0.9rem;
}

.fw-rail-more {
  margin: 10px 0 0;
  font-size: 0.85rem;
}

.fw-rail-more a {
  color: var(--fw-red-hot);
  font-weight: 700;
}

.fw-image-block figcaption a {
  color: inherit;
}

/* Featured top stories */
.fw-featured {
  display: grid;
  gap: 12px;
  margin: 14px 0 18px;
}

.fw-featured-card {
  background: var(--fw-bg-elev);
  border: 1px solid var(--fw-line);
  overflow: hidden;
}

.fw-featured-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #111;
}

.fw-featured-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.fw-featured-card:hover .fw-featured-media img {
  transform: scale(1.04);
}

.fw-featured-body {
  padding: 12px 12px 14px;
}

.fw-featured-title {
  margin: 0 0 6px;
  font-family: var(--fw-display);
  font-weight: 700;
  font-size: 1.45rem;
  line-height: 1.15;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.fw-featured-title a {
  color: #fff;
}

.fw-featured-dek,
.fw-feed-dek {
  margin: 0;
  color: var(--fw-muted);
  font-size: 0.92rem;
}

.fw-time {
  color: #cfcfcf;
  font-weight: 600;
}

.fw-duration,
.fw-score-badge {
  position: absolute;
  left: 8px;
  bottom: 8px;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 6px;
  border-radius: var(--fw-radius);
}

.fw-score-badge {
  left: auto;
  right: 8px;
  background: var(--fw-red);
}

/* Homepage image blocks */
.fw-image-blocks {
  display: grid;
  gap: 10px;
  margin: 0 0 22px;
}

.fw-image-block {
  margin: 0;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--fw-line);
  background: #111;
}

.fw-image-block img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.fw-image-block figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 12px 10px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  font-family: var(--fw-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* Feed + rail */
.fw-home-grid,
.fw-article-layout {
  display: grid;
  gap: 24px;
}

.fw-archive-head {
  margin: 16px 0 8px;
}

.fw-section-title,
.fw-rail-title,
.fw-archive-title {
  font-family: var(--fw-display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 12px;
  font-size: 1.35rem;
}

.fw-archive-subnav {
  margin: 10px 0 4px !important;
  padding-left: 0 !important;
}

.fw-archive-desc {
  color: var(--fw-muted);
  margin-bottom: 8px;
}

.fw-feed-head {
  border-bottom: 2px solid var(--fw-red);
  margin-bottom: 12px;
}

.fw-feed {
  display: grid;
  gap: 14px;
}

.fw-feed-item {
  display: grid;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--fw-line);
}

.fw-feed-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #111;
  border: 1px solid var(--fw-line);
}

.fw-feed-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fw-feed-title {
  margin: 0 0 6px;
  font-family: var(--fw-display);
  font-size: 1.28rem;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.fw-feed-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--fw-muted);
}

.fw-chip {
  display: inline-block;
  background: #222;
  color: #fff !important;
  padding: 2px 8px;
  border-radius: var(--fw-radius);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.fw-chip:hover {
  background: var(--fw-red);
}

.fw-rail-widget {
  background: var(--fw-bg-panel);
  border: 1px solid var(--fw-line);
  padding: 14px;
  margin-bottom: 14px;
}

.fw-upcoming,
.fw-reviews {
  list-style: none;
  margin: 0;
  padding: 0;
}

.fw-upcoming li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #2a2a2a;
  font-size: 0.92rem;
}

.fw-upcoming li:last-child,
.fw-reviews li:last-child {
  border-bottom: 0;
}

.fw-upcoming-date {
  color: var(--fw-red-hot);
  font-weight: 700;
  white-space: nowrap;
  font-size: 0.8rem;
}

.fw-review-card {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  color: inherit !important;
}

.fw-review-card img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: var(--fw-radius);
}

.fw-review-title {
  display: block;
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.25;
}

.fw-score {
  display: inline-block;
  margin-top: 4px;
  background: var(--fw-red);
  color: #fff;
  font-weight: 800;
  font-size: 0.78rem;
  padding: 2px 7px;
  border-radius: var(--fw-radius);
}

/* Article */
.fw-article-header {
  margin: 18px 0 12px;
}

.fw-article-title {
  font-family: var(--fw-display);
  font-size: clamp(1.8rem, 6vw, 2.8rem);
  line-height: 1.05;
  text-transform: uppercase;
  margin: 8px 0;
  letter-spacing: 0.01em;
}

.fw-article-byline {
  color: var(--fw-muted);
  margin: 0;
}

.fw-article-hero {
  margin: 0 0 18px;
  border: 1px solid var(--fw-line);
}

.fw-article-hero img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.entry-content {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #e8e8e8;
}

.entry-content p,
.entry-content ul,
.entry-content ol {
  margin: 0 0 1.1em;
}

.entry-content a {
  color: #ff6b6b;
  text-decoration: underline;
}

.fw-tags a {
  display: inline-block;
  margin: 0 6px 6px 0;
  padding: 4px 8px;
  background: #222;
  border-radius: var(--fw-radius);
  font-size: 0.8rem;
}

.fw-comments {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--fw-line);
}

.fw-comment-list {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
}

.fw-comment-list .comment {
  padding: 12px 0;
  border-bottom: 1px solid #222;
}

.fw-empty {
  text-align: center;
  padding: 48px 12px;
}

.fw-pagination {
  margin: 22px 0;
}

.fw-pagination .page-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.fw-pagination a,
.fw-pagination span {
  display: inline-block;
  min-width: 36px;
  text-align: center;
  padding: 8px 10px;
  background: #1a1a1a;
  border: 1px solid #333;
  color: #fff;
}

.fw-pagination .current {
  background: var(--fw-red);
  border-color: var(--fw-red);
}

/* Footer link row — unlimited horizontal links, no label */
.fw-footer {
  background: #000;
  border-top: 1px solid #1f1f1f;
  padding: 22px 12px 28px;
  margin-top: auto;
}

.fw-footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  list-style: none;
  margin: 0 auto 16px;
  padding: 0;
  max-width: var(--fw-max);
  justify-content: center;
}

.fw-link-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  max-width: var(--fw-max);
  margin: 0 auto 16px;
  padding: 0 4px;
}

.fw-link-row-item,
.fw-link-row-menu-list a {
  color: #bdbdbd !important;
  font-size: 0.86rem;
  white-space: nowrap;
}

.fw-link-row-item:hover,
.fw-link-row-menu-list a:hover {
  color: #fff !important;
}

.fw-link-row-menu-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.fw-footer-meta {
  text-align: center;
  color: #777;
  font-size: 0.8rem;
}

.fw-footer-meta a {
  color: #aaa;
}

.fw-version {
  display: inline-block;
  margin-left: 8px;
  opacity: 0.7;
}

.custom-logo-link img {
  max-height: 36px;
  width: auto;
}

/* Tablet+ */
@media (min-width: 720px) {
  .fw-main {
    padding: 0 18px 56px;
  }

  .fw-tagline-bar {
    display: block;
  }

  .fw-featured {
    grid-template-columns: 1.4fr 1fr;
    grid-template-rows: auto auto;
  }

  .fw-featured-card.is-lead {
    grid-row: 1 / span 2;
  }

  .fw-featured-card.is-side .fw-featured-title {
    font-size: 1.15rem;
  }

  .fw-image-blocks {
    grid-template-columns: repeat(3, 1fr);
  }

  .fw-feed-item {
    grid-template-columns: 220px 1fr;
    align-items: start;
  }

  .fw-feed-media {
    aspect-ratio: 16 / 9;
  }
}

/* Desktop */
@media (min-width: 980px) {
  :root {
    --fw-header-h: 56px;
  }

  .fw-header-bar {
    grid-template-columns: 48px 1fr 48px;
    padding: 0 12px;
  }

  .fw-brand-text {
    font-size: 1.75rem;
  }

  .fw-home-grid,
  .fw-article-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    align-items: start;
  }

  .fw-featured {
    grid-template-columns: 1.6fr 1fr;
  }

  .fw-featured-title {
    font-size: 1.85rem;
  }

  .fw-feed-item {
    grid-template-columns: 280px 1fr;
  }

  .fw-drawer {
    width: 360px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

html.fw-nav-lock,
html.fw-nav-lock body {
  overflow: hidden;
}
