/**
 * GKZiD MeDia Locker — mobile-first, dark + green accent
 */

.mc-body {
  margin: 0;
  min-height: 100vh;
  background: #07090c;
  color: #eaf0ff;
  font-family: "Outfit", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.mc-main {
  max-width: 720px;
  margin: 0 auto;
  padding: calc(52px + env(safe-area-inset-top) + 1rem) 1rem 2.5rem;
  padding-left: max(1rem, env(safe-area-inset-left));
  padding-right: max(1rem, env(safe-area-inset-right));
}

.mc-header {
  margin-bottom: 1.5rem;
}

.mc-kicker {
  font-family: "Syne", system-ui, sans-serif;
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #00F52A;
  text-shadow: 0 0 18px rgba(0, 245, 42, 0.25);
  margin: 0 0 0.35rem;
}

/* Player identity — shown under GKZiD kicker once auth resolves */
.mc-account-name-line {
  margin: 0 0 0.5rem;
}

.mc-account-name-line__eyebrow {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(234, 240, 255, 0.45);
  margin-bottom: 0.2rem;
}

.mc-account-name-line__name {
  display: block;
  font-family: "Syne", system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(1.35rem, 4.2vw, 1.85rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #00f52a;
  text-shadow: 0 0 28px rgba(0, 245, 42, 0.42);
  word-break: break-word;
}

.mc-title {
  font-family: "Syne", system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(1.65rem, 5vw, 2.1rem);
  line-height: 1.1;
  margin: 0 0 0.35rem;
  letter-spacing: -0.02em;
}

.mc-back-wrap {
  margin: 0 0 0.45rem;
}

.mc-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(0, 245, 42, 0.9);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 245, 42, 0.3);
}

.mc-back-link::before {
  content: "←";
  font-size: 1rem;
  line-height: 1;
  opacity: 0.85;
}

.mc-back-link:hover {
  color: #00F52A;
  border-bottom-color: rgba(0, 245, 42, 0.55);
}

/* Visible “My Media” subheader (was easy to miss when folded into .mc-sub only). */
.mc-page-subtitle {
  font-family: "Syne", system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(1.2rem, 4vw, 1.5rem);
  line-height: 1.2;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
  color: #00F52A;
  text-shadow: 0 0 22px rgba(0, 245, 42, 0.2);
}

.mc-sub {
  margin: 0;
  color: rgba(234, 240, 255, 0.65);
  font-size: 0.95rem;
  line-height: 1.45;
}

.mc-plan-hint {
  margin: 0.75rem 0 0;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  background: rgba(0, 245, 42, 0.06);
  border: 1px solid rgba(0, 245, 42, 0.22);
  color: rgba(234, 240, 255, 0.82);
  font-size: 0.875rem;
  line-height: 1.5;
}

.mc-plan-hint a {
  color: #00f52a;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.mc-plan-hint a:hover {
  color: #6dffb0;
}

.mc-status {
  margin: 0 0 1rem;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  background: rgba(255, 80, 80, 0.12);
  border: 1px solid rgba(255, 100, 100, 0.35);
  color: #ffb4b4;
  font-size: 0.9rem;
}

.mc-status.mc-status--ok {
  background: rgba(0, 245, 42, 0.08);
  border-color: rgba(0, 245, 42, 0.28);
  color: #b8ffe8;
}

.mc-section {
  margin-bottom: 1.75rem;
}

.mc-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.mc-section-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.65rem;
  color: #fff;
}

.mc-section-head .mc-section-title {
  margin-bottom: 0;
}

.mc-count {
  font-size: 0.8rem;
  color: rgba(234, 240, 255, 0.5);
  white-space: nowrap;
}

