* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #ffffff;
  color: #000;
  font-family: system-ui, -apple-system, Segoe UI, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

main {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

header,
.row,
.hint {
  display: none;
  /* keep structure but hide everything except the video */
}

.player {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(95vw, 1400px);
  position: relative;
}

video {
  width: 100%;
  height: auto;
  max-height: 90vh;
  object-fit: cover;
  aspect-ratio: 362 / 541;
  background: #ffffff;
}

.overlay-side {
  position: absolute;
  top: -1%;
  height: 102%;
  background: #ffffff;
  z-index: 20;
  pointer-events: none;
  width: var(--overlay-width, 0px);
}

.overlay-side.left {
  left: 0;
}

.overlay-side.right {
  right: 0;
}

.star-btn {
  position: absolute;
  top: 16px;
  left: 16px;
  transform: none;
  width: 80px;
  height: 80px;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  display: none;
  z-index: 30;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  /* Add shadow to white star if needed */
}

.star-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.star-btn.show {
  display: block;
}

.star-volume {
  position: absolute;
  top: 110px;
  left: 20px;
  width: 140px;
  padding: 8px 10px;
  background: rgba(183, 237, 241, 0.9);
  /* Opaque match background or distinct? */
  background: #dae7e9;
  /* Dark background for contrast */
  color: white;
  /* If text exists */
  border-radius: 10px;
  display: none;
  z-index: 30;
  /* backdrop-filter: blur(4px); Remove blur, solid is safer */
}

.star-volume.show {
  display: block;
}

.star-volume input[type="range"] {
  width: 100%;
  accent-color: #d6dce0;
  /* light grey */
}

.fullscreen-btn {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 8px;
  /* Change color from #B7EDF1 to #0b3b4a (dark teal) for Visibility */
  background:
    linear-gradient(to right, #0b3b4a 0 35%, transparent 35% 65%, #0b3b4a 65% 100%) top / 100% 3px no-repeat,
    linear-gradient(to right, #0b3b4a 0 35%, transparent 35% 65%, #0b3b4a 65% 100%) bottom / 100% 3px no-repeat,
    linear-gradient(to bottom, #0b3b4a 0 35%, transparent 35% 65%, #0b3b4a 65% 100%) left / 3px 100% no-repeat,
    linear-gradient(to bottom, #0b3b4a 0 35%, transparent 35% 65%, #0b3b4a 65% 100%) right / 3px 100% no-repeat,
    transparent;
  /* Center is transparent to see overlay/video? Or solid? */
  /* Wait, the center was #B7EDF1. If I make it transparent, I see the overlay (which is #B7EDF1). */
  /* So the icon is the BORDER/FRAME lines. They are now #0b3b4a. */
  /* This should be visible against #B7EDF1 overlay. */
  padding: 0;
  cursor: pointer;
  z-index: 30;
}

.fullscreen-btn.hide {
  display: none;
}

.track,
.slider,
.time {
  display: none;
}

.start-hint {
  position: fixed;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  font-weight: 300;
  color: #0b3b4a;
  padding: 6px 10px;
  border-radius: 8px;
  z-index: 10;
  pointer-events: none;
}

.start-hint.hide {
  display: none;
}