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

body {
  font-family: 'Courier New', monospace;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
  color: #fff;
  min-height: 100vh;
}

/* Scanlines */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 100;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(255, 255, 0, 0.02) 2px,
    rgba(255, 255, 0, 0.02) 4px
  );
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* Back link */
.back-link {
  display: inline-block;
  color: #667eea;
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 30px;
  transition: color 0.3s;
}

.back-link:hover {
  color: #764ba2;
}

/* Title with glitch effect */
.title {
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: 5px;
  text-align: center;
  text-shadow: 2px 0 0 rgba(255, 255, 0, 0.3), -2px 0 0 rgba(0, 255, 255, 0.3);
  animation: glitch 3s infinite;
  position: relative;
}

.subtitle {
  text-align: center;
  color: #888;
  font-size: 1rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-top: 10px;
  margin-bottom: 15px;
}

.intro {
  text-align: center;
  color: #aaa;
  font-size: 0.9rem;
  letter-spacing: 1px;
  margin-bottom: 50px;
  line-height: 1.6;
}

@keyframes glitch {
  0%, 90%, 100% { transform: translate(0); }
  92% { transform: translate(-5px, 0); }
  94% { transform: translate(5px, 0); }
  96% { transform: translate(-3px, 0); }
  98% { transform: translate(3px, 0); }
}

/* Reel grid */
.reel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  gap: 30px;
  margin-bottom: 60px;
}

/* Reel cards */
.reel-card {
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}

.reel-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 40px rgba(102, 126, 234, 0.2);
}

/* Reel thumbnail */
.reel-thumbnail {
  aspect-ratio: 9 / 16;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #764ba2 0%, #667eea 50%, #ff00ff 100%);
}

.reel-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.reel-thumbnail::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.15;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(255, 255, 255, 0.1) 2px,
      rgba(255, 255, 255, 0.1) 4px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 4px,
      rgba(255, 255, 255, 0.05) 4px,
      rgba(255, 255, 255, 0.05) 8px
    );
  animation: noise 0.5s steps(4) infinite;
  z-index: 1;
}

@keyframes noise {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-1px, 1px); }
  50% { transform: translate(1px, -1px); }
  75% { transform: translate(-1px, -1px); }
  100% { transform: translate(1px, 1px); }
}

.reel-placeholder-icon {
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.4);
  text-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  z-index: 2;
}

.reel-format {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2px;
  z-index: 2;
}

/* Reel info */
.reel-info {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.reel-title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 6px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.reel-description {
  font-size: 0.8rem;
  color: #aaa;
  line-height: 1.5;
  margin-bottom: 12px;
  flex: 1;
}

.reel-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: #666;
  margin-bottom: 16px;
}

.reel-actions {
  display: flex;
  gap: 10px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  text-align: center;
}

.btn-download {
  flex: 1;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
}

.btn-download:hover {
  box-shadow: 0 0 20px rgba(102, 126, 234, 0.5);
  transform: translateY(-2px);
}

.btn-download i {
  margin-right: 6px;
}

.btn-copy {
  background: rgba(255, 255, 255, 0.1);
  color: #ccc;
  padding: 12px 14px;
}

.btn-copy:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  transform: translateY(-2px);
}

.btn-active {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  padding: 14px 30px;
}

.btn-active:hover {
  box-shadow: 0 0 20px rgba(102, 126, 234, 0.5);
  transform: translateY(-2px);
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  display: none;
}

.empty-state.visible {
  display: block;
}

.empty-icon {
  font-size: 4rem;
  color: rgba(102, 126, 234, 0.3);
  margin-bottom: 30px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.6; }
}

.empty-state h2 {
  font-size: 1.8rem;
  letter-spacing: 5px;
  margin-bottom: 15px;
  text-shadow: 2px 0 0 rgba(255, 255, 0, 0.3), -2px 0 0 rgba(0, 255, 255, 0.3);
}

.empty-state p {
  color: #888;
  font-size: 0.9rem;
  letter-spacing: 1px;
  margin-bottom: 30px;
  line-height: 1.6;
}

/* Toast notification */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  padding: 14px 30px;
  border-radius: 8px;
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  z-index: 200;
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  pointer-events: none;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Footer */
.footer {
  text-align: center;
  padding: 30px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #666;
  font-size: 0.8rem;
  line-height: 2;
}

.footer a {
  color: #667eea;
  text-decoration: none;
}

.footer a:hover {
  color: #764ba2;
}

/* Responsive */
@media (max-width: 768px) {
  .title { font-size: 1.8rem; letter-spacing: 3px; }
  .subtitle { font-size: 0.85rem; margin-bottom: 10px; }
  .intro { font-size: 0.8rem; margin-bottom: 30px; }
  .reel-thumbnail { max-height: 350px; }
}

@media (max-width: 480px) {
  .title { font-size: 1.5rem; }
  .reel-grid { gap: 20px; }
  .reel-thumbnail { max-height: 320px; }
  .reel-actions { flex-direction: column; }
  .btn-download { width: 100%; }
  .btn-copy { width: 100%; }
}