.mc-dropzone {
  border-radius: 14px;
  border: 1px dashed rgba(0, 245, 42, 0.35);
  background: linear-gradient(145deg, rgba(15, 20, 28, 0.95), rgba(8, 12, 18, 0.98));
  box-shadow: 0 0 0 1px rgba(0, 245, 42, 0.06), 0 12px 40px rgba(0, 0, 0, 0.45);
  padding: 1.35rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.mc-dropzone:hover,
.mc-dropzone:focus-visible {
  outline: none;
  border-color: rgba(0, 245, 42, 0.65);
  box-shadow: 0 0 0 1px rgba(0, 245, 42, 0.12), 0 0 28px rgba(0, 245, 42, 0.12);
}

.mc-dropzone.mc-dropzone--active {
  border-style: solid;
  border-color: #00F52A;
  box-shadow: 0 0 32px rgba(0, 245, 42, 0.18);
}

.mc-dropzone-inner {
  pointer-events: none;
}

.mc-dropzone-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(0, 245, 42, 0.1);
  color: #00F52A;
  font-size: 1.5rem;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.mc-dropzone-text {
  margin: 0;
  font-weight: 600;
  font-size: 0.95rem;
}

.mc-dropzone-hint {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  color: rgba(234, 240, 255, 0.45);
}

.mc-upload-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.mc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.1rem;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.mc-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.mc-btn-primary {
  background: rgba(0, 245, 42, 0.14);
  color: #00F52A;
  border: 1px solid rgba(0, 245, 42, 0.45);
  box-shadow: 0 0 20px rgba(0, 245, 42, 0.08);
}

.mc-btn-primary:hover,
.mc-btn-primary:focus-visible {
  background: rgba(0, 245, 42, 0.22);
  outline: none;
}

.mc-btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: #eaf0ff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.8rem;
  padding: 0.45rem 0.65rem;
}

.mc-btn-danger {
  background: rgba(255, 80, 80, 0.1);
  color: #ff9a9a;
  border: 1px solid rgba(255, 100, 100, 0.35);
  font-size: 0.8rem;
  padding: 0.45rem 0.65rem;
}

.mc-btn-admin {
  background: rgba(120, 160, 255, 0.12);
  color: #b8ccff;
  border: 1px solid rgba(140, 170, 255, 0.4);
  margin-top: 0.75rem;
}

.mc-btn-admin-promote {
  background: rgba(0, 245, 42, 0.14);
  color: #c7ffd8;
  border: 1px solid rgba(0, 245, 42, 0.4);
  margin-top: 0.75rem;
}

.mc-btn-admin-outline {
  background: rgba(120, 160, 255, 0.08);
  color: #c8d8ff;
  border: 1px solid rgba(140, 170, 255, 0.35);
}

.mc-btn-admin-outline:hover {
  background: rgba(120, 160, 255, 0.14);
}

.mc-label--block {
  margin: 0 0 0.45rem;
}

.mc-label--block span {
  display: block;
  margin-bottom: 0.25rem;
}

.mc-dropzone--admin {
  border-color: rgba(140, 170, 255, 0.35);
  box-shadow: 0 0 0 1px rgba(140, 170, 255, 0.06), 0 12px 40px rgba(0, 0, 0, 0.45);
}

.mc-dropzone--admin:hover,
.mc-dropzone--admin:focus-visible {
  border-color: rgba(160, 190, 255, 0.55);
  box-shadow: 0 0 0 1px rgba(140, 170, 255, 0.12), 0 0 28px rgba(100, 140, 255, 0.12);
}

.mc-dropzone--admin.mc-dropzone--active {
  border-color: #9ecfff;
  box-shadow: 0 0 28px rgba(120, 160, 255, 0.2);
}

.mc-dropzone-icon--admin {
  background: rgba(140, 170, 255, 0.14);
  color: #b8ccff;
}

.mc-upload-row--admin {
  margin-top: 0.65rem;
}

.mc-upload-row--admin-actions {
  gap: 0.55rem;
  flex-wrap: wrap;
}

.mc-check-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0.55rem 0 0.25rem;
  font-size: 0.83rem;
  color: rgba(232, 242, 255, 0.8);
}

.mc-check-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #00f52a;
}

