/* ================================
   Landon's Day — Shared Styles
   ================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@400;500;600&display=swap');

/* Reset & Base */
@keyframes pageFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Prevents any accidental horizontal overflow (e.g. a flex scroll-row
   without a width constraint somewhere in its ancestor chain) from
   widening the whole document. Doesn't affect intentional internal
   scroll areas like .poster-row or .rivals-hero-select-col - those
   set their own overflow-x:auto and keep working exactly as designed. */
html, body {
  overflow-x: hidden;
}

body {
  animation: pageFadeIn 0.4s ease;
  margin: 0;
  padding: 0;
  background: radial-gradient(ellipse 1200px 600px at 50% -10%, #10151f 0%, #000 60%);
  background-color: #000;
  background-attachment: fixed;
  color: #fff;
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ---- Site Header (home page) ---- */
header {
  padding: 1.5rem 1rem;
  text-align: center;
  background: linear-gradient(180deg, #0c1119 0%, #000 100%);
  border-bottom: 1px solid rgba(0, 170, 255, 0.15);
  color: #fff;
}

header h1 {
  margin: 0;
  font-family: 'Bebas Neue', 'Segoe UI', sans-serif;
  font-size: 2.75rem;
  letter-spacing: 0.06em;
  color: #fff;
  text-shadow: 0 0 20px rgba(0, 170, 255, 0.55);
}

/* ---- Back to top button (subtle, low-key) ---- */
.back-to-top-btn {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(20, 20, 20, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #888;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, background-color 0.2s ease, color 0.2s ease;
  z-index: 60;
}

.back-to-top-btn.visible {
  opacity: 0.75;
  pointer-events: auto;
}

.back-to-top-btn:hover {
  opacity: 1;
  background: rgba(35, 35, 35, 0.9);
  color: #ccc;
}

/* ---- Site-wide navigation bar (all pages) ---- */
.site-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.5rem;
  background: #000;
  border-bottom: 1px solid rgba(0, 170, 255, 0.15);
  position: sticky;
  top: 0;
  z-index: 50;
  flex-wrap: wrap;
}

.site-nav-logo {
  font-family: 'Bebas Neue', 'Segoe UI', sans-serif;
  font-size: 1.15rem;
  letter-spacing: 0.05em;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  flex: 0 0 auto;
}

.site-nav-links {
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
  overflow-x: auto;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.site-nav-link {
  color: #999;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
  padding: 0.3rem 0.1rem;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.site-nav-link:hover {
  color: #fff;
}

.site-nav-link.active {
  color: #00aaff;
  border-bottom-color: #00aaff;
}

/* ---- Slim nav (category detail pages) ---- */
.page-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.4) 100%);
  border-bottom: 1px solid rgba(0, 170, 255, 0.1);
}

.page-nav a.back-link {
  color: #00aaff;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  transition: color 0.2s ease;
}

.page-nav a.back-link:hover {
  color: #4dc4ff;
  text-decoration: underline;
}

/* ---- Home hero slider ---- */
.slider {
  width: 100%;
  max-width: 1600px;
  height: 500px;
  overflow: hidden;
  position: relative;
  margin: 0 auto;
  background-color: #000;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

.slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(30px) brightness(0.45);
  transform: scale(1.15);
}

.slide-fg {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 1;
  display: block;
  margin: 0 auto;
}

.slider::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
  z-index: 2;
  pointer-events: none;
}

.slider-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 3;
}

.slider-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}

.slider-dot:hover {
  background: rgba(255, 255, 255, 0.7);
}

.slider-dot.active {
  background: #fff;
  transform: scale(1.25);
}

/* ---- Category-page hero banner (single image, per-page) ---- */
.page-hero {
  position: relative;
  width: 100%;
  max-width: 1600px;
  height: 400px;
  margin: 0 auto;
  overflow: hidden;
}

.page-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-hero video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sharpen-hero {
  filter: url(#heroSharpen) contrast(1.08) saturate(1.1);
}

.page-hero::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 5%, transparent 60%);
}

.page-hero .page-hero-title {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 2;
  margin: 0;
  font-family: 'Bebas Neue', 'Segoe UI', sans-serif;
  font-size: 3rem;
  letter-spacing: 0.04em;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.7), 0 0 24px rgba(0, 170, 255, 0.35);
}

/* ---- About / intro section (homepage) ---- */
.about-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 1.5rem;
  text-align: center;
}

.about-section h2 {
  font-family: 'Bebas Neue', 'Segoe UI', sans-serif;
  font-size: 2.2rem;
  letter-spacing: 0.05em;
  color: #fff;
  margin-bottom: 0.75rem;
}

.about-section p {
  color: #ccc;
  line-height: 1.6;
  font-size: 1.05rem;
}

/* ---- Stats strip (homepage) ---- */
.stats-strip {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2.5rem;
  max-width: 1000px;
  margin: 0 auto;
  padding: 1.5rem;
}

