/*
  Unified Layer
  Final conflict-resolution layer loaded after app.css.
  This file normalizes repeated component rules and gives one strong visual source.
*/

:root {
  --ui-surface-1: #ffffff;
  --ui-surface-2: #f8fafb;
  --ui-border-1: rgba(13, 63, 54, 0.1);
  --ui-text-1: #10221e;
  --ui-text-2: #5f6f69;
  --ui-focus: rgba(13, 63, 54, 0.28);
}

body.theme-reels {
  --ui-surface-1: rgba(15, 21, 29, 0.94);
  --ui-surface-2: rgba(10, 15, 22, 0.94);
  --ui-border-1: rgba(216, 229, 235, 0.12);
  --ui-text-1: #f4fafb;
  --ui-text-2: #c8d7db;
  --ui-focus: rgba(33, 216, 202, 0.34);
}

body.theme-nile {
  --primary: #1c5a7a;
  --primary-light: #2f7899;
  --accent: #d5a33f;
  --accent-soft: #edd29a;
  --bg-page: #eef5f8;
  --bg-card: rgba(255, 255, 255, 0.82);
  --text-main: #132934;
  --text-muted: #5a707b;
  --line: rgba(28, 90, 122, 0.12);
  --ui-surface-1: rgba(255, 255, 255, 0.94);
  --ui-surface-2: rgba(243, 248, 251, 0.96);
  --ui-border-1: rgba(28, 90, 122, 0.14);
  --ui-text-1: #173340;
  --ui-text-2: #5c7480;
  --ui-focus: rgba(47, 120, 153, 0.28);
  color-scheme: light;
}

body.theme-nile .ambient-layer {
  background:
    radial-gradient(720px 360px at 100% -6%, rgba(213, 163, 63, 0.22), transparent 58%),
    radial-gradient(840px 420px at -8% 16%, rgba(47, 120, 153, 0.18), transparent 62%),
    linear-gradient(180deg, #f5fafc 0%, #eef5f8 45%, #e7f0f4 100%);
}

.page-intro-card,
.content-card-premium,
.record-card,
.catalog-card-new,
.admin-card,
.tool-card-premium,
.create-course-card-premium,
.withdrawal-card-premium,
.tab-content-premium {
  background: var(--ui-surface-1);
  border: 1px solid var(--ui-border-1);
}

.record-card,
.content-card-premium,
.tool-card-premium,
.create-course-card-premium,
.withdrawal-card-premium,
.metric-card {
  border-radius: 22px;
}

.record-card strong,
.content-card-premium h3,
.content-card-premium h4,
.section-title-modern h2,
.dashboard-header-premium .header-content h1,
.tab-header h3 {
  color: var(--ui-text-1);
}

.record-card p,
.record-card small,
.content-card-premium p,
.section-title-modern p,
.metric-card span,
.small-text {
  color: var(--ui-text-2);
}

.field input,
.field textarea,
.field select,
.field-modern input,
.field-modern textarea,
.field-modern select,
.field-modern-sm input,
.field-modern-sm textarea,
.field-modern-sm select {
  width: 100%;
  color: var(--ui-text-1);
  background: var(--ui-surface-2);
  border: 1px solid var(--ui-border-1);
  border-radius: 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.field input::placeholder,
.field textarea::placeholder,
.field-modern input::placeholder,
.field-modern textarea::placeholder,
.field-modern-sm input::placeholder,
.field-modern-sm textarea::placeholder {
  color: color-mix(in srgb, var(--ui-text-2) 78%, transparent);
}

.field input:focus,
.field textarea:focus,
.field select:focus,
.field-modern input:focus,
.field-modern textarea:focus,
.field-modern select:focus,
.field-modern-sm input:focus,
.field-modern-sm textarea:focus,
.field-modern-sm select:focus {
  outline: none;
  border-color: var(--ui-focus);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--ui-focus) 38%, transparent);
}

.field label,
.field-modern span,
.field-modern-sm span,
.check-modern span,
.check-modern-sm span {
  color: var(--ui-text-1);
}

.button,
.button-primary,
.button-secondary,
.button-secondary-glass,
.button-secondary-outline,
.button-ghost {
  border-radius: 14px;
}

body.theme-reels .button-secondary-glass,
body.theme-reels .button-secondary-outline,
body.theme-reels .button.button-secondary,
body.theme-reels .button.button-ghost {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f8fcfd;
}

