
@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400..800;1,400..800&display=swap');
@import url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/MapoFlowerIslandA.woff') format('woff');
@import url('https://fonts.googleapis.com/css2?family=Spectral:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;0,800;1,200;1,300;1,400;1,500;1,600;1,700;1,800&display=swap');

/* ============================================================
   GoldStar CMR‑2030 — CSS replica
   Notes about fidelity tweaks made from reference photo:
   - Outer cabinet color corrected to warm beige and smaller corner radius
   - Inner bezel changed to graphite grey with stepped lip
   - CRT glass made rounder with deeper shadow + soft trapezoid mask
   - Control stack: darker walnut, tighter speaker slats, silver "AUTO COLOR" pill,
     tiny black "PULL‑ON VOLUME" stub, VHF/UHF label style
   - Power LED moved to bottom‑right and turned amber/orange
   - All ::before/::after radii aligned to prevent overspill
   ============================================================ */

:root {
  --r88-cabinet: #c9b992;        /* cabinet beige */
  --r88-cabinet-dark: #a9966d;
  --r88-cabinet-light: #e2d6b2;
  --r88-bezel-outer: #2f2f2f;    /* charcoal lip surrounding CRT */
  --r88-bezel-inner: #1c1c1c;
  --r88-wood: #53361f;           /* walnut tone */
  --r88-wood-dark: #3b2414;
  --r88-metal: #bfc3c7;
  --r88-amber: #ff7a1a;          /* indicator LED */
}

/* Section wrapper */
.r88-crt-section {
  position: relative;
  padding: 80px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  overflow: hidden;
  transform: translateZ(0);
  z-index: 179;
}

/* ================= TV CABINET ================= */
.r88-goldstar-tv {
  position: relative;
  width: 1000px;
  max-width: 92vw;
  aspect-ratio: 1.55/1;
  background:
    linear-gradient(180deg, var(--r88-cabinet-light) 0%, var(--r88-cabinet) 40%, var(--r88-cabinet-dark) 100%);
  border-radius: 6px;                 /* small, boxy corners like the real set */
  box-shadow:
    0 18px 50px rgba(0,0,0,.55),
    inset 0 1px 0 rgba(255,255,255,.55),
    inset 0 -2px 0 rgba(0,0,0,.35);
  padding: 26px 26px 26px 26px;
  display: flex;
  gap: 18px;
}

/* Brushed plastic/metal sheen — radius matches the box to avoid misalignment */
.r88-goldstar-tv::before,
.r88-goldstar-tv::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 6px;
  pointer-events: none;
}
/* fine vertical grain */
.r88-goldstar-tv::before {
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.035) 50%, transparent 100%);
  opacity: .5;
}
/* top highlight + bottom weight */
.r88-goldstar-tv::after {
  background: linear-gradient(180deg, rgba(255,255,255,.22) 0%, transparent 18%, transparent 82%, rgba(0,0,0,.18) 100%);
}

/* ================= SCREEN BEZEL ================= */
.r88-tv-screen-container {
  position: relative;
  flex: 1;
  background: radial-gradient(140% 140% at 50% 45%, #4b4b4b 0%, #3b3b3b 40%, #2e2e2e 70%, #232323 100%);
  border-radius: 14px;   /* outer graphite lip radius (less round than CRT glass) */
  padding: 22px 24px 26px 24px; /* deep inset like the real bezel */
  box-shadow:
    inset 0 1px 2px rgba(255,255,255,.06),
    inset 0 -2px 6px rgba(0,0,0,.7),
    0 0 0 2px #1a1a1a inset;
  overflow: visible;
}

/* stepped inner edge/lip */
.r88-tv-screen-container::after {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 10px;
  box-shadow:
    inset 0 0 0 6px rgba(0,0,0,.55),
    inset 0 0 18px rgba(0,0,0,.85);
  pointer-events: none;
}

/* ================= CRT GLASS ================= */
.r88-crt-screen {
  position: relative;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at 50% 48%, #0f0a07 0%, #080503 100%);
  /* CRT on this model is very rounded */
  border-radius: 28px / 38px;
  overflow: hidden;
  box-shadow:
    inset 0 0 70px rgba(0,0,0,.85),
    0 0 40px rgba(0,0,0,.25);
}

/* subtle trapezoid mask to emulate the way the tube sits behind the bezel */
.r88-crt-screen::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(90% 75% at 50% 50%, transparent 60%, rgba(0,0,0,.55) 100%);
  /* slightly narrower at the top */
  transform: perspective(1000px) rotateX(0.5deg) scaleX(.996);
  pointer-events: none;
  z-index: 3;
}