.stat-block {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.stat-number {
  font-family: 'Bebas Neue', 'Segoe UI', sans-serif;
  font-size: 2.4rem;
  color: #00aaff;
  text-shadow: 0 0 16px rgba(0, 170, 255, 0.4);
  line-height: 1;
  min-height: 2.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-label {
  color: #999;
  font-size: 0.85rem;
  margin-top: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---- Top Rated match cards (landscape, used on homepage) ---- */
.match-card {
  position: relative;
  flex: 0 0 220px;
  width: 220px;
  height: 130px;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(160deg, #2c2c2c, #141414);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.match-card:hover {
  transform: scale(1.05);
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.3);
  z-index: 2;
}

.match-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.match-card-fallback {
  display: none;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.6rem;
  font-size: 0.85rem;
  font-weight: bold;
  color: #ccc;
  background: linear-gradient(160deg, #2c2c2c, #141414);
}

.match-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.5rem 0.6rem;
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
}

.match-card .match-card-title {
  color: #fff;
  font-size: 0.82rem;
  font-weight: bold;
  line-height: 1.2;
}

.match-card .match-card-rating {
  font-size: 0.72rem;
  color: #ffd54a;
  margin-top: 0.15rem;
}

/* ---- Category tile row (home page) ---- */
.category-bar {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  padding: 2rem 1.5rem;
  max-width: 1600px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.category-tile {
  position: relative;
  border-radius: 10px;
  width: 200px;
  height: 120px;
  overflow: hidden;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-tile::before {
  content: attr(data-title);
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.6rem;
  font-family: 'Bebas Neue', 'Segoe UI', sans-serif;
  font-size: 1.3rem;
  letter-spacing: 0.05em;
  color: #fff;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 1;
}

.category-tile:hover::before {
  opacity: 1;
}

.category-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.category-tile:hover {
  transform: scale(1.08);
  box-shadow: 0 0 20px rgba(0, 170, 255, 0.45);
  z-index: 2;
}

.category-tile:hover img {
  transform: scale(1.08);
}

/* ---- Content rows (used on both home + category pages) ---- */
.content-section {
  padding: 2rem 1.5rem;
  max-width: 1600px;
  margin: 0 auto;
  background: linear-gradient(180deg, #131313 0%, #0c0c0c 100%);
  color: #fff;
}

.content-section h2 {
  margin-bottom: 1rem;
  font-family: 'Bebas Neue', 'Segoe UI', sans-serif;
  font-size: 2.2rem;
  letter-spacing: 0.06em;
  color: #fff;
  text-align: center;
}

.content-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.content-card {
  border-radius: 8px;
  width: 240px;
  height: 135px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #111;
  transition: transform 0.25s ease;
}

.content-card:hover {
  transform: scale(1.04);
}

/* ---- Big 4 PPV row (wrestling page) ---- */
.big4-row {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.big4-card {
  position: relative;
  width: 220px;
  height: 220px;
  border-radius: 10px;
  overflow: hidden;
  background-color: #161616;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  box-sizing: border-box;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.big4-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.big4-card::before {
  content: attr(data-title);
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.6rem;
  font-family: 'Bebas Neue', 'Segoe UI', sans-serif;
  font-size: 1.2rem;
  letter-spacing: 0.05em;
  color: #fff;
  background: rgba(0, 0, 0, 0.65);
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 1;
}

.big4-card:hover::before {
  opacity: 1;
}

.big4-card:hover {
  transform: scale(1.06);
  box-shadow: 0 0 20px rgba(0, 170, 255, 0.45);
  z-index: 2;
}

.content-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---- Filter bar (used on data/table pages like WrestleMania matches) ---- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1.5rem;
  max-width: 1600px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 0;
}

.filter-bar .filter-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-bar label {
  color: #ccc;
  font-size: 0.95rem;
}

.filter-bar select,
.filter-bar input {
  padding: 0.5rem 0.75rem;
  font-size: 0.95rem;
  background-color: #2c2c2c;
  color: #fff;
  border: 1px solid #444;
  border-radius: 6px;
}

.filter-bar select:focus,
.filter-bar input:focus {
  outline: 2px solid #00aaff;
}

.stats-bar {
  text-align: center;
  max-width: 1600px;
  margin: 0.75rem auto 0;
  padding: 0 1.5rem;
  color: #ccc;
  font-size: 1rem;
}

.stats-bar strong {
  color: #00aaff;
}

.matches-table {
  width: 100%;
  max-width: 1400px;
  margin: 1.5rem auto 0;
  border-collapse: collapse;
  background-color: #111;
  table-layout: fixed;
}

.matches-table th,
.matches-table td {
  padding: 0.9rem;
  border: 1px solid #2c2c2c;
  font-size: 0.95rem;
  vertical-align: middle;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.matches-table th {
  background-color: #1a1a1a;
  color: #00aaff;
  text-align: center;
}

/* Column widths: Rating, Date, Match, Event, Winner, Loser, Type */
.matches-table th:nth-child(1), .matches-table td:nth-child(1) { width: 9%; text-align: center; }
.matches-table th:nth-child(2), .matches-table td:nth-child(2) { width: 10%; text-align: center; }
.matches-table th:nth-child(3), .matches-table td:nth-child(3) { width: 22%; text-align: left; }
.matches-table th:nth-child(4), .matches-table td:nth-child(4) { width: 11%; text-align: center; }
.matches-table th:nth-child(5), .matches-table td:nth-child(5) { width: 14%; text-align: left; }
.matches-table th:nth-child(6), .matches-table td:nth-child(6) { width: 20%; text-align: left; }
.matches-table th:nth-child(7), .matches-table td:nth-child(7) { width: 14%; text-align: left; }

.matches-table tr:nth-child(even) {
  background-color: #161616;
}

.matches-table tr:hover {
  background-color: #222;
}

/* ---- Marvel-style poster rows (Disney+ browse layout) ---- */
.mcu-row-section {
  max-width: 1600px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 0.5rem;
}

.mcu-row-heading {
  font-family: 'Bebas Neue', 'Segoe UI', sans-serif;
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
  color: #fff;
}

.poster-row-wrap {
  position: relative;
}

.poster-row-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0.75rem;
  width: 50px;
  background: linear-gradient(to right, transparent, #000 92%);
  pointer-events: none;
}

.poster-row {
  display: flex;
  gap: 0.9rem;
  overflow-x: auto;
  padding-bottom: 0.75rem;
  scrollbar-width: thin;
  scrollbar-color: #444 #111;
}

.poster-row::-webkit-scrollbar {
  height: 8px;
}

.poster-row::-webkit-scrollbar-track {
  background: #111;
  border-radius: 4px;
}

.poster-row::-webkit-scrollbar-thumb {
  background: #444;
  border-radius: 4px;
}

.poster-row::-webkit-scrollbar-thumb:hover {
  background: #00aaff;
}

.poster-card {
  position: relative;
  flex: 0 0 150px;
  width: 150px;
  aspect-ratio: 2 / 3;
  border-radius: 8px;
  overflow: hidden;
  background-color: #222;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.poster-card:hover {
  transform: scale(1.06);
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.35);
  z-index: 2;
}

.poster-card::before {
  content: attr(data-title);
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.6rem;
  font-size: 0.85rem;
  font-weight: bold;
  color: #fff;
  background: rgba(0, 0, 0, 0.65);
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 1;
}

.poster-card:hover::before {
  opacity: 1;
}

.poster-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.poster-fallback {
  display: none;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.75rem;
  font-size: 0.9rem;
  font-weight: bold;
  color: #ccc;
  background: linear-gradient(160deg, #2c2c2c, #151515);
}

.poster-rating-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.35rem 0.4rem;
  background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
  font-size: 0.75rem;
  color: #ffd54a;
  text-align: center;
}

/* ---- Review popup modal ---- */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.75);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  box-sizing: border-box;
}

.modal-overlay.open {
  display: flex;
}

.modal-poster-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.modal-poster-thumb {
  flex: 0 0 90px;
  width: 90px;
  height: 135px;
  border-radius: 6px;
  overflow: hidden;
  background-color: #222;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
}

.modal-poster-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.modal-poster-thumb-fallback {
  display: none;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  color: #555;
  font-size: 1.5rem;
}

.modal-header-info {
  flex: 1;
  min-width: 0;
}

.modal-box {
  background: linear-gradient(160deg, rgba(36, 36, 36, 0.6), rgba(13, 13, 13, 0.6));
  backdrop-filter: blur(20px) saturate(130%);
  -webkit-backdrop-filter: blur(20px) saturate(130%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 3px solid var(--modal-accent, #2c2c2c);
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 30px var(--modal-accent-glow, transparent);
  max-width: 560px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 1.5rem;
  position: relative;
  box-sizing: border-box;
}

.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  border-radius: 50%;
  color: #ccc;
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  transition: background 0.15s ease, color 0.15s ease;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.modal-title {
  margin: 0 0 0.25rem;
  color: #fff;
  font-family: 'Bebas Neue', 'Segoe UI', sans-serif;
  font-size: 1.6rem;
  letter-spacing: 0.03em;
  padding-right: 1.5rem;
}

.modal-meta {
  color: #888;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.modal-episodes {
  margin-bottom: 1rem;
  border-top: 1px solid #2c2c2c;
  border-bottom: 1px solid #2c2c2c;
  padding: 0.75rem 0;
}

.modal-episode-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.3rem 0;
  font-size: 0.9rem;
}

.modal-episode-row .ep-name {
  color: #ccc;
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: break-word;
}

.modal-episode-row .ep-rating {
  flex: 0 0 auto;
  color: #ffd54a;
  white-space: nowrap;
}

.modal-season-label {
  color: #00aaff;
  font-weight: bold;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}

.modal-rating {
  color: #ffd54a;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.modal-rating-empty {
  color: #444;
}

.modal-review {
  color: #ddd;
  line-height: 1.55;
  font-size: 0.95rem;
  white-space: pre-line;
}

.modal-review.pending {
  color: #888;
  font-style: italic;
}

.modal-last-watched {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid #2c2c2c;
  color: #888;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}

/* ================================
   Movies Page — distinct amber theme
   ================================ */
.movies-page .page-hero .page-hero-title,
.movies-page .mcu-row-heading,
.movies-page .content-section h2 {
  text-shadow: 0 2px 10px rgba(0,0,0,0.7), 0 0 24px rgba(245, 166, 35, 0.35);
}

.movies-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 1rem;
}

.movies-section-heading {
  font-family: 'Bebas Neue', 'Segoe UI', sans-serif;
  font-size: 1.7rem;
  letter-spacing: 0.05em;
  color: #fff;
  margin-bottom: 0.3rem;
  text-shadow: 0 0 18px rgba(245, 166, 35, 0.35);
}

.movies-section-subheading {
  color: #999;
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

/* ---- Favorites showcase (fixed 4-card grid, not scrollable) ---- */
.favorites-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.favorite-card {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(160deg, #2c2c2c, #141414);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: 1px solid rgba(245, 166, 35, 0.25);
}

.favorite-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 8px 22px rgba(245, 166, 35, 0.35);
}

.favorite-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.favorite-card .fav-ribbon {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  background: rgba(245, 166, 35, 0.92);
  color: #1a1200;
  font-size: 0.7rem;
  font-weight: bold;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  letter-spacing: 0.03em;
  z-index: 2;
}

.favorite-card .fav-fallback {
  display: none;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.75rem;
  font-size: 0.95rem;
  font-weight: bold;
  color: #ddd;
}

.favorite-card::after {
  content: attr(data-title);
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 0.6rem 0.5rem;
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
  color: #fff;
  font-size: 0.85rem;
  font-weight: bold;
  text-align: center;
}

/* ---- Watchlist checklist ---- */
.watchlist-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.watchlist-column h3 {
  font-family: 'Bebas Neue', 'Segoe UI', sans-serif;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  color: #f5a623;
  margin-bottom: 0.6rem;
}

.watchlist-list {
  list-style: none;
  padding: 0;
  margin: 0;
  columns: 230px auto;
  column-gap: 1.5rem;
}

.watchlist-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid #222;
  color: #ddd;
  font-size: 0.9rem;
  break-inside: avoid;
}

.watchlist-number {
  flex: 0 0 auto;
  color: #f5a623;
  font-family: 'Bebas Neue', 'Segoe UI', sans-serif;
  font-size: 1rem;
  min-width: 1.6rem;
}

.watchlist-empty {
  color: #888;
  font-style: italic;
  padding: 0.75rem 0;
}

/* ---- Rated archive (compact review list, not a poster grid) ---- */
/* ---- Perfect Episode rows ---- */
.perfect-ep-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 0.9rem;
}

.perfect-ep-row {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  background: linear-gradient(160deg, #181818, #101010);
  border: 1px solid #2c2c2c;
  border-radius: 8px;
  padding: 0.7rem 1rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.perfect-ep-row:hover {
  border-color: rgba(245, 166, 35, 0.5);
  transform: translateY(-3px);
}

.perfect-ep-thumb {
  position: relative;
  flex: 0 0 48px;
  width: 48px;
  height: 72px;
  border-radius: 5px;
  overflow: hidden;
  background-color: #222;
}

.perfect-ep-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.perfect-ep-thumb-fallback {
  display: none;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  color: #555;
  font-size: 1.1rem;
}

.perfect-ep-badge {
  position: absolute;
  bottom: 0.2rem;
  right: 0.2rem;
  background: rgba(245, 166, 35, 0.92);
  color: #1a1200;
  font-size: 0.6rem;
  font-weight: bold;
  padding: 0.1rem 0.3rem;
  border-radius: 4px;
  z-index: 2;
}

.perfect-ep-info {
  flex: 1;
  min-width: 0;
}

.perfect-ep-showtitle {
  color: #fff;
  font-weight: bold;
  font-size: 0.98rem;
  text-transform: none;
}

.perfect-ep-subline {
  color: #aaa;
  font-size: 0.85rem;
  margin-top: 0.1rem;
}

.perfect-ep-stars {
  color: #ffd54a;
  font-size: 0.85rem;
  margin-top: 0.3rem;
}

.perfect-ep-date {
  color: #777;
  font-size: 0.75rem;
  margin-top: 0.15rem;
}
.archive-toggle {
  display: flex;
  max-width: 400px;
  margin: 0 auto 1.25rem;
  border: 1px solid rgba(245, 166, 35, 0.35);
  border-radius: 999px;
  overflow: hidden;
}

.archive-toggle-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: #999;
  font-family: 'Bebas Neue', 'Segoe UI', sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.05em;
  padding: 0.6rem 1rem;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.archive-toggle-btn.active {
  background-color: #f5a623;
  color: #1a1200;
}

.archive-toggle-btn:not(.active):hover {
  background-color: rgba(245, 166, 35, 0.12);
  color: #fff;
}

.archive-search {
  display: block;
  width: 100%;
  max-width: 400px;
  margin: 0 0 1.25rem;
  padding: 0.6rem 1rem;
  background-color: #1e1e1e;
  border: 1px solid #2c2c2c;
  border-radius: 999px;
  color: #fff;
  font-size: 0.95rem;
}

.archive-search:focus {
  outline: none;
  border-color: rgba(245, 166, 35, 0.5);
}

.archive-search::placeholder {
  color: #777;
}

/* ---- Pick Something For Me ---- */
.pick-for-me {
  margin-top: 1.5rem;
  text-align: center;
}

.pick-for-me-btn {
  background-color: #f5a623;
  color: #1a1200;
  border: none;
  font-family: 'Bebas Neue', 'Segoe UI', sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  padding: 0.7rem 1.6rem;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pick-for-me-btn:hover {
  transform: scale(1.04);
  box-shadow: 0 0 16px rgba(245, 166, 35, 0.5);
}

.pick-result {
  margin-top: 1rem;
  color: #fff;
  font-size: 1.05rem;
}

.pick-result-type {
  color: #999;
  font-size: 0.9rem;
}

.archive-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 1.25rem;
}

.archive-page-btn {
  background-color: #1e1e1e;
  border: 1px solid rgba(245, 166, 35, 0.35);
  color: #f5a623;
  font-family: 'Bebas Neue', 'Segoe UI', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.04em;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.archive-page-btn:hover:not(:disabled) {
  background-color: rgba(245, 166, 35, 0.15);
}

.archive-page-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.games-page .archive-page-btn {
  border-color: rgba(0, 170, 255, 0.35);
  color: #00aaff;
}

.games-page .archive-page-btn:hover:not(:disabled) {
  background-color: rgba(0, 170, 255, 0.15);
}

.archive-page-label {
  color: #999;
  font-size: 0.9rem;
}

.review-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.review-list-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: linear-gradient(160deg, #181818, #101010);
  border: 1px solid #2c2c2c;
  border-radius: 8px;
  padding: 0.7rem 1.1rem;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.review-list-thumb {
  flex: 0 0 42px;
  width: 42px;
  height: 63px;
  border-radius: 4px;
  overflow: hidden;
  background-color: #222;
  position: relative;
}

.review-list-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.review-list-thumb-fallback {
  display: none;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  color: #555;
  font-size: 1.1rem;
}

.review-list-info {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.review-list-item:hover {
  border-color: rgba(245, 166, 35, 0.5);
  transform: translateX(4px);
}

.review-list-title {
  color: #fff;
  font-weight: bold;
}

.review-list-meta {
  color: #888;
  font-size: 0.85rem;
  font-weight: normal;
}

.review-list-rating {
  color: #ffd54a;
  white-space: nowrap;
}

/* ---- Recommend Something (form embed) ---- */
.recommend-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem 1.5rem 3rem;
  text-align: center;
}

.recommend-section iframe {
  width: 100%;
  max-width: 640px;
  height: 421px;
  border: 1px solid #2c2c2c;
  border-radius: 10px;
  background: #fff;
}

/* ---- Realm 360 spin viewer ---- */
.realm-spin-wrap {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #2c2c2c;
  background: #111;
}

.realm-spin-wrap:focus-visible {
  outline: 2px solid #00aaff;
  outline-offset: 2px;
}

.realm-spin-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1920 / 1057;
  object-fit: cover;
  cursor: grab;
  user-select: none;
  -webkit-user-drag: none;
}

.realm-spin-hint {
  position: absolute;
  bottom: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 0.8rem;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  pointer-events: none;
  white-space: nowrap;
}

/* ---- Hypixel stats cards ---- */
.hypixel-layout {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto 2rem;
  padding: 0 1.5rem;
  flex-wrap: wrap;
}

.hypixel-left-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex-shrink: 0;
}

#skinCanvas {
  margin-top: 40px;
}

#skinCanvas2 {
  margin-top: 130px;
}

.skin-canvas {
  cursor: grab;
  flex-shrink: 0;
  border-radius: 8px;
  margin: 0 auto;
}

.skin-canvas:active {
  cursor: grabbing;
}

.hypixel-right-col {
  flex: 1;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hypixel-general-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.75rem;
}

.hypixel-general-strip .stat-block {
  min-height: 62px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hypixel-general-strip .stat-number {
  font-size: 1.2rem !important;
  line-height: 1.25;
  min-height: 1.5rem;
}

.hypixel-game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.hypixel-game-card {
  background: linear-gradient(160deg, #181818, #101010);
  border: 1px solid #2c2c2c;
  border-radius: 10px;
  padding: 1.1rem 1.25rem;
  min-height: 230px;
  box-sizing: border-box;
}

.hypixel-game-card h3 {
  font-family: 'Bebas Neue', 'Segoe UI', sans-serif;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  color: #00aaff;
  margin: 0 0 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hypixel-icon {
  width: 22px;
  height: 22px;
  image-rendering: pixelated;
  flex-shrink: 0;
}

.hypixel-stat-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.25rem 0;
  font-size: 0.9rem;
  border-bottom: 1px solid #222;
}

.hypixel-stat-row:last-child {
  border-bottom: none;
}

.hypixel-stat-label {
  color: #999;
}

.hypixel-stat-value {
  color: #fff;
  font-weight: bold;
  text-align: right;
}

@font-face {
  font-family: 'Minecraftia';
  src: url('../fonts/Minecraftia.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

/* ---- Hypixel section: Minecraft-style font throughout ---- */
#hypixelSection,
#hypixelSection * {
  font-family: 'Minecraftia', 'Bebas Neue', 'Segoe UI', sans-serif;
}

.skyblock-panel {
  width: 100%;
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  background: linear-gradient(160deg, #181818, #101010);
  border: 1px solid #2c2c2c;
  border-radius: 10px;
  box-sizing: border-box;
}

.skyblock-panel-title {
  font-family: 'Bebas Neue', 'Segoe UI', sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  color: #55d454;
  margin: 0 0 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.skyblock-key-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  padding-bottom: 0.6rem;
  margin-bottom: 0.6rem;
  border-bottom: 1px solid #2c2c2c;
}

.skyblock-key-stats .stat-number {
  font-size: 1.05rem !important;
  min-height: 1.3rem;
}

.skyblock-coop-stat img {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  image-rendering: pixelated;
  background-color: #222;
}

.skyblock-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.skyblock-column h4 {
  color: #55d454;
  font-size: 0.85rem;
  margin: 0 0 0.25rem;
}

.skyblock-column .hypixel-stat-row {
  padding: 0.12rem 0;
  font-size: 0.78rem;
}

/* ---- Games page: Most Played showcase cards (landscape) ---- */
.game-card {
  position: relative;
  flex: 0 0 220px;
  width: 220px;
  height: 130px;
  border-radius: 8px;
  overflow: hidden;
  background-color: #222;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.game-card:hover {
  transform: scale(1.06);
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.3);
  z-index: 2;
}

.game-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.game-card-fallback {
  display: none;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.6rem;
  font-size: 0.85rem;
  font-weight: bold;
  color: #ccc;
  background: linear-gradient(160deg, #2c2c2c, #141414);
}

.library-thumb-wrap {
  position: relative;
  display: block;
  flex-shrink: 0;
  width: 60px;
  height: 28px;
  border-radius: 3px;
  overflow: hidden;
  background-color: #222;
}

.library-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.library-thumb-fallback {
  display: none;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.game-card .game-card-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.4rem 0.5rem;
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
  color: #00aaff;
  font-size: 0.78rem;
  text-align: center;
}

/* ---- Games page: Full Library list ---- */
.game-list-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: linear-gradient(160deg, #181818, #101010);
  border: 1px solid #2c2c2c;
  border-radius: 8px;
  padding: 0.6rem 1.1rem;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.game-list-item:hover {
  border-color: rgba(0, 170, 255, 0.5);
  transform: translateX(4px);
}

.game-list-thumb {
  flex: 0 0 92px;
  width: 92px;
  height: 43px;
  border-radius: 4px;
  overflow: hidden;
  background-color: #222;
}

.game-list-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.game-list-info {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.game-list-title {
  color: #fff;
  font-weight: bold;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-list-meta {
  color: #888;
  font-size: 0.85rem;
  white-space: nowrap;
}

/* ---- Games page: Full Library table ---- */
.library-table {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto 1rem;
  border-collapse: collapse;
  background-color: #111;
}

.library-table th,
.library-table td {
  padding: 0.7rem 0.9rem;
  text-align: center;
  border: 1px solid #2c2c2c;
  font-size: 0.9rem;
}

.library-table th {
  background-color: #1a1a1a;
  color: #00aaff;
  user-select: none;
}

.library-table th:hover {
  background-color: #222;
}

.library-table th:first-child,
.library-table td:first-child {
  text-align: left;
}

.library-table tr:nth-child(even) {
  background-color: #161616;
}

.library-table tbody tr:hover {
  background-color: #222;
}

/* ---- "Coming soon" placeholder for unbuilt category pages ---- */
.coming-soon {
  max-width: 700px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.coming-soon-card {
  background: linear-gradient(160deg, #181818, #101010);
  border: 1px solid #2c2c2c;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  padding: 2rem 1.75rem;
  text-align: center;
}

.coming-soon-badge {
  display: inline-block;
  background-color: rgba(0, 170, 255, 0.12);
  color: #00aaff;
  border: 1px solid rgba(0, 170, 255, 0.35);
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
  font-size: 0.75rem;
  font-weight: bold;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.coming-soon-card h2 {
  font-family: 'Bebas Neue', 'Segoe UI', sans-serif;
  font-size: 1.8rem;
  letter-spacing: 0.04em;
  color: #fff;
  margin: 0 0 0.75rem;
}

.coming-soon-card p {
  color: #bbb;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.coming-soon-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
  display: inline-block;
}

.coming-soon-list li {
  color: #ddd;
  padding: 0.4rem 0;
  border-bottom: 1px solid #222;
}

.coming-soon-list li:last-child {
  border-bottom: none;
}

.coming-soon-list li::before {
  content: "▸ ";
  color: #00aaff;
  font-weight: bold;
}

/* ---- Compact "What's Coming" preview grid (homepage) ---- */
.coming-grid-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem 2.5rem;
}

.coming-grid-section > h2 {
  font-family: 'Bebas Neue', 'Segoe UI', sans-serif;
  font-size: 2.2rem;
  letter-spacing: 0.05em;
  color: #fff;
  text-align: center;
  margin-bottom: 1.25rem;
}

.coming-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.coming-grid-card {
  background: linear-gradient(160deg, #181818, #101010);
  border: 1px solid #2c2c2c;
  border-radius: 10px;
  padding: 1.25rem;
  text-decoration: none;
  display: block;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.coming-grid-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 14px rgba(0, 170, 255, 0.25);
}

.coming-grid-card h3 {
  font-family: 'Bebas Neue', 'Segoe UI', sans-serif;
  font-size: 1.2rem;
  letter-spacing: 0.03em;
  color: #fff;
  margin: 0 0 0.4rem;
}

.coming-grid-card p {
  color: #999;
  font-size: 0.85rem;
  line-height: 1.5;
  margin: 0;
}

/* ---- Wrestling saga (dramatic chapter narrative) ---- */
.saga {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #2c2c2c;
}

.saga-chapter {
  max-width: 720px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.saga-chapter:last-child {
  margin-bottom: 0;
}

.saga-number {
  display: block;
  color: #00aaff;
  font-family: 'Bebas Neue', 'Segoe UI', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.saga-chapter h3 {
  font-family: 'Bebas Neue', 'Segoe UI', sans-serif;
  font-size: 2rem;
  letter-spacing: 0.04em;
  color: #fff;
  margin: 0 0 0.75rem;
  text-shadow: 0 0 16px rgba(0, 170, 255, 0.3);
}

.saga-chapter p {
  color: #ccc;
  line-height: 1.65;
  font-size: 1.02rem;
}

/* ---- Footer ---- */
footer {
  text-align: center;
  padding: 2rem;
  background-color: #000;
  color: #888;
}

/* ---- Keyboard focus states (site-wide) ----
   :focus-visible only shows for keyboard navigation, not mouse clicks,
   so this doesn't add a ring every time someone clicks with a mouse. */
.site-nav-link:focus-visible,
.site-nav-logo:focus-visible,
.modal-close:focus-visible,
.archive-toggle-btn:focus-visible,
.pick-for-me-btn:focus-visible,
.back-to-top-btn:focus-visible,
.slider-dot:focus-visible,
.category-tile:focus-visible,
.coming-grid-card:focus-visible,
.poster-card:focus-visible,
.favorite-card:focus-visible,
.review-list-item:focus-visible,
.game-card:focus-visible,
.match-card:focus-visible,
.big4-card:focus-visible {
  outline: 2px solid #00aaff;
  outline-offset: 2px;
}

/* Cards are dark-on-dark, so a plain outline can be hard to see against
   their own background - add a subtle glow to make it pop regardless of
   the card's own image/color underneath. */
.poster-card:focus-visible,
.favorite-card:focus-visible,
.review-list-item:focus-visible,
.game-card:focus-visible,
.match-card:focus-visible,
.big4-card:focus-visible {
  box-shadow: 0 0 0 2px #00aaff, 0 0 14px rgba(0, 170, 255, 0.6);
}

/* === Mobile Styles === */
@media screen and (max-width: 768px) {
  header {
    font-size: 1.5rem;
  }

  .site-nav {
    padding: 0.7rem 1rem;
    justify-content: flex-start;
  }

  .site-nav-logo {
    width: 100%;
    text-align: center;
  }

  .site-nav-links {
    position: static;
    transform: none;
    gap: 1rem;
    width: 100%;
    justify-content: center;
  }

  .site-nav-link {
    font-size: 0.85rem;
  }

  .slider {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .page-hero {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .page-hero .page-hero-title {
    font-size: 1.6rem;
  }

  .category-bar {
    padding: 1rem;
  }

  .category-tile {
    flex: 1 0 40%;
    max-width: 45%;
    margin-bottom: 1rem;
  }

  .content-row {
    flex-direction: column;
    align-items: center;
  }

  .big4-card {
    width: 42%;
    height: 140px;
  }

  .content-card {
    width: 90%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .filter-bar {
    justify-content: flex-start;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .matches-table,
  .matches-table thead,
  .matches-table tbody,
  .matches-table tr {
    display: block;
    width: auto;
  }

  .matches-table thead {
    display: none;
  }

  .matches-table tr {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 0.75rem;
    row-gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 1rem 1.1rem;
    border: 1px solid #2c2c2c;
    border-radius: 10px;
    background-color: #161616;
  }

  .matches-table td {
    display: block;
    text-align: left;
    border: none;
    padding: 0;
    width: auto;
  }

  /* Match name = the headline of the card, spans the full width */
  .matches-table td:nth-child(3) {
    grid-column: 1 / -1;
    order: 1;
    width: auto;
    font-size: 1.05rem;
    font-weight: bold;
    color: #fff;
  }

  /* Meta chips: Rating, Event, Date sit in a row of 3 */
  .matches-table td:nth-child(1),
  .matches-table td:nth-child(4),
  .matches-table td:nth-child(2) {
    width: auto;
    font-size: 0.8rem;
    color: #aaa;
  }

  .matches-table td:nth-child(1) { order: 2; }
  .matches-table td:nth-child(4) { order: 3; }
  .matches-table td:nth-child(2) { order: 4; }

  .matches-table td:nth-child(1)::before,
  .matches-table td:nth-child(4)::before,
  .matches-table td:nth-child(2)::before {
    content: attr(data-label) ":";
    display: block;
    color: #00aaff;
    font-weight: bold;
    font-size: 0.7rem;
    margin-bottom: 0.15rem;
  }

  /* Result line: Winner def. Loser, spans full width */
  .matches-table td:nth-child(5) {
    grid-column: 1 / -1;
    order: 5;
    width: auto;
    color: #6fdc8c;
    font-size: 0.95rem;
  }

  .matches-table td:nth-child(5)::before {
    content: "🏆 ";
  }

  .matches-table td:nth-child(6) {
    grid-column: 1 / -1;
    order: 6;
    width: auto;
    color: #999;
    font-size: 0.85rem;
    margin-top: -0.3rem;
  }

  .matches-table td:nth-child(6)::before {
    content: "def. ";
  }

  /* Match type, small subtitle at the bottom, spans full width */
  .matches-table td:nth-child(7):not(:empty) {
    grid-column: 1 / -1;
    order: 7;
    width: auto;
    font-size: 0.8rem;
    font-style: italic;
    color: #888;
  }

  .poster-card {
    flex: 0 0 108px;
    width: 108px;
  }

  .mcu-row-heading {
    font-size: 1.05rem;
  }

  .modal-box {
    padding: 1.1rem;
    width: 100%;
    box-sizing: border-box;
  }

  .modal-poster-row {
    flex-wrap: wrap;
  }

  .modal-title,
  .modal-meta,
  .modal-review {
    overflow-wrap: break-word;
    word-break: break-word;
    max-width: 100%;
  }

  .modal-episode-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
  }

  .modal-episode-row .ep-rating {
    white-space: normal;
  }

  .game-card {
    flex: 0 0 170px;
    width: 170px;
    height: 100px;
  }

  .game-list-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
  }

  .game-list-title {
    max-width: 100%;
  }

  .skyblock-columns {
    grid-template-columns: 1fr;
  }

  .library-table thead {
    display: none;
  }

  .library-table, .library-table tbody, .library-table tr {
    display: block;
    width: 100%;
  }

  .library-table tr {
    margin-bottom: 0.75rem;
    border: 1px solid #2c2c2c;
    border-radius: 8px;
    overflow: hidden;
  }

  .library-table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    border: none;
    border-bottom: 1px solid #222;
  }

  .library-table td:last-child {
    border-bottom: none;
  }

  .library-table td::before {
    content: attr(data-label);
    color: #00aaff;
    font-weight: bold;
    font-size: 0.8rem;
    margin-right: 0.75rem;
  }

  .library-table td[data-label="Game"]::before {
    display: none;
  }

  .about-section h2 {
    font-size: 1.5rem;
  }

  .about-section p {
    font-size: 0.95rem;
  }

  .stats-strip {
    gap: 1.5rem;
  }

  .stat-number {
    font-size: 1.9rem;
  }

  .match-card {
    flex: 0 0 170px;
    width: 170px;
    height: 105px;
  }

  .category-tile {
    width: 42%;
    height: 90px;
  }

  .favorites-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .watchlist-columns {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .movies-section-heading {
    font-size: 1.4rem;
  }

  .perfect-ep-grid {
    grid-template-columns: 1fr;
  }

  .review-list-item {
    flex-direction: row;
    align-items: center;
  }

  .review-list-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
  }

  /* ---- Rivals & Hypixel (formerly a separate @media block) ---- */
  .rivals-grid {
    flex-direction: column;
  }
  .rivals-main-body {
    flex-direction: column;
  }
  .rivals-banner {
    height: auto;
    min-height: 110px;
  }
  .rivals-hero-select-col {
    flex-direction: row;
    flex: 0 0 auto;
    height: auto;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    padding-right: 0;
    padding-bottom: 0.4rem;
  }
  .rivals-hero-select-item {
    flex-shrink: 0;
  }
  .rivals-hero-select-hours {
    white-space: nowrap;
  }
  .rivals-hero-card {
    width: 110px;
    height: 155px;
  }

  .rivals-stat-table-wrap {
    overflow-x: hidden;
  }

  .rivals-stat-table {
    table-layout: fixed;
  }

  .rivals-stat-table th,
  .rivals-stat-table td {
    padding: 0.4rem 0.3rem;
    font-size: 0.72rem;
    overflow-wrap: break-word;
    word-break: break-word;
  }

  .rivals-stat-table th:first-child,
  .rivals-stat-table td:first-child {
    width: 38%;
  }

  .rivals-stat-table th:not(:first-child),
  .rivals-stat-table td:not(:first-child) {
    width: 20.67%;
  }

  .hypixel-layout {
    justify-content: center;
  }

  .hypixel-left-col {
    flex-direction: row;
    gap: 0.75rem;
    margin: 0 auto;
  }

  #skinCanvas,
  #skinCanvas2 {
    margin-top: 0;
  }

  .skin-canvas {
    width: 130px;
    height: 190px;
  }
}
/* ============================================================
   MARVEL RIVALS SECTIONS — append this whole block to the end
   of assets/css/styles.css
   ============================================================ */

/* ---- Marvel Rivals: overview grid ---- */
.rivals-grid {
  display: flex;
  align-items: stretch;
  gap: 1.25rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.rivals-left-col {
  flex: 0 0 70%;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.rivals-right-col {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.rivals-banner {
  flex: 0 0 auto;
  height: 150px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(160deg, #1e1e1e, #101010);
  border: 1px solid #2c2c2c;
  border-radius: 10px;
  padding: 0.6rem 1rem;
}

.rivals-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 15%, rgba(0,0,0,0.15) 85%);
  z-index: 1;
}

.rivals-banner-icon {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-color: #222;
  z-index: 0;
}

.rivals-banner-name {
  position: relative;
  z-index: 2;
  font-family: 'Bebas Neue', 'Segoe UI', sans-serif;
  font-size: 1.4rem;
  letter-spacing: 0.03em;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.85);
}

.rivals-main-body {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background: linear-gradient(160deg, #181818, #101010);
  border: 1px solid #2c2c2c;
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: stretch;
  gap: 1.25rem;
}

/* ---- Per-hero selector list (left side of the main stat box) ---- */
.rivals-hero-select-col {
  flex: 0 0 150px;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding-right: 0.4rem;
  scrollbar-width: thin;
  scrollbar-color: #333 transparent;
}

.rivals-hero-select-col::-webkit-scrollbar {
  width: 6px;
}

.rivals-hero-select-col::-webkit-scrollbar-track {
  background: transparent;
}

.rivals-hero-select-col::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 3px;
}

.rivals-hero-select-item {
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  border: 2px solid transparent;
  background: #1a1a1a;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.rivals-hero-select-item:hover {
  border-color: rgba(255, 255, 255, 0.5);
}

.rivals-hero-select-item.active {
  border-color: #ffd54a;
  background: #222;
}

.rivals-hero-select-fill {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 0;
  pointer-events: none;
  transition: width 0.2s ease;
}

.rivals-hero-select-icon {
  position: relative;
  z-index: 1;
  width: 34px;
  height: 34px;
  border-radius: 4px;
  object-fit: cover;
  background-color: #222;
  flex-shrink: 0;
}

.rivals-hero-select-hours {
  position: relative;
  z-index: 1;
  color: #fff;
  font-size: 0.85rem;
  font-weight: bold;
  white-space: nowrap;
  flex: 1;
}

.rivals-hero-select-check {
  position: relative;
  z-index: 1;
  color: #ffd54a;
  font-size: 0.85rem;
  flex-shrink: 0;
  visibility: hidden;
}

.rivals-hero-select-item.active .rivals-hero-select-check {
  visibility: visible;
}

/* ---- Stats column (right side of the main stat box) ---- */
.rivals-stats-col {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.rivals-subheading {
  font-family: 'Bebas Neue', 'Segoe UI', sans-serif;
  color: #00aaff;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  margin: 0;
}

.rivals-highlight-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

.rivals-highlight-block {
  text-align: center;
  flex: 1 1 100px;
}

.rivals-stat-table-wrap {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #333 transparent;
}

.rivals-stat-table-wrap::-webkit-scrollbar {
  width: 6px;
}

.rivals-stat-table-wrap::-webkit-scrollbar-track {
  background: transparent;
}

.rivals-stat-table-wrap::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 3px;
}

.rivals-stat-table {
  width: 100%;
  border-collapse: collapse;
}

.rivals-stat-table thead th {
  position: sticky;
  top: 0;
  background: #141414;
  z-index: 1;
}

.rivals-stat-table th,
.rivals-stat-table td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid #222;
  font-size: 0.88rem;
  text-align: center;
}

.rivals-stat-table th:first-child,
.rivals-stat-table td:first-child {
  text-align: left;
  color: #ccc;
}

.rivals-stat-table th {
  color: #00aaff;
  font-weight: bold;
}

.rivals-stat-table tr:nth-child(even) {
  background-color: #161616;
}

.rivals-tile {
  background: linear-gradient(160deg, #181818, #101010);
  border: 1px solid #2c2c2c;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.rivals-tile-1,
.rivals-tile-2,
.rivals-tile-3 {
  flex: 0 0 auto;
}

.rivals-tile-header span {
  font-family: 'Bebas Neue', 'Segoe UI', sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  color: #fff;
}

.rivals-role-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid #222;
}

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

.rivals-role-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  background-color: #222;
  flex-shrink: 0;
}

.rivals-role-info {
  flex: 1;
  min-width: 0;
}

.rivals-role-name {
  color: #fff;
  font-weight: bold;
  font-size: 0.9rem;
}

.rivals-role-wr {
  color: #6fdc8c;
  font-size: 0.8rem;
}

.rivals-role-kda {
  text-align: right;
  color: #ffd54a;
  font-size: 0.85rem;
  white-space: nowrap;
}

.rivals-summary-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}

.rivals-winrate-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.rivals-winrate-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: conic-gradient(#5ec8f8 0% var(--wr), #e05c5c var(--wr) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}

.rivals-winrate-circle::before {
  content: "";
  position: absolute;
  inset: 7px;
  background: #141414;
  border-radius: 50%;
}

.rivals-winrate-pct {
  position: relative;
  z-index: 1;
  font-family: 'Bebas Neue', 'Segoe UI', sans-serif;
  font-size: 1.2rem;
  color: #fff;
}

.rivals-winrate-meta {
  color: #fff;
  font-size: 0.9rem;
}

.rivals-kda-bar-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.rivals-kda-bar-label {
  width: 14px;
  font-size: 0.75rem;
  font-weight: bold;
}

.rivals-kda-bar-track {
  flex: 1;
  height: 6px;
  background-color: #222;
  border-radius: 3px;
  overflow: hidden;
}

.rivals-kda-bar-fill {
  height: 100%;
  border-radius: 3px;
}

/* ---- My Lord Heroes row ---- */
.rivals-hero-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.rivals-hero-card {
  position: relative;
  width: 130px;
  height: 182px;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(160deg, #2c2c2c, #141414);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rivals-hero-card:hover {
  transform: scale(1.06);
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.3);
  z-index: 2;
}

.rivals-hero-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rivals-hero-card-fallback {
  display: none;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.6rem;
  font-size: 0.85rem;
  font-weight: bold;
  color: #ccc;
}

.rivals-hero-card-name {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.5rem 0.4rem;
  background: linear-gradient(to top, rgba(0,0,0,0.92), transparent);
  color: #fff;
  font-family: 'Bebas Neue', 'Segoe UI', sans-serif;
  font-size: 0.85rem;
  text-align: center;
  letter-spacing: 0.03em;
}

.rivals-hero-card-date {
  display: inline-block;
  margin-top: 0.15rem;
  font-family: 'Segoe UI', sans-serif;
  font-size: 0.65rem;
  font-weight: normal;
  letter-spacing: normal;
  color: #00aaff;
}