.mc-admin-send-result {
  margin: 0.65rem 0 0;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  font-size: 0.88rem;
  line-height: 1.45;
  max-height: 10rem;
  overflow-y: auto;
  border: 1px solid rgba(255, 100, 100, 0.35);
  background: rgba(255, 80, 80, 0.12);
  color: #ffb4b4;
}

.mc-admin-send-result.mc-admin-send-result--ok {
  border-color: rgba(0, 245, 42, 0.28);
  background: rgba(0, 245, 42, 0.1);
  color: #b8ffe8;
}

.mc-admin-send-result.mc-admin-send-result--err {
  border-color: rgba(255, 100, 100, 0.35);
  background: rgba(255, 80, 80, 0.12);
  color: #ffb4b4;
}

.mc-admin-note {
  margin: 0.5rem 0 0;
  font-size: 0.78rem;
  color: rgba(225, 236, 255, 0.56);
}

.mc-media-check {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.45rem;
  font-size: 0.75rem;
  color: rgba(220, 236, 255, 0.78);
}

.mc-media-check__input {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: #00f52a;
}

.mc-spinner {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-top-color: #00F52A;
  animation: mc-spin 0.7s linear infinite;
}

@keyframes mc-spin {
  to {
    transform: rotate(360deg);
  }
}

.mc-admin {
  padding: 1rem;
  border-radius: 12px;
  background: rgba(30, 40, 70, 0.25);
  border: 1px solid rgba(140, 170, 255, 0.2);
  margin-bottom: 1.75rem;
}

.mc-admin-hint {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  color: rgba(234, 240, 255, 0.55);
}

.mc-admin code {
  font-size: 0.85em;
  color: #9ecfff;
}

.mc-label {
  display: block;
  margin-bottom: 0.65rem;
  font-size: 0.8rem;
  color: rgba(234, 240, 255, 0.65);
}

.mc-label span {
  display: block;
  margin-bottom: 0.25rem;
}

.mc-input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-family: ui-monospace, monospace;
  font-size: 0.85rem;
}

.mc-input-file {
  width: 100%;
  font-size: 0.85rem;
  color: rgba(234, 240, 255, 0.8);
}

/* Library: compact list (one column, small thumb left) */
.mc-grid.mc-grid--list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mc-card {
  border-radius: 10px;
  overflow: hidden;
  background: #0f141c;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0.65rem;
  padding: 0.5rem 0.55rem;
}

.mc-card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  justify-content: center;
}

.mc-card-thumb {
  position: relative;
  flex: 0 0 4.5rem;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 8px;
  overflow: hidden;
  background: #0a0d10;
  cursor: pointer;
  align-self: center;
}

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

.mc-card-thumb-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.mc-card-thumb-mux {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.mc-card-thumb--video {
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 30% 30%, rgba(0, 245, 42, 0.08), transparent 55%), #0a0d10;
}

