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

html, body {
  height: 100%;
  overflow: hidden
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  background: #f5f5f7;
  color: #111;
  display: flex;
  justify-content: center;
  align-items: center;
}

#app {
  height: calc(var(--vh, 1vh) * 100);
  width: 100%;
  max-width: 1080px;
  padding: 10px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .05);
  display: flex;
  flex-direction: column;
  gap: 5px;
  overflow: hidden;
  position: relative;
}

#logo {
  position: absolute;
  top: 15px;
  left: 15px;
  max-width: 150px
}

#contentWrapper {
  display: flex;
  gap: 20px;
  margin-top: 60px;
  flex: 1;
  overflow: hidden;
}

#mainContent {
  flex: 1;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  padding-right: 10px;
}

/* ─── Upload button (optional section) ────────────────────── */
#uploadSection {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-bottom: 15px;
}

.file-upload-btn {
  background: #007aff;
  color: #fff;
  padding: 6px 14px;
  font-size: .9rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: background .2s, transform .2s;
}

.file-upload-btn:hover {
  background: #0051c6;
  transform: scale(1.05)
}

#fileInput {
  display: none
}

#fileLabel {
  font-size: .85rem;
  color: #555
}

/* ─── Filters (year / month / day) ───────────────────────── */
#filters {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap
}

select {
  padding: 4px 8px;
  font-size: .9rem;
  border-radius: 6px;
  border: 1px solid #ccc;
}

:root {
  --accent-blue: #007aff
}

#filters label {
  font-size: .9rem;
  font-weight: 600;
  color: var(--accent-blue);
}

#filters select {
  padding: 6px 28px 6px 10px;
  border: 2px solid var(--accent-blue);
  color: var(--accent-blue);
  background:
    #fff url('data:image/svg+xml;utf8,\
         <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\
           <path fill="%23007aff" d="M7 10l5 5 5-5z"/></svg>') no-repeat right 8px center/14px auto;
  appearance: none;
  -moz-appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: background-color .2s, border-color .2s, box-shadow .2s;
}

#filters select:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 122, 255, .3)
}

/* ─── Time slider ────────────────────────────────────────── */
#timeSliderContainer {
  display: flex;
  flex-direction: column;
  align-items: center
}

#timeSlider {
  width: 100%
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  width: 100%;
  font-size: .85rem;
  color: #555;
}

#timeDisplay {
  font-size: 1.1rem;
  font-weight: bold;
  color: #007BFF;
  padding: 8px;
}

/* ─── Image preview & carousel controls ──────────────────── */
#preview {
  position: relative;
  text-align: center
}

#mainImage {
  max-width: 100%;
  max-height: 480px;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .1);
}

.image-date {
  font-size: .85rem;
  color: #888;
  margin-bottom: 4px
}

/* navigation arrows */
.navBtn {
  position: absolute;
  z-index: 5;
  background: #007aff;
  color: #fff;
  border: none;
  padding: .6rem 1rem;
  font-size: 1.6rem;
  line-height: 1;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background .2s, transform .2s;
}

.navBtn:hover {
  background: #005cbd
}

#prevBtn {
  left: 10px;
  top: 50%;
  transform: translateY(-50%)
}

#nextBtn {
  right: 10px;
  top: 50%;
  transform: translateY(-50%)
}

/* play / pause button — centred under the image */
.playBtn {
  position: static;
  /* participate in normal flow */
  display: block;
  /* own line */
  margin: 16px auto 0;
  /* 16px gap & centered */
  width: max-content;
  background: #007aff;
  color: #fff;
  border: none;
  padding: .5rem 1.3rem;
  font-size: 1rem;
  line-height: 1;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background .2s, transform .2s;
}

.playBtn:hover {
  background: #005cbd;
}