:root {
  --bg: #ffffff;
  --bg-soft: #f6f7fb;
  --bg-muted: #eef1f6;
  --surface: #ffffff;
  --surface-alt: #fbfbfd;
  --text: #20222b;
  --text-soft: #676b76;
  --text-faint: #9ea3af;
  --line: #ececf2;
  --line-strong: #dee2eb;
  --accent: #e60000;
  --accent-strong: #ff3b30;
  --accent-soft: rgba(230, 0, 0, 0.08);
  --shadow-soft: 0 14px 30px rgba(24, 32, 56, 0.08);
  --shadow-modal: 0 40px 80px rgba(15, 23, 42, 0.22);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --sidebar-width: 280px;
}

[data-theme="dark"] {
  --bg: #0c0f15;
  --bg-soft: #151922;
  --bg-muted: #1b2130;
  --surface: #10141c;
  --surface-alt: #161b24;
  --text: #edf1f7;
  --text-soft: #a2abbb;
  --text-faint: #70798d;
  --line: #1d2432;
  --line-strong: #273041;
  --accent-soft: rgba(255, 59, 48, 0.14);
  --shadow-soft: 0 18px 34px rgba(0, 0, 0, 0.36);
  --shadow-modal: 0 40px 90px rgba(0, 0, 0, 0.56);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(230, 0, 0, 0.07), transparent 22%),
    radial-gradient(circle at bottom right, rgba(255, 59, 48, 0.06), transparent 24%),
    var(--bg);
}

.auth-page--studio {
  min-height: 100vh;
  padding: 22px;
  background:
    radial-gradient(circle at top left, rgba(230, 0, 0, 0.11), transparent 24%),
    radial-gradient(circle at bottom right, rgba(255, 59, 48, 0.08), transparent 22%),
    var(--bg);
}

.auth-topbar--studio,
.auth-topbar__actions,
.auth-form__row,
.auth-check {
  display: flex;
  align-items: center;
  gap: 12px;
}

.auth-topbar--studio {
  justify-content: space-between;
  max-width: 1320px;
  margin: 0 auto 22px;
}

.auth-topbar__actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.auth-footnote,
.auth-card__header p,
.auth-showcase__copy,
.auth-feature p {
  color: var(--text-soft);
}

.auth-layout--studio {
  display: grid;
  grid-template-columns: 1.05fr minmax(420px, 0.85fr);
  gap: 28px;
  max-width: 1320px;
  margin: 0 auto;
}

.auth-showcase--studio,
.auth-card--studio {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.auth-showcase--studio {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 40px;
  background:
    linear-gradient(180deg, rgba(9, 12, 18, 0.52), rgba(9, 12, 18, 0.78)),
    radial-gradient(circle at top left, rgba(230, 0, 0, 0.12), transparent 22%),
    linear-gradient(135deg, var(--surface) 0%, var(--bg-soft) 100%);
  background-size: cover;
  background-position: center;
}

.auth-showcase--studio::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(0, 0, 0, 0.18), transparent 42%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.28));
  pointer-events: none;
}

.auth-showcase--studio > * {
  position: relative;
  z-index: 1;
}

.auth-showcase--studio .auth-showcase__eyebrow {
  display: none;
}

.auth-showcase__eyebrow,
.auth-card__eyebrow {
  margin: 0 0 12px;
  color: var(--text-faint);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.auth-showcase--studio h1,
.auth-card--studio h2 {
  margin: 0;
  line-height: 1.05;
}

.auth-showcase--studio h1,
.auth-showcase__copy,
.auth-showcase__eyebrow,
.auth-feature strong,
.auth-feature p {
  color: #ffffff;
}

.auth-showcase--studio h1 {
  text-align: center;
  max-width: 13ch;
  font-size: 2rem;
  margin-inline: auto;
}

.auth-showcase__copy {
  max-width: 58ch;
  margin: 18px 0 0;
  line-height: 1.7;
}

.auth-showcase__feature-list {
  display: grid;
  gap: 18px;
  margin-top: 36px;
}

.auth-feature {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.auth-feature__icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  backdrop-filter: blur(12px);
}

.auth-feature strong {
  display: block;
  margin-bottom: 4px;
}

.auth-card--studio {
  padding: 34px;
}

.auth-card__header {
  margin-bottom: 24px;
}

.auth-card__header h2 {
  font-size: 2rem;
}

.auth-card__header p {
  margin: 12px 0 0;
  line-height: 1.6;
}

.auth-socials {
  display: grid;
  gap: 12px;
}

.auth-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg);
  font-weight: 600;
  text-decoration: none;
}

