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

body {
  background: #000;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  overflow-x: hidden;
  height: 100vh;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(12px);
  z-index: 100;
  font-size: 14px;
}

.logo {
  font-size: 20px;
  font-weight: 800;
  color: #ff3b30;
}

.header-actions button {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid #ff3b30;
  color: #fff;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  transition: 0.2s;
}

.header-actions button:hover {
  background: #ff3b30;
}

/* Player */
.player-container {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

#player {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

/* Thumbnail Overlay */
.thumbnail {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.8));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  z-index: 10;
  transition: opacity 0.3s;
  padding: 20px;
}

.thumbnail-content h1 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
}

.play-button {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.2);
  border: 3px solid #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px 0;
  font-size: 32px;
  color: #fff;
  backdrop-filter: blur(10px);
}

.uploader {
  font-size: 14px;
  opacity: 0.8;
  margin-bottom: 30px;
}

.duration {
  position: absolute;
  bottom: 90px;
  background: rgba(0,0,0,0.6);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}

/* Action Bar */
.action-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  padding: 12px 16px;
  z-index: 50;
}

.progress-container {
  margin-bottom: 10px;
}

.progress-bar {
  height: 3px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: #ff3b30;
  width: 0;
  transition: width 0.1s linear;
}

.action-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.action-btn {
  flex: 1;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  padding: 10px;
  border-radius: 25px;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: 0.2s;
}

.action-btn:hover {
  background: rgba(255, 59, 48, 0.2);
}

/* Share Modal */
.modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 200;
  backdrop-filter: blur(10px);
}

.modal-content {
  background: #111;
  padding: 24px;
  border-radius: 16px;
  text-align: center;
  max-width: 90%;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.modal-content h3 {
  margin-bottom: 20px;
  color: #ff3b30;
  font-size: 16px;
}

.share-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.share-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
  text-decoration: none;
  transition: 0.2s;
}

.share-icon:hover { transform: scale(1.1); }

.email { background: #007bff; }
.twitter { background: #1da1f2; }
.whatsapp { background: #25d366; }
.telegram { background: #0088cc; }
.facebook { background: #1877f2; }
.linkedin { background: #0077b5; }
.reddit { background: #ff4500; }

.hidden { display: none !important; }

/* Mobile */
@media (max-width: 480px) {
  .thumbnail-content h1 { font-size: 20px; }
  .play-button { width: 70px; height: 70px; font-size: 28px; }
  .action-btn { font-size: 12px; padding: 8px; }
}