/* ===========================================
   RAAAAH.MEDIA — Global Stylesheet
   Underground. Unfiltered. Unapologetic.
   =========================================== */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Special+Elite&family=Courier+Prime:ital,wght@0,400;0,700;1,400&family=VT323&display=swap');

/* ---- Custom Properties ---- */
:root {
  --bg:        #0c0c0c;
  --bg-alt:    #111111;
  --bg-card:   #161616;
  --text:      #ddd5c8;
  --text-dim:  #7a7167;
  --red:       #c41e1e;
  --red-bright:#ff2a2a;
  --orange:    #bf4800;
  --yellow:    #c8a84b;
  --border:    #242424;
  --border-hi: #3a3a3a;

  --font-display: 'Bebas Neue', Impact, 'Arial Narrow', sans-serif;
  --font-body:    'Courier Prime', 'Courier New', monospace;
  --font-special: 'Special Elite', Georgia, serif;
  --font-pixel:   'VT323', 'Courier New', monospace;
}

/* ---- Reset ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.65;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ---- Noise/grain overlay ---- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
  opacity: 0.038;
  pointer-events: none;
  z-index: 9999;
}

/* ---- Scanlines ---- */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 3px,
    rgba(0,0,0,0.08) 3px,
    rgba(0,0,0,0.08) 4px
  );
  pointer-events: none;
  z-index: 9998;
}

/* ===========================================
   NAVIGATION
   =========================================== */
.site-nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(12,12,12,0.96);
  border-bottom: 1px solid var(--border);
  z-index: 11000;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 54px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--red);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo:hover { color: var(--red-bright); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-left: auto;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  font-family: var(--font-body);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--red); }

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  border: 1px solid var(--border-hi);
  background: var(--bg-card);
  flex-shrink: 0;
}
.language-switch button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  line-height: 1;
  padding: 0.45rem 0.55rem;
  text-transform: uppercase;
}
.language-switch button:hover,
.language-switch button.active {
  background: var(--red);
  color: #fff;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: background 0.2s;
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav-actions { gap: 0.75rem; }
  .nav-links {
    position: fixed;
    top: 54px;
    left: 0;
    width: 100%;
    flex-direction: column;
    background: rgba(12,12,12,0.98);
    padding: 1.5rem 2rem;
    gap: 1.2rem;
    transform: translateY(-110%);
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
    pointer-events: none;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
}

/* ===========================================
   PAGE WRAPPER
   =========================================== */
.page-wrapper { padding-top: 54px; min-height: 100vh; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.container--narrow {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===========================================
   HERO
   =========================================== */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 4rem 2rem 6rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
  filter: grayscale(55%) contrast(1.2) brightness(0.9);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(12,12,12,0.25) 0%,
    rgba(12,12,12,0.55) 55%,
    rgba(12,12,12,1) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.38em;
  color: var(--red);
  margin-bottom: 1rem;
  font-family: var(--font-body);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 16vw, 13rem);
  line-height: 0.88;
  letter-spacing: 0.01em;
  color: var(--text);
  text-transform: uppercase;
}

.hero-subtitle {
  font-family: var(--font-special);
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  color: var(--text-dim);
  margin-top: 1.75rem;
  max-width: 560px;
  line-height: 1.6;
}

.hero-cta {
  margin-top: 2.5rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--text-dim);
  z-index: 2;
  animation: scrollbounce 2s ease-in-out infinite;
}
@keyframes scrollbounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ===========================================
   BUTTONS
   =========================================== */
.btn {
  display: inline-block;
  padding: 0.7rem 2rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  line-height: 1;
}
.btn-primary {
  background: var(--red);
  color: #fff;
  border: 2px solid var(--red);
}
.btn-primary:hover {
  background: var(--red-bright);
  border-color: var(--red-bright);
  box-shadow: 0 0 22px rgba(196,30,30,0.45);
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border-hi);
}
.btn-outline:hover {
  border-color: var(--text);
  color: var(--text);
}
.btn-dim {
  background: transparent;
  color: var(--text-dim);
  border: 2px solid var(--border);
}
.btn-dim:hover {
  border-color: var(--text-dim);
  color: var(--text);
}

/* ===========================================
   SECTIONS
   =========================================== */
.section  { padding: 5rem 0; }
.section--tight { padding: 3rem 0; }
.section--dark  { background: var(--bg-alt); }

.section-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.42em;
  color: var(--red);
  margin-bottom: 0.6rem;
  font-family: var(--font-body);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  line-height: 0.95;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.section-text {
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--text-dim);
  max-width: 680px;
}

.divider { border: none; border-top: 1px solid var(--border); }

.red-bar {
  display: block;
  width: 52px;
  height: 3px;
  background: var(--red);
  margin: 1rem 0 1.5rem;
}