body.theme-reels .button-secondary-glass:hover,
body.theme-reels .button-secondary-outline:hover,
body.theme-reels .button.button-secondary:hover,
body.theme-reels .button.button-ghost:hover {
  background: rgba(33, 216, 202, 0.14);
  border-color: rgba(33, 216, 202, 0.38);
}

body.theme-reels .button-primary,
body.theme-reels .button-accent-gold {
  background: linear-gradient(135deg, #ff816e 0%, #ff615e 100%);
  color: #ffffff;
}

body.theme-nile .button-primary,
body.theme-nile .button-accent-gold {
  background: linear-gradient(135deg, #1f6c8f 0%, #144d69 55%, #0f4157 100%);
  color: #ffffff;
  box-shadow: 0 16px 34px rgba(16, 70, 94, 0.22);
}

body.theme-nile .button-secondary-outline,
body.theme-nile .button.button-secondary,
body.theme-nile .button.button-ghost,
body.theme-nile .button-secondary-glass {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(28, 90, 122, 0.16);
  color: #173340;
}

body.theme-nile .button-secondary-outline:hover,
body.theme-nile .button.button-secondary:hover,
body.theme-nile .button.button-ghost:hover,
body.theme-nile .button-secondary-glass:hover {
  background: rgba(28, 90, 122, 0.08);
  border-color: rgba(28, 90, 122, 0.34);
}

body.theme-reels input,
body.theme-reels textarea,
body.theme-reels select {
  background: rgba(9, 14, 20, 0.92);
  color: #f4fbfc;
  border-color: rgba(255, 255, 255, 0.2);
}

body.theme-reels input::placeholder,
body.theme-reels textarea::placeholder {
  color: rgba(223, 235, 238, 0.78);
}

body.theme-reels .field-modern input,
body.theme-reels .field-modern textarea,
body.theme-reels .field-modern select,
body.theme-reels .field-modern-sm input,
body.theme-reels .field-modern-sm textarea,
body.theme-reels .field-modern-sm select,
body.theme-reels .field input,
body.theme-reels .field textarea,
body.theme-reels .field select {
  background: rgba(7, 12, 18, 0.96);
  color: #f8fdff;
  border-color: rgba(255, 255, 255, 0.18);
}

body.theme-reels .field-modern input::placeholder,
body.theme-reels .field-modern textarea::placeholder,
body.theme-reels .field-modern-sm input::placeholder,
body.theme-reels .field-modern-sm textarea::placeholder {
  color: rgba(226, 236, 240, 0.8);
}

body.theme-reels .field-modern span,
body.theme-reels .field-modern-sm span,
body.theme-reels .field label,
body.theme-reels .check-modern span,
body.theme-reels .check-modern-sm span {
  color: #f2fafc;
}

body.theme-nile input,
body.theme-nile textarea,
body.theme-nile select,
body.theme-nile .field-modern input,
body.theme-nile .field-modern textarea,
body.theme-nile .field-modern select,
body.theme-nile .field-modern-sm input,
body.theme-nile .field-modern-sm textarea,
body.theme-nile .field-modern-sm select {
  background: rgba(249, 252, 253, 0.96);
  color: #173340;
  border-color: rgba(28, 90, 122, 0.16);
}

body.theme-nile input::placeholder,
body.theme-nile textarea::placeholder {
  color: rgba(83, 109, 120, 0.88);
}

body.theme-reels .hero-text,
body.theme-reels .small-text,
body.theme-reels .status-note,
body.theme-reels .field-modern small {
  color: #d9e8ea;
}

body.theme-nile .hero-text,
body.theme-nile .small-text,
body.theme-nile .status-note,
body.theme-nile .field-modern small {
  color: #607781;
}

body.theme-reels .status-pill.status-good {
  background: rgba(31, 164, 115, 0.18);
  color: #bcf7d8;
}

body.theme-reels .status-pill.status-warn {
  background: rgba(201, 144, 48, 0.2);
  color: #ffe2ab;
}

body.theme-reels .status-pill.status-bad {
  background: rgba(255, 107, 87, 0.2);
  color: #ffd1cb;
}

body.theme-reels .meta-chip {
  color: #d5e5e8;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

body.theme-reels .mobile-nav {
  background: rgba(11, 16, 22, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.3);
}

body.theme-nile .site-header,
body.theme-nile .content-card-premium,
body.theme-nile .page-intro-card,
body.theme-nile .catalog-card-new,
body.theme-nile .record-card,
body.theme-nile .site-footer,
body.theme-nile .admin-card,
body.theme-nile .tool-card-premium,
body.theme-nile .create-course-card-premium,
body.theme-nile .withdrawal-card-premium {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(28, 90, 122, 0.12);
  box-shadow: 0 18px 42px rgba(18, 56, 74, 0.09);
}

body.theme-nile .site-nav .nav-link.is-active,
body.theme-nile .mobile-nav a.is-active {
  background: linear-gradient(135deg, #1f6c8f 0%, #16546f 100%);
  color: #ffffff;
}

body.theme-nile .mobile-nav a.is-active span,
body.theme-nile .mobile-nav a.is-active svg {
  color: #ffffff;
}

body.theme-nile .site-nav .nav-link,
body.theme-nile .brand-copy small,
body.theme-nile .content-card-premium p,
body.theme-nile .record-card p,
body.theme-nile .record-card small,
body.theme-nile .footer-brand p,
body.theme-nile .footer-links a,
body.theme-nile .empty-state-modern p,
body.theme-nile .empty-card p {
  color: #5c7480;
}

body.theme-nile .brand-copy strong,
body.theme-nile .page-intro-card h1,
body.theme-nile .content-card-premium h3,
body.theme-nile .content-card-premium h4,
body.theme-nile .footer-links h4,
body.theme-nile .record-card strong,
body.theme-nile .empty-state-modern strong,
body.theme-nile .empty-card strong {
  color: #15303e;
}

body.theme-nile .mobile-nav {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(28, 90, 122, 0.12);
  box-shadow: 0 18px 44px rgba(16, 53, 70, 0.16);
}

body.theme-nile .mobile-nav a {
  color: #58717d;
}

body.theme-nile .studio-header .header-content h1 {
  color: #d3f1ff;
  text-shadow: 0 10px 28px rgba(7, 27, 36, 0.22);
}

body.theme-nile .admin-nav-item .admin-nav-icon {
  background: rgba(28, 90, 122, 0.06);
  border-color: rgba(28, 90, 122, 0.14);
  color: #1b5674;
}

body.theme-nile .admin-nav-item.is-active .admin-nav-icon {
  background: linear-gradient(135deg, #1f6c8f 0%, #1c5a7a 100%);
  border-color: rgba(28, 90, 122, 0.2);
  color: #ffffff;
}

body.theme-nile .admin-nav-item.is-active .admin-nav-title {
  color: #ffffff;
}

body.theme-reels .admin-theme-preview,
body.theme-reels .theme-option-card {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
}

body.theme-reels .admin-theme-preview strong,
body.theme-reels .theme-option-card strong {
  color: #f9fdff;
}

body.theme-reels .admin-theme-preview p,
body.theme-reels .theme-option-card p {
  color: #deecef;
}

body.theme-nile .admin-theme-preview {
  background: linear-gradient(145deg, rgba(28, 90, 122, 0.08), rgba(213, 163, 63, 0.08));
  border-color: rgba(28, 90, 122, 0.14);
}

body.theme-nile .theme-option-card {
  background: rgba(255, 255, 255, 0.74);
  border-color: rgba(28, 90, 122, 0.12);
}

body.theme-nile .theme-option-card.is-active {
  border-color: rgba(28, 90, 122, 0.48);
  box-shadow: 0 18px 40px rgba(18, 56, 74, 0.12);
}

body.theme-reels .mobile-nav a {
  color: #d6e2e6;
}

body.theme-reels .mobile-nav a.is-active {
  color: #ffffff;
}

.premium-table,
.admin-table-shell {
  background: var(--ui-surface-1);
  border: 1px solid var(--ui-border-1);
}

.premium-table th,
.premium-table td {
  color: var(--ui-text-1);
}

.premium-table td small {
  color: var(--ui-text-2);
}

.video-preview-container,
.video-container-premium,
#studio-recording.result-preview {
  background: #05090f;
}

#studio-recording.result-preview {
  object-fit: contain;
}

.studio-preview-surface,
#studio-canvas {
  object-fit: contain !important;
  background: #020406;
}

.mobile-nav {
  left: 50%;
  right: auto !important;
  transform: translateX(-50%);
  width: min(620px, calc(100vw - 16px));
}

#studio-offline-queue-status {
  line-height: 1.7;
}

@media (max-width: 680px) {
  .studio-preview-surface {
    max-height: 44vh;
  }

  #studio-canvas {
    border-radius: 14px;
  }
}

