#fileInputBar {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 32px 0 0 0;
}
.fileInputLabel {
  display: inline-flex;
  align-items: center;
  background: #2196f3;
  color: #fff;
  font-size: 17px;
  padding: 10px 28px;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(33,150,243,0.08);
  transition: background 0.15s;
  font-weight: 500;
}
.fileInputLabel:hover {
  background: #1976d2;
}
.fileInputIcon {
  font-size: 22px;
  margin-right: 10px;
}
header h1 {
  text-align: center;
  margin: 32px 0 0 0;
  font-size: 2.1rem;
  color: #1976d2;
  letter-spacing: 1px;
}
#mainLayout {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
  gap: 32px;
  margin: 32px auto 0 auto;
  max-width: 1280px;
}
#fileList {
  width: 260px;
  height: 500px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  padding: 0;
  font-size: 15px;
  color: #333;
  overflow-y: auto;
  margin: 0;
  border: 1px solid #e0e0e0;
}
#fileList .file-item {
  padding: 12px 20px 10px 20px;
  cursor: pointer;
  border-left: 4px solid transparent;
  transition: background 0.15s, border-color 0.15s;
  border-bottom: 1px solid #f0f0f0;
  background: #fff;
}
#fileList .file-item:last-child {
  border-bottom: none;
}
#fileList .file-item.active {
  background: #e3f2fd;
  border-left: 4px solid #2196f3;
  color: #1976d2;
}
#playerContainer {
  width: 860px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.10);
  padding: 24px 28px 18px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
#videoPlayer {
  width: 100%;
  max-width: 800px;
  height: 450px;
  background: #000;
  display: block;
  margin: 0 auto 14px auto;
  border-radius: 8px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.08);
}
#controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin-bottom: 12px;
}
#controls button, #controls select {
  font-size: 15px;
  padding: 4px 16px;
  border-radius: 4px;
  border: 1px solid #bdbdbd;
  background: #fafafa;
  transition: background 0.15s, border-color 0.15s;
}
#controls button:hover, #controls select:hover {
  background: #e3f2fd;
  border-color: #2196f3;
}
#progressContainer {
  margin-top: 10px;
  text-align: center;
  width: 100%;
}
#progressBarWrapper {
  width: 800px;
  margin: 0 auto;
  position: relative;
  height: 16px;
  user-select: none;
}
#progressBarBg {
  width: 100%;
  height: 10px;
  background: #e0e0e0;
  border-radius: 5px;
  position: relative;
  overflow: hidden;
  margin-top: 8px;
  cursor: pointer;
  user-select: none;
}
#progressBarBuffered {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: #bdbdbd;
  border-radius: 5px;
  width: 0%;
  z-index: 1;
}
#progressBarPlayed {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: #2196f3;
  border-radius: 5px;
  width: 0%;
  z-index: 2;
}
#progressBarThumb {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  background: #fff;
  border: 2px solid #2196f3;
  border-radius: 50%;
  left: 0%;
  z-index: 3;
  box-shadow: 0 2px 6px rgba(33,150,243,0.18);
  transition: background 0.1s;
  cursor: pointer;
}
#progressBarThumb:hover {
  background: #e3f2fd;
}
#progressTime {
  margin-top: 7px;
  color: #333;
  font-size: 15px;
}

#previewTooltip {
    display: none;
    position: absolute;
    bottom: 20px;
    left: 0;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px;
    border-radius: 4px;
    text-align: center;
}

#previewCanvas {
    width: 160px;
    height: 90px;
}

#timeInputContainer {
    display: flex;
    align-items: center;
    gap: 5px;
}

#timeInput {
    width: 150px;
    padding: 4px;
    border: 1px solid #bdbdbd;
    border-radius: 4px;
}

#jumpToTimeBtn {
    padding: 4px 10px;
}

.time-picker-popup {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: white;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 10;
  margin-bottom: 10px;
}

.time-picker-inputs {
  display: flex;
  align-items: center;
  gap: 5px;
}

.time-picker-inputs input[type="number"] {
  width: 60px;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  text-align: center;
  font-size: 14px;
}

.time-picker-inputs input#yearInput {
  width: 70px;
}

.time-picker-inputs span {
  font-size: 14px;
  color: #888;
}

#confirmJumpBtn {
  padding: 8px 16px;
  border: none;
  background-color: #2196f3;
  color: white;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.2s;
}

#confirmJumpBtn:hover {
  background-color: #1976d2;
}
