body {
  background: var(--surface-ground) !important;
  color: #e6e6e6;
  font-optical-sizing: auto;
  font-style: normal;
  font-variation-settings: "ELGR" 1, "ELSH" 2;
  font-weight: 400;
  margin: 0;
  min-height: 100vh;
}

body.has-current .container {
  justify-content: center;
  padding-top: 0;
}

body.has-current .current-section {
  min-height: 18.75rem;
}

body.has-current .drop-card {
  height: 18.75rem;
}

label.small {
  color: #a0a0a0;
  font-size: 1rem;
  margin: 0 0.3125rem 0 0;
}

.access-buttons {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  width: 100%;
}

.access-controls {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.access-option {
  box-sizing: border-box;
  display: block;
  min-width: 0;
  overflow: hidden;
  width: 100%;
}

.access-option input {
  display: none;
}

.access-option input:checked+span {
  background: rgba(183,211,106,0.16);
  border-color: var(--brand);
  color: #fff;
}

.access-option span {
  align-items: center;
  background: #181a1b;
  border-radius: 0.625rem;
  border: 0.0625rem solid #464848;
  box-sizing: border-box;
  color: #b7c2cf;
  cursor: pointer;
  display: flex;
  font-size: 1.2rem;
  font-weight: 700;
  gap: 0.375rem;
  justify-content: center;
  line-height: 1.15;
  min-height: 2.25rem;
  min-width: 0;
  overflow: hidden;
  padding: 0.375rem 0.5rem;
  text-align: center;
  transition: border-color .18s ease, background-color .18s ease, color .18s ease;
  white-space: normal;
  width: 100%;
  word-break: break-word;
}

.access-option span:hover {
  border-color: #5a5d63;
}

.access-option-icon {
  display: block;
  filter: brightness(0) invert(1);
  flex-shrink: 0;
  height: var(--icon-sm);
  pointer-events: none;
  width: var(--icon-sm);
}

.access-row {
  align-items: stretch;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.card {
  background: #171a1f;
  border-radius: 1.125rem;
}

.choose-btn {
  -webkit-tap-highlight-color: transparent;
  background: var(--brand);
  border-radius: 0.625rem;
  border: none;
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  margin-top: 1.25rem;
  outline: none;
  padding: 0.75rem 1.125rem;
}

.choose-btn::-moz-focus-inner {
  border: 0;
}

.choose-btn:hover {
  filter: brightness(1.05);
  outline: none;
}

.combined-card {
  background: #262626;
  border-radius: 1.125rem;
  border: 0.0625rem solid #515151;
  overflow: hidden;
  padding: 0;
}

.combined-grid {
  align-items: stretch;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
}

.combined-wrapper {
  margin-top: 0.5rem;
  position: relative;
}

.combined-wrapper .bg-layer {
  border-radius: 1.125rem;
  pointer-events: none;
  position: absolute;
}

.combined-wrapper .bg0 {
  background: #424242;
  bottom: 0.375rem;
  left: 3rem;
  right: 3rem;
  top: -0.5625rem;
  z-index: 0;
}

.combined-wrapper .bg1 {
  background: #424242;
  bottom: 0;
  left: 0.75rem;
  right: 0.75rem;
  top: -0.9375rem;
  z-index: 0;
}

.combined-wrapper .bg2 {
  background: #616161;
  bottom: 0.5625rem;
  filter: brightness(0.95);
  left: 2.75rem;
  right: 2.75rem;
  top: -1.6875rem;
  z-index: 0;
}

.combined-wrapper .combined-card {
  position: relative;
  z-index: 1;
}

.container {
  align-items: center;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 100%;
  min-height: calc(100vh - 5rem);
  padding: 1rem 1.5rem 0 1.5rem;
}

.current-actions {
  align-items: center;
  display: flex;
  flex-shrink: 0;
  gap: 0.5rem;
}

.current-audio-icon, .current-file-icon, .current-image-icon, .current-video-icon {
  display: block;
  height: var(--icon-lg);
  width: var(--icon-lg);
}



.current-grid {
  box-sizing: border-box;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr 1fr;
  width: 100%;
}

.current-image-icon {
  filter: brightness(0) saturate(100%) invert(64%) sepia(18%) saturate(1100%) hue-rotate(38deg) brightness(92%);
}

.current-video-icon {
  filter: brightness(0) saturate(100%) invert(66%) sepia(38%) saturate(1400%) hue-rotate(184deg) brightness(103%);
}

.current-audio-icon {
  filter: brightness(0) saturate(100%) invert(72%) sepia(30%) saturate(900%) hue-rotate(238deg) brightness(102%);
}

.current-file-icon {
  filter: brightness(0) saturate(100%) invert(82%) sepia(8%) saturate(240%) hue-rotate(178deg) brightness(95%);
}

.current-item {
  align-items: center;
  background: #181a1b;
  border-radius: 0.75rem;
  border: 0.0625rem solid #464848;
  box-sizing: border-box;
  display: flex;
  gap: 0.75rem;
  height: 4rem;
  justify-content: space-between;
  overflow: hidden;
  padding: 0.625rem 0.75rem;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
  width: 100%;
}

.current-item:hover {
  background: #1c1f20;
  border-color: #5a5d5d;
}

.current-item.error-highlight {
  animation: error-pulse 2s ease-in-out;
  background: rgba(255,68,68,0.1);
  border: 0.125rem solid #ff4444;
}

.current-left {
  align-items: center;
  color: #b7c2cf;
  display: flex;
  flex: 1;
  font-size: 0.8125rem;
  gap: 0.75rem;
  min-width: 0;
}

.current-icon-wrap {
  align-items: center;
  background: rgba(255,255,255,0.05);
  border-radius: 0.5rem;
  box-sizing: border-box;
  display: flex;
  flex-shrink: 0;
  height: 2.625rem;
  justify-content: center;
  width: 2.625rem;
}

.current-icon-image {
  background: rgba(120,157,42,0.14);
}

.current-icon-video {
  background: rgba(86,159,255,0.14);
}

.current-icon-audio {
  background: rgba(198,120,221,0.14);
}

.current-icon-file {
  background: rgba(255,255,255,0.06);
}

.current-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
  overflow: hidden;
}

.current-file-title {
  color: #e6e6e6;
  font-weight: 600;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.current-meta {
  align-items: center;
  color: #8f8f8f;
  display: flex;
  font-size: 0.75rem;
  gap: 0.5rem;
  white-space: nowrap;
}

.current-size {
  color: #8f8f8f;
}

.current-remove {
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
  align-items: center;
  appearance: none;
  background: transparent;
  border-radius: 0.5rem;
  border: 0.0625rem solid #464848;
  cursor: pointer;
  display: flex;
  flex-shrink: 0;
  height: 2.375rem;
  justify-content: center;
  margin: 0;
  outline: none;
  padding: 0;
  transition: background-color 0.2s ease, border-color 0.2s ease;
  width: 2.375rem;
}

.current-remove img {
  display: block;
  height: var(--icon-sm);
  transform: none;
  transition: transform .12s ease;
  width: var(--icon-sm);
}

.current-remove:hover {
  background: rgba(237,43,59,0.12);
  border-color: rgba(237,43,59,0.5);
  outline: none;
}

.current-remove:hover img {
  transform: scale(1.06);
}

.current-section {
  margin-top: 1rem;
  width: 100%;
}

.current-title {
  color: #e6e6e6;
  font-weight: 700;
  margin: 0 0 0.75rem 0.375rem;
}

.drop-card {
  align-items: center;
  box-sizing: border-box;
  display: flex;
  flex: 0 0 auto;
  height: clamp(20rem,37.5vw,37.5rem);
  justify-content: center;
  transition: height .25s ease;
  width: 100%;
}

.drop-icon {
  -webkit-mask-image: url("/static/image/feed-file-icon.svg");
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  background: #789d2a;
  display: block;
  height: 4rem;
  mask-image: url("/static/image/feed-file-icon.svg");
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
  opacity: 0.9;
  width: 4rem;
}

.drop-inner {
  align-items: center;
  background: #181a1b;
  border-radius: 1rem;
  border: 0.0625rem dashed #464848;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: center;
  transition: all 0.3s ease;
  width: 100%;
}

.drop-inner.disabled {
  background: #2a2a2a;
  border-color: #666;
  cursor: not-allowed;
  opacity: 0.5;
}

.drop-inner.disabled .choose-btn {
  background: #666;
  cursor: not-allowed;
  opacity: 0.5;
}

.drop-inner.disabled .drop-title {
  color: #999;
}

.drop-sub {
  color: #7d7d7d;
  font-size: 0.875rem;
  margin-top: 0.625rem;
}

.drop-title {
  color: #cfcfcf;
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: 0.03125rem;
  margin-top: 1.125rem;
}

.form-card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
}

.input, .textarea {
  background: #181a1b;
  border-radius: 0.625rem;
  border: 0.0625rem solid #464848;
  box-sizing: border-box;
  color: #fff;
  font-size: 1.125rem;
  font-weight: 700;
  outline: none;
  padding: 0.75rem 1.5rem 0.75rem 0.875rem;
  width: 100%;
}

.input:focus, .textarea:focus {
  border-color: var(--brand);
}

.left-pane {
  background: transparent;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
}

.not-for-stream-wrap {
  align-items: center;
  display: flex;
  gap: 0.5rem;
}

.primary-btn {
  background: var(--brand);
  border-radius: 0.75rem;
  color: #fff;
  cursor: pointer;
  font-size: 1.25rem;
  font-weight: 700;
  padding: 0.875rem 1.75rem;
  width: 100%;
}

.primary-btn.disabled, .primary-btn[disabled] {
  cursor: not-allowed;
  filter: none;
  opacity: 0.6;
}

.primary-btn:hover {
  filter: brightness(1.05);
}







.right-pane {
  background: transparent;
  box-sizing: border-box;
  padding: 1.5rem;
}

.row {
  margin-bottom: 1.125rem;
}

.row.flex {
  align-items: center;
  display: flex;
  gap: 0.75rem;
}

.submit-row {
  margin-top: auto;
}

.terms-hint {
  color: #9a9a9a;
  font-size: 0.9rem;
  margin-top: 0.75rem;
  text-align: center;
}

.terms-link-inline {
  color: #b7d36a;
  text-decoration-thickness: 1px;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.terms-link-inline:hover {
  color: #d7ee90;
}

.textarea {
  min-height: 11.25rem;
  resize: none;
}

.toggle {
  appearance: none;
  background: #989898;
  border-radius: 0.75rem;
  border: 0.0625rem solid #464848;
  cursor: pointer;
  height: 1.5rem;
  outline: none;
  position: relative;
  width: 2.625rem;
}

.toggle:before {
  background: #0e1116;
  border-radius: 50%;
  content: '';
  height: 1.125rem;
  left: 0.1875rem;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  transition: transform .18s ease, background-color .18s ease;
  width: 1.125rem;
}

.toggle:checked {
  background: var(--brand);
}

.toggle:checked:before {
  background: #ffffff;
  transform: translate(0.875rem,-50%);
}

.under-access-toggle {
  margin-left: 0.125rem;
}

.upload-grid {
  box-sizing: border-box;
  margin: 0.75rem auto 0 auto;
  max-width: min(75rem,95vw);
  width: 100%;
}

.upload-progress-circle {
  align-items: center;
  display: inline-flex;
  height: 2rem;
  justify-content: center;
  position: relative;
  width: 2rem;
}

.upload-progress-circle .progress-bar {
  fill: none;
  stroke-linecap: round;
  stroke-width: 3;
  stroke: #fff;
  transition: stroke-dashoffset 0.1s ease;
}

.upload-progress-circle .progress-bg {
  fill: none;
  stroke-width: 3;
  stroke: rgba(255,255,255,0.2);
}

.upload-progress-circle .progress-text {
  color: #fff;
  font-size: 0.5rem;
  font-weight: 700;
  position: absolute;
}

.upload-progress-circle svg {
  height: var(--icon-2xl);
  transform: rotate(-90deg);
  width: var(--icon-2xl);
}

@keyframes error-pulse {
  0% {
    transform: scale(1);
  }

  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.02);
  }
}

