* {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  background: #f5f6f8;
  color: #1a1a2e;
  margin: 0;
  padding: 40px 20px;
}

.container {
  max-width: 600px;
  margin: 0 auto;
}

.container.wide {
  max-width: 1100px;
}

h1 {
  font-size: 22px;
  margin-bottom: 4px;
}

.sub {
  color: #666;
  font-size: 14px;
  margin-bottom: 15px;
}

form {
  display: flex;
  gap: 8px;
}

input[type="file"] {
  flex: 1;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #fff;
}

button {
  padding: 10px 18px;
  background: #1a1a2e;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}

button:hover {
  background: #2a2a4e;
}

.status {
  margin-top: 16px;
  font-size: 14px;
  color: #444;
}

.status.inline {
  margin-top: 0;
  margin-left: 8px;
}

.player-layout {
  display: flex;
  gap: 24px;
  margin-top: 16px;
}

.video-col {
  flex: 2;
}

.segment-col {
  flex: 1;
  max-height: 640px;
  overflow-y: auto;
  border-left: 1px solid #ddd;
  padding-left: 16px;
  display: none;
}

video {
  width: 100%;
  background: #000;
  border-radius: 8px;
}

.controls-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

select {
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

#segmentList {
  list-style: none;
  margin: 0;
  padding: 0;
}

.segment-item {
  padding: 10px 8px;
  border-radius: 6px;
  cursor: pointer;
  margin-bottom: 4px;
}

.segment-item:hover {
  background: #eceef2;
}

.segment-item.active {
  background: #dfe6ff;
}

.seg-time {
  font-size: 12px;
  color: #888;
  display: block;
}

.seg-text {
  margin: 2px 0 0;
  font-size: 14px;
  line-height: 1.4;
}

.tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  border-bottom: 1px solid #ddd;
}

.tab {
  padding: 10px 16px;
  text-decoration: none;
  color: #666;
  font-size: 14px;
  border-bottom: 2px solid transparent;
}

.tab.active {
  color: #1a1a2e;
  font-weight: 600;
  border-bottom-color: #1a1a2e;
}

.tab:hover {
  color: #1a1a2e;
}

.search-input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-bottom: 16px;
  font-size: 14px;
}

.video-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.video-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 12px;
  border-radius: 6px;
  cursor: pointer;
  background: #fff;
  border: 1px solid #e5e5e5;
  margin-bottom: 8px;
}

.video-item:hover {
  background: #eceef2;
}

.video-title {
  font-size: 14px;
  font-weight: 500;
}

.video-date {
  font-size: 12px;
  color: #888;
}

.video-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.delete-btn {
  padding: 5px 10px;
  font-size: 12px;
  background: #fff;
  color: #c0392b;
  border: 1px solid #e2a5a0;
}

.delete-btn:hover {
  background: #fdeceb;
}

.share-box {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.share-box input {
  flex: 1;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 13px;
  background: #f5f6f8;
}