@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500;700&family=Merriweather:wght@400;700&display=swap');

:root {
  --wood-dark: #3e2723;
  --wood-mid: #5d4037;
  --wood-light: #8d6e63;
  --beige: #efebe9;
  --beige-dark: #d7ccc8;
  --cream: #fff8e1;
}



/* TITULO DO SITE - BEGE CLARO + FONTE IMPACTANTE */
@import url('https://fonts.googleapis.com/css2?family=Anton&family=Orbitron:wght@900&display=swap');

.site-title {
  text-align: center;
  margin-bottom: 20px;
  width: 100%;
  max-width: 760px;
}

.site-title h1 {
  margin: 0;
  font-family: 'Anton', Impact, sans-serif; /* FONTE FORTE IGUAL DA IMAGEM SKY */
  font-size: 48px;
  font-weight: 400;
  color: #FFFBEB; /* BEGE CLARO DA SUA IMAGEM - COR CORRIGIDA */
  letter-spacing: 2px;
  text-transform: uppercase;
  line-height: 1;
  /* BRILHO VERMELHO IGUAL DA IMAGEM SKY MAX */
    text-shadow: 0 2px 0 #000, 0 4px 8px rgba(0,0,0,0.8);
}

.site-title p {
  margin: 6px 0 0;
  font-family: 'Orbitron', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #FFFBEB; /* BEGE CLARO DA SUA IMAGEM - COR CORRIGIDA */
  letter-spacing: 1px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}

@media (max-width: 600px) {
  .site-title h1 { font-size: 32px; }
  .site-title p { font-size: 12px; }
}



* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Merriweather', serif;
  background: radial-gradient(circle at top, #a1887f 0%, #6d4c41 40%, #3e2723 100%);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 12px;
}
.page-wrapper { width: 100%; max-width: 1000px; display: flex; flex-direction: column; align-items: center; }

