:root {
  --primary: #FF0000;
  --primary-dark: #CC0000;
  --primary-light: #FF6666;
  --secondary: #0066FF;
  --secondary-dark: #0052CC;
  --background: #ffffff;
  --surface: #f8f9fa;
  --text-primary: #2c3e50;
  --text-secondary: #7f8c8d;
  --border: #ecf0f1;
  --success: #27ae60;
  --warning: #f39c12;
  --error: #FF0000;
  --shadow: 0 2px 8px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.15);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

html {
  -webkit-text-size-adjust: 100%;
}

img,
svg,
video,
canvas {
  max-width: 100%;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--background);
  color: var(--text-primary);
  line-height: 1.6;
}

/* Header & Navigation moved to ../shared/topbar-admin-sync.css */

.content {
  min-height: calc(100vh - 64px);
  display: flex;
  flex-direction: column;
}

.page-header {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
  color: white;
  padding: 60px 32px;
  text-align: center;
}

.page-header h1 {
  font-size: 42px;
  margin: 0;
}

.page-content {
  flex-grow: 1;
  padding: 60px 32px;
  max-width: none;
  width: 100%;
  margin: 0;
}

.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  text-align: left;
}

.hero-text h1 {
  font-size: 40px;
  margin-bottom: 8px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  opacity: 0.8;
  margin-bottom: 8px;
}

.lede {
  color: rgba(255, 255, 255, 0.85);
  max-width: 560px;
}

.hero-meta {
  min-width: 320px;
}

.info-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  flex-wrap: wrap;
}

.info-controls .filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-weight: 600;
}

.info-controls select {
  background: #fff;
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 12px;
  min-width: 220px;
  box-shadow: var(--shadow);
}

.meta-card {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.meta-layout {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.meta-info {
  flex: 1;
}

.meta-card h3 {
  margin: 8px 0;
}

.meta-card .muted {
  color: rgba(255, 255, 255, 0.8);
}

.meta-card .dates {
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.meta-card .dates span {
  display: block;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}

.meta-card .dates strong {
  display: block;
}

.meta-banner img {
  width: 100%;
  height: auto;
  max-width: 200px;
  max-height: 200px;
  border-radius: 10px;
  object-fit: contain;
  background: transparent;
  padding: 0;
  box-shadow: none;
  display: block;
}

.meta-placeholder {
  height: 180px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.2);
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  font-size: 12px;
  color: white;
  font-weight: 600;
}

.shimmer {
  position: relative;
  overflow: hidden;
}

.shimmer::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0.05), rgba(255,255,255,0.25), rgba(255,255,255,0.05));
  transform: translateX(-100%);
  animation: shimmer 1.8s infinite;
}

@keyframes shimmer {
  100% { transform: translateX(100%); }
}

.schedule-root {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  align-items: stretch;
}

.card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 16px;
  display: flex;
  flex-direction: column;
}

.card.wide {
  width: 100%;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.pill {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 0, 0, 0.12);
  color: var(--primary);
  font-weight: 600;
  font-size: 13px;
}

.pill.blue {
  background: rgba(0, 102, 255, 0.12);
  color: var(--secondary);
}

.pill.green {
  background: rgba(39, 174, 96, 0.12);
  color: var(--success);
}

.date-chip {
  padding: 6px 10px;
  background: var(--surface);
  border-radius: 10px;
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-secondary);
}

.card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.card-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 170px;
}

.card-body h3 {
  margin: 0 0 6px;
}

.muted {
  color: var(--text-secondary);
}

.media {
  margin-top: 12px;
}

.media img {
  width: 100%;
  display: block;
  border-radius: 10px;
  border: 1px solid var(--border);
  box-shadow: none;
  object-fit: contain;
  object-position: center;
  background: #f8fafc;
  padding: 0;
  aspect-ratio: 3 / 4;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.media-grid img {
  width: 100%;
  display: block;
  border-radius: 10px;
  border: 1px solid var(--border);
  object-fit: contain;
  object-position: center;
  box-shadow: none;
  background: #f8fafc;
  padding: 0;
  aspect-ratio: 3 / 4;
}

.subsection h4 {
  margin: 12px 0 8px;
}

.placeholder {
  background: var(--surface);
  border: 2px dashed var(--border);
  border-radius: 8px;
  padding: 60px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 18px;
}

.placeholder.error {
  color: var(--error);
  border-color: rgba(255, 0, 0, 0.3);
}

/* ============== Footer ============== */
.footer {
  background: var(--text-primary);
  color: white;
  padding: 60px 32px 24px;
  margin-top: 80px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
  max-width: none;
  width: 100%;
  margin: 0 0 40px;
}

.footer-col h4 {
  margin-bottom: 16px;
  font-size: 16px;
}

.footer-col p {
  color: rgba(255,255,255,0.7);
  margin-bottom: 8px;
  font-size: 14px;
  line-height: 1.6;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-col a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  text-align: center;
  color: rgba(255,255,255,0.5);
  font-size: 14px;
}

/* ============== Responsive Design ============== */
@media (max-width: 900px) {
.meta-card {
    padding: 16px;
  }

  .meta-layout {
    gap: 12px;
  }

  .page-content {
    padding-top: 20px;
    max-width: none;
    margin: 0;
  }
/* Profile dropdown mobile */
.page-header {
    padding: 40px 20px;
  }

  .hero {
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: none;
    margin: 0;
    width: 100%;
  }

  .hero-meta {
    width: 100%;
  }

  .meta-layout {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .meta-banner img {
    max-width: 100%;
    max-height: 320px;
    margin: 0 auto;
  }

  .page-header h1 {
    font-size: 28px;
  }

  .page-content {
    padding: 40px 20px;
    max-width: none;
    margin: 0;
  }

  .schedule-root {
    width: 100%;
    max-width: none;
    margin: 0;
  }

  .meta-info {
    text-align: center;
    width: 100%;
  }

  .placeholder {
    padding: 40px;
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

@media (max-width: 768px) {
.brand-text {
    font-size: 16px;
  }

  .page-header {
    padding: 30px 16px;
  }

  .page-header h1 {
    font-size: 22px;
  }

  .hero-text h1 {
    font-size: 28px;
  }

  .page-content {
    padding: 30px 16px;
  }

  .placeholder {
    padding: 30px;
    font-size: 16px;
  }

  .footer {
    padding: 40px 16px 20px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-col h4 {
    font-size: 14px;
  }

  .footer-col p,
  .footer-col a {
    font-size: 13px;
  }

  .media img,
  .media-grid img {
    aspect-ratio: 3 / 4;
  }
}

/* ============== Lightbox ============== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
}

.lightbox.hidden {
  display: none;
}

.lightbox-content {
  position: relative;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  max-width: 90vw;
  max-height: 90vh;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
}

.lightbox-img {
  width: 100%;
  height: auto;
  max-height: calc(90vh - 80px);
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.6);
  border: none;
  color: white;
  font-size: 28px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  z-index: 1001;
}

.lightbox-close:hover {
  background: rgba(0, 0, 0, 0.8);
}

.lightbox-actions {
  padding: 12px 16px;
  background: #f8f9fa;
  border-top: 1px solid #ecf0f1;
  display: flex;
  gap: 10px;
}

.lightbox-btn {
  flex: 1;
  padding: 10px 16px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.lightbox-btn:hover {
  background: var(--primary-dark);
}

.lightbox-btn.download span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

