@layer components {

  /* Video Session Layout */

  .video-session {
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
    background: oklch(10% 0 0);
    color: oklch(90% 0 0);
  }

  .video-session__header {
    padding: var(--block-space-s) var(--inline-space-l);
    background: oklch(15% 0 0);
    border-block-end: 1px solid oklch(25% 0 0);
  }

  .video-session__timer {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    font-size: 0.875rem;
    color: oklch(70% 0 0);
  }

  .video-session__participant-name {
    font-size: 0.875rem;
    color: oklch(70% 0 0);
  }

  /* Video Grid */

  .video-session__grid {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--block-space);
  }

  .video-session__remote {
    width: 100%;
    max-width: 960px;
    aspect-ratio: 16 / 9;
    background: oklch(15% 0 0);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .video-session__local {
    position: absolute;
    bottom: var(--block-space-l);
    right: var(--inline-space-l);
    width: 12rem;
    aspect-ratio: 16 / 9;
    background: oklch(20% 0 0);
    border-radius: var(--radius);
    overflow: hidden;
    border: 2px solid oklch(30% 0 0);

    @media (max-width: 640px) {
      width: 8rem;
      bottom: var(--block-space);
      right: var(--inline-space);
    }
  }

  .video-session__video-element {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .video-session__waiting {
    font-size: 0.875rem;
    color: oklch(50% 0 0);
    text-align: center;
  }

  /* Controls */

  .video-session__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--inline-space);
    padding: var(--block-space) var(--inline-space-l);
    background: oklch(15% 0 0);
    border-block-start: 1px solid oklch(25% 0 0);
  }

  /* No-show notice */

  .video-session__no-show {
    padding: 0 var(--inline-space-l);
  }

  /* Learner note for tutor */

  .video-session__note {
    padding: var(--block-space-s) var(--inline-space-l);
    background: oklch(15% 0 0);
    border-block-start: 1px solid oklch(25% 0 0);
  }
}
