:root {
  /* Accent colour — change these two lines (same colour, hex + r,g,b) */
  --accent: #ff2a3d;
  --accent-rgb: 255, 42, 61;
  --accent-dim: rgba(var(--accent-rgb), .35);
  --yellow: #ffd21f;
  --orange: #ff8a00;
  --red-orange: #ff4d00;
  --purple: #6b1fb8;
  --night: #07040f;
  --text: #fff4e0;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  width: 100%; height: 100%;
  overflow: hidden;
  background: #000;
}

/* Fixed 1080p canvas, scaled to fit whatever size the source is */
#screen {
  position: absolute;
  left: 50%; top: 50%;
  width: 1920px; height: 1080px;
  transform: translate(-50%, -50%) scale(var(--fit, 1));
  overflow: hidden;
  background: var(--night);
  font-family: "Rajdhani", sans-serif;
  color: var(--text);
}

/* ---------- Clip background ---------- */
#clip, .clip-fallback {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity .6s ease;
}
#clip.fading { opacity: 0; }
.clip-fallback {
  display: none;
  background:
    radial-gradient(ellipse 60% 60% at 75% 40%, rgba(255,138,0,.25), transparent 70%),
    linear-gradient(135deg, #12081e, #2a0d1c 55%, #07040f);
}
.no-clips .clip-fallback { display: block; }
.no-clips #clip { display: none; }

/* Darkens the right side so the text stays readable over any clip */
.side-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, transparent 40%, rgba(5,2,12,.55) 60%, rgba(5,2,12,.85) 100%),
    linear-gradient(180deg, rgba(5,2,12,.35) 0%, transparent 30%, transparent 65%, rgba(5,2,12,.7) 100%);
}

.scanlines {
  position: absolute; inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.12) 0 1px, transparent 1px 3px);
  z-index: 50;
}

/* ---------- Credits panel ---------- */
.panel {
  position: absolute;
  left: -150px; top: -260px;
  width: 1120px; height: 1600px;
  transform: rotate(-8deg);
  transform-origin: 50% 50%;
  z-index: 10;
}
.panel-inner {
  position: absolute; inset: 0;
  overflow: hidden;
  background: linear-gradient(90deg, rgba(5,2,12,.6) 0%, rgba(5,2,12,.78) 100%);
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
}

.panel-edge {
  position: absolute; top: 0; bottom: 0; right: -6px; width: 6px;
  background: linear-gradient(180deg, var(--accent), var(--orange));
  box-shadow: 0 0 20px var(--accent), 0 0 60px rgba(var(--accent-rgb), .6), -12px 0 40px rgba(var(--accent-rgb), .25);
}