.auth-social__icon {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 1rem;
  font-weight: 700;
}

.auth-social--google .auth-social__icon {
  background: #fff1e8;
  color: #ea4335;
}

.auth-social--facebook .auth-social__icon {
  background: #edf3ff;
  color: #1877f2;
}

.auth-divider {
  position: relative;
  margin: 24px 0;
  text-align: center;
}

.auth-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  border-top: 1px solid var(--line);
}

.auth-divider span {
  position: relative;
  padding: 0 14px;
  background: var(--surface);
  color: var(--text-faint);
}

.auth-form {
  display: grid;
  gap: 16px;
}

.auth-field {
  display: grid;
  gap: 8px;
}

.auth-field span {
  font-size: 0.95rem;
  font-weight: 600;
}

.auth-field input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
  color: var(--text);
  outline: 0;
}

.auth-form__row {
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.auth-check {
  color: var(--text-soft);
}

.auth-check input {
  width: auto;
  margin: 0;
}

.auth-link {
  color: var(--accent);
  text-decoration: none;
}

.auth-submit {
  width: 100%;
  min-height: 50px;
}

.auth-footnote {
  margin: 18px 0 0;
  font-size: 0.92rem;
  line-height: 1.6;
}

a,
button {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  color: var(--text);
  background: var(--surface);
}

textarea {
  resize: vertical;
}

.studio-shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px 20px;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
}

[data-theme="dark"] .sidebar {
  background: rgba(12, 15, 21, 0.9);
}

.brand-row,
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand {
  text-decoration: none;
  font-weight: 700;
}

.brand__badge,
.channel-avatar,
.profile-preview {
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  overflow: hidden;
}

.brand__badge {
  width: 34px;
  height: 34px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  font-size: 0.95rem;
}

.brand__text {
  font-size: 1.05rem;
}

.channel-card,
.panel,
.summary-card,
.hero-card,
.metric-card,
.art-card,
.draft-card,
.upload-meta__card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.channel-card {
  display: grid;
  gap: 18px;
  padding: 20px;
}

.channel-avatar,
.profile-preview {
  width: 78px;
  height: 78px;
  background: linear-gradient(135deg, #ca125d, #ff3b7b);
  color: #fff;
  font-size: 1.9rem;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--text-faint);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.muted {
  color: var(--text-soft);
}

.side-nav {
  display: grid;
  gap: 8px;
}

.side-nav__item {
  width: 100%;
  border: 0;
  border-radius: 14px;
  padding: 14px 16px;
  text-align: left;
  background: transparent;
  cursor: pointer;
}

.side-nav__item:hover,
.side-nav__item--active {
  background: var(--bg-soft);
  color: var(--text);
}

.sidebar-footer {
  margin-top: auto;
  display: grid;
  gap: 16px;
}

.sidebar-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-alt);
}

.sidebar-toggle p,
.sidebar-toggle small,
.channel-card h2,
.channel-card p,
.page-header h1,
.page-header p,
.panel h3,
.panel p,
.metric-card span,
.metric-card small,
.comment-item p {
  margin: 0;
}

.toggle-switch {
  width: 42px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--bg-muted);
  position: relative;
  cursor: pointer;
}

.toggle-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  transition: transform 180ms ease;
}

.toggle-switch[aria-pressed="true"] {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
}

.toggle-switch[aria-pressed="true"]::after {
  transform: translateX(18px);
}

.main {
  min-width: 0;
  padding: 20px 28px 40px;
}

.topbar,
.page-header,
.hero-grid,
.dashboard-grid,
.analytics-grid,
.branding-grid,
.content-toolbar,
.upload-meta {
  display: grid;
  gap: 20px;
}

