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

.icao-list {
  display: none !important;
}

:root {
  --bg: #0a0a0f;
  --surface: #14141f;
  --border: #2a2a3a;
  --text: #e0e0e8;
  --text-muted: #8888a0;
  --accent: #ff4444;
  --accent-hover: #ff6666;
}

html, body {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
}

body {
  display: flex;
  flex-direction: column;
}

header {
  text-align: center;
  padding: 1rem 1rem 0.5rem;
}

header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.subtitle {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

.date-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
}

.date-nav button {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.15s, border-color 0.15s;
}

.date-nav button:hover {
  background: var(--border);
  border-color: var(--accent);
}

.date-nav button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

#current-date {
  font-size: 1.1rem;
  font-weight: 600;
  min-width: 10rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

#today-btn {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 600;
}

#today-btn:hover {
  background: var(--accent-hover);
}

#today-btn.active {
  box-shadow: 0 0 12px rgba(255, 68, 68, 0.4);
}

main {
  flex: 1;
  min-height: 0;
  padding: 0 0.5rem;
}

.iframe-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.click-shield {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  cursor: default;
}

#globe-iframe {
  width: calc(100% + 260px);
  height: 100%;
  margin-left: -260px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #000;
}

footer {
  text-align: center;
  padding: 0.75rem 1rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

footer a {
  color: var(--accent);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

.icao-list {
  margin-top: 0.25rem;
  font-family: monospace;
  font-size: 0.7rem;
  word-break: break-all;
}

@media (max-width: 768px) {
  #globe-iframe {
    width: calc(100% + 220px);
    margin-left: -220px;
  }
}

@media (max-width: 600px) {
  header h1 {
    font-size: 1.2rem;
  }

  .date-nav {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .date-nav button {
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
  }

  #current-date {
    font-size: 0.95rem;
    order: -1;
    width: 100%;
  }

  #globe-iframe {
    width: calc(100% + 220px);
    margin-left: -220px;
  }
}