@media (max-width: 860px) {
  .app-shell {
    padding-bottom: 154px;
  }

  .create-course-card-premium,
  .withdrawal-card-premium,
  .tool-card-premium,
  .metric-card,
  .record-card {
    border-radius: 18px;
  }
}

/* Icon + Brand polishing layer */
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

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

.button-with-icon .btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  flex-shrink: 0;
}

.button-with-icon .btn-icon svg {
  display: block;
}

.btn-studio-action .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.btn-studio-action .icon svg {
  width: 21px;
  height: 21px;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-nav-item .admin-nav-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(13, 63, 54, 0.16);
  background: rgba(255, 255, 255, 0.78);
  color: var(--ui-text-1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.admin-nav-item .admin-nav-icon svg {
  width: 19px;
  height: 19px;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-nav-item .admin-nav-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  flex: 1;
}

.admin-nav-item .admin-nav-title {
  display: block;
  font-weight: 800;
  color: var(--ui-text-1);
}

.admin-nav-item small {
  margin-top: 2px;
}

.admin-nav-item.is-active .admin-nav-icon {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.32);
  color: #fff;
}

.admin-nav-item.is-active .admin-nav-title {
  color: #fff;
}

body.theme-reels .admin-nav-item .admin-nav-icon {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: #ecf8fa;
}

.site-header .brand-wrap {
  flex: 0 0 auto;
  min-width: 230px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-header .logo-modern {
  flex-shrink: 0;
  display: grid;
  place-items: center;
}

.site-header .brand-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  line-height: 1.22;
  min-width: 0;
}

.site-header .brand-copy strong {
  letter-spacing: -0.2px;
}

.site-header .brand-copy small {
  line-height: 1.35;
}

@media (max-width: 1024px) {
  .site-header .brand-wrap {
    min-width: 190px;
  }
}

@media (max-width: 850px) {
  .site-header .brand-wrap {
    min-width: 0;
    flex: 1;
  }

  .site-header .logo-modern {
    width: 50px;
    height: 50px;
  }

  .site-header .logo-img-header {
    width: 30px;
    height: 30px;
  }

  .site-header .brand-copy strong {
    font-size: 0.96rem;
  }

  .site-header .brand-copy small {
    font-size: 0.72rem;
  }
}

body.theme-nile .home-nile-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  gap: 28px;
  align-items: stretch;
  padding: 30px;
  border-radius: 32px;
  border: 1px solid rgba(28, 90, 122, 0.12);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(244, 249, 251, 0.88)),
    radial-gradient(circle at top right, rgba(213, 163, 63, 0.12), transparent 36%);
  box-shadow: 0 26px 62px rgba(18, 56, 74, 0.1);
}

