.assign-layout {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.assign-top-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.assign-video-col {
  position: sticky;
  top: 20px;
  max-width: 100%;
}

/* Compact 16:9 frame; video letterboxes inside via object-fit */
.assign-video-player {
  position: relative;
  width: 100%;
  max-width: 200rem;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--theme-gray-200);
  background: var(--theme-black);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.assign-video-player .assign-video-element {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  background: var(--theme-black);
}

.assign-video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.assign-play-icon {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: var(--theme-white);
  font-size: 23px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.assign-play-icon:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: scale(1.06);
}

.assign-video-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 14px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
  color: var(--theme-gray-200);
  font-size: 13px;
}

.assign-details-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.assign-info-card,
.assign-form-card {
  border-radius: 16px;
  border: 1px solid var(--theme-gray-200);
  background: var(--theme-white);
  padding: 18px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.assign-info-heading {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--theme-black);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--theme-gray-100);
}

.assign-info-grid {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 0;
  margin: 0;
}

.assign-info-grid dt {
  padding: 7px 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--theme-gray-600);
  border-bottom: 1px solid var(--theme-gray-50);
}

.assign-info-grid dd {
  margin: 0;
  padding: 7px 0;
  font-size: 13px;
  color: var(--theme-black);
  border-bottom: 1px solid var(--theme-gray-50);
}

.assign-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 12px;
}

.assign-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px 12px;
}

.assign-message {
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
  margin-bottom: 10px;
}

.assign-message--error {
  background: var(--theme-red-soft);
  color: var(--theme-red-deep);
  border: 1px solid var(--theme-red-border);
}

.assign-message--success {
  background: var(--theme-gray-50);
  color: var(--theme-gray-900);
  border: 1px solid var(--theme-gray-200);
}

.assign-field label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--theme-gray-600);
}

.ss-wrap {
  position: relative;
}

.ss-input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--theme-gray-200);
  border-radius: 10px;
  padding: 9px 32px 9px 10px;
  font-size: 14px;
  font-family: inherit;
  color: var(--theme-black);
  background: var(--theme-white);
  cursor: pointer;
}

.ss-input::placeholder {
  color: var(--theme-gray-400);
}

.ss-input:focus-visible {
  outline: 2px solid var(--theme-gray-400);
  outline-offset: 1px;
}

.ss-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: none;
  color: var(--theme-gray-400);
  font-size: 17px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}

.ss-clear:hover {
  color: var(--theme-gray-600);
}

.ss-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 200px;
  overflow-y: auto;
  margin: 0;
  padding: 4px 0;
  list-style: none;
  border: 1px solid var(--theme-gray-200);
  border-radius: 10px;
  background: var(--theme-white);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
  z-index: 20;
}

.ss-option {
  padding: 8px 10px;
  font-size: 14px;
  color: var(--theme-black);
  cursor: pointer;
}

.ss-option:hover {
  background: var(--theme-gray-50);
}

.ss-option--selected {
  background: var(--theme-gray-100);
  font-weight: 600;
}

.ss-empty {
  padding: 10px;
  font-size: 13px;
  color: var(--theme-gray-400);
  text-align: center;
}


.assign-submit-button {
  margin-top: 6px;
  width: 100%;
  border: none;
  border-radius: 10px;
  padding: 11px;
  background: var(--theme-black);
  color: var(--theme-gray-50);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease, transform 0.15s ease;
}

.assign-submit-button:hover {
  background: var(--theme-gray-900);
  transform: translateY(-1px);
}

.assign-submit-button:active {
  transform: translateY(0);
}

.assign-success-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
}

.assign-success-dialog {
  width: min(400px, 100%);
  border-radius: 16px;
  border: 1px solid var(--surface-card-border);
  background: var(--surface-card);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.18);
  padding: 28px 24px 24px;
  text-align: center;
  position: relative;
}

.assign-success-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid var(--theme-gray-200);
  background: var(--theme-white);
  color: var(--theme-gray-600);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.assign-success-close:hover {
  border-color: var(--theme-red-border);
  color: var(--theme-red-deep);
}

.assign-success-close:focus-visible {
  outline: 2px solid var(--theme-red-border);
  outline-offset: 1px;
}

.assign-success-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 14px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.15);
  color: rgb(22, 163, 74);
  font-size: 24px;
  line-height: 48px;
  font-weight: 700;
}

.assign-success-title {
  margin: 0 0 10px;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.assign-success-text {
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--theme-gray-600);
}

.assign-success-button {
  width: 100%;
  border: none;
  border-radius: 10px;
  padding: 11px 14px;
  background: var(--theme-black);
  color: var(--theme-gray-50);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s ease;
}

.assign-success-button:hover {
  background: var(--theme-gray-900);
}

.assign-success-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.assign-success-button--secondary {
  background: var(--theme-white);
  color: var(--theme-black);
  border: 1px solid var(--theme-gray-300);
}

.assign-success-button--secondary:hover {
  background: var(--theme-gray-50);
}

@media (max-width: 900px) {
  .assign-top-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .assign-video-col {
    position: static;
  }

  .assign-info-grid {
    grid-template-columns: 120px minmax(0, 1fr);
  }

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