/* Reset some default styles */
* {
  box-sizing: border-box;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
    Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  margin: 0;
  background-color: #f9f9f9;
  color: #222;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
header {
  background-color: #004d40;
  color: #fff;
  padding: 1.5rem 1rem;
  text-align: center;
}
header h1 {
  margin: 0 0 0.25rem 0;
  font-size: 1.8rem;
}
header p {
  margin: 0;
  font-size: 1rem;
  font-weight: 300;
}
main {
  flex-grow: 1;
  padding: 1rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}
#streams {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1rem;
}
.stream-card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.2s ease-in-out;
}
.stream-card:focus-within,
.stream-card:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  outline: none;
}
.stream-card iframe,
.stream-card video,
.stream-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background-color: #000;
}
.stream-content {
  padding: 0.75rem 1rem 1rem 1rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.stream-title {
  font-weight: 600;
  font-size: 1.1rem;
  margin: 0 0 0.25rem 0;
}
.stream-location {
  font-size: 0.9rem;
  color: #666;
  margin: 0 0 0.5rem 0;
}
.stream-description {
  flex-grow: 1;
  font-size: 0.9rem;
  color: #444;
  margin: 0;
}
footer {
  background-color: #004d40;
  color: #fff;
  text-align: center;
  padding: 1rem 1rem;
  font-size: 0.9rem;
}
@media (prefers-color-scheme: dark) {
  body {
    background-color: #121212;
    color: #ddd;
  }
  header, footer {
    background-color: #00251a;
  }
  .stream-card {
    background: #1e1e1e;
    box-shadow: 0 2px 6px rgba(255,255,255,0.1);
  }
  .stream-card:focus-within, .stream-card:hover {
    box-shadow: 0 4px 12px rgba(255,255,255,0.2);
  }
  .stream-location {
    color: #aaa;
  }
  .stream-description {
    color: #ccc;
  }
}