/* ===========================================
   HOME — CATEGORY GRID
   =========================================== */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

/* films & series take 1 col each, games takes 1 col
   podcasts and music share 1.5 col each in second row */
.cat-grid .card-films  { grid-column: 1; }
.cat-grid .card-series { grid-column: 2; }
.cat-grid .card-games  { grid-column: 3; }
.cat-grid .card-podcasts { grid-column: 1 / span 2; }
.cat-grid .card-music    { grid-column: 3; }

.cat-card {
  background: var(--bg-card);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 340px;
  text-decoration: none;
  transition: background 0.3s;
}
.cat-card:hover { background: #1e1212; }
.cat-card:hover .cat-img {
  opacity: 0.38;
  transform: scale(1.06);
  filter: grayscale(35%) contrast(1.1);
}

.cat-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.18;
  transition: opacity 0.45s, transform 0.5s, filter 0.4s;
  filter: grayscale(65%) contrast(1.15);
}

/* Decorative background for cards without images */
.cat-card-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.cat-card-bg--films {
  background:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 20px,
      rgba(196,30,30,0.04) 20px,
      rgba(196,30,30,0.04) 21px
    ),
    linear-gradient(to bottom right, rgba(100,0,0,0.15), transparent);
}
.cat-card-bg--podcasts {
  background: linear-gradient(135deg, rgba(30,20,0,0.4), rgba(12,12,12,0));
}
.cat-card-bg--music {
  background:
    repeating-linear-gradient(
      -30deg,
      transparent,
      transparent 30px,
      rgba(196,30,30,0.03) 30px,
      rgba(196,30,30,0.03) 31px
    ),
    linear-gradient(135deg, rgba(80,0,80,0.1), transparent);
}

.cat-body {
  position: relative;
  z-index: 2;
  padding: 2rem;
  margin-top: auto;
  background: linear-gradient(to top, rgba(12,12,12,0.97) 55%, transparent 100%);
}

.cat-tag {
  display: inline-block;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.38em;
  color: var(--red);
  margin-bottom: 0.5rem;
  font-family: var(--font-body);
}
.cat-title {
  font-family: var(--font-display);
  font-size: 2.4rem;
  line-height: 0.95;
  color: var(--text);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.cat-desc {
  font-size: 0.83rem;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 1rem;
}
.cat-arrow {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--red);
  font-family: var(--font-body);
}
.cat-arrow::after { content: ' →'; }
.cat-card:hover .cat-arrow { color: var(--red-bright); }

@media (max-width: 900px) {
  .cat-grid {
    grid-template-columns: 1fr 1fr;
  }
  .cat-grid .card-films    { grid-column: 1; }
  .cat-grid .card-series   { grid-column: 2; }
  .cat-grid .card-games    { grid-column: 1; }
  .cat-grid .card-podcasts { grid-column: 2; }
  .cat-grid .card-music    { grid-column: 1 / span 2; }
}

@media (max-width: 560px) {
  .cat-grid {
    grid-template-columns: 1fr;
  }
  .cat-grid .card-films,
  .cat-grid .card-series,
  .cat-grid .card-games,
  .cat-grid .card-podcasts,
  .cat-grid .card-music { grid-column: 1; }
  .cat-card { min-height: 260px; }
}

/* ===========================================
   VIDEO / EMBED
   =========================================== */
iframe[src*="youtube.com/embed"] {
  position: relative;
  z-index: 10000;
  background: #000;
}

.embed-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: #000;
  border: 1px solid var(--border);
}
.embed-wrap iframe {
  position: absolute;
  inset: 0;
  z-index: 10000;
  width: 100%;
  height: 100%;
  border: none;
}

.embed-block { margin-bottom: 3rem; }
.embed-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
  font-family: var(--font-body);
}

/* Itch.io embed */
.itch-embed {
  border: 1px solid var(--border);
  overflow: hidden;
  margin: 0 auto 2rem;
  max-width: 560px;
}
.itch-embed iframe {
  display: block;
  border: none;
  width: 100%;
}

/* ===========================================
   GAME PAGE — FEATURE LIST
   =========================================== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 2rem;
}
.feature-item {
  background: var(--bg-card);
  padding: 1.4rem 1.5rem;
  font-family: var(--font-pixel);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  line-height: 1.4;
}
.feature-item strong {
  display: block;
  color: var(--red);
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
  font-weight: 400;
}

/* ===========================================
   GALLERY
   =========================================== */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2px;
  margin-top: 2.5rem;
}
.gallery-item {
  overflow: hidden;
  aspect-ratio: 16/10;
  background: var(--bg-card);
  border: 1px solid var(--border);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(25%) contrast(1.1);
  transition: filter 0.35s, transform 0.4s;
}
.gallery-item:hover img {
  filter: none;
  transform: scale(1.04);
}