.info-card.top-card.instructions {
  width: 100%; max-width: 760px;
  background: linear-gradient(to bottom, #fff8e1, #efebe9);
  border-radius: 14px; padding: 18px 22px;
  border: 4px solid #3e2723;
  box-shadow: 0 10px 25px rgba(0,0,0,0.45);
}
.info-card.top-card.instructions h2 { margin: 0 0 10px; font-size: 18px; color: #3e2723; font-family: 'Orbitron', sans-serif; }
.info-card.top-card.instructions ul { margin: 0; padding-left: 18px; list-style: none; }
.info-card.top-card.instructions li { margin: 8px 0; font-size: 13px; color: #4e342e; line-height: 1.45; position: relative; padding-left: 6px; }
.info-card.top-card.instructions li::before { content: "•"; position: absolute; left: -10px; color: #8d6e63; font-weight: bold; }

.radio-body { margin-top: 24px; width: 100%; max-width: 760px; position: relative; filter: drop-shadow(0 25px 35px rgba(0,0,0,0.65)); }
.antenna { position: absolute; top: -60px; right: 80px; width: 6px; height: 90px; background: linear-gradient(to bottom, #9e9e9e, #424242); transform: rotate(20deg); border-radius: 3px; }
.antenna-tip { position: absolute; top: -68px; right: 76px; width: 14px; height: 14px; background: #212121; border-radius: 50%; transform: rotate(20deg); }
.wood-top { height: 28px; background: linear-gradient(to bottom, var(--wood-light), var(--wood-mid)); border-radius: 18px 18px 0 0; border: 2px solid var(--wood-dark); border-bottom: none; }
.radio-front { background: linear-gradient(145deg, #8d6e63, #5d4037 30%, #4e342e 70%, #3e2723); border: 4px solid #2c1a14; border-radius: 0 0 22px 22px; padding: 18px; }

/* CORREÇÃO DEFINITIVA: FLEX EM LINHA SEMPRE */
.top-section {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 12px;
  background: linear-gradient(to bottom, #efebe9, #d7ccc8);
  border-radius: 16px;
  padding: 12px;
  border: 2px solid #3e2723;
  align-items: stretch;
}

.speaker-box {
  flex: 0 0 38%;
  min-width: 0;
  background: #2c1a14;
  border-radius: 12px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px solid #1a0f0a;
}
.dial-box {
  flex: 1 1 62%;
  min-width: 0;
  background: linear-gradient(to bottom, #fffde7, #f5f0c8);
  border-radius: 12px;
  border: 3px solid #3e2723;
  padding: 8px;
  display: flex;
  flex-direction: column;
}

.speaker-grill {
  width: 100%; height: 150px;
  background: radial-gradient(circle, #efebe9 0%, #bcaaa4 100%);
  border-radius: 50% / 60%;
  position: relative; overflow: hidden;
  border: 3px solid #1a0f0a;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.grill-lines { position: absolute; inset: 10px; background: repeating-linear-gradient(90deg, transparent 0 6px, rgba(62,39,35,0.15) 6px 7px); border-radius: inherit; }
.speaker-cone { width: 60px; height: 60px; background: radial-gradient(circle at 30% 30%, #d7ccc8, #8d6e63); border-radius: 50%; box-shadow: inset 0 0 15px rgba(0,0,0,0.5); z-index: 2; }
.speaker-grill.vibrating { animation: grillPulse 0.3s infinite alternate; }
@keyframes grillPulse { 0% { box-shadow: 0 0 0 rgba(0,0,0,0.2); } 100% { box-shadow: 0 0 18px rgba(197,164,108,0.6); } }

.tocando-status {
  margin-top: 8px;
  display: flex; align-items: center; gap: 6px;
  font-family: 'Orbitron', sans-serif; font-size: 10px; font-weight: 700;
  color: #a1887f; letter-spacing: 1px;
  background: #1a0f0a; padding: 4px 10px; border-radius: 20px;
  border: 1px solid #4e342e; transition: 0.3s;
  white-space: nowrap;
}
.tocando-status.active { color: #ffcc80; border-color: #c5a46c; }

.dial-glass { background: linear-gradient(to bottom, #fff9c4, #e8d88a); border: 2px inset #8d6e63; border-radius: 10px; height: 154px; position: relative; overflow: hidden; box-shadow: inset 0 0 22px rgba(0,0,0,0.35); padding: 5px 6px; flex: 1; }
.freq-band { position: relative; margin-bottom: 6px; }
.freq-band label { font-family: 'Orbitron', sans-serif; font-size: 8px; font-weight: 800; background: #3e2723; color: #ffecb3; padding: 1px 4px; border-radius: 3px; }
.freq-scale { display: flex; justify-content: space-between; font-family: 'Orbitron', sans-serif; font-size: 6.5px; font-weight: 700; color: #4e342e; margin: 1px 0; }
.freq-line { position: relative; height: 7px; border-top: 1px solid #5d4037; }
.freq-line i { position: absolute; top: 0; width: 1px; height: 5px; background: #3e2723; }
.dial-needle { position: absolute; bottom: 0; left: 50%; width: 3px; height: 100%; background: #b71c1c; box-shadow: 0 0 8px #ff0000; transition: left 0.7s cubic-bezier(0.68,-0.55,0.265,1.55); z-index: 5; }
.dial-light-red { position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 0, 0, 0.22), transparent); opacity: 0; z-index: 1; }
.is-playing.dial-light-red { opacity: 1; animation: redSweep 2.2s infinite linear; }
@keyframes redSweep { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }

.display { margin-top: 8px; background: #121212; border-radius: 8px; padding: 7px 9px; font-family: 'Orbitron', sans-serif; border: 2px solid #000; min-height: 48px; position: relative; }
.led { width: 11px; height: 11px; border-radius: 50%; display: inline-block; box-shadow: inset 0 0 4px #000; }
.led.green { position: absolute; top: 8px; right: 10px; background: #3a0000; }
.led.green.on { background: #00ff00; box-shadow: 0 0 12px #00ff00, inset 0 0 5px #fff; }
.led.red { background: #4a0000; }
.led.red.on { background: #ff0000; box-shadow: 0 0 10px #ff0000; animation: pulseRed 0.3s infinite alternate; }
@keyframes pulseRed { 0% { opacity: 0.4; transform: scale(0.9); } 100% { opacity: 1; transform: scale(1.2); box-shadow: 0 0 14px #ff0000; } }
.station-name { margin: 0; font-size: 11px; font-weight: 700; color: #ffeb3b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 16px; }
.station-freq { margin: 2px 0 0; font-size: 8px; color: #bcaaa4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.bottom-section { margin-top: 14px; background: linear-gradient(to bottom, #4e342e, #3e2723); border-radius: 12px; padding: 12px; display: flex; align-items: center; justify-content: space-between; border: 2px solid #2c1a14; gap: 8px; }
.knob-group { display: flex; flex-direction: column; align-items: center; gap: 4px; flex-shrink: 0; }
.knob-group span { font-family: 'Orbitron', sans-serif; font-size: 9px; color: #d7ccc8; text-align: center; }
.knob { width: 56px; height: 56px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #d7ccc8, #8d6e63 40%, #3e2723 80%); border: 3px solid #1a0f0a; box-shadow: 0 4px 8px rgba(0,0,0,0.5), inset 0 2px 3px rgba(255,255,255,0.4); cursor: pointer; position: relative; }
.knob:active { transform: scale(0.95); }
.knob-dot { position: absolute; top: 7px; left: 50%; width: 7px; height: 7px; background: #fff8e1; border-radius: 50%; transform: translateX(-50%); }
.center-controls { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.ctrl-btn { background: linear-gradient(to bottom, #efebe9, #bcaaa4); border: 2px solid #3e2723; border-radius: 20px; padding: 7px 12px; font-family: 'Orbitron', sans-serif; font-weight: 700; font-size: 10px; cursor: pointer; box-shadow: 0 3px 0 #3e2723; white-space: nowrap; }
.ctrl-btn:active { transform: translateY(3px); box-shadow: 0 0 0 #3e2723; }
.sintonia-btn { background: linear-gradient(to bottom, #ffe082, #c5a46c); padding: 8px 16px; }
.radio-feet { display: flex; justify-content: space-between; padding: 0 30px; margin-top: -4px; }
.foot { width: 18px; height: 12px; background: #1a0f0a; border-radius: 0 0 6px 6px; }
footer { margin-top: 20px; color: #efebe9; font-size: 11px; }

.sintonia-drawer { position: fixed; top: 50%; left: 50%; width: 90%; max-width: 480px; max-height: 80vh; background: #efebe9; border: 4px solid #3e2723; border-radius: 16px; transform: translate(-50%, -50%) scale(0.8); opacity: 0; pointer-events: none; transition: 0.35s cubic-bezier(0.68,-0.55,0.265,1.55); z-index: 100; overflow: hidden; }
.sintonia-drawer.open { transform: translate(-50%, -50%) scale(1); opacity: 1; pointer-events: all; }
.drawer-header { background: #3e2723; color: #efebe9; padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; font-family: 'Orbitron', sans-serif; }
.drawer-header button { background: #c62828; color: #fff; border: none; border-radius: 50%; width: 28px; height: 28px; cursor: pointer; font-weight: bold; }
.drawer-list { overflow-y: auto; max-height: 60vh; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.drawer-item { background: #fff; border: 2px solid #bcaaa4; border-radius: 10px; padding: 10px 12px; cursor: pointer; }
.drawer-item.active { background: #3e2723; color: #ffecb3; border-color: #c5a46c; }
.drawer-item strong { display: block; font-size: 13px; }
.drawer-item small { font-size: 11px; opacity: 0.8; }
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); opacity: 0; pointer-events: none; transition: 0.3s; z-index: 90; }
.overlay.show { opacity: 1; pointer-events: all; }

/* iPhone e telas muito pequenas - CONTINUA HORIZONTAL, SÓ DIMINUI */
@media (max-width: 600px) {
  body { padding: 6px; }
  .radio-front { padding: 10px; }
  .top-section { padding: 8px; gap: 8px; }
  .speaker-box { flex: 0 0 36%; padding: 6px; }
  .speaker-grill { height: 110px; }
  .speaker-cone { width: 44px; height: 44px; }
  .dial-glass { height: 118px; }
  .freq-scale { font-size: 5.5px; }
  .tocando-status { font-size: 9px; padding: 3px 8px; }
  .station-name { font-size: 10px; }
  .knob { width: 44px; height: 44px; }
  .knob-group span { font-size: 7px; }
  .ctrl-btn { padding: 5px 9px; font-size: 8px; }
}

@media (max-width: 380px) {
  .speaker-box { flex: 0 0 34%; }
  .speaker-grill { height: 100px; }
  .dial-glass { height: 108px; }
}
