* { box-sizing: border-box; }

body {
  font-family: Arial, sans-serif;
  background: #f6f7f9;
  margin: 0;
  padding: 0;
  color: #333;
  line-height: 1.6;
}

a { color: #0077cc; }

.site-header {
  background: white;
  border-bottom: 1px solid #e3e5e8;
}
.site-header-inner {
  max-width: 1000px;
  margin: auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.logo {
  font-weight: 700;
  font-size: 1.2rem;
  color: #222;
  text-decoration: none;
}
.logo span { color: #0077cc; }
.main-nav a {
  color: #444;
  text-decoration: none;
  margin-left: 1.4rem;
  font-size: 0.95rem;
}
.main-nav a:hover { color: #0077cc; }

main {
  padding: 2rem;
}

.container {
  max-width: 900px;
  margin: auto;
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

h1, h2, h3 { color: #222; }
p { color: #444; line-height: 1.6; }

label { font-weight: 600; display: block; margin-top: 1.2rem; }
input, select, textarea { width: 100%; padding: 0.6rem; margin-top: 0.4rem; font-size: 1rem; border-radius: 6px; border: 1px solid #ccc; font-family: inherit; }

.results { margin-top: 1.5rem; }
.result-row {
  display: flex; justify-content: space-between;
  padding: 0.8rem; border-bottom: 1px solid #ddd;
}
.result-row.source-row { background: #f0f7ff; border-radius: 8px; }
.city { font-weight: 600; }
.tag { font-weight: 400; font-size: 0.75rem; color: #0077cc; background: #e6f2fc; padding: 0.1rem 0.5rem; border-radius: 999px; margin-left: 0.3rem; }
.time { font-size: 1.1rem; text-align: right; }
.weekday { font-size: 0.8rem; color: #666; }

.choices { width: 100% !important; }
.choices__inner { border-radius: 8px; }

.detect-btn {
  margin-top: 0.5rem;
  padding: 0.45rem 0.8rem;
  font-size: 0.9rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  background: #f9f9f9;
  cursor: pointer;
}
.detect-btn:hover { background: #eee; }

button[type="submit"] {
  padding: 0.6rem 1.2rem;
  margin-top: 0.6rem;
  border: none;
  border-radius: 6px;
  background: #0077cc;
  color: white;
  cursor: pointer;
  font-size: 1rem;
}
button[type="submit"]:hover { background: #005fa3; }

.section { margin-top: 2.5rem; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.card {
  border: 1px solid #e3e5e8;
  border-radius: 10px;
  padding: 1.2rem;
  text-decoration: none;
  color: inherit;
  display: block;
  background: #fafbfc;
  transition: box-shadow .15s ease, transform .15s ease;
}
.card:hover { box-shadow: 0 6px 18px rgba(0,0,0,0.08); transform: translateY(-2px); }
.card h3 { margin: 0 0 0.4rem; font-size: 1.05rem; color: #0077cc; }
.card p { margin: 0; font-size: 0.9rem; color: #666; }

.breadcrumb { font-size: 0.85rem; color: #888; margin-bottom: 1rem; }
.breadcrumb a { color: #888; }

.site-footer {
  text-align: center;
  font-size: 0.85rem;
  color: #666;
  padding: 2.5rem 1rem 3rem;
}
.site-footer a { color: #666; text-decoration: none; margin: 0 0.6rem; }
.site-footer a:hover { color: #0077cc; }
.site-footer .tagline { margin-bottom: 0.8rem; color: #999; }

.ad-slot {
  margin: 2rem auto;
  max-width: 900px;
  text-align: center;
}

@media (max-width: 600px) {
  .result-row { flex-direction: column; gap: 0.3rem; }
  .time { text-align: left; }
  main { padding: 1rem; }
  .container { padding: 1.25rem; }
}