@media (max-width: 480px) {
  .bg0 {
    left: 1.5rem;
    right: 1.5rem;
  }

  .bg1 {
    left: 0.5rem;
    right: 0.5rem;
  }

  .bg2 {
    left: 1.25rem;
    right: 1.25rem;
  }

  .choose-btn {
    padding: 0.625rem 0.875rem;
  }

  .combined-card {
    border-width: 0.0625rem;
  }

  .container {
    padding: 0 0.75rem 6rem 0.75rem;
  }

  .current-grid {
    box-sizing: border-box !important;
    display: grid !important;
    gap: 0.5rem !important;
    grid-template-columns: 1fr !important;
    width: 100% !important;
  }

  .current-item {
    margin-bottom: 0.5rem !important;
    width: 100% !important;
  }

  .drop-card {
    height: 16.25rem;
  }

  .drop-inner {
    box-sizing: border-box;
    padding: 0.625rem;
  }

  .drop-sub {
    font-size: 0.6875rem;
    text-align: center;
  }

  .drop-title {
    font-size: 1rem;
    text-align: center;
  }

  .textarea {
    min-height: 8.75rem;
  }
}

@media (max-width: 900px) {
  body.has-current .drop-card {
    height: 13.75rem;
  }

  .access-buttons {
    grid-template-columns: 1fr;
  }

  .combined-grid {
    grid-template-columns: 1fr;
  }

  .current-grid {
    grid-template-columns: 1fr !important;
  }

  .drop-card {
    height: 20rem;
  }

  .left-pane {
    padding: 1rem;
  }

  .right-pane {
    padding: 1rem;
  }
}