.topbar {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  margin-bottom: 28px;
}

.topbar__left,
.topbar__actions,
.header-actions,
.hero-card__actions,
.stat-row,
.panel__header,
.content-toolbar,
.video-cell,
.comment-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.topbar__left {
  min-width: 0;
}

.topbar__actions,
.header-actions {
  justify-content: flex-end;
}

.search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-soft);
  min-height: 54px;
}

.search input {
  border: 0;
  padding: 0;
  background: transparent;
  outline: none;
}

.icon-button,
.primary-button,
.secondary-button,
.tab-button,
.status-pill,
.status-tag {
  border-radius: 999px;
}

.icon-button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
}

.icon-button--ghost {
  border-color: transparent;
  background: transparent;
}

.primary-button,
.secondary-button,
.tab-button {
  border: 0;
  cursor: pointer;
  white-space: nowrap;
}

.button-with-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.button-with-icon__icon {
  display: inline-block;
  line-height: 1;
  font-size: 0.95rem;
}

.primary-button {
  padding: 13px 20px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
}

.primary-button--dark {
  color: #111318;
  background: #ffffff;
}

.secondary-button {
  padding: 12px 18px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}

.secondary-button--dark {
  color: #111318;
  background: #ffffff;
  box-shadow: none;
}

.page-section {
  display: none;
  gap: 24px;
}

.page-section--active {
  display: grid;
}

.page-header {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}

.page-header h1 {
  font-size: 2rem;
}

.hero-grid,
.dashboard-grid,
.analytics-grid,
.branding-grid,
.upload-meta {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hero-card,
.summary-card,
.panel {
  padding: 24px;
}

.hero-card--accent {
  background: #425fa6;
  color: #ffffff;
  min-height: 240px;
}

.hero-card--accent .eyebrow,
.hero-card--accent p {
  color: rgba(255, 255, 255, 0.84);
}

.summary-card {
  display: grid;
  gap: 18px;
}

.stat-row {
  justify-content: space-between;
}

.stat-row strong {
  display: block;
  font-size: 1.75rem;
}

.stat-label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.panel__header {
  justify-content: space-between;
  align-items: start;
  margin-bottom: 20px;
}

.checklist,
.metric-grid,
.audience-stack,
.comment-list,
.form-grid,
.draft-grid {
  display: grid;
  gap: 16px;
}

.checklist__item {
  display: flex;
  gap: 16px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: var(--bg-soft);
}

.checklist__item strong,
.video-cell strong,
.draft-card strong,
.comment-item strong {
  display: block;
  margin-bottom: 6px;
}

.checklist__badge {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  color: var(--accent);
  background: var(--accent-soft);
  font-weight: 700;
}

.status-pill,
.status-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  font-size: 0.88rem;
  background: var(--accent-soft);
  color: var(--accent);
}

.status-tag--soft {
  background: rgba(0, 122, 255, 0.12);
  color: #1769d6;
}

.status-tag--draft {
  background: var(--bg-soft);
  color: var(--text-soft);
}

.metric-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metric-card {
  padding: 18px;
}

.metric-card strong,
.audience-item strong {
  display: block;
  margin: 10px 0 6px;
  font-size: 1.8rem;
}

.chart {
  position: relative;
  margin-top: 16px;
  border-radius: var(--radius-md);
  padding: 24px 18px 18px;
  background: linear-gradient(180deg, var(--bg-soft), transparent);
  overflow: hidden;
}

.chart__line {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(var(--line) 1px, transparent 1px) top / 100% 33.33% no-repeat,
    linear-gradient(var(--line) 1px, transparent 1px) center / 100% 33.33% no-repeat,
    linear-gradient(var(--line) 1px, transparent 1px) bottom / 100% 33.33% no-repeat;
  opacity: 0.7;
}

.chart__bars {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  align-items: end;
  gap: 12px;
  min-height: 180px;
}

.chart--wide .chart__bars {
  grid-template-columns: repeat(10, minmax(0, 1fr));
}