/* curved glass highlight */
.r88-crt-screen::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(120% 90% at 28% 18%, rgba(255,255,255,.10) 0%, rgba(255,255,255,.06) 25%, transparent 55%) ,
    radial-gradient(100% 60% at 82% 86%, rgba(255,255,255,.04) 0%, transparent 55%);
  pointer-events: none;
  z-index: 4;
}

/* static & scanlines (kept subtle) */
.r88-tv-static {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(0deg, rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 2px 2px;
  opacity: .28;
  pointer-events: none;
  animation: r88-static-noise .3s steps(8) infinite;
}
@keyframes r88-static-noise {
  0% { background-position: 0 0; }
  100% { background-position: 2px -2px; }
}

.r88-tv-scanlines {
  position: absolute; inset: 0;
  background-image: linear-gradient(to bottom, rgba(0,0,0,.45) 1px, transparent 1px);
  background-size: 100% 3px;
  opacity: .55;
  pointer-events: none;
}

/* ================= SCREEN CONTENT ================= */
.r88-tv-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  height: 100%;
  padding: 34px 28px;
  color: #E6CFA0;
  text-shadow:
    0 0 8px rgba(255,239,191,.55),
    0 1px 2px rgba(0,0,0,.85);
  text-rendering: optimizeSpeed;
  -webkit-font-smoothing: subpixel-antialiased;
  -moz-osx-font-smoothing: auto;
}
.r88-tv-content h2 {
  font-family: 'Spectral','Mapo Flower Island',serif;
  font-size: clamp(1.2rem, 3.4vw, 1.8rem);
  margin-bottom: 18px;
  color: #FFEFBF;
  letter-spacing: .02em;
  font-weight: 500;
  line-height: 1.3;
}
.r88-tv-content h2 span {
  font-family: 'MapoFlowerIsland', MapoFlowerIsland;
  font-weight: 400;
  letter-spacing: .05em;
}
.r88-tv-content p {
  font-family: 'Spectral','Mapo Flower Island',serif;
  font-size: clamp(.95rem, 2.2vw, 1.12rem);
  line-height: 1.7;
  color: #EDD5AA;
  text-shadow: 0 0 6px rgba(255,239,191,.45);
  white-space: pre-line;
  margin-bottom: 18px;
}

/* ================= CONTROL STACK ================= */
.r88-tv-controls {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 210px;
  background:
    linear-gradient(180deg, var(--r88-wood) 0%, var(--r88-wood-dark) 100%);
  border-radius: 6px;
  padding: 22px 16px 18px 16px;
  box-shadow:
    inset 0 2px 8px rgba(0,0,0,.45),
    inset 2px 0 15px rgba(0,0,0,.35),
    0 3px 10px rgba(0,0,0,.35);
  border: 2px solid #24160a;
  position: relative;
}

/* faint wood pores/grid */
.r88-tv-controls::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: 6px;
  background-image:
    repeating-linear-gradient(0deg, transparent 0px, rgba(0,0,0,.08) 2px, transparent 4px),
    repeating-linear-gradient(90deg, transparent 0px, rgba(0,0,0,.08) 2px, transparent 4px);
  opacity: .45;
  pointer-events: none;
}

/* VHF/UHF label look */
.r88-tv-knob {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
}
.r88-tv-knob-label {
  order: -1;
  flex: 1;
  text-align: left;
  margin: 0;
  font-size: .62rem;
  color: #e7d4b2;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0,0,0,.85);
}

