:root {
  color-scheme: light;
  --ink: #18222f;
  --muted: #667085;
  --line: #d9e2ec;
  --panel: #ffffff;
  --soft: #f4f7fb;
  --accent: #2dd4bf;
  --accent-strong: #5eead4;
  --gold: #b7791f;
  --rose: #be3455;
  --shadow: 0 18px 50px rgba(25, 38, 52, 0.12);
}

:root.night-mode {
  color-scheme: dark;
  --ink: #f8fbfd;
  --muted: #c4cfda;
  --line: #314257;
  --panel: #121c28;
  --soft: #1b2a3a;
  --accent: #5eead4;
  --accent-strong: #99f6e4;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: #eef3f8;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

:root.night-mode body {
  background: #07111d;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 24px;
  color: #f8fbfd;
  background: #17212d;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 8px;
  background: var(--accent);
}

.nav {
  display: grid;
  gap: 8px;
  margin-top: 36px;
}

.nav-item {
  width: 100%;
  padding: 12px 14px;
  color: #dbe5ee;
  text-align: left;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
}

.nav-item.active,
.nav-item:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
}

.sidebar-card {
  margin-top: 36px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #dbe5ee;
  background: rgba(255, 255, 255, 0.06);
}

.build-label {
  margin: 18px 0 0;
  color: #a8bbc9;
  font-size: 0.78rem;
  font-weight: 700;
}