body.theme-nile .home-nile-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

body.theme-nile .home-nile-copy .eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(28, 90, 122, 0.08);
  color: #1b5674;
  font-weight: 800;
}

body.theme-nile .home-nile-copy h1 {
  margin: 0;
  font-size: clamp(2.15rem, 6vw, 4.15rem);
  line-height: 1.08;
  color: #143445;
}

body.theme-nile .home-nile-copy .hero-text {
  max-width: 62ch;
  margin: 0;
  color: #58717d;
  font-size: 1.06rem;
}

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

.nile-story-card {
  display: grid;
  gap: 8px;
  padding: 18px 18px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(28, 90, 122, 0.1);
}

.nile-story-card strong {
  color: #153444;
  font-size: 1rem;
}

.nile-story-card span {
  color: #617882;
  font-size: 0.92rem;
  line-height: 1.75;
}

body.theme-nile .home-nile-panel {
  display: flex;
  align-items: stretch;
}

.nile-dashboard-card {
  width: 100%;
  display: grid;
  gap: 18px;
  padding: 26px;
  border-radius: 28px;
  color: #f6fbfd;
  background:
    linear-gradient(145deg, rgba(16, 65, 90, 0.97), rgba(28, 90, 122, 0.95)),
    radial-gradient(circle at top right, rgba(213, 163, 63, 0.26), transparent 35%);
  box-shadow: 0 30px 60px rgba(16, 53, 70, 0.22);
}

.nile-dashboard-card h3 {
  margin: 0;
  font-size: 1.6rem;
  line-height: 1.3;
  color: #ffffff;
}

.nile-dashboard-card p {
  margin: 0;
  color: rgba(238, 246, 249, 0.88);
}

.nile-dashboard-card .meta-chip {
  color: #f6fbfd;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
}

.nile-dashboard-head {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: #f6fbfd;
}

.nile-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f6c766;
  box-shadow: 0 0 0 6px rgba(246, 199, 102, 0.18);
}

