body {
  margin: 0;
  background: #121212;
  color: #fff;
  font-family: Arial, sans-serif;
  display: flex;
  flex-direction: column;
  height: 100vh;
  font-size: 10px;
}

header {
  padding: 10px 20px;
  background: #1f1f1f;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.controls select,
.controls button {
  background: #2c2c2c;
  color: white;
  border: none;
  padding: 6px 12px;
  margin-left: 10px;
  border-radius: 4px;
  font-size: 14px;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#videoContainer {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: black;
}

#mainVideo {
  width: 100%;
  height: 100%;
}

#titleBar {
  background: #222;
  padding: 10px 20px;
  font-size: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

#gallery {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 10px;
  background: #1a1a1a;
  gap: 10px;
  scroll-behavior: smooth;
}

.thumbnail {
  width: 200px;
  height: 112px;
  background: #333;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
}

.thumbnail .info {
  position: absolute;
  bottom: 0;
  background: rgba(0,0,0,0.6);
  font-size: 12px;
  padding: 4px 6px;
  width: 100%;
  color: #ccc;
  box-sizing: border-box;
}

.redditBtn {
  background: #ff4500;
  color: white;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 13px;
  transition: background 0.3s ease;
}

.redditBtn:hover {
  background: #e03e00;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: #1f1f1f;
  color: white;
  padding: 30px;
  border-radius: 8px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  font-size: 14px;
  text-align: left;
}

.modal-content h2 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 20px;
}

.modal-content p {
  margin-bottom: 20px;
}

#closeModalBtn {
  background: #ff4500;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  color: white;
  font-size: 14px;
  cursor: pointer;
}
