.events-hub-page {
  // Live Stream/Video controller.
  .admin-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color, #c7cdd4);
  }

  // Loading State
  .loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    gap: 1.5rem;

    .spinner {
      width: 40px;
      height: 40px;
      border: 4px solid var(--border-color, #e5e7eb);
      border-top-color: var(--primary-color, #0066cc);
      border-radius: 50%;
      animation: spin 0.8s linear infinite;
    }

    .loading-text {
      color: var(--greyForeground);
      font-size: 1rem;
      margin: 0;
    }
  }

  @keyframes spin {
    to {
      transform: rotate(360deg);
    }
  }

  // Empty State
  .empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    gap: 1rem;
    padding: 2rem;
    text-align: center;

    .empty-state-icon {
      font-size: 4rem;
      opacity: 0.5;
    }

    h3 {
      margin: 1rem 0 0.5rem 0;
      color: var(--mainForeground);
      font-size: 1.5rem;
      font-weight: 600;
    }

    p {
      margin: 0;
      color: var(--greyForeground);
      font-size: 1rem;
      max-width: 400px;
    }
  }

  // Events Section
  .events-section {
    .section-title {
      margin: 0 0 2rem 0;
      color: var(--mainForeground);
      font-size: 1.5rem;
      font-weight: 700;
      letter-spacing: -0.5px;
    }
  }

  // Grid Layout
  .events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    padding: 0;
    margin: 0;

    @media (max-width: 768px) {
      grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
      gap: 1.5rem;
    }

    @media (max-width: 480px) {
      grid-template-columns: 1fr;
      gap: 1rem;
    }
  }

  // Event Card
  .event-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);

    &:hover {
      transform: translateY(-4px);
      box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
      border-color: var(--primary-color, #0066cc);
    }

    &[data-event-id] {
      cursor: pointer;
    }
  }

  // Card Media/Thumbnail
  .card-media {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--greyBackground);
    flex-shrink: 0;

    .event-thumbnail {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
      transition: transform 0.4s ease;

      .event-card:hover & {
        transform: scale(1.05);
      }
    }

    .card-overlay {
      position: absolute;
      inset: 0;
      display: flex;
      align-items: flex-start;
      justify-content: flex-start;
      padding: 0.75rem;
      background: linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, transparent 100%);
      opacity: 0;
      transition: opacity 0.3s ease;

      .event-card:hover & {
        opacity: 1;
      }
    }

    .state-badge {
      display: inline-block;
      padding: 0.4rem 0.75rem;
      border-radius: 4px;
      font-size: 0.75rem;
      font-weight: 700;
      letter-spacing: 0.5px;
      background: rgba(0, 0, 0, 0.5);
      color: #ffffff;

      &.state-active {
        background: #10b981;
      }
    }
  }

  // Card Content
  .card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.25rem;

    .event-title {
      margin: 0;
      color: var(--mainForeground);
      font-size: 1.125rem;
      font-weight: 700;
      line-height: 1.4;
      overflow: hidden;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      word-break: break-word;
    }

    .event-description {
      margin: 0;
      color: var(--greyForeground);
      font-size: 0.9rem;
      line-height: 1.5;
      overflow: hidden;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
    }

    .event-meta {
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
      margin-top: 0.5rem;

      .meta-item {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        font-size: 0.85rem;
        color: var(--greyForeground);

        .meta-label {
          font-weight: 600;
          white-space: nowrap;
        }

        time {
          color: var(--mainForeground);
          font-weight: 500;
        }
      }
    }
  }

  // Card Footer
  .card-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary-light);

    .view-button {
      display: inline-block;
      color: var(--primary-color, #64adf7);
      text-decoration: none;
      font-size: 0.95rem;
      font-weight: 600;
      transition: all 0.2s ease;

      &:hover {
        opacity: 0.8;
        transform: translateX(2px);
      }

      &:active {
        transform: translateX(0);
      }
    }
  }

  // Responsive Adjustments
  @media (max-width: 768px) {
    .events-section .section-title {
      font-size: 1.25rem;
      margin-bottom: 1.5rem;
    }

    .card-content {
      padding: 1rem !important;

      .event-title {
        font-size: 1rem;
      }

      .event-meta .meta-item {
        font-size: 0.8rem;
      }
    }

    .card-footer {
      padding: 0.75rem 1rem !important;

      .view-button {
        font-size: 0.9rem;
      }
    }
  }

  @media (max-width: 480px) {
    .admin-controls {
      flex-direction: column;
    }

    .empty-state {
      min-height: 300px;
      padding: 1rem;

      .empty-state-icon {
        font-size: 3rem;
      }

      h3 {
        font-size: 1.25rem;
      }
    }
  }
}