/* ===========================================
   PODCAST CARDS
   =========================================== */
.podcast-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 3rem;
}
.podcast-card {
  background: var(--bg-card);
  padding: 3rem 2.5rem;
}
.podcast-name {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  text-transform: uppercase;
  line-height: 0.95;
  margin-bottom: 1.5rem;
  color: var(--text);
}
.podcast-desc {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}
.podcast-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

@media (max-width: 640px) {
  .podcast-grid { grid-template-columns: 1fr; }
}

/* ===========================================
   MUSIC PAGE
   =========================================== */
.music-title-block {
  margin-bottom: 3rem;
}
.music-main-title {
  font-family: var(--font-special);
  font-size: clamp(2.2rem, 6vw, 5rem);
  line-height: 1.05;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.music-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

/* ===========================================
   STAT BLOCKS
   =========================================== */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 3rem;
}
.stat-block {
  background: var(--bg-card);
  padding: 2rem 1.5rem;
  text-align: center;
}
.stat-num {
  font-family: var(--font-display);
  font-size: 3.5rem;
  color: var(--red);
  line-height: 1;
}
.stat-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--text-dim);
  margin-top: 0.4rem;
}

/* ===========================================
   INFO BLOCK (two-col layout)
   =========================================== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.two-col--wide { grid-template-columns: 2fr 1fr; }
@media (max-width: 768px) {
  .two-col,
  .two-col--wide { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* ===========================================
   TAPE DECORATION
   =========================================== */
.tape-line {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--border);
  margin: 4rem 0;
  position: relative;
}
.tape-line::before {
  content: '▪ ▪ ▪';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: var(--bg);
  padding: 0 1rem;
  font-size: 0.5rem;
  color: var(--border-hi);
  letter-spacing: 0.6em;
}

/* ===========================================
   GLITCH EFFECT
   =========================================== */
.glitch {
  position: relative;
  display: inline-block;
}
.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  font-family: inherit;
  font-size: inherit;
  text-transform: inherit;
  color: var(--text);
  opacity: 0;
}
.glitch::before {
  color: var(--red);
  animation: glitch-a 5s infinite steps(1);
  clip-path: polygon(0 0, 100% 0, 100% 42%, 0 42%);
}
.glitch::after {
  color: #00d4ff;
  animation: glitch-b 5s infinite steps(1);
  clip-path: polygon(0 60%, 100% 60%, 100% 100%, 0 100%);
}
@keyframes glitch-a {
  0%, 94%, 100% { opacity: 0; transform: none; }
  95% { opacity: 0.85; transform: translate(-4px, 0); }
  96% { opacity: 0.85; transform: translate(4px, 0); }
  97% { opacity: 0.85; transform: translate(-2px, 2px); }
  98% { opacity: 0; }
}
@keyframes glitch-b {
  0%, 96%, 100% { opacity: 0; transform: none; }
  97% { opacity: 0.65; transform: translate(4px, 0); }
  98% { opacity: 0.65; transform: translate(-3px, 0); }
  99% { opacity: 0.65; transform: translate(2px, -1px); }
  99.5% { opacity: 0; }
}

/* ===========================================
   CONTACT PAGE
   =========================================== */
.contact-hero {
  background: radial-gradient(ellipse at 50% 60%, rgba(100,0,0,0.12) 0%, transparent 65%),
              var(--bg);
}
.contact-card {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  padding: 2.2rem;
  max-width: 760px;
  margin: 0 auto;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.015);
}
.contact-link {
  display: inline-block;
  margin-top: 0.8rem;
  color: var(--red);
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.contact-link:hover {
  color: var(--red-bright);
}
@media (max-width: 600px) {
  .contact-card { padding: 1.5rem; }
  .contact-link { font-size: 1.1rem; }
}

/* ===========================================
   FOOTER
   =========================================== */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 4rem 0 3rem;
  text-align: center;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--red);
  display: block;
  margin-bottom: 1rem;
  text-decoration: none;
  letter-spacing: 0.05em;
}
.footer-logo:hover { color: var(--red-bright); }
.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.8rem;
  list-style: none;
  padding: 1.5rem 0;
}
.footer-nav a {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--red); }
.footer-copy {
  font-size: 0.72rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  margin-top: 0.5rem;
}

/* ===========================================
   UTILITY
   =========================================== */
.text-red    { color: var(--red); }
.text-dim    { color: var(--text-dim); }
.text-upper  { text-transform: uppercase; }
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

/* ===========================================
   RESPONSIVE
   =========================================== */
@media (max-width: 768px) {
  .hero { min-height: 78vh; }
  .hero-title { font-size: clamp(3.5rem, 22vw, 7rem); }
  .section { padding: 3.5rem 0; }
}
