/* =========================
   EVENT HERO
   ========================= */

.event-hero {
  padding: 2rem 2rem 2rem;
  text-align: center;
}

.event-hero-content {
  max-width: 800px;
  margin: auto;
}

.event-subtitle {
  color: var(--text-muted);
  line-height: 1.7;
}

/* =========================
   VIDEO
   ========================= */

.event-video {
  max-width: 800px;
  margin: 0 auto;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;

  border-radius: 18px;
  overflow: hidden;

  background: #000;
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}

.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* =========================
   DESCRIPTION
   ========================= */

.event-description {
  padding: 2rem 2rem;
}

.description-container {
  max-width: 850px;
  margin: auto;
  background: var(--bg-card);
  padding: 2rem;
  border-radius: 24px;
  border: 1px solid var(--border);
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.event-description h2 {
  margin-bottom: 1.5rem;
}

.event-description p {
  line-height: 1.8;
  margin-bottom: 1.2rem;
}

/* =========================
   FILE TREE
   ========================= */

.event-files {
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 2rem;
}

.tree {
  list-style: none;
  padding-left: 0;
  font-size: 0.95rem;
}

.tree li {
  margin: 0.4rem 0;
}

.tree ul {
  display: none;
  padding-left: 1rem;
  margin-top: 0.5rem;
  border-left: 1px solid var(--border);
}

.tree li.open > ul {
  display: block;
}

/* Folder header */

.folder-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;

  cursor: pointer;
  font-weight: 600;
  padding: 0.5rem 0.6rem;
  border-radius: 8px;

  transition: background 0.2s ease;
}

.folder-header:hover {
  background: rgba(0,0,0,0.05);
}

[data-theme="dark"] .folder-header:hover {
  background: rgba(255,255,255,0.05);
}

/* Rotating arrow */

.folder-header::before {
  content: "▸";
  transition: transform 0.2s ease;
}

.tree li.open > .folder-header::before {
  transform: rotate(90deg);
}

/* Files */

.file-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;

  padding: 0.4rem 0.6rem;
  border-radius: 8px;

  transition: background 0.2s ease;
}

.file-row:hover {
  background: rgba(0,0,0,0.05);
}

[data-theme="dark"] .file-row:hover {
  background: rgba(255,255,255,0.05);
}

.size {
  margin-left: auto;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.download-link {
  margin-left: 0.8rem;
  font-weight: 600;
}

#download-selected:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* =========================
   EVENT LAYOUT (2 COLUMN)
   ========================= */

.event-layout {
  display: grid;
  grid-template-columns: 40% 1fr;
  gap: 5rem;
  max-width: 1300px;
  margin: 3rem auto;
  padding: 0 2rem;
  align-items: start;
}

/* Sidebar (file tree) */

.event-sidebar {
  position: sticky;
  top: 100px;
  background: var(--bg-card);
  padding: 1.5rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

/* Main column */

.event-main {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

/* Remove old max-width restrictions */

.event-video,
.event-description,
.event-files {
  max-width: 100%;
  margin: 0;
  padding: 0;
}

/* Responsive */

@media (max-width: 1024px) {
  .event-layout {
    grid-template-columns: 1fr;
  }

  .event-sidebar {
    position: relative;
    top: 0;
  }
}