/* Guest Login CTA Card Styles */
.login-cta-wrapper {
  margin-top: 0.5rem;
  position: relative;
  max-width: min(40rem, 95vw);
  width: 100%;
}
.login-cta-wrapper .bg-layer {
  border-radius: 1.125rem;
  pointer-events: none;
  position: absolute;
}
.login-cta-wrapper .bg0 {
  background: #424242;
  bottom: 0.375rem;
  left: 3rem;
  right: 3rem;
  top: -0.5625rem;
  z-index: 0;
}
.login-cta-wrapper .bg1 {
  background: #424242;
  bottom: 0;
  left: 0.75rem;
  right: 0.75rem;
  top: -0.9375rem;
  z-index: 0;
}
.login-cta-wrapper .bg2 {
  background: #616161;
  bottom: 0.5625rem;
  filter: brightness(0.95);
  left: 2.75rem;
  right: 2.75rem;
  top: -1.6875rem;
  z-index: 0;
}
.login-cta-card {
  background: #262626;
  border-radius: 1.125rem;
  border: 0.0625rem solid #515151;
  overflow: hidden;
  position: relative;
  z-index: 1;
  padding: 3rem 2rem;
}
.login-cta-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.cta-logo {
  height: 5rem;
  margin-bottom: 2rem;
}
.cta-title {
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 1rem 0;
}
.cta-desc {
  color: #aaa;
  font-size: 1.2rem;
  line-height: 1.5;
  margin: 0 0 2rem 0;
  max-width: 30rem;
}
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: #9146ff; /* Twitch purple */
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
  padding: 0.875rem 1.75rem;
  border-radius: 0.75rem;
  transition: background-color 0.18s ease, transform 0.18s ease;
}
.cta-btn:hover {
  background: #772ce8;
  transform: translateY(-2px);
}
.cta-btn-icon {
  width: var(--icon-lg);
  height: var(--icon-lg);
}