.main {
  padding: 28px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.theme-toggle {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  font-size: 1.2rem;
  line-height: 1;
}

.topbar h1,
.section-heading h2,
.panel-form h2,
.panel-form h3 {
  margin: 0;
  letter-spacing: 0;
}

.topbar h1 {
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
}

.setup-banner {
  margin: -6px 0 18px;
  padding: 12px 14px;
  border: 1px solid #f0c36a;
  border-radius: 8px;
  color: #5f420c;
  background: #fff8e6;
  font-weight: 700;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sidebar .eyebrow {
  color: #82e0d8;
}

.session-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.user-pill {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

:root.night-mode .toolbar,
:root.night-mode .channel-card,
:root.night-mode .details-panel,
:root.night-mode .panel-form,
:root.night-mode .my-channel-card,
:root.night-mode .video-item,
:root.night-mode .lesson-player,
:root.night-mode .upload-progress,
:root.night-mode .user-pill,
:root.night-mode .lesson-summary {
  background: var(--panel);
}

:root.night-mode input,
:root.night-mode select,
:root.night-mode textarea,
:root.night-mode .ghost {
  color: var(--ink);
  border-color: var(--line);
  background: #0b1623;
}

:root.night-mode .tag,
:root.night-mode .empty-state {
  color: var(--ink);
  background: var(--soft);
}

:root.night-mode .video-item.active {
  background: #102e2b;
}

:root.night-mode .channel-summary,
:root.night-mode .video-card-button {
  background: var(--panel);
}

:root.night-mode .video-card-thumb {
  color: #d6fff9;
  background: #102e2b;
}

:root.night-mode label,
:root.night-mode .upload-progress-row {
  color: var(--ink);
}

:root.night-mode .channel-card p,
:root.night-mode .details-panel p,
:root.night-mode .video-item p,
:root.night-mode .my-channel-card p,
:root.night-mode .upload-progress-size {
  color: var(--muted);
}

:root.night-mode .setup-banner {
  color: #fff4d2;
  border-color: #8a6a25;
  background: #33260b;
}

:root.night-mode .upload-progress-track {
  background: #26364a;
}

:root.night-mode .empty-state {
  border-color: var(--line);
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.toolbar,
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.toolbar {
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.search-box {
  flex: 1;
}

label {
  display: grid;
  gap: 7px;
  color: #344054;
  font-size: 0.9rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  color: var(--ink);
  background: #fff;
}

textarea {
  resize: vertical;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  gap: 20px;
  align-items: start;
}

.channel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}

.channel-card,
.details-panel,
.panel-form,
.my-channel-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 1px 0 rgba(25, 38, 52, 0.04);
}

.channel-card {
  overflow: hidden;
}

.channel-select-card {
  width: 100%;
  padding: 0;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.channel-select-card:hover,
.my-channel-card:hover {
  border-color: #7dd3fc;
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.58), 0 0 26px rgba(56, 189, 248, 0.58), 0 16px 38px rgba(56, 189, 248, 0.24);
  transform: translateY(-1px);
}

.cover {
  min-height: 130px;
  background: linear-gradient(135deg, #0f766e, #2563eb 55%, #be3455);
  background-size: cover;
  background-position: center;
}

.priced-cover {
  position: relative;
}

.channel-badge-stack {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: grid;
  justify-items: end;
  gap: 6px;
}

.channel-price-badge,
.channel-discount-badge {
  padding: 7px 10px;
  border-radius: 8px;
  box-shadow: 0 0 0 3px rgba(7, 17, 29, 0.16), 0 10px 24px rgba(7, 17, 29, 0.24);
  font-size: 0.82rem;
  font-weight: 950;
}

.channel-price-badge.free {
  color: #fff;
  background: #dc2626;
}

.channel-price-badge.paid {
  color: #07111d;
  background: #5eead4;
}

.channel-discount-badge {
  color: #07111d;
  background: #facc15;
}

.channel-price-badge.discounted {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.channel-price-badge .original-price {
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  opacity: 0.72;
}

.channel-price-badge .discounted-price {
  color: #07111d;
  font-size: 0.96rem;
}

.channel-card-body,
.details-panel,
.my-channel-card {
  padding: 16px;
}

.channel-card h3,
.details-panel h2,
.video-item h3,
.my-channel-card h3 {
  margin: 0;
}

.channel-card p,
.details-panel p,
.video-item p,
.my-channel-card p {
  color: var(--muted);
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tag {
  padding: 5px 8px;
  border-radius: 999px;
  color: #344054;
  background: var(--soft);
  font-size: 0.78rem;
  font-weight: 800;
}

.price-tag {
  color: #07111d;
  background: #facc15;
}

.purchase-details {
  display: grid;
  gap: 4px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.details-panel {
  position: sticky;
  top: 24px;
  min-height: 320px;
  box-shadow: var(--shadow);
}

.channel-view-panel {
  position: static;
}

.channel-summary {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
  gap: 18px;
  align-items: stretch;
}

.channel-summary .cover {
  height: auto;
  min-height: 240px;
}

.channel-summary-body {
  display: grid;
  align-content: center;
  gap: 10px;
}

.channel-summary-body h2,
.channel-summary-body p {
  margin: 0;
}

.video-section-heading {
  margin-top: 28px;
}

.video-category-section {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.category-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.category-heading h4 {
  margin: 0;
  font-size: 1rem;
}

.category-heading span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 12px;
}

.video-item {
  display: grid;
  gap: 10px;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.video-item:hover {
  border-color: #7dd3fc;
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.58), 0 0 26px rgba(56, 189, 248, 0.58), 0 16px 38px rgba(56, 189, 248, 0.24);
  transform: translateY(-1px);
}

.video-card-button {
  display: grid;
  width: 100%;
  padding: 0;
  border: 0;
  color: var(--ink);
  text-align: left;
  background: #fbfcfe;
  cursor: pointer;
}

.video-card-thumb {
  display: grid;
  min-height: 124px;
  place-items: center;
  color: #07111d;
  font-weight: 900;
  background: #ccfbf1;
}

.video-card-body {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.video-card-body h3,
.video-card-body p {
  margin: 0;
}

.video-item .video-actions {
  padding: 0 14px 14px;
}

.lesson-player {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
}

.lesson-player iframe,
.lesson-player video,
.player-fallback {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 8px;
  background: #17212d;
}

.player-fallback {
  display: grid;
  place-items: center;
}

.lesson-player h3,
.lesson-player p {
  margin: 0;
}

.video-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.studio-grid,
.auth-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

.studio-console {
  display: grid;
  gap: 14px;
  margin-bottom: 20px;
}

.studio-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.lesson-summary {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.lesson-summary-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.lesson-summary-heading h3 {
  margin: 0;
  font-size: 1rem;
}

.lesson-summary-heading span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.lesson-chip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 8px;
}

.lesson-chip {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--soft);
  font-size: 0.86rem;
  font-weight: 800;
  cursor: pointer;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.lesson-chip-main {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  gap: 8px;
  min-width: 0;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  cursor: pointer;
  text-align: left;
}

.lesson-chip-main span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lesson-chip:hover {
  border-color: #7dd3fc;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.46), 0 0 18px rgba(56, 189, 248, 0.42);
  transform: translateY(-1px);
}

.lesson-chip.active {
  border-color: #facc15;
  box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.62), 0 0 18px rgba(250, 204, 21, 0.5);
}

.lesson-chip.dragging {
  opacity: 0.55;
}

.lesson-chip.drag-target {
  border-color: #5eead4;
  box-shadow: 0 0 0 4px rgba(45, 212, 191, 0.48), 0 0 22px rgba(45, 212, 191, 0.44);
}

.lesson-chip strong {
  display: grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  color: #07111d;
  background: var(--accent);
  font-size: 0.78rem;
}

.lesson-create-card {
  justify-content: center;
  min-height: 84px;
  border-style: dashed;
}

.lesson-create-card .create-plus {
  width: 34px;
  height: 34px;
  font-size: 1.35rem;
}

.lesson-create-card strong {
  width: auto;
  height: auto;
  min-width: 0;
  color: var(--ink);
  background: transparent;
  font-size: 0.86rem;
}

.studio-lesson-videos {
  display: grid;
  gap: 12px;
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.studio-lesson-videos .video-grid {
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 10px;
}

.studio-video-card {
  position: relative;
  gap: 0;
  cursor: grab;
}

.studio-video-preview {
  display: grid;
  min-height: 86px;
  place-items: center;
  overflow: hidden;
  color: #07111d;
  background: linear-gradient(135deg, #0f766e, #2563eb 55%, #be3455);
  background-size: cover;
  background-position: center;
  font-size: 0.78rem;
  font-weight: 900;
}

.studio-video-preview video {
  width: 100%;
  height: 100%;
  min-height: 86px;
  object-fit: cover;
}

.preview-fallback {
  color: #07111d;
  background: #ccfbf1;
}

.studio-video-card .video-card-body {
  gap: 6px;
  padding: 10px;
}

.studio-video-card h3 {
  font-size: 0.94rem;
}

.studio-video-card p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 0.82rem;
}

.studio-video-card.dragging {
  opacity: 0.55;
}

.studio-video-card.drag-target {
  border-color: #5eead4;
  box-shadow: 0 0 0 4px rgba(45, 212, 191, 0.48), 0 0 22px rgba(45, 212, 191, 0.44);
}

.studio-video-card.active {
  border-color: #facc15;
  box-shadow: 0 0 0 4px rgba(250, 204, 21, 0.62), 0 0 20px rgba(250, 204, 21, 0.5);
}

.browse-lessons,
.browse-lesson-videos {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.browse-video-card {
  cursor: pointer;
}

.browse-video-button {
  height: 100%;
  background: transparent;
}

.studio-video-editor {
  margin-top: 12px;
  scroll-margin: 90px;
}

.studio-video-editor input[readonly] {
  cursor: not-allowed;
  opacity: 0.72;
}

.studio-video-delete {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 2;
}

.icon-button {
  display: inline-grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  padding: 0;
}

.lesson-delete-button {
  width: 32px;
  height: 32px;
  flex-basis: 32px;
}

.form-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.video-create-card {
  display: grid;
  min-height: 170px;
  place-items: center;
  align-content: center;
  gap: 10px;
  border-style: dashed;
  color: var(--ink);
  background: var(--panel);
  cursor: pointer;
}

.video-create-card strong {
  font-size: 1rem;
}

.compact-empty {
  padding: 14px;
}

.auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.profile-summary {
  display: grid;
  gap: 10px;
}

.profile-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.panel-form {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.upload-progress {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
}

.upload-progress-row,
.upload-progress-size {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #344054;
  font-size: 0.86rem;
  font-weight: 800;
}

.upload-progress-size {
  color: var(--muted);
  font-weight: 700;
}

.upload-progress-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #d9e2ec;
}

.upload-progress-bar {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transition: width 140ms ease;
}

.form-title-row,
.card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.card-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.my-channels {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
}

.my-channel-card {
  display: block;
  position: relative;
  overflow: hidden;
  width: 100%;
  color: var(--ink);
  text-align: left;
  padding: 0;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.my-channel-card-main {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  color: var(--ink);
  text-align: left;
  background: transparent;
  cursor: pointer;
}

.create-channel-card {
  display: grid;
  min-height: 236px;
  place-items: center;
  align-content: center;
  gap: 10px;
  border-style: dashed;
  color: var(--ink);
  background: var(--panel);
  cursor: pointer;
}

.create-plus {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 8px;
  color: #07111d;
  background: var(--accent);
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
}

.create-channel-card strong {
  font-size: 1rem;
}

.studio-actions.in-card {
  position: absolute;
  right: 10px;
  bottom: 10px;
  left: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
}

:root.night-mode .studio-actions.in-card {
  background: rgba(18, 28, 40, 0.9);
}

.studio-actions.in-card button {
  min-width: 0;
  padding: 7px 5px;
  font-size: 0.82rem;
  line-height: 1;
  text-align: center;
}

.my-channel-card.active {
  border-color: #facc15;
  box-shadow: 0 0 0 4px rgba(250, 204, 21, 0.7), 0 0 24px rgba(250, 204, 21, 0.6), 0 16px 40px rgba(250, 204, 21, 0.24);
}

.my-channel-card.active:hover {
  border-color: #facc15;
  box-shadow: 0 0 0 4px rgba(250, 204, 21, 0.78), 0 0 28px rgba(250, 204, 21, 0.68), 0 16px 40px rgba(250, 204, 21, 0.28);
}

.my-channel-card.drag-target {
  border-color: #5eead4;
  box-shadow: 0 0 0 4px rgba(45, 212, 191, 0.52), 0 0 24px rgba(45, 212, 191, 0.48);
}

.primary,
.secondary,
.ghost,
.danger {
  border: 0;
  border-radius: 8px;
  padding: 11px 14px;
  font-weight: 800;
  color: #07111d;
  transition: box-shadow 150ms ease, transform 150ms ease, filter 150ms ease, background 150ms ease, border-color 150ms ease;
}

.primary:hover,
.secondary:hover,
.ghost:hover,
.danger:hover,
.nav-item:hover,
.theme-toggle:hover {
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.62), 0 0 24px rgba(56, 189, 248, 0.58), 0 12px 30px rgba(56, 189, 248, 0.26);
  transform: translateY(-1px);
}

.primary:active,
.secondary:active,
.ghost:active,
.danger:active,
.nav-item:active,
.theme-toggle:active,
.channel-select-card:active,
.my-channel-card:active,
.my-channel-card-main:active,
.video-item:active {
  box-shadow: 0 0 0 4px rgba(250, 204, 21, 0.74), 0 0 22px rgba(250, 204, 21, 0.62), 0 12px 28px rgba(250, 204, 21, 0.26);
  transform: translateY(0);
  filter: brightness(1.05);
}

.compact {
  padding: 8px 10px;
}

.hidden {
  display: none;
}

.primary {
  color: #07111d;
  background: var(--accent);
}

.primary:hover {
  background: var(--accent-strong);
}

.secondary {
  color: #fff;
  background: #2563eb;
}

.ghost {
  color: var(--ink);
  border: 1px solid var(--line);
  background: #fff;
}

.danger {
  color: #fff;
  background: var(--rose);
}

.empty-state {
  padding: 28px;
  border: 1px dashed #b9c7d5;
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.6);
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  max-width: 360px;
  padding: 13px 15px;
  border-radius: 8px;
  color: #fff;
  background: #17212d;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 160ms ease, transform 160ms ease;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .app-shell,
  .split-layout,
  .studio-grid,
  .auth-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
  }

  .details-panel {
    position: static;
  }

  .channel-summary {
    grid-template-columns: 1fr;
  }

  .channel-summary .cover {
    min-height: 190px;
  }
}

@media (max-width: 640px) {
  .main,
  .sidebar {
    padding: 18px;
  }

  .topbar,
  .toolbar,
  .my-channel-card {
    align-items: stretch;
    flex-direction: column;
  }

  .session-actions {
    justify-content: flex-start;
  }
}