.chart__bars span {
  display: block;
  height: var(--h);
  border-radius: 999px 999px 12px 12px;
  background: linear-gradient(180deg, var(--accent-strong), var(--accent));
}

.tab-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 8px;
}

.filter-chip {
  padding: 10px 14px;
  border: 0;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--text-soft);
  cursor: pointer;
}

.filter-chip--active {
  background: var(--accent-soft);
  color: var(--accent);
}

.filter-bar[hidden] {
  display: none;
}

.tab-button {
  padding: 12px 16px;
  background: transparent;
}

.tab-button--active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
}

.content-table {
  width: 100%;
  border-collapse: collapse;
}

.content-table th,
.content-table td {
  padding: 16px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.content-table th {
  color: var(--text-soft);
  font-size: 0.9rem;
  font-weight: 600;
}

.thumbnail,
.banner-preview,
.short-card__media,
.live-card__media,
.channel-avatar--image,
.profile-preview--image {
  border-radius: 16px;
  background-size: cover;
  background-position: center;
}

.thumbnail {
  width: 116px;
  height: 68px;
  flex-shrink: 0;
}

.thumbnail--one,
.banner-preview {
  background-image: linear-gradient(135deg, rgba(230, 0, 0, 0.9), rgba(255, 59, 48, 0.6));
}

.thumbnail--two {
  background-image: linear-gradient(135deg, rgba(22, 105, 214, 0.95), rgba(36, 199, 254, 0.7));
}

.thumbnail--three {
  background-image: linear-gradient(135deg, rgba(202, 18, 93, 0.95), rgba(255, 122, 159, 0.7));
}

.thumbnail--placeholder {
  background-image: linear-gradient(135deg, rgba(120, 120, 128, 0.25), rgba(120, 120, 128, 0.08));
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(120, 120, 128, 0.9);
}

.thumbnail--placeholder::before {
  content: "";
  width: 22px;
  height: 22px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='5' width='18' height='14' rx='2'/><circle cx='9' cy='10' r='1.5'/><path d='m21 15-4-4-6 6'/></svg>") no-repeat center / contain;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='5' width='18' height='14' rx='2'/><circle cx='9' cy='10' r='1.5'/><path d='m21 15-4-4-6 6'/></svg>") no-repeat center / contain;
}

.skeleton {
  background: linear-gradient(
    90deg,
    rgba(120, 120, 128, 0.12) 25%,
    rgba(120, 120, 128, 0.22) 50%,
    rgba(120, 120, 128, 0.12) 75%
  );
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s ease-in-out infinite;
  border-radius: 8px;
}

[data-theme="dark"] .skeleton {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.06) 25%,
    rgba(255, 255, 255, 0.14) 50%,
    rgba(255, 255, 255, 0.06) 75%
  );
  background-size: 200% 100%;
}

@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-line {
  height: 12px;
  border-radius: 6px;
}

.skeleton-line--title {
  height: 14px;
  width: 70%;
  margin-bottom: 8px;
}

.skeleton-line--meta {
  height: 10px;
  width: 45%;
}

.short-card--skeleton {
  pointer-events: none;
}

.short-card--skeleton .short-card__media {
  background-image: none;
}

.edit-page {
  min-height: 100vh;
  padding: 22px;
}

.edit-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto 28px;
}

.edit-topbar__actions {
  display: flex;
  gap: 12px;
}

.edit-main {
  max-width: 1200px;
  margin: 0 auto;
}

.edit-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  margin-top: 24px;
}

.edit-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.edit-form-grid select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  background: var(--surface);
  font: inherit;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='%239ea3af' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.edit-sidebar-panel {
  display: grid;
  gap: 20px;
  align-content: start;
}

.edit-preview {
  min-height: 180px;
  border-radius: var(--radius-md);
  background: var(--bg-muted);
  overflow: hidden;
}

.edit-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.edit-stat {
  display: grid;
  gap: 4px;
  text-align: center;
}

.edit-stat span {
  font-size: 0.85rem;
  color: var(--text-faint);
}