/* ---------- Credits ---------- */
.credits-window {
  position: absolute;
  left: 230px; top: 200px;
  width: 820px; height: 1200px;
  overflow: hidden;
  -webkit-mask: linear-gradient(180deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
          mask: linear-gradient(180deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
}
#credits {
  position: absolute; left: 0; right: 0; top: 0;
  text-align: center;
  will-change: transform;
}

.c-title {
  font-family: "Russo One", sans-serif;
  font-size: 64px;
  font-style: italic;
  letter-spacing: 2px;
  color: var(--accent);
  text-shadow: 0 0 14px rgba(var(--accent-rgb), .8), 4px 4px 0 rgba(0,0,0,.6);
  margin: 40px 0 180px;
}

.c-section { margin-bottom: 120px; }

.c-heading {
  display: flex; align-items: center; gap: 24px;
  justify-content: center;
  margin-bottom: 42px;
}
.c-heading::before, .c-heading::after {
  content: ""; flex: 1; height: 3px;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}
.c-heading span {
  font-family: "Russo One", sans-serif;
  font-size: 42px;
  font-style: italic;
  background: linear-gradient(180deg, #fff6b0 0%, var(--yellow) 40%, var(--orange) 60%, var(--red-orange) 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  filter: drop-shadow(0 3px 0 #2a0a00) drop-shadow(0 0 12px rgba(255,140,0,.55));
  white-space: nowrap;
}

.c-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px 40px;
  text-align: left;
  padding: 0 20px;
}
.c-grid.single { grid-template-columns: 1fr; justify-items: center; }

.c-person { display: flex; align-items: center; gap: 18px; min-width: 0; }
.c-avatar {
  flex: none;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: "Russo One", sans-serif; font-size: 26px; color: #fff;
  border: 3px solid var(--accent);
  box-shadow: 0 0 12px var(--accent-dim);
  text-shadow: 0 2px 2px rgba(0,0,0,.6);
}
.c-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.c-person.first .c-avatar {
  border-color: var(--yellow);
  box-shadow: 0 0 16px rgba(255, 210, 31, .8);
}
.c-person.first .c-name { color: var(--yellow); }

.c-stats {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 22px;
  padding: 0 20px;
}
.c-stat {
  width: calc((100% - 44px) / 3);
  padding: 18px 8px 14px;
  border: 2px solid var(--accent-dim);
  background: rgba(5, 2, 12, .6);
  box-shadow: inset 0 0 18px rgba(var(--accent-rgb), .15);
  transform: skewX(-8deg);
}
.c-stat b {
  display: block;
  font-family: "Russo One", sans-serif; font-weight: 400;
  font-size: 50px; line-height: 1.1;
  color: var(--yellow);
  text-shadow: 0 0 14px rgba(255, 140, 0, .7), 0 3px 0 #3a1200;
}
.c-stat span {
  font-family: "Audiowide", sans-serif;
  font-size: 17px; letter-spacing: 2px;
  color: var(--accent);
}

.c-name {
  font-weight: 700; font-size: 34px; line-height: 1;
  color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  text-shadow: 0 2px 4px rgba(0,0,0,.9);
}
.c-sub {
  font-family: "Audiowide", sans-serif;
  font-size: 20px; color: var(--yellow);
  margin-top: 6px;
}

.c-names {
  font-weight: 700; font-size: 38px; line-height: 1.5;
  text-shadow: 0 2px 4px rgba(0,0,0,.9);
}

.c-end {
  padding: 120px 0 80px;
  font-family: "Russo One", sans-serif; font-style: italic;
  font-size: 52px;
  color: #fff;
  text-shadow: 0 0 18px rgba(255,138,0,.8);
}
.c-end small {
  display: block; margin-top: 14px;
  font-family: "Audiowide", sans-serif; font-style: normal;
  font-size: 26px; color: var(--accent);
  text-shadow: 0 0 10px var(--accent-dim);
}

/* ---------- Right side ---------- */
.side {
  position: absolute;
  left: 1060px; right: 70px; top: 0; bottom: 0;
  z-index: 20;
  display: flex; flex-direction: column; align-items: flex-end;
  text-align: right;
}

.logo-wrap {
  margin-top: auto;
  padding-right: 40px;
  display: flex; align-items: center;
  animation: float 5s ease-in-out infinite;
}
.logo {
  width: 300px; height: 300px;
  border-radius: 50%;
  padding: 7px;
  background: linear-gradient(135deg, var(--yellow), var(--orange) 50%, var(--accent));
  box-shadow: 0 0 40px rgba(255, 140, 0, .55), 0 12px 30px rgba(0, 0, 0, .6);
}
.logo-fallback { display: none; }
.no-logo .logo { display: none; }
.no-logo .logo-fallback {
  display: grid; place-items: center;
  width: 260px; height: 260px;
  clip-path: polygon(50% 0, 100% 18%, 92% 72%, 50% 100%, 8% 72%, 0 18%);
  background: linear-gradient(160deg, var(--yellow), var(--orange) 55%, var(--red-orange));
  font-family: "Russo One", sans-serif; font-style: italic;
  font-size: 72px; color: #1b0a00;
  filter: drop-shadow(0 0 22px rgba(255, 200, 0, .65));
}
@keyframes float { 50% { transform: translateY(-12px); } }

.headline {
  margin-top: 26px;
  display: flex; flex-direction: column; align-items: flex-end;
  line-height: .95;
}
.chrome {
  font-family: "Russo One", sans-serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 2px;
  background: linear-gradient(180deg, #fffbe0 0%, #ffe45c 30%, var(--yellow) 48%, var(--orange) 52%, var(--red-orange) 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 1px #000) drop-shadow(0 5px 0 #3a1200) drop-shadow(0 0 26px rgba(255,140,0,.55));
  transform: skewX(-6deg);
  padding-right: 10px;
}
.line1 { font-size: 92px; }
.line2 { font-size: 132px; }
.line2 {
  animation: glow 3s ease-in-out infinite;
}
@keyframes glow {
  50% { filter: drop-shadow(0 0 1px #000) drop-shadow(0 5px 0 #3a1200) drop-shadow(0 0 44px rgba(255,160,0,.9)); }
}

.now-playing {
  margin-top: auto;
  margin-bottom: 26px;
  display: flex; align-items: center; gap: 12px;
  font-family: "Audiowide", sans-serif; font-size: 20px; letter-spacing: 2px;
  color: rgba(255,255,255,.75);
  max-width: 720px;
}
.now-playing #clipName { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.now-playing .dot {
  flex: none;
  width: 12px; height: 12px; border-radius: 50%;
  background: #ff2d4b; box-shadow: 0 0 10px #ff2d4b;
  animation: blink 1.2s steps(2) infinite;
}
.no-clips .now-playing { display: none; }
.no-clips .socials { margin-top: auto; }
@keyframes blink { 50% { opacity: .2; } }

.socials {
  margin-bottom: 70px;
  display: flex; flex-direction: column; align-items: flex-end; gap: 16px;
}
.social {
  display: flex; align-items: center; gap: 20px;
}
.social-icons { display: flex; gap: 10px; }
.social-icons span {
  display: grid; place-items: center;
  width: 54px; height: 54px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .18);
}
.social-icons svg { width: 28px; height: 28px; fill: #fff; }
.social-handle {
  font-family: "Russo One", sans-serif; font-size: 36px;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .9);
}
