html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  background: #dcdcdc;
  color: #111;
}

header {
  background: #1e1e1e url('/pics/brushed-alum.png');
  padding: 10px 20px;
  border-bottom: 2px solid #d4af37;
  text-align: center;
}

.logo-desktop {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 600px;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.logo-mobile {
  display: none;
  width: 100vw;
  max-width: 100vw;
  height: auto;
  margin: 0;
}

main {
  max-width: 1230px;
  margin: 30px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 310px;
  gap: 30px;
}

.content-area {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 10px;
}

aside {
  background: #f6f6f6;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  border: 1px solid #bbb;
  height: fit-content;
}

aside h3 {
  margin-top: 0;
  border-bottom: 2px solid #ccc;
  padding-bottom: 8px;
  margin-bottom: 20px;
  color: #333;
}

aside ul {
  list-style: none;
  padding-left: 0;
  margin: 0 0 30px 0;
}

aside li {
  margin-bottom: 6px;
}

aside li a {
  text-decoration: none;
  color: #111;
  font-weight: 500;
}

aside li a:hover {
  color: #b30000;
}

section h2 {
  border-bottom: 2px solid #ccc;
  padding-bottom: 6px;
  margin-bottom: 4px;
  color: #333;
  font-size: 1.5rem;
}

section h2:first-child {
  margin-top: 0;
}

.content-block {
  display: flex;
  gap: 20px;
  background: #f6f6f6;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  border: 1px solid #bbb;
  align-items: flex-start;
}

.content-block img {
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.section-image {
  border-radius: 4px;
  flex-shrink: 0;
  margin-left: 0px;
}

.section-image.left {
  margin-left: 0;
  margin-right: 0px;
}

.content-text {
  flex: 1;
}

.watch-btn {
  display: inline-block;
  background: #b30000;
  color: #fff;
  font-size: 0.9rem;
  padding: 4px 10px;
  border-radius: 3px;
  margin-bottom: 8px;
  text-decoration: none;
}

.watch-btn:hover {
  background: #8a0000;
}

.fan-quotes {
  background: #2a2a2a;
  color: #eee;
  padding: 15px 20px;
  border-radius: 8px;
  font-style: italic;
  font-size: 1rem;
  line-height: 1.4;
  min-height: 100px;
}

.highlight-box {
  background-color: #dedede !important;
  padding: 15px;
  border-radius: 6px;
  border: 1px solid #777;
  margin-top: 20px;
  max-width: 100%;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

/* Scroll Cue */
.scroll-cue-wrapper {
  position: relative;
  overflow-y: auto;
  max-height: 200px;
  padding: 10px;
  background-color: #ffffff;
  border: 1px solid #444;
}

.scroll-cue-wrapper::after {
  content: "";
  position: absolute;
  top: 10px;
  right: 4px;
  width: 6px;
  height: 30px;
  background: #bbb;
  border-radius: 3px;
  opacity: 0.6;
  pointer-events: none;
}

/* Two-column What's New */
.two-column-wrap {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.mobile-hide {
  display: block;
}

.mobile-only {
  display: none;
}

@media (max-width: 768px) {
  .two-column-wrap {
    flex-direction: column;
  }

  .two-column-wrap > div:first-child {
    margin-bottom: 16px;
  }

  .mobile-hide {
    display: none !important;
  }

  .mobile-only {
    display: block !important;
    width: 100%;
    height: auto;
    margin-bottom: 15px;
  }
}

/* Footer */
footer {
  display: block;
  width: 100%;
  background: #1e1e1e;
  color: #aaa;
  text-align: center;
  padding: 20px 10px;
  font-size: 0.85rem;
  margin-top: 40px;
}

.desktop-only {
  display: block !important;
}

.mobile-only {
  display: none !important;
}

@media (max-width: 1024px) {
  aside {
    display: none;
  }

  main {
    display: block;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
  }
}

@media (max-width: 768px) {
  .image-with-caption img,
  .content-block img,
  .game-thumb {
    width: 100%;
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
    display: block;
  }

  .logo-desktop {
    display: none;
  }

  .logo-mobile {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    margin: 0 auto;
  }

  header {
    padding: 0;
  }

  .content-block {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .content-text {
    text-align: left;
  }

  main {
    padding: 0 15px;
  }

  .content-area {
    gap: 20px;
  }

  .highlight-box {
    background-color: #e0e0e0;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #ccc;
    margin-top: 20px;
  }

  .game-thumb-link {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0 auto 10px auto;
  }

  .desktop-only {
    display: none !important;
  }

  .mobile-only {
    display: block !important;
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
  }

  footer {
    display: block !important;
    width: 100%;
    background: #1e1e1e;
    color: #aaa;
    text-align: center;
    padding: 20px 10px;
    font-size: 0.85rem;
    margin-top: 40px;
  }
}

@media (max-width: 1024px) {
  #nav-container nav {
    gap: 15px;
    padding: 8px 0;
  }

  #nav-container nav a,
  #nav-container nav .dropdown-btn {
    font-size: 0.9rem;
    padding: 4px 8px;
  }
}

a img {
  transition: filter 0.3s ease, transform 0.3s ease;
}

a:hover img {
  filter: brightness(85%);
  transform: scale(1.03);
}

a img.no-hover {
  filter: none !important;
  transform: none !important;
  transition: none !important;
}

/* === Headline Section Container === */
.headline-section {
  display: block;
  margin-top: 20px;
}

/* === Flex Container for Headline Layout === */
.headline-section .headline-layout {
  display: flex;
  justify-content: space-between;
  gap: 5px;
  flex-wrap: wrap;
  width: 100%;
  box-sizing: border-box;
}

/* === Featured Image with Overlay === */
.headline-section .featured-photo {
  position: relative;
  width: 360px;
  height: 360px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  border: 1px solid #666;
}

.headline-section .featured-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 6px;
  border: none;
}

.headline-section .photo-overlay {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  text-align: left;
  padding: 10px;
  font-weight: bold;
  font-size: 1rem;
  text-decoration: none;
}

/* === News Scroller === */
.headline-section .news-scroll-container {
  width: 430px;
  max-width: 100%;
  flex-shrink: 0;
}

.headline-section .scroll-wrapper {
  width: 100%;
  height: 360px;
  overflow: hidden;
  position: relative;
  border: 1px solid #666;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  cursor: grab;
}

.headline-section .scroll-wrapper:active {
  cursor: grabbing;
}

.headline-section .scroll-track {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  transition: transform 0.6s ease-in-out;
}

.headline-section .news-card-adv {
  display: flex;
  align-items: center;
  height: 120px;
  padding: 6px 0 6px 6px;
  border-bottom: 1px solid #999;
  background: #fff;
  box-sizing: border-box;
}

.headline-section .news-card-adv a.thumb-link {
  display: block;
  width: 100px;
  height: 100px;
  flex-shrink: 0;
  overflow: hidden;
}

.headline-section .news-card-adv img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-right: 1px solid #ccc;
  display: block;
}

/* === News Text === */
.headline-section .news-text {
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: start;
  text-align: left !important;
  align-items: flex-start !important;
}

.headline-section .date {
  font-size: 0.8rem;
  color: #888;
  margin-bottom: 2px;
}

.headline-section .news-text a {
  font-weight: bold;
  color: #000;
  text-decoration: none;
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.headline-section .summary {
  font-size: 0.9rem;
  color: #444;
  margin-bottom: 6px;
}

/* === Responsive Stack on Mobile === */
@media (max-width: 768px) {
  .headline-section .headline-layout {
    flex-direction: column;
    align-items: center;
  }

  .headline-section .featured-photo,
  .headline-section .scroll-wrapper,
  .headline-section .news-scroll-container {
    width: 100%;
    height: auto;
  }

  .headline-section .featured-photo img {
    width: 100%;
    height: auto !important;
  }

  .headline-section .photo-overlay {
    font-size: 0.9rem;
    padding: 8px;
    text-align: left;
  }

  .headline-section .scroll-wrapper {
    height: 360px !important; /* FIXED: show 3 cards on mobile */
    overflow-y: hidden !important;
    touch-action: none;
    cursor: default !important;
  }

  .headline-section .news-card-adv {
    height: 120px !important;
  }

  .headline-section .news-card-adv a.thumb-link {
    width: 100px !important;
    height: 100px !important;
  }

  .headline-section .news-card-adv img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  .headline-section .news-scroll-container {
    margin-top: 15px;
  }
}

/* === Vertical alignment and h2 spacing === */
.content-block.headline-section {
  padding-top: 20px !important;
  margin-top: 0 !important;
}

.content-block.headline-section > h2 {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 15px;
  text-align: left;
}

aside h3.no-border {
  border-bottom: none !important;
  padding-bottom: 0;
  margin-bottom: 10px;
}

.mission-strip {
  display: flex;
  align-items: center;
  background-color: #2a2a2a;
  color: #fff;
  padding: 12px 16px;
  margin: 0;
  border-radius: 10px;
  border: 1px solid #333;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  font-size: 1.1rem;
}

.mission-icon {
  width: 110px;
  height: 87px;
  margin-right: 14px;
  flex-shrink: 0;
  border-radius: 6px;
}

.mission-text {
  line-height: 1.4;
}

.mission-strip .highlight-brand {
  color: #FCCE00;
  font-weight: bold;
}

.mission-strip a {
  color: #FCCE00;
  text-decoration: underline;
  margin: 0 4px;
  font-weight: bold;
}

.mission-strip a:hover {
  text-decoration: none;
}

@media (max-width: 480px) {
  .mission-strip {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    font-size: 0.95rem; /* Slightly smaller text on mobile */
  }

  .mission-icon {
    display: none;
  }
}

.top20-decade-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.top20-decade-list li {
  margin-bottom: 3px; /* Reduced from 10px to 4px */
}

.top20-decade-list a {
  font-size: 1.25rem;
  font-weight: bold;
  color: #000;
  text-decoration: none;
}

.top20-decade-list a:hover {
  text-decoration: underline;
}

.top20-decade-list li {
  margin-bottom: 3px;
  display: flex;
  align-items: center;
}

.top20-decade-list li::before {
  content: "▶";
  color: #000;
  font-size: 1rem;
  margin-right: 6px;
  flex-shrink: 0;
  line-height: 1;
}

/* Unique modal styles for Top 20 modals only */
/* === Clean Top 20 Modal Styles === */
.top20-modal ol {
  list-style: decimal;
  list-style-position: outside;
  padding-left: 24px;
  margin: 0;
}

.top20-modal li {
  margin-bottom: 6px;
  padding-left: 0;
}

.top20-modal a {
  font-size: 1.1rem;
  font-weight: bold;
  line-height: 1.4;
  color: #000080;
  text-decoration: none;
}

.top20-modal a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .top20-modal li a {
    font-size: 0.95rem;
  }
}

/* === Modal Overlay and Content Fix === */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.75);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 10px;
  box-sizing: border-box;
}