/* Modal styles copied from preview.css to look identical to report modal */
.modal-overlay {
  align-items: center;
  -webkit-backdrop-filter: blur(0px);
  backdrop-filter: blur(0px);
  background: rgba(0, 0, 0, 0);
  display: none;
  height: 100%;
  justify-content: center;
  left: 0;
  position: fixed;
  top: 0;
  transition: background 220ms ease, -webkit-backdrop-filter 220ms ease, backdrop-filter 220ms ease;
  width: 100%;
  z-index: 99999;
}

.modal-overlay.active {
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  background: var(--overlay, rgba(0, 0, 0, 0.75));
  display: flex;
}

.complaint-modal {
  display: flex;
  flex-direction: column;
  position: relative;
  margin: 0 auto;
  background: var(--surface) !important;
  border: var(--modal-border) !important;
  border-radius: var(--radius-lg) !important;
  max-width: 520px !important;
  min-width: 320px !important;
  width: calc(100% - 32px) !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  padding: 0 !important;
  animation: modalFadeIn 0.3s ease;
}

.report-form-state {
  width: 100%;
  box-sizing: border-box;
}

.report-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
}

.report-modal-title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.report-modal-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  border: none;
  color: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  padding: 0;
}

.report-modal-close:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.report-modal-close svg {
  display: block;
}

