/* === Base Reset === */
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: #ffffff;   /* Light background only */
  color: #222;           /* Dark text */
  display: flex;
  justify-content: center;
  padding: 20px;
}

/* === Tablet Frame === */
.tablet-frame {
  background: #e0e0e0;
  border-radius: 40px;
  padding: 24px;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.1), inset 0 0 10px #ccc;
  max-width: 720px;
  width: 100%;
  position: relative;
}

/* === Tile Grid === */
.carplay {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}

.tile {
  background: #f2f2f2;
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

.tile.full {
  grid-column: 1 / -1;
}

/* === Logo === */
.logo {
  width: 100%;
  height: auto;
  max-width: 240px;
  margin: 0 auto 10px;
  display: block;
}
@media (min-width: 768px) {
  .logo { max-width: 320px; }
}
@media (min-width: 1024px) {
  .logo { max-width: 400px; }
}

/* === Now Playing Frame === */
.nowplaying-frame {
  border: none;
  background: transparent;
  width: 100%;
  height: 150px;
  overflow: hidden;
}

/* === Audio/Video Players === */
audio, video {
  width: 100%;
  margin-top: 10px;
}

/* === Action Buttons === */
.live-button {
  display: inline-block;
  background: #2ecc71; /* Accent green */
  color: #fff;
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.live-button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 12px rgba(0,0,0,0.3);
}

/* === Clock === */
.clock-label {
  font-weight: bold;
  font-size: 20px;
  text-align: center;
  margin-bottom: 8px;
}
#clock {
  font-size: 48px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}
.date-wrapper {
  text-align: center;
  font-size: 14px;
  color: #444;
}

/* === Footer === */
.footer {
  font-size: 12px;
  color: #666;
  text-align: center;
  margin-top: 24px;
  padding-top: 12px;
  border-top: 1px solid #ccc;
  line-height: 1.4;
}