.edit-thumbnail {
  min-height: 160px;
  border-radius: var(--radius-md);
  background: var(--bg-muted);
  background-size: cover;
  background-position: center;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.edit-thumbnail img {
  width: 100%;
  display: block;
  border-radius: var(--radius-md);
}

.edit-meta-row {
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
}

@media (max-width: 860px) {
  .edit-layout {
    grid-template-columns: 1fr;
  }
  .edit-form-grid {
    grid-template-columns: 1fr;
  }
}

.empty-state {
  padding: 64px 24px;
  text-align: center;
  color: var(--text-soft);
}

.shorts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.short-card {
  display: grid;
  gap: 12px;
}

.short-card__media {
  position: relative;
  min-height: 280px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background-image: linear-gradient(180deg, rgba(202, 18, 93, 0.85), rgba(255, 122, 159, 0.65));
}

.short-card__actions {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  gap: 6px;
  opacity: 0;
  transition: opacity 180ms ease;
}

.short-card:hover .short-card__actions {
  opacity: 1;
}

.short-card__action-btn {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #ffffff;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  backdrop-filter: blur(6px);
}

.short-card__action-btn:hover {
  background: rgba(0, 0, 0, 0.8);
}

.short-card__action-btn--danger:hover {
  background: var(--accent);
}

.row-action-btn {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease;
}

.row-action-btn:hover {
  background: var(--surface-muted, rgba(120, 120, 128, 0.12));
  border-color: var(--accent);
  color: var(--accent);
}

.row-action-btn--danger:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.row-actions {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.live-card {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 1fr);
  gap: 22px;
  align-items: center;
}

.live-card__media {
  position: relative;
  min-height: 240px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background-image: linear-gradient(135deg, rgba(22, 105, 214, 0.92), rgba(36, 199, 254, 0.6));
}

.live-pill {
  position: absolute;
  top: 18px;
  left: 18px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.65);
}

.empty-state__icon,
.upload-dropzone__icon {
  display: inline-grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  margin-bottom: 18px;
  background: var(--bg-soft);
  font-size: 2rem;
}

.tab-panel[hidden] {
  display: none;
}

.draft-card,
.audience-item,
.comment-item {
  padding: 18px;
  border-radius: var(--radius-md);
  background: var(--bg-soft);
}

.form-panel {
  display: grid;
  gap: 24px;
}

.art-card {
  padding: 20px;
}

.banner-preview {
  min-height: 180px;
  margin: 14px 0 18px;
}

.profile-preview {
  margin: 14px 0 18px;
}

.channel-avatar--image,
.profile-preview--image {
  border-radius: 50%;
  background-image: linear-gradient(135deg, #ca125d, #ff3b7b);
}

.form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field {
  display: grid;
  gap: 6px;
}

.field > span {
  font-size: 0.9rem;
  font-weight: 600;
}

.field--full {
  grid-column: 1 / -1;
}

.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 24px;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(8px);
}

.modal__dialog {
  position: relative;
  z-index: 1;
  width: min(1080px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: var(--surface);
  box-shadow: var(--shadow-modal);
}

.modal__header,
.modal__content {
  padding: 24px 28px;
}

.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.modal__content {
  display: grid;
  gap: 24px;
}

.upload-dropzone {
  display: grid;
  place-items: center;
  gap: 10px;
  min-height: 420px;
  padding: 32px;
  border: 1px dashed var(--line-strong);
  border-radius: 24px;
  text-align: center;
  background: linear-gradient(180deg, var(--surface-alt), transparent);
}

.upload-dropzone.is-dragover {
  border-color: var(--accent);
  background: linear-gradient(180deg, var(--accent-soft), transparent);
}

.upload-meta__card {
  padding: 20px;
}

.upload-progress-list {
  display: grid;
  gap: 10px;
}

.upload-progress-list[hidden] {
  display: none;
}

.upload-item {
  display: grid;
  gap: 8px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-alt);
}

.upload-item__info {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
}

.upload-item__name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}

.upload-item__size {
  color: var(--text-faint);
  white-space: nowrap;
}

.upload-item__status {
  min-width: 90px;
  text-align: right;
  color: var(--text-soft);
  white-space: nowrap;
}