.report-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.07);
  width: 100%;
}

.report-notice {
  position: relative;
  padding: 24px 32px 8px 50px;
  box-sizing: border-box;
}

.report-notice-line {
  position: absolute;
  left: 32px;
  top: 24px;
  width: 2px;
  bottom: 12px;
  background: var(--brand, #789d2a);
}

.report-notice-text {
  margin: 0;
  font-size: 18px;
  line-height: 28px;
  color: rgba(255, 255, 255, 0.85);
}

.report-footer {
  padding: 20px 32px 24px;
}

.report-submit-btn {
  width: 100%;
  height: 56px;
  border-radius: 10px;
  border: none;
  background: var(--brand, #789d2a);
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.report-submit-btn:hover {
  filter: brightness(1.1);
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ==========================================================================
   UPLOAD PAGE («Новый пост») — консолидированный блок
   ========================================================================== */

.upload-container {
  justify-content: flex-start;
  padding-top: 2.5rem;
}

.upload-container .upload-card {
  margin-bottom: 3rem;
}

.upload-card {
  background: var(--surface, #262626);
  border-radius: var(--radius-lg, 1rem);
  box-shadow: inset 0 0 0 1px var(--line-strong, rgba(255, 255, 255, 0.2));
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 42rem;
  padding: 1.75rem;
  width: 100%;
}

.upload-header {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.upload-title {
  color: var(--ink, #ebebeb);
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.01em;
  margin: 0;
}

.upload-subtitle {
  color: var(--ink-3, #828282);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.4;
}

.drag-drop-zone {
  box-sizing: border-box;
  height: clamp(15rem, 32vh, 19rem);
  position: relative;
  transition: height 0.25s ease;
  width: 100%;
}

.drop-inner {
  cursor: pointer;
  height: 100%;
  overflow: hidden;
  padding: 1rem;
}

.drag-drop-zone:hover .drop-inner,
.drag-drop-zone.dragover .drop-inner {
  background: #1c1f20;
  border-color: var(--brand, #789d2a);
}

.drop-inner.disabled {
  background: #2a2a2a;
  border-color: #666;
  cursor: not-allowed;
  opacity: 0.5;
}

.drop-icon-wrap {
  align-items: center;
  background: rgba(120, 157, 42, 0.12);
  border-radius: 50%;
  display: flex;
  height: 5rem;
  justify-content: center;
  margin-bottom: 0.25rem;
  width: 5rem;
}

.drop-icon-img {
  display: block;
  filter: brightness(0) saturate(100%) invert(64%) sepia(18%) saturate(1100%) hue-rotate(38deg) brightness(92%);
  height: 2.5rem;
  width: 2.5rem;
}

.drop-title {
  margin-top: 0.75rem;
}

.choose-file-btn {
  -webkit-tap-highlight-color: transparent;
  background: var(--brand, #789d2a);
  border-radius: 0.625rem;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 1.0625rem;
  font-weight: 700;
  margin-top: 1.25rem;
  outline: none;
  padding: 0.625rem 1.5rem;
  transition: filter 0.15s ease, transform 0.08s ease;
}

.choose-file-btn:hover {
  filter: brightness(1.08);
}

.choose-file-btn:disabled {
  cursor: not-allowed;
  filter: none;
  opacity: 0.55;
}

body.has-current .drag-drop-zone {
  height: 12.5rem;
}

body.has-current .drag-drop-zone .drop-icon-wrap {
  display: none;
}

body.has-current .drag-drop-zone .drop-title {
  font-size: 1.125rem;
  margin-top: 0.25rem;
}

body.has-current .choose-file-btn {
  margin-top: 0.75rem;
}

/* ── Список выбранных файлов ─────────────────────────── */
.current-section {
  margin-top: 0;
}

.current-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.current-title {
  color: var(--ink, #ebebeb);
  font-size: 1.0625rem;
  font-weight: 700;
  margin: 0 0 0.75rem 0.375rem;
}

.upload-file-count {
  color: var(--brand, #789d2a);
  font-size: 0.9375rem;
  font-weight: 600;
  margin-left: 0.25rem;
}

.upload-file-count.file-count-danger {
  color: #ff6b6b;
}

.current-grid {
  box-sizing: border-box;
  display: grid;
  gap: 0.625rem;
  grid-template-columns: 1fr;
  width: 100%;
}

.current-item {
  align-items: center;
  background: var(--surface-input, #181a1b);
  border-radius: 0.75rem;
  border: 1px solid var(--line, rgba(255, 255, 255, 0.1));
  box-sizing: border-box;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  min-height: 4rem;
  overflow: hidden;
  padding: 0.625rem 0.75rem;
  transition: border-color 0.2s ease, background-color 0.2s ease;
  width: 100%;
}

.current-item:hover {
  background: #1c1f20;
  border-color: rgba(255, 255, 255, 0.22);
}

.current-item.error-highlight {
  animation: error-pulse 2s ease-in-out;
  background: rgba(255, 68, 68, 0.1);
  border: 1px solid #ff4444;
}

.current-left {
  align-items: center;
  color: var(--ink-2, #b7c2cf);
  display: flex;
  flex: 1;
  font-size: 0.875rem;
  gap: 0.75rem;
  min-width: 0;
}

.current-icon-wrap {
  align-items: center;
  border-radius: 0.5rem;
  display: flex;
  flex-shrink: 0;
  height: 2.625rem;
  justify-content: center;
  width: 2.625rem;
}

.current-icon-image {
  background: rgba(120, 157, 42, 0.14);
}

.current-icon-video {
  background: rgba(86, 159, 255, 0.14);
}

.current-icon-audio {
  background: rgba(198, 120, 221, 0.14);
}

.current-icon-file {
  background: rgba(255, 255, 255, 0.06);
}

.current-icon-image,
.current-icon-video,
.current-icon-audio,
.current-icon-file {
  display: block;
  height: var(--icon-lg, 24px);
  width: var(--icon-lg, 24px);
}

.current-audio-icon,
.current-file-icon,
.current-image-icon,
.current-video-icon {
  display: block;
  height: var(--icon-lg, 24px);
  width: var(--icon-lg, 24px);
}

.current-image-icon {
  filter: brightness(0) saturate(100%) invert(64%) sepia(18%) saturate(1100%) hue-rotate(38deg) brightness(92%);
}

.current-video-icon {
  filter: brightness(0) saturate(100%) invert(66%) sepia(38%) saturate(1400%) hue-rotate(184deg) brightness(103%);
}

.current-audio-icon {
  filter: brightness(0) saturate(100%) invert(72%) sepia(30%) saturate(900%) hue-rotate(238deg) brightness(102%);
}

.current-file-icon {
  filter: brightness(0) saturate(100%) invert(82%) sepia(8%) saturate(240%) hue-rotate(178deg) brightness(95%);
}

.current-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
  overflow: hidden;
}

.current-file-title {
  color: var(--ink, #e6e6e6);
  font-weight: 600;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.current-meta {
  align-items: center;
  color: var(--ink-3, #8f8f8f);
  display: flex;
  font-size: 0.8125rem;
  gap: 0.5rem;
  white-space: nowrap;
}

.current-remove {
  -webkit-appearance: none;
  align-items: center;
  appearance: none;
  background: transparent;
  border-radius: 0.5rem;
  border: 1px solid var(--line, #464848);
  cursor: pointer;
  display: flex;
  flex-shrink: 0;
  height: 2.375rem;
  justify-content: center;
  margin: 0;
  outline: none;
  padding: 0;
  transition: background-color 0.2s ease, border-color 0.2s ease;
  width: 2.375rem;
}

.current-remove img {
  display: block;
  height: var(--icon-sm, 16px);
  transition: transform 0.12s ease;
  width: var(--icon-sm, 16px);
}

.current-remove:hover {
  background: rgba(237, 43, 59, 0.12);
  border-color: rgba(237, 43, 59, 0.5);
}

.current-remove:hover img {
  transform: scale(1.06);
}

/* ── Поля названия и описания ────────────────────────── */
.upload-fields {
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 0.4375rem;
}

.field-label {
  color: var(--ink-2, #a0a0a0);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.input-counter-wrap {
  position: relative;
}

.field-input,
.field-textarea {
  background: var(--surface-input, #181a1b);
  border-radius: 0.625rem;
  border: 1px solid var(--line, #464848);
  box-sizing: border-box;
  color: var(--ink, #fff);
  font-size: 1.0625rem;
  font-weight: 500;
  outline: none;
  padding: 0.6875rem 0.875rem;
  transition: border-color 0.2s ease;
  width: 100%;
}

.field-textarea {
  min-height: 8.75rem;
  resize: vertical;
}

.field-input:focus,
.field-textarea:focus {
  border-color: var(--brand, #789d2a);
}

.field-input::placeholder,
.field-textarea::placeholder {
  color: #6b6b6b;
}

.count-hint {
  background: rgba(24, 24, 24, 0.8);
  border-radius: 4px;
  bottom: 0.625rem;
  color: var(--ink-3, #8f8f8f);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 1px 5px;
  pointer-events: none;
  position: absolute;
  right: 0.75rem;
}

/* ── Опции поста ─────────────────────────────────────── */
.upload-options {
  align-items: stretch;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.upload-options .access-row {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.mobile-upload-options .upload-options .access-buttons {
  grid-template-columns: 1fr;
}

.opt-toggle {
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 0.75rem;
  border: 1px solid var(--line, rgba(255, 255, 255, 0.1));
  box-sizing: border-box;
  cursor: pointer;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  padding: 0.75rem 0.875rem;
  -webkit-user-select: none;
  user-select: none;
}

.opt-toggle-input {
  display: none;
}

.opt-text {
  color: var(--ink, #ebebeb);
  font-size: 1.0625rem;
  font-weight: 600;
}

.switch.track {
  background: #555;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  height: 1.5rem;
  position: relative;
  transition: background 0.2s ease;
  width: 2.625rem;
}

.switch-thumb {
  background: #fff;
  border-radius: 50%;
  height: 1.125rem;
  left: 0.1875rem;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.2s ease;
  width: 1.125rem;
}

.opt-toggle-input:checked ~ .switch.track {
  background: var(--brand, #789d2a);
}

.opt-toggle-input:checked ~ .switch.track .switch-thumb {
  transform: translate(0.9375rem, -50%);
}

/* ── Кнопка отправки ─────────────────────────────────── */
.upload-actions {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.next-btn {
  -webkit-tap-highlight-color: transparent;
  align-items: center;
  background: var(--brand, #789d2a);
  border-radius: 0.75rem;
  border: none;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-family: inherit;
  font-size: 1.25rem;
  font-weight: 700;
  justify-content: center;
  line-height: 1.2;
  min-height: 3.25rem;
  outline: none;
  padding: 0.75rem 1.5rem;
  transition: filter 0.15s ease, transform 0.08s ease;
  width: 100%;
}

.next-btn:hover:not(:disabled) {
  filter: brightness(1.08);
}

.next-btn:disabled,
.next-btn.disabled {
  cursor: not-allowed;
  filter: none;
  opacity: 0.55;
}

.next-btn .upload-progress-circle {
  align-items: center;
  display: inline-flex;
  height: 1.5rem;
  justify-content: center;
  margin-right: 0.625rem;
  position: relative;
  width: 1.5rem;
}

.next-btn .upload-progress-circle svg {
  height: 100%;
  transform: rotate(-90deg);
  width: 100%;
}

.next-btn .upload-progress-circle .progress-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.3);
  stroke-width: 3;
}

.next-btn .upload-progress-circle .progress-bar {
  fill: none;
  stroke: #fff;
  stroke-linecap: round;
  stroke-width: 3;
  transition: stroke-dashoffset 0.1s ease;
}

.next-btn .upload-progress-circle .progress-text {
  color: #fff;
  font-size: 0.5rem;
  font-weight: 800;
  position: absolute;
}

.upload-terms {
  color: var(--ink-3, #9a9a9a);
  font-size: 0.875rem;
  text-align: center;
}

/* ── Модалка про YouTube ─────────────────────────────── */
.yt-modal-overlay {
  z-index: 100010;
}

.yt-modal {
  animation: modalFadeIn 0.3s ease;
  background: var(--surface, #262626);
  border-radius: var(--radius-lg, 1rem);
  border: var(--modal-border, 1px solid rgba(255, 255, 255, 0.1));
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0 auto;
  max-width: 26rem;
  padding: 1.75rem;
  position: relative;
  text-align: center;
  width: calc(100% - 2rem);
}

.yt-modal-close {
  align-items: center;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 0.5rem;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  display: flex;
  height: 2rem;
  justify-content: center;
  padding: 0;
  position: absolute;
  right: 0.875rem;
  top: 0.875rem;
  transition: background 0.2s ease, color 0.2s ease;
  width: 2rem;
}

.yt-modal-close:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.yt-modal-icon {
  align-items: center;
  background: rgba(255, 82, 82, 0.12);
  border-radius: 50%;
  display: flex;
  height: 3.5rem;
  justify-content: center;
  margin: 0.25rem auto 0;
  width: 3.5rem;
}

.yt-modal-title {
  color: var(--ink, #fff);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  margin: 0;
}

.yt-modal-text {
  color: var(--ink-2, #aaa);
  font-size: 1.0625rem;
  line-height: 1.5;
  margin: 0;
}

.yt-modal-actions {
  display: grid;
  gap: 0.625rem;
  grid-template-columns: 1fr 1fr;
  margin-top: 0.5rem;
}

.yt-btn {
  background: var(--brand, #789d2a);
  border-radius: 0.625rem;
  border: none;
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  font-size: 1.0625rem;
  font-weight: 700;
  padding: 0.75rem 1rem;
  transition: filter 0.15s ease;
}

.yt-btn:hover {
  filter: brightness(1.08);
}

.yt-btn-dark {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink, #ebebeb);
}

.yt-btn-dark:hover {
  background: rgba(255, 255, 255, 0.14);
  filter: none;
}

/* ── Аутентификация (вход / регистрация) ─────────────── */
.auth-card {
  background: var(--surface, #262626);
  border-radius: var(--radius-lg, 1rem);
  box-shadow: inset 0 0 0 1px var(--line-strong, rgba(255, 255, 255, 0.2));
  box-sizing: border-box;
  max-width: 26rem;
  padding: 1.75rem;
  width: 100%;
}

.auth-tabs {
  background: var(--surface-input, #181a1b);
  border-radius: 0.625rem;
  border: 1px solid var(--line, rgba(255, 255, 255, 0.1));
  display: grid;
  gap: 0.25rem;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 1.5rem;
  padding: 0.25rem;
}

.auth-tab {
  background: transparent;
  border-radius: 0.5rem;
  border: none;
  color: var(--ink-2, #989898);
  cursor: pointer;
  font-family: inherit;
  font-size: 1.0625rem;
  font-weight: 700;
  padding: 0.625rem 1rem;
  transition: background 0.18s ease, color 0.18s ease;
}

.auth-tab.active {
  background: var(--brand, #789d2a);
  color: #fff;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 0.4375rem;
}

.auth-error {
  background: rgba(237, 43, 59, 0.1);
  border-radius: 0.5rem;
  border: 1px solid rgba(237, 43, 59, 0.35);
  color: #ff9a9a;
  font-size: 0.9375rem;
  line-height: 1.4;
  padding: 0.625rem 0.75rem;
}

.auth-submit {
  -webkit-tap-highlight-color: transparent;
  background: var(--brand, #789d2a);
  border-radius: 0.75rem;
  border: none;
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  font-size: 1.1875rem;
  font-weight: 700;
  outline: none;
  padding: 0.8125rem 1.5rem;
  transition: filter 0.15s ease;
  width: 100%;
}

.auth-submit:hover {
  filter: brightness(1.08);
}

/* ── Адаптив ─────────────────────────────────────────── */
@media (max-width: 600px) {
  .upload-container {
    padding-top: 1.25rem;
  }

  .upload-card {
    border-radius: 1rem;
    padding: 1.25rem;
  }

  .upload-title {
    font-size: 1.5rem;
  }

  body.has-current .drag-drop-zone {
    height: 10rem;
  }

  .yt-modal-actions {
    grid-template-columns: 1fr;
  }

  .yt-modal {
    padding: 1.5rem 1.25rem 1.25rem;
  }
}