@media (max-width: 980px) {
  body.theme-nile .home-nile-shell {
    grid-template-columns: 1fr;
    padding: 24px 20px;
  }

  .nile-spotlight-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  body.theme-nile .home-nile-copy h1 {
    font-size: clamp(1.95rem, 9vw, 2.8rem);
  }

  .nile-dashboard-card {
    padding: 22px 18px;
    border-radius: 22px;
  }
}

.video-container-premium {
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: clamp(220px, 42vw, 560px);
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.video-container-premium video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background:
    radial-gradient(circle at top, rgba(59, 130, 246, 0.08), transparent 42%),
    linear-gradient(180deg, #04070d 0%, #09111b 100%);
}

.player-toolbar-premium {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.player-controls-group {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.player-quality-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

#lesson-quality-select {
  min-width: 124px;
}

.learning-status-banner {
  display: grid;
  gap: 6px;
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.04);
  color: var(--ui-text-1);
}

.learning-status-banner strong {
  font-size: 0.96rem;
  line-height: 1.4;
}

.learning-status-banner span {
  color: var(--ui-text-2);
  line-height: 1.8;
}

.learning-status-banner.tone-info {
  border-color: rgba(37, 99, 235, 0.24);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(14, 165, 233, 0.06));
}

.learning-status-banner.tone-warn {
  border-color: rgba(217, 119, 6, 0.26);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(251, 191, 36, 0.06));
}

.learning-status-banner.tone-error {
  border-color: rgba(220, 38, 38, 0.26);
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.12), rgba(248, 113, 113, 0.05));
}

.process-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.process-time,
.process-progress-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ui-text-3);
}

.process-progress-label {
  color: var(--ui-accent);
}

.studio-upload-result-meta {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.72);
}

.studio-upload-result-meta .record-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.community-richtext {
  color: var(--ui-text-1);
  line-height: 1.9;
  word-break: break-word;
}

.community-richtext a {
  color: var(--ui-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.community-post-side-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.community-post-cta {
  white-space: nowrap;
}

.community-post-card.is-question {
  border-inline-start: 4px solid rgba(245, 158, 11, 0.86);
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(255, 255, 255, 0.96)),
    #fff;
}

.community-post-card.is-course-share {
  border-inline-start: 4px solid rgba(14, 165, 233, 0.86);
  background:
    linear-gradient(135deg, rgba(14, 165, 233, 0.08), rgba(255, 255, 255, 0.96)),
    #fff;
}

.community-composer-card.is-guest-mode {
  border-style: dashed;
}

.community-guest-note {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px dashed rgba(37, 99, 235, 0.28);
  background: rgba(37, 99, 235, 0.07);
  color: var(--ui-text-2);
  line-height: 1.8;
}

body.theme-reels .learning-status-banner {
  background: rgba(10, 16, 28, 0.72);
  border-color: rgba(255, 255, 255, 0.08);
}

body.theme-reels .learning-status-banner strong {
  color: #f8fbff;
}

body.theme-reels .learning-status-banner span {
  color: rgba(226, 236, 244, 0.84);
}

body.theme-reels .studio-upload-result-meta {
  background: rgba(9, 15, 24, 0.82);
  border-color: rgba(255, 255, 255, 0.08);
}

body.theme-reels .community-richtext,
body.theme-reels .community-richtext a {
  color: #edf5ff;
}

body.theme-reels .community-richtext a {
  color: #8bd8ff;
}

body.theme-reels .community-post-card.is-question {
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.16), rgba(9, 15, 24, 0.94)),
    #0b1320;
}

body.theme-reels .community-post-card.is-course-share {
  background:
    linear-gradient(135deg, rgba(14, 165, 233, 0.16), rgba(9, 15, 24, 0.94)),
    #0b1320;
}

body.theme-reels .community-guest-note {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(125, 211, 252, 0.24);
  color: rgba(226, 236, 244, 0.88);
}

@media (max-width: 900px) {
  .player-toolbar-premium,
  .community-post-side-action {
    align-items: stretch;
  }

  .player-controls-group {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 640px) {
  .video-container-premium {
    min-height: 220px;
    border-radius: 20px;
  }

  .player-controls-group,
  .player-quality-wrap {
    width: 100%;
  }

  #lesson-quality-select {
    width: 100%;
    min-width: 0;
  }

  .studio-upload-result-meta {
    padding: 14px;
    border-radius: 16px;
  }

  .community-post-side-action {
    flex-direction: column;
    align-items: flex-start;
  }

  .community-post-cta {
    width: 100%;
    text-align: center;
  }
}