.upload-item--done .upload-item__status {
  color: #22c55e;
}

.upload-item--error .upload-item__status {
  color: var(--accent);
}

.upload-item__track {
  height: 4px;
  border-radius: 99px;
  background: var(--bg-muted);
  overflow: hidden;
}

.upload-item__fill {
  height: 100%;
  width: 0%;
  border-radius: 99px;
  background: var(--accent);
  transition: width 0.25s ease;
}

.upload-item--done .upload-item__fill {
  background: #22c55e;
}

.upload-item--error .upload-item__fill {
  background: var(--accent);
}

.upload-details {
  display: grid;
  gap: 16px;
}

.upload-details[hidden] {
  display: none;
}

.upload-details__actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.modal__dialog--small {
  width: min(440px, 100%);
  border-radius: var(--radius-xl);
}

.upload-success {
  display: grid;
  place-items: center;
  gap: 12px;
  text-align: center;
  padding: 48px 32px;
}

.confirm-dialog {
  padding: 32px;
  display: grid;
  gap: 14px;
}

.confirm-dialog h2 {
  margin: 0;
  font-size: 1.25rem;
}

.confirm-dialog p {
  margin: 0;
}

.confirm-dialog__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 8px;
}

.primary-button--danger {
  background: #e23b3b;
  color: #ffffff;
}

.primary-button--danger:hover {
  background: #c92828;
}

.upload-success h2 {
  margin: 0;
}

.upload-success p {
  margin: 0 0 8px;
}

.upload-success__icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #22c55e;
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.upload-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.upload-form-grid select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  background: var(--surface);
  font: inherit;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='%239ea3af' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.upload-thumb-picker {
  display: flex;
  align-items: center;
  gap: 16px;
}

.upload-thumb-preview {
  width: 160px;
  height: 90px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-muted);
  display: grid;
  place-items: center;
  overflow: hidden;
  flex-shrink: 0;
}

.upload-thumb-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.upload-thumb-preview .muted {
  font-size: 0.8rem;
  margin: 0;
  text-align: center;
  padding: 0 8px;
}

.upload-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
}

.upload-toggle-row .muted {
  margin: 0;
  flex: 1;
}

.upload-status-row {
  display: flex;
  gap: 12px;
}

.upload-radio {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
  cursor: pointer;
  flex: 1;
  font-weight: 500;
}

.upload-radio input {
  width: auto;
  margin: 0;
  accent-color: var(--accent);
}

.upload-radio:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.empty-state {
  padding: 48px 24px;
  text-align: center;
  color: var(--text-faint);
}

.empty-state[hidden] {
  display: none;
}

.mobile-only {
  display: none;
}

@media (max-width: 1100px) {
  .auth-layout--studio,
  .hero-grid,
  .dashboard-grid,
  .analytics-grid,
  .branding-grid,
  .upload-meta,
  .upload-form-grid,
  .metric-grid,
  .form-grid,
  .page-header {
    grid-template-columns: 1fr;
  }

  .content-table {
    display: block;
    overflow-x: auto;
  }

  .shorts-grid,
  .live-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .auth-page--studio {
    padding: 16px;
  }

  .auth-topbar--studio {
    align-items: flex-start;
  }

  .auth-topbar__actions {
    width: 100%;
    justify-content: flex-start;
  }

  .auth-showcase--studio,
  .auth-card--studio {
    padding: 22px;
  }

  .auth-showcase--studio h1 {
    max-width: none;
  }

  .studio-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 10;
    width: min(86vw, 320px);
    transform: translateX(-100%);
    transition: transform 180ms ease;
  }

  .sidebar.is-open {
    transform: translateX(0);
  }

  .main {
    padding: 16px 16px 32px;
  }

  .topbar,
  .topbar__left,
  .topbar__actions,
  .header-actions,
  .content-toolbar {
    flex-wrap: wrap;
  }

  .topbar {
    display: grid;
    grid-template-columns: 1fr;
  }

  .desktop-only {
    display: none;
  }

  .mobile-only {
    display: inline-grid;
  }
}