/* channel knobs */
.r88-knob-outer {
  width: 66px; height: 66px; flex-shrink: 0;
  background: radial-gradient(circle at 30% 30%, #4a4a4a 0%, #2a2a2a 55%, #161616 100%);
  border-radius: 50%;
  border: 3px solid #111;
  position: relative;
  box-shadow:
    0 4px 8px rgba(0,0,0,.6),
    inset 0 2px 4px rgba(255,255,255,.12),
    inset 0 -3px 6px rgba(0,0,0,.65);
}
/* ring with tick marks */
.r88-knob-outer::before {
  content: '';
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background:
    conic-gradient(from 0deg, rgba(255,255,255,.18) 0 4deg, transparent 4deg 30deg);
  -webkit-mask: radial-gradient(closest-side, transparent 78%, #000 79%);
          mask: radial-gradient(closest-side, transparent 78%, #000 79%);
  opacity: .9;
}
/* red pointer */
.r88-knob-outer::after {
  content: '';
  position: absolute;
  top: 6px; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 20px;
  background: linear-gradient(180deg, #ff6b6b 0%, #c44 100%);
  border-radius: 2px;
  box-shadow: 0 0 6px #ff6b6b;
  z-index: 2;
}

/* AUTO COLOR + PULL‑ON VOLUME row */
.r88-tv-middle-section {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0 4px 0;
  padding: 0 2px;
}
.r88-auto-color-btn {
  width: 28px; height: 8px; flex-shrink: 0;
  background: linear-gradient(90deg, #d9d9d9 0%, #a8a8a8 50%, #d9d9d9 100%);
  border: 1px solid #888;
  border-radius: 2px;
  box-shadow:
    0 2px 4px rgba(0,0,0,.4),
    inset 0 1px 1px rgba(255,255,255,.7),
    inset 0 -1px 1px rgba(0,0,0,.35);
}
.r88-auto-color-label,
.r88-volume-label {
  font-size: .5rem;
  color: #e7d4b2;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: .5px;
  font-weight: 700;
  line-height: 1.2;
}
/* tiny black power/volume stub */
.r88-volume-knob {
  width: 14px; height: 14px; flex-shrink: 0;
  background: radial-gradient(circle at 40% 40%, #262626 0%, #141414 100%);
  border-radius: 50%;
  border: 2px solid #0a0a0a;
  box-shadow: inset 0 1px 2px rgba(255,255,255,.08);
}

/* ===== SPEAKER ===== */
.r88-tv-speaker {
  position: relative;
  width: 100%;
  height: 190px;
  background: linear-gradient(180deg, #3a2616 0%, #2a1a0e 100%);
  border-radius: 4px;
  box-shadow: inset 0 2px 8px rgba(0,0,0,.85);
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 8px 6px;
  margin-top: 16px;
  overflow: hidden;
}
.r88-speaker-slat {
  width: 100%;
  height: 6px;                     /* tighter slats like the photo */
  background: rgba(0,0,0,.62);
  border-radius: 1px;
  box-shadow: inset 0 2px 3px rgba(0,0,0,.9), 0 1px 1px rgba(255,255,255,.02);
}

/* ===== LOGO + POWER LED ===== */
.r88-tv-logo {
  position: absolute;
  bottom: 6px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'EB Garamond', Helvetica, Arial, sans-serif;
  font-size: .8rem;
  color: #e7d4b2;
  font-weight: 700;
  letter-spacing: .3px;
  text-shadow: 0 1px 2px rgba(0,0,0,.85);
}
/* mimic GoldStar rainbow emblem (mini stripes) */
.r88-logo-icon {
  width: 18px; height: 12px;
  border-radius: 2px;
  background:
    linear-gradient(90deg, #00a0ff 0 25%, #00d25c 25% 50%, #ffd400 50% 75%, #ff2b2b 75% 100%);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.35);
}

/* Amber LED at bottom right */
.r88-power-led {
  position: absolute;
  bottom: 10px;
  right: 40px;
  width: 10px; height: 10px;
  background: var(--r88-amber);
  border-radius: 50%;
  box-shadow:
    0 0 10px var(--r88-amber),
    0 0 18px rgba(255,122,26,.55),
    inset 0 1px 2px rgba(255,255,255,.25);
  animation: r88-power-blink 2.6s ease-in-out infinite;
}
@keyframes r88-power-blink { 0%,100%{opacity:1} 50%{opacity:.8} }

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
  .r88-goldstar-tv {
    flex-direction: column;
    padding: 18px;
    width: 95vw;
  }
  .r88-tv-controls { width: 100%; flex-direction: row; justify-content: space-around; }
  .r88-tv-content h2 { font-size: 1.2rem; }
  .r88-tv-content p { font-size: .85rem; }
  .r88-tv-speaker { position: static; transform: none; margin-top: 12px; }
  .r88-tv-logo { bottom: 8px; right: 10px; }
}
@media (max-width: 480px) {
  .r88-crt-section { padding: 50px 10px; }
  .r88-tv-content { padding: 20px; }
  .r88-tv-knob { gap: 8px; }
}
