/*
  MAXIMUS 2025 – Domination | Timetable Skin FINAL FINAL v15 (perfect and clean version)
*/
:root {
  --primary: #ff4c4c;
  --accent: #ff4c4c;
  --bg: #000;
  --text: #e4e4e4;
  --muted: #aaa;
}

/* --- reset/base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Poppins", "Arial", sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* --- background video --- */
#background-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    pointer-events: none;
    opacity: 0.2;
}

/* --- TITLE SECTION --- */
#title-section {
    width: 100%;
    padding: 120px 0 80px;
    text-align: center;
}

#live-title {
    color: #fff;
    font-family: 'Oswald', sans-serif;
    font-size: clamp(3rem, 7vw, 6rem);
    line-height: 1.1;
    text-transform: uppercase;
    pointer-events: none;
}

#live-title span {
    color: var(--accent);
    display: block;
    margin-top: 0.5rem;
    font-size: clamp(2rem, 5vw, 4rem);
}

/* --- TIMETABLE --- */
#timetable {
  position: relative;
  width: clamp(480px, 90vw, 1100px);
  margin: 0 auto;
  padding-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem; /* Väike vahe kaartide vahel */
}

#timetable::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  translate: -50% 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(#2a2a2a, var(--accent) 50%, #2a2a2a);
  opacity: .6;
}

/* --- kaart (slot) --- */
.slot {
  --accent: #ff4c4c;
  isolation: isolate;
  position: relative;
  width: calc(50% - 4.2rem);
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-left: 4px solid var(--accent);
  box-shadow: 0 6px 12px rgba(0, 0, 0, .5);
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 1rem;
  align-items: center;
  transition: transform 0.3s, box-shadow 0.3s, opacity 0.3s;
  border-radius: 0;
  z-index: 0;
  will-change: transform, box-shadow, opacity;
}

.slot:nth-child(odd) {
  margin-left: auto;
  border-left: none;
  border-right: 4px solid var(--accent);
}

.slot:hover {
  transform: scale(1.03);
  box-shadow: 0 0 20px var(--accent);
  cursor: pointer;
}

.slot::before {
  --d: 10px;
  content: "";
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  right: -40px;
  width: var(--d);
  height: var(--d);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  transition: opacity 0.3s, transform 0.2s;
}

.slot:nth-child(odd)::before {
  left: -40px;
  right: auto;
}

.time {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
}

.artist {
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text);
}

.nowLine {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.9), transparent);
  z-index: 2;
  display: none;
  pointer-events: none;
}

.slot.past {
  background: rgba(255, 255, 255, 0.025);
  opacity: 0.45;
}

.slot.past::before {
  opacity: .15;
}

.slot.past .time,
.slot.past .artist {
  opacity: 0.5;
  color: var(--muted);
}

.slot.current {
    z-index: 5;
    border-color: var(--accent);
    transform: scale(1.05);
  }

  .slot.current .artist {
    color: var(--accent);
  }

  .slot.current::before {
    --d: 10px;
    content: "";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: var(--d);
    height: var(--d);
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--accent), 0 0 24px var(--accent);
    z-index: 6;
  }

  .slot.current:nth-child(odd)::before {
    left: -40px;
    right: auto;
  }

  .slot.current:not(:nth-child(odd))::before {
    right: -40px;
    left: auto;
  }

  .slot.current::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--accent);
    box-shadow: 0 0 15px var(--accent), 0 0 30px var(--accent);
    pointer-events: none;
    z-index: 6;
  }

  .slot.current:not(:nth-child(odd))::after {
    left: 0;
  }

  .slot.current:nth-child(odd)::after {
    right: 0;
  }

/* --- MOBILE --- */
@media(max-width: 680px) {

  #title-section {
    padding: 80px 0 40px;
  }

  #timetable {
    max-width: 480px;
    width: 100%;
    padding-bottom: 2rem;
    gap: 0.4rem;
  }

  .slot {
    width: 100%;
    margin-left: 0 !important;
    border-left: 4px solid var(--accent);
    padding: 0.6rem 0.8rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .slot::before {
    display: none;
  }

  .time {
    font-size: 0.75rem;
    color: #bbb;
  }

  .artist {
    font-size: 1rem;
    margin-top: 0.2rem;
  }

  .nowLine {
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.7), transparent);
  }

  .slot.past .time,
  .slot.past .artist {
    opacity: 0.6;
  }
}

/* Hover-only enhancements */
@media (hover: hover) and (pointer: fine) {
  .slot:hover { transform: scale(1.03); box-shadow: 0 0 20px var(--accent); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}