.modal-content {
  background-color: #fff !important;
  padding: 20px !important;
  max-width: 500px !important;
  width: 96vw !important;
  max-height: 85vh !important;
  overflow-y: auto !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
}

@media (max-width: 768px) {
  .modal-content {
    width: 96vw !important;
    padding: 16px !important;
    font-size: 1rem !important;
  }

}

.sr-only{
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* === Headings spacing fixes (prevents the extra gap with hidden H1) === */
.content-text > h1.sr-only + h2 { 
  margin-top: 0 !important;          /* remove the top gap on the first visible heading */
}
.content-text > h2:first-of-type { 
  margin-top: 0;                      /* also cover cases without an sr-only H1 */
}

/* === Inset image that stays small on mobile and larger on desktop === */
.content-text img.img-inset {
  float: right;
  height: auto;
  border: 2px solid #000;
  border-radius: 4px;
  margin: 2px 0 10px 12px;   /* space from text */
  width: 230px;              /* desktop size */
}

/* Keep later sections from sliding under floats */
.content-text::after {
  content: "";
  display: block;
  clear: both;
}

/* Mobile override: beat the .content-block img { width:100% } rule */
@media (max-width: 768px) {
  .content-text img.img-inset {
    width: 42vw;             /* ~40% of screen */
    max-width: 150px;        /* cap on small phones */
    float: right;            /* ensure wrap on mobile */
    margin: 2px 0 8px 12px;
  }
}
