:root {
  color-scheme: dark;
  --paper: #f0eadc;
  --ink: #111411;
  --acid: #d7ff43;
  --line: rgba(255, 255, 255, 0.22);
  --glass: rgba(14, 17, 15, 0.58);
  /* Text opacity values for WCAG AA contrast */
  --text-muted: rgba(255, 255, 255, 0.68);
  --text-subtle: rgba(255, 255, 255, 0.52);
  --text-faint: rgba(255, 255, 255, 0.42);
  /* Safe areas for notch/home indicator */
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  font-family: "Manrope", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; background: #0d110f; }

/* Accessibility skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 100;
  padding: 12px 20px;
  background: var(--acid);
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  border-radius: 4px;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 16px;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

button, input { font: inherit; }
button { color: inherit; }

button:focus-visible, input:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: 3px;
}

.app { position: relative; width: 100%; height: 100%; min-height: 640px; overflow: hidden; color: #fff; isolation: isolate; }
.media-layer, .poster, .city-video-shell, .city-video-shell iframe, .color-wash, .vignette, .grain { position: absolute; inset: 0; width: 100%; height: 100%; }
.media-layer { z-index: -2; overflow: hidden; background: #0e1311; }
.poster { background-size: cover; background-position: center; transform: scale(1.02); transition: background-image .6s ease, opacity .7s ease; }
.city-video-shell { border: 0; pointer-events: none; opacity: 0; transition: opacity 1.2s ease; }
.city-video-shell.is-ready { opacity: 1; }
.city-video-shell iframe { border: 0; pointer-events: none; }
.color-wash { background: linear-gradient(108deg, rgba(7, 10, 8, .45) 0%, rgba(7, 10, 8, .08) 48%, rgba(7, 10, 8, .25) 100%); mix-blend-mode: multiply; pointer-events: none; }
.vignette { background: linear-gradient(180deg, rgba(5, 8, 6, .35), transparent 20%, transparent 75%, rgba(5, 8, 6, .45)), radial-gradient(circle at 50% 44%, transparent 40%, rgba(3, 6, 4, .22) 100%); pointer-events: none; }
.grain { opacity: .10; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E"); mix-blend-mode: soft-light; }

/* Delayed YouTube start: the poster remains the only media shown until intent. */
.video-gate { position: absolute; z-index: 1; inset: 0; display: grid; place-items: center; padding: 92px 24px 190px; pointer-events: none; opacity: 1; transition: opacity .35s ease; }
.video-gate.is-hidden { opacity: 0; pointer-events: none; }
.video-gate-card { width: min(320px, 100%); padding: 24px 26px 26px; border: 1px solid rgba(255,255,255,.2); border-radius: 6px; background: rgba(5,8,6,.62); box-shadow: 0 18px 45px rgba(0,0,0,.25); text-align: center; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.video-gate-kicker { color: var(--acid); font: 500 9px "DM Mono", monospace; letter-spacing: .14em; text-transform: uppercase; }
.video-gate-card h2 { margin: 9px 0 7px; font: 300 30px/.98 "Newsreader", serif; }
.video-gate-card p { margin: 0 0 18px; color: var(--text-muted); font-size: 11px; }
.video-gate-button { min-height: 46px; padding: 0 22px; border: 1px solid var(--acid); border-radius: 3px; background: var(--acid); color: var(--ink); cursor: pointer; font: 700 10px "DM Mono", monospace; letter-spacing: .06em; text-transform: uppercase; transition: transform .15s, box-shadow .15s; pointer-events: auto; }
.video-gate-button:hover { box-shadow: 0 0 0 4px rgba(215,255,67,.16); transform: translateY(-1px); }
.video-gate-button:active { transform: translateY(1px); }
.video-loading { position: absolute; z-index: 2; left: 50%; bottom: 180px; display: flex; align-items: center; gap: 8px; padding: 7px 11px; border: 1px solid rgba(255,255,255,.14); border-radius: 20px; background: rgba(5,8,6,.58); color: var(--text-muted); opacity: 0; pointer-events: none; transform: translate(-50%, 6px); transition: opacity .25s, transform .25s; font: 400 9px "DM Mono", monospace; text-transform: uppercase; }
.video-loading.is-visible { opacity: 1; transform: translate(-50%, 0); }
.video-loading-dot { width: 7px; height: 7px; border: 1px solid var(--acid); border-top-color: transparent; border-radius: 50%; animation: video-loading-spin .7s linear infinite; }
@keyframes video-loading-spin { to { transform: rotate(360deg); } }

.topbar { position: absolute; z-index: 10; top: 0; left: 0; right: 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 92px; padding: 0 48px; border-bottom: 1px solid rgba(255,255,255,.13); }
.brand { display: inline-flex; justify-self: start; align-items: center; gap: 10px; padding: 0; border: 0; background: transparent; cursor: pointer; font-weight: 700; font-size: 19px; letter-spacing: .18em; }
.brand svg { width: 28px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.journey-state { display: flex; align-items: center; gap: 9px; font: 400 11px "DM Mono", monospace; letter-spacing: .08em; text-transform: uppercase; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 0 4px rgba(215,255,67,.12); animation: pulse 1.8s infinite; }
.top-time { margin-left: 10px; color: var(--text-muted); }
.top-actions { display: flex; justify-self: end; align-items: center; gap: 10px; }
.icon-button, .menu-button { border: 1px solid var(--line); background: rgba(9,12,10,.28); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); cursor: pointer; position: relative; z-index: 1; }
.icon-button { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; }
.icon-button svg, .menu-button svg, .source-link svg, .rail-arrow svg, .transport svg, .volume-control svg, .ambient-button svg, .drawer-close svg, .search-box svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
#share-button svg circle { fill: currentColor; stroke: none; }
#share-button svg path { stroke-width: 2; }

/* Share Fan Menu - Leque de redes sociais */
.share-fan-wrapper { position: relative; }
.share-fan { 
  position: absolute; 
  top: 100%; 
  left: 50%; 
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding-top: 12px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 100;
}
.share-fan.is-open { 
  pointer-events: auto; 
  opacity: 1;
}
.share-fan-item {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(30, 32, 34, 0.95);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  transform: translateY(-20px) scale(0.5);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  transition-delay: calc(var(--i) * 0.04s);
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}
.share-fan.is-open .share-fan-item {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.share-fan-item:hover { transform: scale(1.15); }
.share-fan-item:active { transform: scale(0.95); }
.share-fan-item svg { width: 20px; height: 20px; fill: currentColor; }
.share-fan-item[data-share="copy"] svg { fill: none; stroke: currentColor; }
/* Cores das redes sociais */
.share-fan-item[data-share="whatsapp"]:hover { background: #25D366; }
.share-fan-item[data-share="twitter"]:hover { background: #000; }
.share-fan-item[data-share="facebook"]:hover { background: #1877F2; }
.share-fan-item[data-share="telegram"]:hover { background: #0088cc; }
.share-fan-item[data-share="linkedin"]:hover { background: #0A66C2; }
.share-fan-item[data-share="copy"]:hover { background: var(--acid); color: var(--ink); }

.menu-button { display: flex; align-items: center; gap: 20px; height: 46px; padding: 0 18px; border-radius: 99px; font-size: 12px; font-weight: 600; }

.city-intro { position: absolute; z-index: 2; left: clamp(42px, 6vw, 100px); top: 50%; width: min(460px, 40vw); transform: translateY(-46%); }
.city-count { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; font: 400 10px "DM Mono", monospace; }
.city-count i { display: block; width: 54px; height: 1px; background: rgba(255,255,255,.48); }
.city-count span:last-child { color: var(--text-subtle); }
.eyebrow { margin: 0 0 10px; color: var(--acid); font: 500 10px "DM Mono", monospace; letter-spacing: .14em; text-transform: uppercase; }
.city-intro h1 { max-width: 560px; margin: 0; font: 300 clamp(40px, 4.2vw, 62px)/.92 "Newsreader", serif; letter-spacing: -.035em; text-wrap: balance; text-shadow: 0 5px 40px rgba(0,0,0,.25); }
.city-note { max-width: 340px; margin: 23px 0 16px; color: rgba(255,255,255,.73); font-size: 12px; line-height: 1.6; }
.source-link { display: inline-flex; align-items: center; gap: 8px; padding: 0 0 5px; border: 0; border-bottom: 1px solid rgba(255,255,255,.35); background: none; color: rgba(255,255,255,.7); cursor: pointer; font: 400 10px "DM Mono", monospace; text-decoration: none; text-transform: uppercase; letter-spacing: .05em; }
.source-link:hover, .source-link:focus-visible { color: #fff; border-bottom-color: var(--acid); }
.source-link[aria-disabled="true"] { cursor: not-allowed; opacity: .45; pointer-events: none; }
.source-link svg { width: 14px; }

.rail { position: absolute; z-index: 4; top: 50%; right: 44px; display: flex; flex-direction: column; align-items: center; gap: 13px; transform: translateY(-50%); }
.rail-track { display: flex; flex-direction: column; align-items: center; gap: 11px; }
.rail-dot { width: 4px; height: 4px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.4); cursor: pointer; transition: height .25s, background .25s, border-radius .25s; }
.rail-dot.is-active { width: 4px; height: 38px; border-radius: 5px; background: var(--acid); }
.rail-arrow { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; background: transparent; color: rgba(255,255,255,.66); cursor: pointer; }

.player-card { position: absolute; z-index: 4; right: clamp(76px, 8vw, 132px); bottom: 51px; width: min(540px, calc(100vw - 160px)); min-width: 440px; background: linear-gradient(180deg, #1f2124 0%, #121315 100%); border: 5px solid #0a0a0b; border-radius: 8px; box-shadow: 0 10px 20px rgba(0,0,0,0.7), inset 0 2px 3px rgba(255,255,255,0.08), inset 0 -3px 5px rgba(0,0,0,0.6), 0 25px 50px rgba(0,0,0,0.5); display: flex; flex-direction: column; padding: 0; gap: 0; transition: transform 0.4s cubic-bezier(.4,0,.2,1), opacity 0.3s; }
.player-card::before { content: ''; position: absolute; inset: 0; border: 1px solid rgba(255,255,255,0.04); pointer-events: none; border-radius: 4px; }
.player-card.is-hidden { transform: translateY(calc(100% + 60px)); opacity: 0; pointer-events: none; }

/* Player minimize button */
.player-minimize { position: absolute; top: -32px; right: 0; z-index: 5; width: 26px; height: 26px; padding: 0; border: 1px solid rgba(255,255,255,.15); border-radius: 4px; background: rgba(0,0,0,.55); color: rgba(255,255,255,.5); cursor: pointer; display: grid; place-items: center; transition: background 0.15s, color 0.15s, border-color 0.15s; }
.player-minimize:hover { background: rgba(0,0,0,.5); color: var(--lcd-green); border-color: var(--lcd-green); }
.player-minimize svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Floating button to restore player */
.player-restore { position: absolute; z-index: 4; right: clamp(76px, 8vw, 132px); bottom: 20px; width: 54px; height: 54px; padding: 0; border: 2px solid rgba(255,255,255,.15); border-radius: 50%; background: linear-gradient(180deg, #1f2124 0%, #121315 100%); color: var(--lcd-green); cursor: pointer; display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0,0,0,0.5), inset 0 1px 2px rgba(255,255,255,0.08); opacity: 0; transform: translateY(20px) scale(0.8); pointer-events: none; transition: opacity 0.3s, transform 0.3s cubic-bezier(.4,0,.2,1), border-color 0.15s, background 0.15s; }
.player-restore.is-visible { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.player-restore:hover { border-color: var(--lcd-green); background: linear-gradient(180deg, #252830 0%, #151618 100%); }
.player-restore svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Top bar with integrated controls */
.stereo-top-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; border-bottom: 2px solid #0a0a0b; background: linear-gradient(180deg, #232528 0%, #1a1c1e 100%); border-radius: 4px 4px 0 0; }
.stereo-top-bar .mode-control { height: 30px; border: 1px solid rgba(255,255,255,.12); border-radius: 4px; background: rgba(0,0,0,.3); padding: 3px; display: flex; align-items: center; flex-shrink: 0; }
.stereo-top-bar .mode-control button { height: 24px; padding: 0 10px; border: 0; border-radius: 3px; background: transparent; color: rgba(255,255,255,.5); cursor: pointer; font: 700 8px "DM Mono", monospace; letter-spacing: .05em; text-transform: uppercase; transition: background 0.15s, color 0.15s; }
.stereo-top-bar .mode-control button:hover { background: rgba(255,255,255,.08); color: rgba(255,255,255,.7); }
.stereo-top-bar .mode-control button.is-active { background: var(--lcd-green); color: #050a06; text-shadow: none; }
.stereo-top-bar .mode-control button:disabled { opacity: .24; cursor: not-allowed; text-decoration: line-through; }
.top-bar-right { display: flex; align-items: center; gap: 6px; }
.mini-btn { width: 28px; height: 28px; padding: 0; border: 1px solid rgba(255,255,255,.12); border-radius: 4px; background: rgba(0,0,0,.3); cursor: pointer; color: rgba(255,255,255,.5); display: grid; place-items: center; transition: background 0.15s, color 0.15s, border-color 0.15s; }
.mini-btn:hover { background: rgba(255,255,255,.08); color: rgba(255,255,255,.8); }
.mini-btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mini-btn.is-active { background: var(--lcd-green); color: #050a06; border-color: var(--lcd-green); }
.mini-btn.is-active svg { stroke: #050a06; }
.stereo-top-bar .speed-control { height: 28px; display: flex; align-items: center; gap: 2px; padding: 0 4px; border: 1px solid rgba(255,255,255,.12); border-radius: 4px; background: rgba(0,0,0,.3); }
.stereo-top-bar .speed-control button { width: 24px; height: 22px; padding: 0; border: 0; border-radius: 3px; background: transparent; color: rgba(255,255,255,.45); cursor: pointer; font: 700 10px "DM Mono", monospace; transition: background 0.15s, color 0.15s; }
.stereo-top-bar .speed-control button:hover { background: rgba(255,255,255,.08); color: rgba(255,255,255,.7); }
.stereo-top-bar .speed-control button.is-active { background: rgba(255,255,255,.18); color: var(--lcd-green); }

/* Main radio section */
.player-card-main { display: flex; align-items: center; padding: 12px 14px; gap: 14px; }

/* 3D volume knob */
.volume-knob-section { display: flex; flex-direction: column; align-items: center; gap: 5px; flex-shrink: 0; }
.volume-knob { width: 52px; height: 52px; background: repeating-conic-gradient(from 0deg, #333 0deg 10deg, #222 10deg 20deg); border-radius: 50%; border: 3px solid #0a0a0b; box-shadow: 0 5px 10px rgba(0,0,0,0.6), inset 0 3px 3px rgba(255,255,255,0.12), inset 0 -3px 3px rgba(0,0,0,0.4); position: relative; cursor: pointer; transition: transform 0.1s; }
.volume-knob:hover { transform: scale(1.03); }
.volume-knob::after { content: ''; position: absolute; top: 5px; left: 50%; transform: translateX(-50%); width: 3px; height: 10px; background-color: var(--lcd-green); box-shadow: 0 0 6px var(--lcd-green); border-radius: 2px; }
.volume-knob-section .knob-label { color: #555; font: 700 8px "DM Mono", monospace; letter-spacing: 0.5px; text-transform: uppercase; }

/* Deck principal */
.stereo-deck { flex-grow: 1; display: flex; flex-direction: column; gap: 10px; min-width: 0; }

/* Retro green LCD screen */
:root { --lcd-green: #00ff66; --lcd-bg: #040c06; }
.lcd-screen { background-color: var(--lcd-bg); border: 3px solid #17181c; border-radius: 4px; height: 62px; box-shadow: inset 0 3px 8px rgba(0,0,0,0.9), 0 1px 0 rgba(255,255,255,0.04); padding: 8px 12px; display: flex; justify-content: space-between; align-items: center; position: relative; overflow: hidden; }
.lcd-screen::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.15) 2px, rgba(0,0,0,0.15) 4px); pointer-events: none; }
.lcd-text { font-family: 'Courier New', Courier, monospace; color: var(--lcd-green); text-shadow: 0 0 10px rgba(0, 255, 102, 0.5), 0 0 2px rgba(0, 255, 102, 1); min-width: 0; overflow: hidden; }
.lcd-frequency { font-size: 22px; font-weight: bold; letter-spacing: -0.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lcd-frequency small { font-size: 12px; font-weight: normal; margin-left: 2px; opacity: 0.7; }
.lcd-meta { font-size: 9px; letter-spacing: 1.5px; margin-top: 2px; color: rgba(0, 255, 102, 0.65); text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lcd-icons { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
.lcd-led { font: 700 8px "DM Mono", monospace; color: var(--lcd-green); opacity: 0.25; }
.lcd-led.is-active { opacity: 1; text-shadow: 0 0 5px var(--lcd-green); }

/* Physical radio buttons */
.stereo-buttons { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.stereo-btn { background: linear-gradient(180deg, #2c3036 0%, #1e2024 100%); border: 1px solid #111; border-bottom: 2px solid #0b0c0d; color: #8a909a; font: 700 9px "DM Mono", monospace; padding: 7px 0; border-radius: 3px; cursor: pointer; box-shadow: 0 2px 4px rgba(0,0,0,0.5); transition: all 0.05s ease; text-transform: uppercase; letter-spacing: 0.3px; }
.stereo-btn:active { border-bottom-width: 1px; transform: translateY(1px); background: #18191c; color: var(--lcd-green); box-shadow: inset 0 2px 4px rgba(0,0,0,0.8); }
.stereo-btn.is-active, .stereo-btn.is-playing { color: var(--lcd-green); text-shadow: 0 0 4px rgba(0, 255, 102, 0.5); border-bottom-color: #008833; }
.stereo-btn svg { width: 12px; height: 12px; stroke: currentColor; stroke-width: 2; fill: none; vertical-align: middle; }
.stereo-btn .play-text, .stereo-btn .pause-text { font-size: 10px; }

/* Equalizer adaptado */
.lcd-equalizer { display: flex; align-items: end; gap: 2px; height: 18px; }
.lcd-equalizer i { display: block; width: 3px; height: 30%; background: var(--lcd-green); box-shadow: 0 0 4px var(--lcd-green); border-radius: 1px; }
.lcd-equalizer.is-playing i { animation: equalize .8s ease-in-out infinite alternate; }
.lcd-equalizer i:nth-child(2) { animation-delay: -.25s; height: 80%; }
.lcd-equalizer i:nth-child(3) { animation-delay: -.45s; height: 55%; }
.lcd-equalizer i:nth-child(4) { animation-delay: -.1s; height: 100%; }
.hint { position: absolute; left: clamp(42px, 6vw, 100px); bottom: 54px; display: flex; align-items: center; gap: 5px; color: var(--text-faint); font: 400 9px "DM Mono", monospace; text-transform: uppercase; letter-spacing: .08em; }
.hint button { padding: 0; border: none; background: transparent; cursor: pointer; color: inherit; }
.hint kbd { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid rgba(255,255,255,.25); border-radius: 3px; background: rgba(0,0,0,.25); font: inherit; transition: background 0.15s, border-color 0.15s, color 0.15s; }
.hint button:hover kbd { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.4); color: #fff; }
.hint button:active kbd { background: rgba(255,255,255,.2); transform: translateY(1px); }
.hint span { margin-left: 6px; }
/* Mobile hint - hidden by default, visible on touch devices */
.hint-mobile { display: none; gap: 8px; bottom: calc(54px + var(--safe-bottom)); }
.hint-mobile svg { opacity: 0.5; }
@media (hover: none) and (pointer: coarse) {
  .hint-desktop { display: none; }
  .hint-mobile { display: flex; }
}

.city-drawer, .travel-drawer, .about-modal { position: fixed; z-index: 30; inset: 0; visibility: hidden; pointer-events: none; }
.city-drawer.is-open, .travel-drawer.is-open, .about-modal.is-open { visibility: visible; pointer-events: auto; }
.drawer-backdrop, .about-backdrop { position: absolute; inset: 0; background: rgba(4,6,5,.62); opacity: 0; -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); transition: opacity .4s; }
.is-open .drawer-backdrop, .is-open .about-backdrop { opacity: 1; }
.drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(720px, 100%); overflow-y: auto; padding: 46px 54px 28px; background: linear-gradient(180deg, #0d100e 0%, #080a09 100%); color: #e8e6e1; transform: translateX(100%); transition: transform .5s cubic-bezier(.77,0,.18,1); }
.city-drawer.is-open .drawer-panel, .travel-drawer.is-open .drawer-panel { transform: translateX(0); }
.drawer-header { display: flex; justify-content: space-between; gap: 30px; align-items: start; }
.drawer-kicker { color: var(--lcd-green); font: 500 9px "DM Mono", monospace; text-transform: uppercase; letter-spacing: .12em; }
.drawer-header h2, .about-card h2 { margin: 8px 0 28px; font: 300 clamp(42px, 5vw, 68px)/.95 "Newsreader", serif; letter-spacing: -.04em; }
.drawer-close { flex: 0 0 auto; display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; background: transparent; color: #e8e6e1; cursor: pointer; transition: border-color .2s, background .2s; }
.drawer-close:hover { border-color: var(--lcd-green); background: rgba(0,255,102,.08); }
.search-box { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 12px; height: 52px; padding: 0 16px; border-top: 1px solid rgba(255,255,255,.12); border-bottom: 1px solid rgba(255,255,255,.12); background: rgba(0,0,0,.25); }
.search-box svg { width: 18px; color: rgba(255,255,255,.5); }
.search-box input { border: 0; outline: 0; background: transparent; color: #e8e6e1; font-size: 15px; }
.search-box input::placeholder { color: rgba(255,255,255,.4); }
.search-box span { color: rgba(255,255,255,.4); font: 400 9px "DM Mono", monospace; text-transform: uppercase; }
.city-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 22px 0; }
.city-card { position: relative; height: 185px; overflow: hidden; padding: 0; border: 0; border-radius: 4px; background: #1a1d1a; color: #fff; cursor: pointer; text-align: left; transition: box-shadow .2s; }
.city-card::after { position: absolute; content: ""; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.04), rgba(0,0,0,.72)); }
.city-card img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.78); transition: transform .45s, filter .45s; }
.city-card:hover img { transform: scale(1.045); filter: saturate(1); }
.city-card:hover { box-shadow: 0 0 0 2px var(--lcd-green); }
.city-card-copy { position: absolute; z-index: 1; right: 16px; bottom: 14px; left: 16px; display: flex; justify-content: space-between; align-items: end; }
.city-card-copy strong { display: block; font: 400 27px/1 "Newsreader", serif; }
.city-card-copy span { display: block; margin-top: 5px; color: rgba(255,255,255,.64); font: 400 8px "DM Mono", monospace; text-transform: uppercase; }
.city-card-copy i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--lcd-green); color: #080a09; font-style: normal; font-weight: 600; }
.city-card.is-current { box-shadow: 0 0 0 3px var(--lcd-green); }
.empty-state { grid-column: 1 / -1; padding: 60px 0; color: rgba(255,255,255,.5); text-align: center; }
.drawer-footer { display: flex; justify-content: space-between; gap: 30px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.4); font: 400 8px "DM Mono", monospace; text-transform: uppercase; }

.about-modal { display: grid; place-items: center; }
.about-card { position: relative; width: min(510px, calc(100% - 32px)); padding: 50px; background: linear-gradient(180deg, #0d100e 0%, #080a09 100%); color: #e8e6e1; border: 1px solid rgba(255,255,255,.1); opacity: 0; transform: translateY(20px); transition: opacity .35s, transform .35s; }
.about-modal.is-open .about-card { opacity: 1; transform: translateY(0); }
.about-card .drawer-close { position: absolute; top: 22px; right: 22px; }
.about-card p { color: rgba(255,255,255,.7); line-height: 1.7; }
.about-card .about-small { padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.4); font: 400 10px/1.55 "DM Mono", monospace; }
.about-card a { color: var(--lcd-green); text-decoration: none; }
.about-card a:hover { text-decoration: underline; }

/* World map */
.map-modal { position: fixed; z-index: 35; inset: 0; visibility: hidden; pointer-events: none; }
.map-modal.is-open { visibility: visible; pointer-events: auto; }
.map-backdrop { position: absolute; inset: 0; background: rgba(4,6,5,.78); opacity: 0; -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); transition: opacity .35s; }
.map-modal.is-open .map-backdrop { opacity: 1; }
.map-card { position: absolute; inset: 28px 4vw; display: flex; flex-direction: column; overflow: hidden; padding: 34px 38px 22px; background: linear-gradient(180deg, #101411 0%, #080a09 100%); color: #e8e6e1; border: 1px solid rgba(255,255,255,.13); border-radius: 10px; opacity: 0; transform: translateY(18px) scale(.985); transition: opacity .35s, transform .35s; }
.map-modal.is-open .map-card { opacity: 1; transform: translateY(0) scale(1); }
.map-header { display: flex; align-items: start; justify-content: space-between; gap: 28px; flex: 0 0 auto; }
.map-header h2 { margin: 8px 0 18px; font: 300 clamp(36px, 4vw, 58px)/.95 "Newsreader", serif; letter-spacing: -.04em; }
.map-toolbar { display: flex; justify-content: space-between; gap: 20px; padding: 10px 0; color: rgba(255,255,255,.52); border-top: 1px solid rgba(255,255,255,.12); font: 400 9px "DM Mono", monospace; text-transform: uppercase; letter-spacing: .05em; }
.map-toolbar span:first-child { color: var(--lcd-green); }
.world-map { position: relative; flex: 1 1 auto; min-height: 360px; overflow: hidden; background: #d7e1df; border: 1px solid rgba(255,255,255,.14); border-radius: 5px; }
.world-map .leaflet-container { width: 100%; height: 100%; min-height: 360px; background: #d7e1df; font-family: "DM Mono", monospace; }
.world-map .leaflet-control-zoom a { color: #111411; }
.world-map .leaflet-control-attribution { font-size: 9px; }
.map-footnote { flex: 0 0 auto; margin: 12px 0 0; color: rgba(255,255,255,.42); font: 400 9px "DM Mono", monospace; text-transform: uppercase; letter-spacing: .04em; }
.map-unavailable { display: grid; height: 100%; min-height: 360px; place-items: center; margin: 0; padding: 24px; color: #20251f; font: 500 12px "DM Mono", monospace; text-align: center; }
.map-popup { min-width: 230px; color: #182018; font-family: "Manrope", sans-serif; }
.map-popup-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 9px; border-bottom: 1px solid #dfe4dd; }
.map-popup-title strong { font: 600 18px/1 "Newsreader", serif; }
.map-popup-title span { color: #69736a; font: 500 9px "DM Mono", monospace; text-transform: uppercase; }
.map-popup-videos { max-height: 260px; overflow-y: auto; padding-top: 8px; }
.map-video-group { padding: 7px 0; border-bottom: 1px solid #edf0ec; }
.map-video-group:last-child { border-bottom: 0; }
.map-video-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.map-video-heading strong { font: 600 10px "DM Mono", monospace; letter-spacing: .06em; text-transform: uppercase; }
.map-video-heading button { padding: 4px 6px; border: 0; border-radius: 3px; background: #182018; color: #d7ff43; cursor: pointer; font: 600 8px "DM Mono", monospace; text-transform: uppercase; }
.map-video-heading button:hover { background: #31412d; }
.map-video-group ul { display: flex; flex-wrap: wrap; gap: 3px 8px; margin: 5px 0 0; padding: 0; list-style: none; }
.map-video-group a { color: #436346; font-size: 10px; text-decoration: none; }
.map-video-group a:hover { color: #152216; text-decoration: underline; }
.map-popup-videos > p { margin: 8px 0; color: #69736a; font-size: 11px; }
.map-directory { flex: 0 0 auto; margin-top: 10px; border: 1px solid rgba(255,255,255,.12); border-radius: 4px; background: rgba(0,0,0,.18); }
.map-directory summary { padding: 10px 12px; color: rgba(255,255,255,.72); cursor: pointer; font: 500 9px "DM Mono", monospace; text-transform: uppercase; letter-spacing: .06em; }
.map-directory summary::marker { color: var(--lcd-green); }
.map-directory-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; max-height: 220px; overflow-y: auto; padding: 0 10px 10px; }
.map-directory-item { min-width: 0; padding: 9px; border-top: 1px solid rgba(255,255,255,.1); }
.map-directory-item h3 { display: flex; flex-direction: column; gap: 3px; margin: 0 0 7px; }
.map-directory-item h3 button { width: fit-content; padding: 0; border: 0; background: transparent; color: #fff; cursor: pointer; font: 500 14px "Newsreader", serif; text-align: left; }
.map-directory-item h3 button:hover { color: var(--lcd-green); }
.map-directory-item h3 span { color: rgba(255,255,255,.42); font: 400 8px "DM Mono", monospace; text-transform: uppercase; }
.map-directory-mode { display: flex; align-items: baseline; gap: 5px; margin-top: 5px; color: rgba(255,255,255,.48); font: 400 8px "DM Mono", monospace; }
.map-directory-mode strong { color: var(--lcd-green); font-size: 8px; }
.map-directory-mode button { padding: 1px 4px; border: 1px solid rgba(215,255,67,.35); border-radius: 2px; background: transparent; color: var(--lcd-green); cursor: pointer; font: inherit; text-transform: uppercase; }
.map-directory-mode span { display: flex; flex-wrap: wrap; gap: 0 6px; }
.map-directory-mode a { color: rgba(255,255,255,.62); text-decoration: none; }
.map-directory-mode a:hover { color: #fff; text-decoration: underline; }
.map-travel { margin-top: 8px; padding-top: 8px; border-top: 1px solid #dfe4dd; }
.map-travel > span { display: block; margin-bottom: 5px; color: #69736a; font: 600 9px "DM Mono", monospace; text-transform: uppercase; }
.map-travel-group { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; margin: 0 0 7px; font-size: 10px; }
.map-travel-group strong { color: #436346; }
.map-travel-group ul { display: flex; gap: 5px; margin: 0; padding: 0; list-style: none; }
.map-travel-group a { color: #436346; }
.map-travel-group > strong { grid-column: 1 / -1; }
.map-travel-group .travel-offer-action { width: 100%; min-width: 0; min-height: 33px; padding: 6px 7px; border-color: #c8d2c8; background: #f7faf6; color: #182018; }
.map-travel-group .travel-offer-action span { overflow: hidden; color: #182018; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.map-travel-group .travel-offer-action small { overflow: hidden; color: #69736a; text-overflow: ellipsis; white-space: nowrap; }
.map-travel-group .travel-offer-action b { color: #436346; }
.map-travel-group .travel-offer-action:hover { border-color: #436346; background: #edf4ec; }
.map-travel-group .travel-offer-action.is-placeholder { border-style: solid; border-color: #c8d2c8; background: #f7faf6; }

.catalog-error { display: grid; place-items: center; align-content: center; gap: 18px; min-height: 100%; padding: 32px; color: #fff; text-align: center; }
.catalog-error h1 { margin: 0; font: 300 64px/1 "Newsreader", serif; }
.catalog-error p { max-width: 400px; margin: 0; color: var(--text-muted); line-height: 1.7; }
.catalog-error button { padding: 14px 28px; border: 0; border-radius: 4px; background: var(--acid); color: var(--ink); cursor: pointer; font-weight: 600; }
.toast { position: fixed; z-index: 80; left: 50%; bottom: 26px; padding: 11px 16px; border: 1px solid rgba(255,255,255,.18); border-radius: 5px; background: rgba(12,15,13,.88); color: #fff; opacity: 0; pointer-events: none; transform: translate(-50%, 14px); transition: .3s; font-size: 11px; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ============================================================================
   NOVAS FUNCIONALIDADES
   ============================================================================ */

/* Favorite button */
.city-actions { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.favorite-btn { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; padding: 0; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; background: rgba(0,0,0,.25); color: rgba(255,255,255,.7); cursor: pointer; transition: all .2s; }
.favorite-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.favorite-btn .heart-full { display: none; }
.favorite-btn:hover { border-color: #ff6b6b; color: #ff6b6b; background: rgba(255,107,107,.1); }
.favorite-btn.is-active { border-color: #ff6b6b; color: #ff6b6b; background: rgba(255,107,107,.15); }
.favorite-btn.is-active .heart-empty { display: none; }
.favorite-btn.is-active .heart-full { display: block; }

/* City information */
.city-info { display: flex; gap: 16px; margin-top: 12px; }
.info-item { display: flex; align-items: center; gap: 6px; color: rgba(255,255,255,.6); font: 400 10px "DM Mono", monospace; }
.info-item svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.info-item b { color: rgba(255,255,255,.85); }

/* Travel monetization preview */
.travel-panel { width: min(560px, 100%); }
.travel-planner { position: static; width: auto; max-height: none; overflow: visible; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; scrollbar-width: auto; }
.travel-planner-header { display: flex; align-items: start; justify-content: space-between; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,.13); }
.travel-planner-actions { display: flex; align-items: center; gap: 10px; }
.travel-planner-actions .drawer-close { position: static; }
.travel-planner-kicker, .travel-secondary-heading { color: var(--lcd-green); font: 500 9px "DM Mono", monospace; letter-spacing: .12em; text-transform: uppercase; }
.travel-planner h2 { margin: 5px 0 0; font: 300 28px/.95 "Newsreader", serif; letter-spacing: -.03em; }
.travel-planner-location { margin: 6px 0 0; color: var(--text-subtle); font: 400 9px "DM Mono", monospace; text-transform: uppercase; letter-spacing: .08em; }
.travel-preview-badge { padding: 4px 6px; border: 1px solid rgba(215,255,67,.45); border-radius: 3px; color: var(--acid); font: 600 8px "DM Mono", monospace; letter-spacing: .08em; text-transform: uppercase; }
.travel-category { margin-top: 10px; padding: 10px; border: 1px solid rgba(255,255,255,.11); border-radius: 7px; background: rgba(255,255,255,.045); }
.travel-category-heading { display: flex; align-items: center; gap: 9px; }
.travel-category-icon { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 6px; background: rgba(215,255,67,.12); font-size: 14px; }
.travel-category-heading strong { display: block; color: #fff; font: 600 13px/1.1 "Newsreader", serif; }
.travel-category-heading small { display: block; margin-top: 3px; color: var(--text-subtle); font: 400 8px "DM Mono", monospace; text-transform: uppercase; }
.travel-category-actions { display: grid; gap: 5px; margin-top: 9px; }
.travel-offer-action { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px; min-height: 35px; padding: 7px 9px; border: 1px solid rgba(215,255,67,.25); border-radius: 5px; background: rgba(0,0,0,.2); color: #f2f4eb; text-decoration: none; cursor: pointer; text-align: left; transition: border-color .15s, background .15s, transform .15s; }
.travel-offer-action:hover { border-color: var(--acid); background: rgba(215,255,67,.08); transform: translateY(-1px); }
.travel-offer-action span { display: block; font-size: 10px; font-weight: 600; }
.travel-offer-action small { display: block; margin-top: 2px; color: var(--text-subtle); font: 400 8px "DM Mono", monospace; text-transform: uppercase; }
.travel-offer-action b { color: var(--acid); font-size: 15px; font-weight: 400; }
.travel-offer-action.is-placeholder { border-style: dashed; border-color: rgba(255,255,255,.22); background: rgba(255,255,255,.035); }
.travel-offer-action.is-placeholder:hover { border-color: var(--acid); }
.travel-offer-action.is-compact { grid-template-columns: 1fr; min-height: 30px; padding: 5px 7px; }
.travel-offer-action.is-compact span { font-size: 9px; }
.travel-secondary { margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.13); }
.travel-secondary-heading { margin-bottom: 7px; color: var(--text-subtle); font-size: 8px; }
.travel-secondary .travel-category { display: grid; grid-template-columns: minmax(0, 1fr) minmax(120px, 1fr); align-items: center; gap: 8px; margin-top: 6px; padding: 7px 8px; }
.travel-secondary .travel-category-heading strong { font-size: 11px; }
.travel-secondary .travel-category-heading small { font-size: 7px; }
.travel-secondary .travel-category-icon { width: 23px; height: 23px; font-size: 12px; }
.travel-secondary .travel-category-actions { margin-top: 0; }
.travel-disclosure { margin: 12px 1px 0; color: var(--text-faint); font: 400 8px/1.45 "DM Mono", monospace; }

/* Drawer filter bar */
.filter-bar { display: flex; align-items: center; gap: 8px; padding: 14px 0; flex-wrap: wrap; }
.filter-btn { display: flex; align-items: center; gap: 5px; height: 32px; padding: 0 14px; border: 1px solid rgba(255,255,255,.15); border-radius: 16px; background: rgba(255,255,255,.05); color: rgba(255,255,255,.6); cursor: pointer; font: 500 10px "DM Mono", monospace; text-transform: uppercase; transition: all .15s; }
.filter-btn svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; }
.filter-btn:hover { border-color: rgba(255,255,255,.3); color: rgba(255,255,255,.85); }
.filter-btn.is-active { background: var(--lcd-green); border-color: var(--lcd-green); color: #050a06; }
.filter-select { height: 32px; padding: 0 12px; border: 1px solid rgba(255,255,255,.15); border-radius: 16px; background: rgba(0,0,0,.4); color: #fff; cursor: pointer; font: 500 10px "DM Mono", monospace; appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; padding-right: 28px; }
.filter-select:focus { outline: none; border-color: var(--lcd-green); }
.filter-select option { background: #1a1d1b; color: #fff; padding: 8px; }

/* City card with favorite */
.city-card .card-favorite { position: absolute; top: 8px; right: 8px; z-index: 3; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: rgba(0,0,0,.6); color: rgba(255,255,255,.7); cursor: pointer; display: grid; place-items: center; opacity: 0; transition: opacity .2s, color .15s, background .15s; }
.city-card:hover .card-favorite { opacity: 1; }
.city-card .card-favorite svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; flex-shrink: 0; }
.city-card .card-favorite.is-active { opacity: 1; color: #ff6b6b; }
.city-card .card-favorite.is-active svg { fill: currentColor; }
.city-card .card-favorite:hover { background: rgba(0,0,0,.8); color: #ff6b6b; }

/* Statistics modal */
.stats-card { text-align: center; }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 24px 0; }
.stat-item { padding: 20px; background: rgba(255,255,255,.05); border-radius: 8px; }
.stat-value { display: block; font: 300 36px "Newsreader", serif; color: var(--lcd-green); }
.stat-label { display: block; margin-top: 4px; color: rgba(255,255,255,.5); font: 400 9px "DM Mono", monospace; text-transform: uppercase; }

/* Painel Pomodoro flutuante */
.pomodoro-panel, .autoplay-panel { position: absolute; z-index: 5; top: 110px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; padding: 8px 16px; background: rgba(0,0,0,.7); border: 1px solid rgba(255,255,255,.15); border-radius: 20px; opacity: 0; pointer-events: none; transition: opacity .3s; }
.pomodoro-panel.is-visible, .autoplay-panel.is-visible { opacity: 1; }
.pomodoro-time, .autoplay-time { font: 600 18px "DM Mono", monospace; color: var(--lcd-green); }
.pomodoro-label, .autoplay-label { font: 400 9px "DM Mono", monospace; color: rgba(255,255,255,.5); text-transform: uppercase; }
.autoplay-panel { top: 150px; }
.autoplay-panel .autoplay-time { color: var(--acid); }

/* Temas visuais */
.app.theme-sepia .media-layer { filter: sepia(0.4) saturate(1.2); }
.app.theme-sepia .color-wash { background: linear-gradient(135deg, rgba(112,66,20,.35) 0%, rgba(44,33,14,.06) 50%, rgba(89,57,22,.18) 100%); }
.app.theme-contrast { --paper: #000; --ink: #fff; }
.app.theme-contrast .color-wash { display: none; }
.app.theme-contrast .vignette { background: none; }
.app.theme-contrast .player-card, .app.theme-contrast .drawer-panel, .app.theme-contrast .about-card { background: #000; border-color: #fff; }
.app.theme-contrast .lcd-screen { background: #000; border-color: #0f0; }
.app.theme-contrast .lcd-frequency, .app.theme-contrast .lcd-meta { color: #0f0; }

@keyframes pulse { 50% { opacity: .45; box-shadow: 0 0 0 7px rgba(215,255,67,0); } }
@keyframes equalize { from { height: 25%; } to { height: 100%; } }
@keyframes drift { from { transform: scale(1.08); } to { transform: scale(1); } }

/* Keep the YouTube iframe at cover dimensions so wide screens do not show
   pillarbox bars and narrow screens do not show letterbox bars. The selector
   includes the iframe element to override the base iframe dimensions above. */
.city-video-shell iframe.city-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 177.78vh;
  height: 100vh;
  max-width: none;
  transform: translate(-50%, -50%);
}

@media (min-aspect-ratio: 16/9) {
  .city-video-shell iframe.city-video {
    width: 100vw;
    height: 56.25vw;
  }
}

@media (max-width: 1050px) {
  .topbar { padding: 0 28px; }
  .player-card { right: 72px; width: min(500px, calc(100vw - 160px)); min-width: 400px; }
  .player-restore { right: 72px; }
  .city-intro { left: 42px; width: 45vw; }
  .city-intro h1 { font-size: clamp(40px, 5.5vw, 58px); }
  .hint { left: 42px; }
  .travel-menu-button { width: 44px; height: 44px; padding: 0; justify-content: center; border-radius: 50%; }
  .travel-menu-button span { display: none; }
}

@media (max-width: 800px) {
  .app { min-height: 540px; }
  .topbar { height: 70px; padding: 0 18px; grid-template-columns: minmax(0, 1fr) auto; }
  .brand { min-width: 0; overflow: hidden; font-size: 16px; white-space: nowrap; }
  .brand svg { width: 24px; }
  .journey-state { display: none; }
  .icon-button { width: 38px; height: 38px; }
  .icon-button svg { width: 16px; }
  .top-actions { min-width: 0; gap: 4px; }
  .top-actions > .icon-button,
  .top-actions > .share-fan-wrapper,
  .top-actions > .menu-button { flex: 0 0 36px; }
  .share-fan-wrapper .icon-button { width: 36px; height: 36px; }
  #pip-button, #stats-button { display: none; }
  .menu-button { width: 36px; min-width: 36px; height: 36px; padding: 0; gap: 0; justify-content: center; }
  .menu-button span { display: none; }
  .menu-button svg { width: 16px; }
  .city-intro { top: 39%; left: 24px; width: calc(100% - 80px); transform: translateY(-50%); }
  .city-count { margin-bottom: 20px; }
  .city-intro h1 { font-size: clamp(36px, 10vw, 48px); line-height: .94; }
  .city-note { max-width: 300px; margin-top: 16px; font-size: 11px; }
  .source-link { display: inline-flex; }
  .rail { right: 16px; }
  .travel-planner h2 { font-size: 24px; }
  .travel-category { padding: 8px; }
  .travel-secondary .travel-category { display: block; }
  .travel-secondary .travel-category-actions { margin-top: 6px; }
  .rail-arrow { display: none; }
  /* Compact mobile radio */
  .player-card { right: 14px; bottom: 16px; left: 14px; width: auto; min-width: 0; }
  .player-restore { right: 14px; left: 14px; width: auto; border-radius: 8px; height: 44px; }
  .stereo-top-bar { padding: 6px 8px; gap: 6px; flex-wrap: wrap; }
  .stereo-top-bar .mode-control { order: 1; height: 28px; }
  .stereo-top-bar .mode-control button { height: 22px; padding: 0 8px; font-size: 7px; }
  .stereo-top-bar .ambient-button { height: 28px; padding: 0 8px; }
  .stereo-top-bar .ambient-button span { display: none; }
  .stereo-top-bar .ambient-button svg { width: 12px; }
  .stereo-top-bar .ambient-button b { font-size: 7px; }
  .stereo-top-bar #autoplay-btn, .stereo-top-bar #pomodoro-btn { display: none; }
  .stereo-top-bar .speed-control { display: none; }
  .player-card-main { padding: 10px 12px; gap: 10px; }
  .volume-knob-section { flex-direction: row; gap: 12px; width: auto; justify-content: flex-start; }
  .volume-knob { width: 40px; height: 40px; }
  .volume-knob::after { top: 4px; width: 2px; height: 8px; }
  .lcd-screen { height: 52px; padding: 6px 10px; }
  .lcd-frequency { font-size: 18px; }
  .lcd-frequency small { font-size: 10px; }
  .lcd-meta { font-size: 8px; }
  .stereo-buttons { grid-template-columns: repeat(4, 1fr); }
  .stereo-btn { font-size: 8px; padding: 6px 0; }
  .stereo-btn:nth-child(5), .stereo-btn:nth-child(6) { display: none; }
  .hint { display: none; }
  .video-gate { align-items: end; padding-bottom: 180px; }
  .video-loading { bottom: 230px; }
  .drawer-panel { padding: 28px 18px 20px; }
  .drawer-header h2 { font-size: 44px; }
  .map-card { inset: 14px; padding: 24px 18px 16px; }
  .map-header h2 { font-size: 40px; }
  .map-toolbar { align-items: flex-start; flex-direction: column; gap: 5px; }
  .map-directory-list { grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: 190px; }
  .city-grid { grid-template-columns: 1fr; }
  .city-card { height: 170px; }
  .drawer-footer { flex-direction: column; gap: 7px; }
}

@media (max-width: 430px) {
  .city-note { max-width: 270px; }
  .lcd-equalizer { display: none; }
  .stereo-top-bar .ambient-button { height: 30px; padding: 0 10px; }
  .stereo-top-bar .mode-control { height: 30px; }
  .stereo-top-bar .mode-control button { height: 22px; font-size: 7px; padding: 0 8px; }
  .about-card { padding: 42px 26px 28px; }
  .stereo-buttons { grid-template-columns: repeat(3, 1fr); }
  .stereo-btn:nth-child(4) { display: none; }
}

@media (max-width: 360px) {
  .brand { gap: 0; }
  .brand span { display: none; }
}

/* Mobile small - safe areas e ajustes finais */
@media (max-width: 430px) and (max-height: 750px) {
  .city-intro h1 { font-size: 32px; }
  .player-card { bottom: calc(12px + var(--safe-bottom)); }
}

/* Landscape mobile */
@media (max-height: 500px) and (orientation: landscape) {
  .app { min-height: 320px; }
  .topbar { height: 50px; padding: 0 16px; }
  .brand { font-size: 14px; }
  .city-intro { top: 50%; left: 16px; width: 50%; }
  .city-intro h1 { font-size: 28px; }
  .city-note { display: none; }
  .player-card { right: 12px; bottom: 12px; left: auto; width: 320px; }
  .player-card-main { padding: 8px; }
  .stereo-top-bar { display: none; }
  .stereo-buttons { display: none; }
}

/* Touch-friendly: increase touch targets */
@media (hover: none) and (pointer: coarse) {
  .icon-button { min-width: 44px; min-height: 44px; }
  .stereo-btn { min-height: 44px; }
  .rail-dot { width: 12px; height: 12px; }
  .rail-dot.is-active { width: 14px; height: 14px; }
  .city-card { cursor: default; }
  .card-favorite { width: 44px; height: 44px; }
  .drawer-close { width: 44px; height: 44px; }
  /* Indicate that swipe navigation is available */
  .swipe-hint { display: flex; }
}

/* Drawer fullscreen em mobile */
@media (max-width: 600px) {
  .drawer-panel { 
    width: 100%; 
    max-width: 100%; 
    border-radius: 0;
    padding-bottom: calc(20px + var(--safe-bottom));
  }
  .drawer-header { padding-top: calc(20px + var(--safe-top)); }
  .about-card { 
    max-width: 100%; 
    width: 100%;
    border-radius: 16px 16px 0 0;
    margin-top: auto;
    max-height: 85vh;
  }
  .map-card { inset: 0; padding: calc(20px + var(--safe-top)) 14px calc(16px + var(--safe-bottom)); border: 0; border-radius: 0; }
  .map-header h2 { font-size: 38px; }
  .world-map, .world-map .leaflet-container { min-height: 0; }
  .map-directory-list { grid-template-columns: 1fr; max-height: 180px; }
}

/* PWA standalone mode */
@media (display-mode: standalone) {
  .topbar { padding-top: var(--safe-top); height: calc(80px + var(--safe-top)); }
  .player-card { bottom: calc(20px + var(--safe-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Accessible fallback when JavaScript is disabled. */
.seo-fallback {
  box-sizing: border-box;
  position: fixed;
  z-index: 1000;
  inset: 0;
  width: 100%;
  min-height: 100vh;
  max-width: 960px;
  margin: 0 auto;
  padding: 48px 24px;
  overflow: auto;
  color: #151713;
  background: #f1ecdf;
  font-family: Manrope, sans-serif;
  line-height: 1.6;
}

.seo-fallback h2 { margin: 0 0 12px; }
.seo-fallback p { max-width: 680px; }
.seo-fallback a { color: inherit; }
.seo-fallback ul { columns: 3; padding-left: 22px; }

@media (max-width: 700px) {
  .seo-fallback ul { columns: 1; }
}