.mc-card-video-ribbon {
  position: absolute;
  bottom: 1.65rem;
  left: 0.35rem;
  z-index: 5;
  padding: 0.18rem 0.38rem;
  border-radius: 6px;
  font-size: 0.52rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #020403;
  background: linear-gradient(145deg, #ffd36a 0%, #ffb020 100%);
  border: 1px solid rgba(255, 210, 120, 0.65);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

.mc-card-play {
  position: relative;
  z-index: 1;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgba(0, 245, 42, 0.15);
  border: 1px solid rgba(0, 245, 42, 0.45);
  color: #00F52A;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem;
  padding-left: 2px;
  pointer-events: none;
}

.mc-card-duration {
  position: absolute;
  right: 4px;
  bottom: 4px;
  z-index: 4;
  max-width: calc(100% - 8px);
  padding: 2px 5px;
  border-radius: 4px;
  font-size: 0.58rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  line-height: 1.15;
  color: #fff;
  background: rgba(0, 0, 0, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

.mc-card-duration[hidden] {
  display: none !important;
}

.mc-card-meta {
  padding: 0;
  flex: 1;
  min-height: 0;
}

.mc-card-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.35rem;
}

.mc-card-title {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 500;
  color: rgba(234, 240, 255, 0.92);
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}

.mc-btn-rename {
  flex-shrink: 0;
  font-size: 0.68rem;
  padding: 0.28rem 0.4rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(0, 245, 42, 0.95);
  border: 1px solid rgba(0, 245, 42, 0.28);
}

.mc-btn-rename:hover {
  background: rgba(0, 245, 42, 0.1);
}

.mc-card-rename {
  margin-top: 0.35rem;
}

.mc-card-rename-input {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 0.35rem;
  padding: 0.4rem 0.45rem;
  border-radius: 8px;
  border: 1px solid rgba(0, 245, 42, 0.35);
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-family: inherit;
  font-size: 0.8rem;
}

.mc-card-rename-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.mc-btn-rename-save,
.mc-btn-rename-cancel {
  font-size: 0.72rem;
  padding: 0.32rem 0.55rem;
  border-radius: 6px;
}

.mc-btn-rename-save {
  background: rgba(0, 245, 42, 0.16);
  color: #00F52A;
  border: 1px solid rgba(0, 245, 42, 0.45);
}

.mc-btn-rename-cancel {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(234, 240, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.mc-tag {
  position: absolute;
  bottom: 3px;
  left: 3px;
  font-size: 0.55rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.12rem 0.28rem;
  border-radius: 4px;
  background: rgba(0, 245, 42, 0.22);
  color: #00F52A;
  border: 1px solid rgba(0, 245, 42, 0.35);
  max-width: calc(100% - 6px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mc-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  padding: 0;
}

.mc-empty {
  text-align: center;
  color: rgba(234, 240, 255, 0.45);
  font-size: 0.9rem;
  margin: 1.5rem 0;
}

.mc-footer-nav {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
  font-size: 0.9rem;
}

.mc-footer-nav a {
  color: rgba(0, 245, 42, 0.85);
  text-decoration: none;
}

.mc-footer-nav a:hover {
  text-decoration: underline;
}

.mc-modal {
  position: fixed;
  inset: 0;
  z-index: 800;
  background: rgba(3, 5, 8, 0.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom))
    max(1rem, env(safe-area-inset-left));
}

.mc-modal[hidden] {
  display: none;
}

.mc-modal-close {
  position: absolute;
  top: max(0.75rem, env(safe-area-inset-top));
  right: max(0.75rem, env(safe-area-inset-right));
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  z-index: 30;
  pointer-events: auto;
}

.mc-modal-body {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-height: calc(100vh - 120px);
  z-index: 0;
}

.mc-modal-media {
  max-width: 100%;
  max-height: calc(100vh - 120px);
  border-radius: 8px;
  box-shadow: 0 0 40px rgba(0, 245, 42, 0.12);
}

.mc-modal-mux {
  width: min(96vw, 960px);
  aspect-ratio: 16 / 9;
  height: auto;
  max-height: calc(100vh - 120px);
  border: none;
  background: #000;
}

.mc-modal-actions {
  margin-top: 1rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Free plan: upload stays visible; caps are enforced in JS (10 images + 10 MB). */
.mc-quota-hint {
  margin: 0 0 1rem;
  padding: 0.55rem 0.75rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--muted, #9aa4b2);
  background: rgba(0, 245, 42, 0.06);
  border: 1px solid rgba(0, 245, 42, 0.2);
  border-radius: 10px;
}

.mc-quota-hint a {
  color: #6dffb0;
  font-weight: 600;
}

.mc-card-thumb--locked::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(0, 0, 0, 0.72);
  pointer-events: none;
  z-index: 2;
}

.mc-card-lock-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  font-size: 1.75rem;
  line-height: 1;
  pointer-events: none;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.8));
}

.mc-modal-watermark {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 5;
  font-family: "Syne", system-ui, sans-serif;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
  pointer-events: none;
}

.mc-modal-watermark[hidden] {
  display: none !important;
}
