:root {
  --primary: #00f2ff;
  --secondary: #7000ff;
  --bg-deep: #050608;
  --bg-surface: rgba(255, 255, 255, 0.05);
  --text-primary: #ffffff;
  --text-secondary: #a0a0b0;
  --glass-border: rgba(255, 255, 255, 0.1);
  --danger: #ff4d4d;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg-deep);
  color: var(--text-primary);
  min-height: 100vh;
  padding: 1rem;
}

.container {
  max-width: 500px;
  margin: 0 auto;
}

/* Header */
header {
  text-align: center;
  margin-bottom: 2rem;
  padding: 1rem 0;
}

header h1 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--primary);
}

/* Date Nav */
.date-nav {
  display: flex;
  background: var(--bg-surface);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  position: sticky;
  top: 10px;
  z-index: 10;
  backdrop-filter: blur(10px);
}

.date-nav button {
  flex: 1;
  padding: 12px;
  border: none;
  background: none;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}

.date-nav button.active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--primary);
}

/* Event Card */
.event-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.event-card {
  display: flex;
  gap: 1.25rem;
  padding: 1.25rem;
  background: var(--bg-surface);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: transform 0.2s, border-color 0.2s;
  position: relative;
  overflow: hidden;
}

.event-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 242, 255, 0.3);
  background: rgba(255, 255, 255, 0.07);
}

.event-thumb {
  width: 90px;
  height: 90px;
  border-radius: 14px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.event-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0; /* Prevents text overflow from breaking flex */
}

.event-time {
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 800;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.event-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.3;
  color: var(--text-primary);
}

.event-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
  line-height: 1.4;
}

.event-links {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.watch-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 10px;
  transition: all 0.2s;
  border: none;
  box-shadow: 0 4px 10px rgba(0, 242, 255, 0.2);
}

.watch-btn:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 15px rgba(0, 242, 255, 0.3);
  filter: brightness(1.1);
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Empty State */
.empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-secondary);
}

/* Admin Specific */
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.btn-add {
  padding: 8px 16px;
  border-radius: 8px;
  background: var(--primary);
  color: black;
  font-weight: 700;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  padding: 2rem 1rem;
  z-index: 100;
  overflow-y: auto;
}

.form-card {
  background: #111;
  padding: 1.5rem;
  border-radius: 16px;
}

.input-grp { margin-bottom: 1rem; }
.input-grp label { display: block; font-size: 0.8rem; margin-bottom: 4px; color: var(--text-secondary); }
input, textarea {
  width: 100%;
  padding: 12px;
  background: #222;
  border: 1px solid #333;
  color: white;
  border-radius: 8px;
  font-family: inherit;
}
